body {
    font-family: sans-serif;
    background-color: #f0f0f0;
    color: #333;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 2rem 0;
}

#game-container {
    text-align: center;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
#logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 1rem;
    cursor: pointer;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

#start-button {
    background-color: #28a745; /* Green */
    font-size: 1.5rem;
    padding: 1.2rem 2.5rem;
}

#start-button:hover {
    background-color: #218838;
}

.hidden {
    display: none;
}

#targets-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.target {
    position: relative;
    display: flex;
    gap: 1rem;
    font-size: 4rem;
    padding: 1rem;
    background-color: #eee;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.target.done {
    opacity: 0.4;
    transform: scale(0.95);
    background-color: #e0e0e0;
}

.target::before {
    content: '✅';
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 5rem;
    z-index: 1;
    transform: translate(-50%, -50%) scale(0) rotate(-180deg);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.target::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0%;
    height: 10px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(128,128,128,0.8) 50%, rgba(255,255,255,0) 100%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease-in-out 0.2s;
}

.target.done::before {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
}

.target.done::after {
    width: 120%;
}

.special-target {
    background-color: #FFD700; /* Gold/Yellow */
    animation: pulse 2s infinite;
    font-size: 2.5rem;
    padding: 2rem;
}


@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
}

.slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    position: relative;
}

.slot .emojis {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff; /* Ensure it covers the static emoji */
    transition: top 5s cubic-bezier(0, 0, 0.58, 1.0);
}

.slot .emojis div {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px; /* Match slot height */
}
@media (max-width: 600px) {
    #game-container {
        padding: 1rem;
        padding-bottom: 5rem;
        width: 95vw;
    }

    #targets-container {
        gap: 1.5rem;
    }

    .target {
        font-size: 3.8rem;
        padding: 1rem;
        gap: 1rem;
        align-items: center;
        justify-content: center;
        height: 102px;
        box-sizing: border-box;
    }

    .target::before {
        font-size: 4rem;
    }

    button {
        padding: 1rem 1.8rem;
        font-size: 1.1rem;
    }

    .slot {
        width: 70px;
        height: 70px;
    }
}