@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Chewy&family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Fredoka:wght@300..700&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Ruge+Boogie&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    height: 100vh;
    /* position: relative; */
    background-color: #0791C7;
}
body::before{
    content: "";
    position: fixed;
    height: 100%;
    width: 100%;
    background-image: url(assests/18957.jpg);
    background-size:contain;
    background-position: center;  
    opacity: 0.4;  
    z-index: -1;
}
.box{
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
header{
    width: 100vw;
    height: 10vh;
    background-color: #60D4FA;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: fixed;
    z-index: 1;
}
.web_name{
    font-family: 'bungee', monospace;
    text-decoration: none;
    font-size: 1.7rem;
    margin: 1.3rem;
    color:  #f7dc85;
    font-weight:bold;
}
nav ul li{
    font-family: 'bungee', serif;
    font-weight: 100;
    margin: 1.5rem 3rem 1.5rem 0;
    display: inline-flex;
    justify-content: space-between;
    text-decoration: none;
    font-size: 1.2rem;
    color:  #f7dc85;

}
nav ul li {
  position: relative;
  cursor: pointer;
}
nav ul li::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #f7dc85; 
  transition: width 0.3s ease;
}

nav ul li:hover::after {
  width: 100%;
}
#home{
    display: flex;
    flex-direction: column;
    width: 80vw;
    min-height: 85vh;
    position: relative;
    top: 17vh;
    left: 10vw;
    border: 7px solid #f7dc85;
    border-radius: 10px;
    background-color: #60d3fa80;
    color: #ddecfb;
    align-items: center;
    flex: 1;
    margin-bottom: 12rem;
}
.welcome{
    display: flex;
    flex-direction: column;
    margin: 20px;
    align-items: center;
    color: #f7dc85;
}
.welcome h1{
    font-family: 'fredoka', serif;
    font-size: 3rem;
}
.welcome h3{
    font-family: 'fredoka', serif;
    font-size: 2.2rem;
}
.rules{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.rules h2{
    font-family: 'comic neue', serif;
    margin: 60px 0 20px 0;
    font-size: 1.7rem;
    
}
.rules ul li{
    font-family: 'comic neue', serif;
    font-weight: 600;
    font-size: 1.3rem;
    padding: 15px;
    color: #f7dc85;
}
.rules ul {
    list-style: none;
}
.rules ul li::before{
    content: "⚡";
}
.start{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5rem;
    padding: 10px;
}
.start h4{
    font-family: 'comic neue', serif;
    font-size: 0.95rem;
}
.start a{
    text-decoration:none;
}
.start h2{
    font-family: 'fredoka', serif;
    font-size: 1.5rem;
    margin-top: 7px;
    padding: 8px 30px;
    background-color: #60D4FA;
    border: 4px solid #e3f8ff;
    border-radius: 10px;
    color: #f7dc85;
}
#contact{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    height: 15vh;
    background-color:#60D4FA;
    margin-top: auto;
}
#contact h2{
    color: #f7dc85;
    font-family: 'fredoka', serif;
    padding: 5px;
}
.social-icon{
    display: flex;
    justify-content: center;
}
.social-icon a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    background-color: transparent;
    border: 0.2rem solid #f7dc85;
    border-radius: 50%;
   text-decoration: none;
   color: #ffffff;
   margin: 1rem 1.5rem 0rem 0rem;
   transition: 0.3s ease;
}
.social-icon a:hover{
    color: black;
    background-color: #f7dc85;
    transform: scale(1.2);
}
.social-icon i{
    text-decoration: none;
}
.container{
    display: flex;
    flex-direction: column;
    width: 80vw;
    min-height: 70vh;
    position: relative;
    top: 17vh;
    left: 10vw;
    border: 7px solid #f7dc85;
    border-radius: 10px;
    background-color: #60d3fa80;
    color: #ddecfb;
    align-items: center;
    flex: 1;
    margin-bottom: 12rem;
}
/* Question Section Styling */
.question {
    width: 90%;
    margin-top: 3rem;
    text-align: center;
}

.q-text {
    font-family: 'fredoka', serif;
    font-size: 1.8rem;
    color: #f7dc85;
    padding: 10px 20px;
    /* background-color: #429bf3; */
    border-radius: 8px;
    /* border: 2px solid #e4f1fe; */
}

.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 3.5rem;
    width: 80%;
}

.options div {
    font-family: 'comic neue', serif;
    font-weight: 600;
    font-size: 1.3rem;
    padding: 15px;
    text-align: center;
    background-color: #f7dc85;
    border-radius: 10px;
    border: 2px solid #f9f9f2;
    color: #080808;
    cursor: pointer;
    transition: 0.3s ease;
}

.options div:hover {
    background-color: #60D4FA;
    transform: scale(1.05);
    color: black;
}

.q-buttons {
    display: flex;
    gap: 20px;
    margin-top: 4rem;
}

.q-buttons button {
    font-family: 'comic neue', serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 25px;
    background-color: #f7dc85;
    border: 3px solid #e4f1fe;
    border-radius: 10px;
    color: #1a1a1a;
    cursor: pointer;
    transition: 0.3s ease;
}

.q-buttons button:hover {
    background-color: #60D4FA;
    color: black;
}

/* Result Container */
.container.r h2 {
    font-family: 'fredoka', serif;
    margin-top: 3rem;
    font-size: 2rem;
    color: #f7dc85;
}
.container.r h3 {
    font-family: 'fredoka', serif;
    margin-top: 1rem;
    font-size: 1.7rem;
    color: #f7dc85;
}

.score {
    font-family: 'fredoka', serif;
    font-size: 1.5rem;
    margin-top: 1rem;
    /* background-color: #429bf3; */
    padding: 25px 30px;
    /* border-radius: 10px; */
    color: #f7dc85;
    /* border: 2px solid #e4f1fe; */
}

.r-buttons {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}
.r-buttons a {
    text-decoration: none;
    color: #141414;
}

.r-buttons button {
    font-family: 'comic neue', serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 25px;
    background-color: #60D4FA;
    border: 3px solid #e4f1fe;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
}

.r-buttons button:hover {
    background-color: #f7dc85;
    color: black;
}
.correct {
    background-color: #4CAF50 !important;
    color: white;
}

.wrong {
    background-color: #f44336 !important;
    color: white;
}

/* Responsive Media Query */
@media screen and (max-width: 768px) {
    .container,
    #home {
        width: 90vw;
        left: 5vw;
        margin-bottom: 10rem;
    }

    .web_name {
        font-size: 1.4rem;
    }

    nav ul li {
        font-size: 1rem;
        margin: 0 0.6rem;
        padding-top: 1.5rem;
    }

    .welcome h1 {
        text-align: center;
        font-size: 2rem;
        
    }

    .welcome h3 {
        padding-top: 1rem;
        font-size: 1.6rem;
    }

    .rules h2 {
        margin-top: 2rem;
        font-size: 1.5rem;
    }

    .rules ul li {
        font-size: 1.1rem;
        padding: 8px;
        text-align: center;
    }

    .start h2 {
        font-size: 1.3rem;
        padding: 6px 20px;
    }

    .question{
        margin-top: 1rem;
    }
    .q-text {
        font-size: 1.5rem;
        padding: 10px 15px;
    }

    .options {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 15px;
        align-items: center;
    }

    .options div {
        width: 90%;
        font-size: 1.2rem;
        padding: 12px;
    }

    .q-buttons {
        flex-direction: column;
        align-items: center;
        margin-bottom: 1rem;
    }
    .container.r h2{
        margin-top: 1rem;
        text-align: center;
    }
     .q-buttons button{
        padding: 15px 35px 15px 22px; 
     }

    .r-buttons{
        flex-direction: row;
        align-items: center;
    }

    .q-buttons button,
    .r-buttons button {
        width: 80%;
    }

    #restart{
        padding: 20px;
    }

    .score {
        font-size: 1.3rem;
        text-align: center;
        padding: 10px 20px;
    }

    .social-icon a {
        margin: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    #contact{
        height: 14vh;

    }
}





