* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}


nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    background-color: #0a2a66;
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    z-index: 1;
}

body {
    background-color: #E1EBF5;
}

.bg-image {
    background-image: url(imgs/studying.jpg;)
}

.title {
    color: rgb(226, 226, 226);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 20px;
    position: absolute;
    left: 1%;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    width: 33%;
    position: absolute;
    right: 1%;
}

    .nav-links li {
        list-style: none;
        padding: 10px;
    }

    .nav-links a {
        color: rgb(226, 226, 226);
        text-decoration: none;
        letter-spacing: 3px;
        font-weight: bold;
        font-size: 14px;
    }

.burger {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 10px
}

    .burger div {
        width: 25px;
        height: 3px;
        background-color: rgb(226, 226, 226);
        margin: 5px;
        transition: all 0.3s ease;
    }

#yr_title {
    font-family: Arial;
    text-align: center;
    color: white;
    position: absolute;
    transform: translateX(-50%) translateY(-50%);
    top: 145px;
    left: 50%;
}

#year {
    width: 100%;
    height: 385px;
    background-color: #0a2a66;
    top: 60px;
    position: absolute;
    z-index: -1;
}

@media screen and (max-width: 1024px) {
    .nav-links {
        width: 60%;
    }

    .mylogo {
        display: none;
    }
}


@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .mylogo {
        display: none;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 0vw;
        background-color: #0a2a66;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
    }

    .title {
        left: 50%;
        transform: translateX(-50%);
        padding: 0px;
        margin: 0px;
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }
}

@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
    .title {
        font-size: 16px;
    }

    #back {
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
    }

    h4 {
        font-size: 8px;
    }

    p {
        font-size: 150%;
    }

    h1 {
        font-size: 90%;
    }
    .quiz-box .answers-indicator{
        display:none;
    }
}

@media only screen and (min-device-width : 480px) {
    p {
        font-size: 250%;
        font-family: helvitica;
    }

    h1 {
        font-size: 150%;
        font-family: helvitica;
    }
}

.nav-active {
    transform: translateX(0%);
}



@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px,6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px,-6px);
}

img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width:600px) and (min-device-width:480px) {
    h4 {
        font-size: 80%;
    }
}

.button {
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font-family: bahnschrift;
    margin: 4px 2px;
    cursor: pointer;
}

.button1 {
    background-color: #fff;
    border-radius: 15px;
    color: #F54242;
    position: absolute;
    top: 335px;
    left: 50%;
    transform: translateX(-50%);
}


.fit {
    max-width: 100%;
    max-height: 100%;
}

a {
    color: white;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

#navbar {
    background-color: #333;
    position: fixed;
    top: -50px;
    width: 100%;
    display: block;
    transition: top 0.3s;
    font-family: Helvetica;
}

    #navbar a {
        float: left;
        display: block;
        color: white;
        text-align: center;
        padding: 15px;
        text-decoration: none;
        font-size: 17px;
        font-family: Helvetica;
    }

        #navbar a:hover {
            color: white;
            font-family: Helvetica;
        }

.selected a {
    float: left;
    font-size: 19px;
    color: #AE0505;
    text-align: center;
    padding: 16px 5px;
    text-decoration: none;
    background-color: white;
}

.sel a {
    color: #AE0505;
}



#line {
    width: 100%;
    height: 40%;
    background-color: #ffb536;
    top: 0%;
    position: fixed;
}

a.middle {
    position: relative;
}


    a.middle:before {
        content: "";
        position: absolute;
        width: 98%;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: #ffb536;
        visibility: hidden;
        transform: scaleX(0);
        transition: all 0.2s ease-in-out;
    }


    a.middle:hover:before {
        visibility: visible;
        transform: scaleX(1);
    }

p.middle {
    position: relative;
}


    p.middle:before {
        content: "";
        position: absolute;
        width: 98%;
        height: 3px;
        bottom: 0;
        left: 0;
        background-color: #ffb536;
        transition: all 0.2s ease-in-out;
        z-index: -1;
        z-index: -1;
    }

nav.middle {
    position: relative;
}


    nav.middle:before {
        content: "";
        position: absolute;
        width: 100%;
        height: 1px;
        bottom: 0;
        left: 0;
        background-color: #A9A9A9;
        transition: all 0.2s ease-in-out;
    }

h2.middle {
    position: relative;
}


    h2.middle:before {
        content: "";
        position: absolute;
        width: 100%;
        height: 4px;
        bottom: 0;
        left: 0;
        background-color: #ffb536;
        transition: all 0.2s ease-in-out;
        z-index: -1;
    }

a.dpd {
    position: relative;
}


    a.dpd:before {
        content: "";
        position: absolute;
        width: 100%;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: #0A2A66;
        visibility: hidden;
        transform: scaleX(0);
        transition: all 0.3s ease-in-out;
    }


    a.dpd:hover:before {
        visibility: visible;
        transform: scaleX(1);
    }

* {
    box-sizing: border-box;
}





#back {
    font-family: Arial;
    color: grey;
    position: absolute;
    transform: translateY(-50%);
    top: 50px;
    left: 2%;
    font-size: 10px;

}




.custom-box {
    width: 720px;
    max-width: 90%;
    background-color: #ffffff;
    margin: 280px auto;
    padding: 30px;
    border-radius: 7px;
    color: #0A2A66;
    animation: fadeInRight;

}

    .custom-box::before,
    .custom-box::after {
        content: '';
        clear: both;
        display: table;
    }

    .custom-box.hide {
        display: none;
    }
.home-box{
  height: 500px;
}
.home-box h3 {
    font-size: 30px;
    color: #3C4858;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 25px;
    font-family: helvetica;


}

.home-box p {
    font-size: 16px;

    line-height: 22px;
    color: #3C4858;
    font-weight: 400;
    font-family: bahnschrift;
}

    .home-box p span {
        font-weight: 500;
    }

.home-box .btn {
    margin-top: 15px;

}

.btn {
    padding: 15px 45px;
    background-color: #0A2A66;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: bahnschrift;
    font-size: 16px;
    cursor: pointer;

}


.quiz-box .question-number {
    font-size: 18px;
    color: #0A2A66;
    font-weight: 600;
    font-family: helvetica;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 10px;
    line-height: 25px;
}

.quiz-box .images {
    width: auto;
    max-width: 100%;
    height: 50px;
    display: none;
    padding-top: 10px;
}

.quiz-box .question-text {
    font-size: 22px;
    color: #000000;
    line-height: 28px;
    font-weight: 400;
    padding: 20px 0;
    font-family: bahnschrift;
    margin: 0;
}

.quiz-box .option-container .option {
    background-color: #E8E8E8;
    padding: 13px 15px;
    font-size: 16px;
    line-height: 22px;
    color: #000000;
    border-radius: 5px;
    margin-bottom: 10px;
    font-family: helvetica;
    text-transform: capitalize;
    cursor: pointer;
    opacity: 0;
    animation: comeIn 0.3s ease forwards;
    position: relative;
    overflow: hidden;
}

@keyframes comeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.quiz-box .option-container .option.correct::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: green;
    z-index: -1;
    animation: slideInLeft .5s ease forwards;
}

.quiz-box .option-container .option.already-answered {
    pointer-events: none;
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-100%)
    }

    100% {
        transform: translateX(0%)
    }
}

.quiz-box .option-container .option.wrong::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: red;
    z-index: -1;
    animation: slideInLeft .5s ease forwards;
}

.quiz-box .option-container .option.wrong {
    color: #ffffff;
}

.quiz-box .option-container .option.correct {
    color: #ffffff;
}


.quiz-box .btn {
    margin: 15px 0;
}

.quiz-box .answers-indicator {
    border-top: 1px solid #cccccc;
}

    .quiz-box .answers-indicator div {
        display: inline-block;
        background-color: #cccccc;
        border-radius: 50%;
        margin-left:3px;
        margin-top: 15px;
        padding: 15px;

    }

        .quiz-box .answers-indicator div.correct {
            background-color: green;
            background-image: url("../imgs/correct.png");
            background-size: 50%;
            background-repeat: no-repeat;
            background-position: center;
        }

        .quiz-box .answers-indicator div.wrong {
            background-color: red;
            background-image: url("../imgs/wrong.png");
            background-size: 50%;
            background-repeat: no-repeat;
            background-position: center;
        }

.result-box {
    text-align: center;
}

    .result-box .hide {
        display: none;
    }

    .result-box h1 {
        font-size: 36px;
        line-height: 42px;
        color: #0a2a66;
        font-family: Arial, Helvetica, sans-serif;
    }

    .result-box table {
        width: 100%;
        border-collapse: collapse;
        margin: 30px 0;
        text-align: center;
        font-family: bahnschrift;
        font-weight: 100;
    }

        .result-box table td {
            border: 1px solid #cccccc;
            padding: 8px 15px;
            font-weight: 500;
            color: #000000;
            width: 50%;
            text-align: left;
            font-size: 18px;
        }

    .result-box .btn {
        margin-right: 20px;
        margin-bottom: 10px;
    }
    .footer2 {
        width: 100%;
        height: 20%;
        background-color: #ffb536;
        top:1500px;
        position: absolute;
        overflow-x: hidden;
    }

    .dd{
        padding: 10px 20px;
        background-color:  #E8E8E8;
        border: none;
        border-radius: 10px;
        color: #000000;
        font-family: bahnschrift;
        font-size: 13px;
        cursor: pointer;
    }