
/*=========== Navigation Bar ==============*/
header{
    display: grid;
    grid-template-columns: 50px 100px 1fr 470px;
    grid-template-rows: 50px;
    background-color: #f2f2f2;
    grid-template-areas: 
    "logo name . navbar";
    /*justify-content: right;*/
}

.logo{
    grid-area: logo;
    border-radius: 70px;
    margin: 8px;
    width: 35px;
}
.name{
    grid-area: name;
    font-size: 18pt;
    margin-top: 12px;
    padding-right: 100px;
}
nav{
    grid-area: navbar;
}
.navigation{
    list-style: none;
    margin: 9;
    padding: 0;
   
}
.navigation li {
    display: inline;
    padding: 10px;
}
.navigation li a{
    text-decoration: none;
    color: black;
    font-family: calibri;
    font-style: bold;
    padding: 8px;
}

.active .QuizDropdown {
    display: none;
    position: absolute;
    top:100%;
    left:0;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
    padding: 0.5rem 0;

}

.navigation li.active {
    position: relative;
}
.active:hover .QuizDropdown,
.active:focus-within .QuizDropdown {
    display: block;
}

.QuizDropdown li { 
    list-style: none;
    float: none;
    display: block;
    margin-bottom: 0.25rem;
}
.QuizDropdown li a:hover,
.QuizDropdown li a:focus {
    background-color: #f2f2f2;
    display: block;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    width: 100%;
}
 .navigation li:hover > a,
.navigation li:focus-within > a {
  background-color: #c8d8e4;
  border-radius: 15px;
  padding: 8px;
}


/*===========------------------------------HomePage-----------------------------------------=========*/
/*============ Main ===============*/
/*=========Welcoming text=========*/
div.background {
    background: url(homepageBackground.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow-y: auto;
    border: 2px solid black;
    }
div.transbox {
    margin: 50px;
    width: 1500px;
    background-color: #ffffff;
    border: 1px solid black;
    opacity: 0.6;
    }

div.transbox p {
    margin: 5%;
    font-weight: bold;
    color: #000000;
    text-align: center;
    }
/*=============About===============*/
#homeMain{
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: repeat(2 300px);
    grid-template-areas: 
    "heading1 content";
}
#homeMain h2{
    grid-area: heading1;
    text-align: right;
    font-weight: bold;
    margin-right: 25px;
}
#homeMain p{
    grid-area: content;
}
/*=========== Footer ==============*/
footer{
    background-color: #2b6777;
    color: #ffffff;
    display: flex;
    height: auto;
    justify-content: center;
    overflow: hidden;
    font-family: calibri;
}
.column1, .column2, .column3{
    display: inline-block;
    width: 200px;
    padding: 30px;
    margin-left: 100px;
}
.footerlinks{
    list-style: none;
    padding: 0;
}
.footerlinks li a{
    color: #ffffff;
}

.column3 img{
    width: 100px;
}

/*===========------------------------------LessonsPage-----------------------------------------=========*/
/*--navigation for lessons--*/
.LessonBody{
    font-family: calibri;
}
.lessonBody2{
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: repeat(3 500px);
    grid-template-areas: 
    "lessonNavigation lesson";
    padding: 20px;
}
#lessonNavigation{
    grid-area: lessonNavigation;
    margin: 0;
    padding: 10;
    width: 275px;
}
.LessonsPage{
    grid-area: lesson;
}
#activelesson{
    border: 2px #c8d8e4 solid;
    border-radius: 8px;
}
/*Buttons*/
button{
    background-color: #fff;
    border: none;
    padding: 8px 16px;
    margin: 0px;
    width: 270px;
    text-align: left;
}
button:hover{
    border: 2px #c8d8e4 solid;
    border-radius: 8px;
    padding: 6px 16px;
}
/*==============================================*/
.LessonsPage{

    color: #000000;
    padding: 20px;

    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

fieldset{
    border: 1pxsolid black;
}

.mainH1{
    font-size: x-large;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}


.floatPar2{
    float:right;
    
}
.lessonHeadingImage{
    width: stretch;
    height: auto;
    border-radius: 8px;
}
.article2DL dd{
    list-style: circle;
    display: list-item;
}


/*===========------------------------------TRANSITIONQuizPage-----------------------------------------=========*/
.TransPage{
    background-color: #000000;
    background-size: cover;
    height: 600px;
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 60px;
}

.quizTranstions{
    height: 120px;
    width: 120px;
    background-image: url(transition.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #2b6777;
    
    
    text-align: center;
    justify-content: center;
    align-content: center;
    font-family: Poppins;
    font-weight: 700;
    font-size: 1.35rem;
    color: #000000;
    border-radius: 15px;

    animation-name: spin;
    animation-duration: 3s;
    animation-timing-function: ease;
    animation-delay: 0.5s;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-fill-mode: forwards;
    animation-play-state: running;
}

@keyframes spin{
    0%{

    }

    50%{
        scale: 2;
        transform: rotate(0);
        border-radius: 0;
    }

    100%{
        transform: rotate(360deg);
        border-radius: 50%;
        scale: 2;
    }
}

/*===========------------------------------QuizQuestionsPage-----------------------------------------=========*/
.QuizQuestions{
    display: block;
    background-image: url(QuizQuetionsBGimg.jpg);
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;

    padding: 20px;
}

/*===========------------------------------Quizes-----------------------------------------=========*/
html {
    scroll-behavior: smooth;
}
.QuizBack {
  position: sticky;    
  top: 0;              
  left: 0;              
  display: block;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
  width: 100px;
  text-decoration: none;
  color: #1A1A1A;
}
.Jump {
    width: 300px;
    position:sticky;
    top: 80px;
    left: 0;
    border-collapse: collapse;
}
#first {
    position: absolute;
    top: 25px;
    left: 39.45%;
}
#second {
    margin-top: 8rem;
    left: 39.45%;
}
.JumpLink {
text-decoration: none;
color: black;
font-size:x-large;
border: 2px solid #d0e8ff;
padding-left: 87.5px;
padding-right: 87.5px;
border-right: 5px solid #d0e8ff;
border-left: 5px solid #d0e8ff;
border-bottom: 5px solid #d0e8ff;
border-top: 5px solid #d0e8ff;
background-color: #dbeaf8 ;
}
#JumpTitle
{
border-bottom: 6px solid #d0e8ff;
font-size: x-large;
padding-left: 2px;
padding-right: 2px;
}

.quiz {
    max-width: 500px;
    margin: 2rem;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif ;
    font-size: 1.125rem;
    position: relative;
    left: 39.45%;
}
.fieldQuestion {
    border: none;
    padding: 0;
}
.legQ {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}
.option {
    display: block;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}
.option:hover {
    border-color: #888;
    background-color: #eee;  
}
  input[type="radio"] {
        display:none;
    }
input[type="radio"]:checked + label.option {
  border-color: #0077cc;
  background-color: #d0e8ff;
}
#showAnswer:checked ~ .quiz .correct + label {
  background-color: #FFA563;
  border-color: #E68034;
}

#showAnswer:checked ~ .feedback {
  display: block;
}

.feedback {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background-color: #eef;
  border-left: 4px solid #0077cc;
}
.submit .Submitted {
    display:none
}
#showAnswer:checked ~ .submit .Unsubmitted {
    display: none;
}
#showAnswer:checked ~ .submit .Submitted {
display:inline;
}
.submit {
    cursor: pointer;
    color: #005A9C;
    user-select: none;
}
.submit {
display: block;
padding: 1rem;
margin-bottom: 1rem;
border: 2px solid #ccc;
border-radius: 8px;
cursor: pointer;
transition: all 0.3 ease;
background-color: #f9f9f9;
text-align: center;
}

    
/*===========------------------------------ResourcePage-----------------------------------------=========*/
.externalResorces{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    padding: 30px;
    background-color: rgb(178, 188, 199);
    column-gap: 20px;
}

.R1{
    grid-column: 1;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 6px 6px 6px gray;
    cursor: pointer;
}

.R2{
    grid-column: 2;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 6px 6px 6px gray;
    cursor: pointer;
}

.R3{
    grid-column: 3;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 6px 6px 6px gray;
    cursor: pointer;
}

.R4{
    grid-column: 4;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 6px 6px 6px gray;
    cursor: pointer;
}

.hover{
    transition: transform 0.3s ease;
}

.hover:hover{
    transform: scale(1.02);
}

p .LearnMoreEdit{
    text-decoration: none;
    border: solid blue;
    border-radius: 10px;
    border-width: 1px;
    padding: 5px;
}



.ImgResources{
    height: 300px;
    width: 300px;
    border-radius: 10px;
}

/*===========------------------------------Contact Page-----------------------------------------=========*/
/*Background image*/
.contactbody{
    background-image: url("contactBackground.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    padding: 30px;

    /*grid*/
    display: grid;
    grid-template-columns: repeat(4 minmax(300px 450px));
    grid-template-rows: 50px 200px 200px 200px;
    grid-template-areas: 
    ". heading heading ."
    ". form call ."
    ". form social ."
    ". form location .";
    gap: 20px;
}
form{
    grid-area: form;
    background-color: #c8d8e4;
    border-radius: 8px;
    padding: 20px;
}
.call{
    grid-area: call;
    background-color: #c8d8e4;
    border-radius: 8px;
    padding: 20px;
}
.social{
    grid-area: social;
    background-color: #c8d8e4;
    border-radius: 8px;
    padding: 20px;
}
.location{
    grid-area: location;
    background-color: #c8d8e4;
    border-radius: 8px;
    padding: 20px;
}
.contactbody h2{
    grid-area: heading;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #BBEEF1;
    font-size: 25;
    justify-content: center;
}
.DefaultRadio {
  appearance: auto !important;
  display: inline-block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
}