@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
    }
}

body{
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    background: linear-gradient(to right, rgb(0, 12, 100), #2486dc, #7068e7);
    animation: fade 2s ease-in-out forwards; 
}


header{
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 30px;
    color: white;
    
}

@keyframes textchange{
    0%{
        color: white;
    }

    40%{
        color: lightblue;
    }

    80%{
        color: rgb(190, 138, 216);
    }
    100%{
        color: navy;
    }
}

#logo{
    font-family: 'Gill Sans';
    animation: textchange 4s infinite alternate;
}

nav{
    display: flex;
    gap: 40px;
    font-size: 30px;
    justify-content: center;
    align-items: center;
}

nav a{
    text-decoration: none;
    color: white;
}

nav a:hover{
    text-decoration: underline;
    color: navy
}

@keyframes colorswitch {
    from {
        background-color: white; 
    }

    to{
        background-color: navy;
        color: white
    }
}

nav button{
    padding: 25px;
    border-radius: 40px;
    border: transparent;
    box-shadow: 1px 2px 10px white;
    font-size: 20px;
    animation: colorswitch 1s infinite alternate;
    cursor: pointer;
}

nav button:hover{
    background-color: navy;
    color: white;

}

#About{
    margin-top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-margin-top: 120px;
}

.about-container{
    padding: 60px;
    box-shadow: 10px 10px 50px rgb(0, 0, 0);
    margin-right: 90px;
    margin-left: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.banner{
    width: 900px;
}

#about-descr{
    color: white;
    text-align: center;
    width: 50%;
    border-left: 5px solid rgb(255, 255, 255);
    border-right: 5px solid rgb(255, 255, 255);
    border-radius: 10px;
    padding: 10px 50px;
    font-size: 25px;
    margin-top: 40px;
    line-height: 1.5;
}

#Quiz{
    margin-top: 300px;
    scroll-margin-top: 100px;
}

.quiz-container{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-bottom: 10px solid rgb(255, 255, 255);
    border-top: 10px solid rgb(255, 255, 255);
    margin-left: 25%;
    margin-right: 25%;
    text-align: center;
    border-radius: 20px;
}


.quiz-descr{
    font-size: 25px;
    padding: 65px;
}

.quiz-head{
    color: white;
    font-size: 45px;
}

.quiz-p{
    color: rgb(2, 2, 86);
    font-size: 35px;
    font-family: monospace;
    padding-bottom: 20px;

}

@keyframes loop {
    to {
        transform: rotate(360deg); 
    }
}
.quiz-button-container{
    padding: 30px 0px ;
}

#quiz{
    padding: 15px;
    border-radius: 20px;
    border: transparent;
    box-shadow: 1px 2px 10px white;
    font-size: 25px;
    width: 200px;
    animation: loop 4s linear infinite;
    cursor: pointer;
}


#Contact{
    margin-top: 400px;
}

.contact-container{
    display: flex;
    justify-content: space-evenly;
    align-items: center;

}

.box{
    background-color: rgb(0, 0, 70);
    padding: 100px;
    transition: transform 0.3s ease;
    box-shadow: 20px 20px 10px rgb(0, 0, 60);
}
.box:hover{
    transform: scale(1.1);
    box-shadow: 20px 20px 200px rgb(0, 0, 60);

}

.c-img{
    width: 150px;
}

footer{
    text-align: center;
    padding: 20px;
    color: white;
    margin-top: 400px;
    background-color: rgb(0, 0, 70);
}

@media screen and (max-width: 768px) {

    header {
        flex-direction: column;
        font-size: 24px;
        text-align: center;
    }

    #logo {
        font-size: 30px;
    }

    nav {
        flex-direction: column;
        gap: 20px;
    }

    nav a {
        font-size: 22px;
    }

    nav button{
        font-size: 15px;
    }

    .about-container {
        flex-direction: column;
        padding: 20px;
        margin-right: 5%;
        margin-left: 5%;
    }

    .banner {
        width: 100%;
    }

    #about-descr {
        width: 90%; 
        font-size: 20px;
    }

    #Quiz{
        margin-top: 200px;
        scroll-margin-top: 0px;
    }
    .quiz-container {
        width: 85%; 
        margin-left: 5%;
        margin-right: 5%;

    }

    .quiz-descr {
        padding: 30px;
        font-size: 22px;
    }

    .quiz-head {
        font-size: 35px;
    }

    .quiz-p {
        font-size: 25px;
    }

    #quiz {
        width: 40%;
        font-size: 20px;
        padding: 10px;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 50px
    }

    .box {
        padding: 50px;
        margin-bottom: 20px;
    }

    .c-img {
        width: 100px;
    }

    footer {
        font-size: 16px;
        padding: 10px;
    }
}

.quiz-header {
    text-align: center;
    background-color: #2c2c54; 
    color: #fff;
    padding: 15px 0;
  }

  .quiz-header h1 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

 .quiz-header #timer {
    font-size: 1.5em;
    color: #e0e0e0;
    text-align: center;
    margin: 10px 0;
}

  
  #quiz-page-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background: #2d2d44; 
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); 
    color: #fff;
  }
  
  #question {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .option-button {
    display: block;
    width: 100%;
    margin: 15px 0;
    padding: 18px;
    background-color: #3f3d56; 
    color: #fff; 
    border: 2px solid #6c63ff; 
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease-in-out; 
  }
  
  .option-button:hover {
    background-color: #6c63ff; 
    color: #fff;
    box-shadow: 0 0 15px #6c63ff; 
    transform: scale(1.05); 
  }
  
  .option-button.correct {
    background-color: #28a745;
    border-color: #28a745;
  }
  
  .option-button.incorrect {
    background-color: #dc3545;
    border-color: #dc3545;
  }
  
  #next-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 20px;
    transition: all 0.3s ease-in-out;
  }
  
  #next-button:disabled {
    background-color: #3f3d56;
    cursor: not-allowed;
  }
  
  #next-button:hover:enabled {
    background-color: #524eff;
    box-shadow: 0 0 15px #524eff;
  }




  /* Main Content Styles */
.profile-main {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
  }
  
  .profile-container {
    text-align: center;
  }
  
  .profile-container h2 {
    color: #333;
  }
  
  .profile-container p {
    font-size: 16px;
    color: #555;
    margin: 10px 0;
  }
  
  .profile-container ul {
    list-style: none;
    padding: 0;
  }
  
  .profile-container ul li {
    background: #f0f8ff;
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
  }
  