body {
    background-color: #F4C2C2;
}
a{
color: #aa5261;}

#gametitle {
    text-align: center;
    font-family: "Bebas Neue", sans-serif;
    font-size: 30px;
    color: #aa5261;
}

#message {
    text-align: center;
    font-family: "Bebas Neue", sans-serif;
    color: beige;
}

#players {
    text-align: center;
}

#players h2 {
    font-family: "Bebas Neue", sans-serif;
    display: inline-block;
}

#restartbutton {
    display: block;
    margin: 15px auto 0 auto;
    height: 40px;
    width: 150px;
    background-color: #aa5261;
    border: 1px solid #ac6c6c;
    border-radius: 40px;
    font-size: 18px;
    color: beige;
    font-family: "Bebas Neue", sans-serif;
    cursor: pointer;
}

#restartbutton:hover {
    background-color: #aa5261;
}
#board {
    position: relative;
    width: 90vw;
    max-width: 429px; 
    aspect-ratio: 429 / 500;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0;
    margin: auto;
}

#board::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-image: url("./pics/WAFFLE.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
}

.box {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5vw;
    cursor: pointer;
    background-color: transparent;
    border: 0px solid rgba(170,82,97,0.4);
    transition: background-color 0.2s;
    z-index: 1;
}

.box:hover {
    background-color: rgba(137, 92, 73, 0.2);
}
#message img {
    max-width: 25vmin;
}
.winner {
    background-color: rgba(255, 223, 0, 0.4) !important;
    box-shadow: 0 0 15px gold;
}
.syrup {
    position: absolute;
    background: url("./pics/choco.png") no-repeat center;
    background-size: contain;
    pointer-events: none; /* don’t block clicks */
    animation: drizzle 0.6s ease forwards;
}

@keyframes drizzle {
    0% { opacity: 0; transform: translateY(-20%); }
    100% { opacity: 1; transform: translateY(0); }
}
