WinScreen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-family: Poppins;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent background for the win screen */
    animation: fadeIn 1s ease-in-out;

    .container {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 10px;
    }

    .logo {
        position: absolute;
        background-image: url( textures/ui/winner.png );
        background-size: cover;
        width: 60%;
        height: 35%;
        top: 20px;
        animation: bounce 1s ease infinite; /* Add a bounce effect to the logo */
    }

    .title {
        text-align: center;
        font-size: 60px; /* Bigger text for impact */
        font-family: Poppins, sans-serif;
        color: #FFD700; /* Gold color for the winner text */
        padding: 20px;
        text-shadow: 0 0 15px rgba(255, 215, 0, 1), 0 0 20px rgba(255, 215, 0, 0.8); /* Glowing text effect */
        animation: glow 1.5s ease-in-out infinite alternate;
    }
    /* Button styling if any */
    .button {
        background-color: #444;
        padding: 10px;
        border: 1px solid white;
        border-radius: 10px;
        color: white;
        font-size: 18px;
        transition: background-color 0.3s;
    }
    /* Glow animation for the title */
    @keyframes glow {
        0% {
            text-shadow: 0 0 15px rgba(255, 215, 0, 1), 0 0 20px rgba(255, 215, 0, 0.8);
        }

        100% {
            text-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.6);
        }
    }
    /* Bounce animation for the logo */
    @keyframes bounce {
        0%, 100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-10px);
        }
    }
    /* Fade-in effect for the win screen */
    @keyframes fadeIn {
        0% {
            opacity: 0;
        }

        100% {
            opacity: 1;
        }
    }
}
