
/*header*/

body {
    background: rgb(82, 84, 211);
    font-family: Arial, Helvetica, sans-serif;
    padding-top: 80px; 
    color: white;
    display: flex;
    flex-direction: column; 
    min-height: 100vh; 
    margin: 0;
}

header{
    background: rgb(23, 22, 24);
    color: white;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 4px 8px rgb(238, 235, 235);
    top: 0;
    left: 0;
    width: 100%;
     z-index: 1000; 
    position: fixed;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    
    gap: 2rem;
}
nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: colour 0.3s ease;
}
nav ul li a:hover{
    color:rgb(227, 230, 13)
}
/* HOME SECTION*/
section#home{
    text-align: center;
    margin-top: 2rem;
    padding: 25px;
    padding-top: 45px;
    
}
section#home h2{
    text-align: center;
    color: white;
}
/* LOGIN SECTION */
section#login{
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}
.login-Container{
    background-color: rgb(25, 53, 180);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 16px 25px rgb(9, 57, 66);
    backdrop-filter: blur(10px);
    max-width: 100%;
    text-align: center;
   /* animation: fadeIn is ease-in-out;*/
}
.login-container h2{
    margin-bottom: 1.5rem;
    font-size: 2rem;
}
.input-group{
    margin-bottom: 1.5rem;
    text-align: left;
}
.input-group label{
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}
.input-group input{
    width: 90%;
    padding: 0.8rem;
    border:none;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    background: rgb(150, 147, 147);
    color: #fff;
    transition: background 0.3s ease
}
.input-group input:focus{
    background: rgb(223, 231, 223);
}
.btn{
    background: orange;
    color: azure;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn:hover{
    background: rgb(186, 100, 77);
}
/*courses section*/
section#courses {
    text-align:center;
    padding:1rem;
}
.courses-container{
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.course{
    background: rgb(242, 237, 237);
    color: rgb(46, 44, 44);
    border-radius: 5px;
    box-shadow: 0 14px 18px black;
    width: 250px;
    text-align: center;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course img{
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}
.course h3{
    margin: 1rem;
    font-size: 1rem;
}
.course a{
    background: rgb(179, 181, 173);
    border: none;
    border-radius: 3px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}
.course a:hover{
    background:  rgb(82, 84, 211);
   
}
.course:hover{
    transform: translateY(10px);
    box-shadow: 0 8px 16px black;
}
/*footer*/
footer{
    background-color: rgb(23, 22, 24);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
    width: 100%;

}
/* Quiz Section */
section#quizz {
    background-color: rgb(50, 50, 50);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-top: 80px;
    color: white;
}

section#quizz h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.question {
    background: rgb(65, 65, 65);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.question p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.question label {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.question input[type="radio"] {
    margin-right: 10px;
    accent-color: orange; /* Optional: For a modern radio button color */
}

.question button {
    background-color: rgb(34, 193, 195);
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1rem;
    font-size: 1rem;
}

.question button:hover {
    background-color: rgb(15, 196, 84);
}

/* Quiz Answer Styling */
#q1Answer, #q2Answer, #q3Answer, #q4Answer, #q5Answer, #q6Answer, #q7Answer, #q8Answer, #q9Answer, #q10Answer {
    font-weight: bold;
    margin-top: 1rem;
    text-align: center;
    font-size: 1.1rem;
    color: #ffeb3b; /* Golden yellow for visibility */
}

/* Complete Checkbox */
.complete-checkbox {
    margin-top: 10px;
}

/* Progress Bar */
progress {
    width: 60%;
    height: 20px;
    margin-top: 20px;
    margin: 2rem auto;
    display: block;
    border-radius: 10px;
}

#progress {
    border-radius: 20px;
}

progress::-webkit-progress-value {
    background-color: #fbff00;
    border-radius: 20px;
}

progress[value] {
    background-color: #ff0000; /* Default color for progress */
    border-radius: 20px;
}

h2 {
    text-align: center;
}

#progressText {
    text-align: center;
    margin-top: 10px;
}
