@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');


/* Landing Page styling*/
:root {
    background-color: rgb(7, 44, 80);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 62.5%;
    font-family: "Ubuntu", cursive;
}

h1 {
    font-size: 5.4rem;
    color: #fff;
    margin-bottom: 5rem;
}

.container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem;
    font-family: "Ubuntu", cursive;
}

.flex-column {
    display: flex;
    flex-direction: column;

}

.flex-center {
    justify-content: center;
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}


.btn {
    font-size: 2.4rem;
    padding: 2rem 0;
    width: 30rem;
    text-align: center;
    margin-bottom: 1rem;
    text-decoration: none;
    color: rgb(245, 235, 248);
    background: linear-gradient(90deg, rgb(255, 94, 0) 0%, rgb(255, 42, 104) 100%);
    border-radius: 4px;
}

.btn:hover {
    cursor: pointer;
    box-shadow: 0 0.4rem 1.4rem 0 rgba(255, 106, 7, 0.7);
    transition: transform 150ms;
    transform: scale(1.03);

}

.btn[disabled]:hover {
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

#topscore-btn {
    background: linear-gradient(90deg, rgb(3, 169, 244) 0%, rgb(0, 150, 136) 100%);
}

#topscore-btn:hover {
    box-shadow: 0 0.4rem 1.4rem 0 rgba(255, 255, 0, 0.5);
}

.fa-crown {
    font-size: 2.5rem;
    margin-left: 1rem;
    color: #fff;
}

/* End page styling */

.end-form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 30rem;
}

input {
    margin-bottom: 1rem;
    width: 20rem;
    padding: 1.5rem;
    font-size: 1.8rem;
    border: none;
    box-shadow: 0 0.4rem 1.4rem 0 rgba(255, 255, 0, 0.5);
}

input::placeholder{
    color: #aaa;
}

#username {
    margin-bottom: 3rem;
    width: 100%;
    outline: none;
}

#end-text {
    font-size: 2.4rem;
    color: #fff;
    text-align: center;
}

#saveScoreBtn {
    border: none;
}

.fa-home {
    margin-left: 1rem;
    font-size: 2rem;
    color: rgb(28, 26,26);
}

/*Media query for tablet/ iPad compatibility*/
@media screen and (max-width: 768px){
    .choice-container {
        min-width: 40rem;
        padding: 0.5rem;
        margin: 0.5rem 0;
        background: rgb(179, 63, 12);
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
        width: 80%;
    }

    #home h1 {
        font-size: 1.8rem;
    }

    #highscore-btn .fas {
        display: none; /* Hide icon on smaller screens if necessary */
    }

    #question {
        font-size: 1.5rem; /* Adjust font size for better readability on mobile */
        padding: 1rem; /* Add padding for better spacing */
        text-align: center; /* Center-align the text for a cleaner look */
        word-wrap: break-word; /* Ensure long words break and wrap to the next line */
        
    }
    .fa-crown {
        font-size: 2.5rem;
        margin-left: 1rem;
        color: #fff;
    }
    .correct {
        background: linear-gradient(45deg, rgba(11, 223, 36) 0%, rgba(41, 232, 111) 100%);
    }
    
    .incorrect {
        background: linear-gradient(45deg, rgba(230, 29, 1) 0%, rgba(224, 11, 11, 1) 100%);
    }
    
}

/*Media query for mobile device compatibility*/
@media screen and (max-width: 480px) {
    .choice-container {
        min-width: 30rem; /* Example adjustment for smaller screens */
        padding: 0.5rem;
        margin: 0.5rem 0;
        background: rgb(179, 63, 12);
    }

    .container {
        padding: 0.5rem;
    }
    .correct {
        background: linear-gradient(45deg, rgba(11, 223, 36) 0%, rgba(41, 232, 111) 100%);
    }
    
    .incorrect {
        background: linear-gradient(45deg, rgba(230, 29, 1) 0%, rgba(224, 11, 11, 1) 100%);
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        width: 90%;
    }
    
    #home h1 {
        font-size: 1.5rem;
    }

    #question {
        font-size: 1.2rem; /* Further adjust font size for smaller screens */
        padding: 1rem;
        text-align: center;
        word-wrap: break-word;
    }
    .fa-crown {
        font-size: 2.5rem;
        margin-left: 1rem;
        color: #fff;
    }
    
}
