body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

#main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

#game {
    text-align: center;
}

#board {
    display: inline-grid;
    grid-template-columns: repeat(8, 40px);
    grid-gap: 1px;
    padding: 10px;
    background-color: #333;
    border-radius: 10px;
    border: 2px solid #000;
}

#score {
    margin-top: 20px;
    font-size: 24px;
}

@media (max-width: 600px) {
    #board {
        grid-template-columns: repeat(8, 30px);
    }
    .candy {
        width: 30px;
        height: 30px;
    }
}

.candy {
    width: 40px;
    height: 40px;
    cursor: pointer;
    border: 2px solid #000;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.candy::after {
    content: '';
    display: block;
    width: 70%;
    height: 70%;
    background-color: currentColor; /* Add this line */
}

.candy.circle::after {
    border-radius: 50%;
}

.candy.square::after {
    border-radius: 0;
}

.candy.triangle::after {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 26px solid currentColor;
    background-color: transparent;
}

.candy.diamond::after {
    transform: rotate(45deg);
}

.candy.cross::after {
    background: 
        linear-gradient(45deg, transparent 40%, currentColor 40%, currentColor 60%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, currentColor 40%, currentColor 60%, transparent 60%);
    background-color: transparent;
}

@media (max-width: 600px) {
    .candy {
        width: 30px;
        height: 30px;
    }
    .candy::after {
        width: 60%;
        height: 60%;
    }
    .candy.triangle::after {
        border-left-width: 10px;
        border-right-width: 10px;
        border-bottom-width: 17px;
    }
}

.candy.swapping {
    transform: scale(1.2);
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.candy.popping {
    animation: pop 0.3s ease;
}