
@import url('https://fonts.googleapis.com/css2?family=Kufam:ital,wght@0,400..900;1,400..900&display=swap');

*{
    font-family: "Kufam", serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
  }
body {
    text-align: center;
    margin: 0;
    background: linear-gradient(135deg, #4E342E, #8D6E63, #D7A86E);
    background-size: cover;
    overflow: hidden;
    direction: rtl;
    position: relative;
    width: 100vw;
    height: 100vh;
}
header {
    border: 3px solid gold;
    background: linear-gradient(to bottom, #FFF4C1, #D4AF37);

    padding: 1.7vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 2.1vmin;
    font-weight: bold;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;

}


a {
    color: rgb(26, 24, 24);
    margin: 0 10px;
    text-decoration: none;
    font-size: 1em;
    transition: all 0.3s linear;

}

a:hover {

    background-color: #7B6B43;
    color: white;
    padding: 0.5em;
    border-radius: 5px;
}

#game {
    padding-top: 10vh;

}

.question {
    font-size: 2em;
    color: #c5a334;
    font-weight: bold;
    margin-top: 8.5vh;
    padding-bottom: 4vh;
    padding-top: 10vh;
}

.options {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.option {
    padding: 15px 25px;
    margin: 5px;
    border: 3px solid gold;
    cursor: pointer;
    font-size: 1.5em;

    width: 30vw;
    height: 10vh;
    background: linear-gradient(to bottom, #FFF4C1, #D4AF37);
    border-radius: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease-in-out;
}

.option:hover {
    background: linear-gradient(to bottom, #FFD700, #B8860B);
}

#restart-button{
    z-index: 10000;
    position: fixed;
    top: 47vh;
    left: 35vw;
    width: 30vw;
}
.alert {
    position: fixed;
    top: 20%;
    left: 45%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 10px;
    font-size: 2vmin;
    font-weight: bold;
    display: none;
    animation: fadeInOut 1.5s ease-in-out;
}

.alert.correct {
    background-color: #4CAF50;
    color: white;
}

.alert.wrong {
    background-color: #F44336;
    color: white;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}


.star {
    position: absolute;
    background: white;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    box-shadow: 0 0 5px white;
    animation: twinkle 2s infinite alternate;
}



#background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

.score-animate-green {
    transform: scale(1.1);
    color: green;
}

#Message {
    position: relative;
    color: #c5a334;
    top: 30.2vh;
    left: 0vw;
    font-size: 2em;

}
    #Messagescore{
        position: relative;
        color: #c5a334;
        top: 47vh;
        left: 0vw;
        font-size: 2em;

    }
#score-container {
    position: fixed;
    color: #c5a334;
    top: 6vh;
    left: 1vw;
    margin-top: 20px;
    font-size: 2em;
    transition: transform 0.3s ease-in-out, color 0.3s;
}

#timer-container {
    position: fixed;
    color: #c5a334;
    font-size: 2em;

    direction: ltr;
    position: fixed;
    top: 11vh;
    left: 1vw;
    margin-top: 20px;

}

@keyframes twinkle {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}
@media (min-width: 310px) and (max-width:900px ){ 
    /* phone */
            header {
                font-size: 0.8em;
                display: flex;
                justify-content: space-around;
                align-items: center;
                padding: 0.6rem;
                width: 100vw;
            }

            .question {
                font-size: 1.3em;
            }

            .option {
                font-size: 0.9em;
                padding: 10px;
                min-width: 30vw;
                max-width: 60vw;
            }

            #restart-button{
               
                top: 50vh;
                left: 30vw;
                min-width: 42vw ;
            }
            #Message{
        
                
                top: 40vh;
                font-size: 0.8em;
            }
            #Messagescore{
            
                color: #c5a334;
                top: 60vh;
               
                font-size: 1em;
        
            }
            #score-container{
                font-size: 1.3em;
            }
            #timer-container{
                font-size: 1.3em;
            }

           
            }
