@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

body {
    margin: 0;
    font-size: 1rem;
    background-color: black;
    background-image: linear-gradient(to top, #209cff 0%, #68e0cf 100%);
    background-repeat: no-repeat;
    height:100%;
    min-height: 100vh;
	min-width: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

* {

    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

.custom-box {
    max-width: 700px;
	width:100%;
    background-color: white;
    margin: 40px auto;
    padding: 30px;
    border-radius: 10px;
opacity:0;
animation: fade-up 1s ease forwards;
}

.delay0{
opacity:0;
animation: fade-up 1s ease forwards;
animation-delay: 0.2s;
}

.delay1{
opacity:0;
animation: fade-up 1s ease forwards;
animation-delay: 0.4s;
}


.delay2{
opacity:0;
animation: fade-up 1s ease forwards;
animation-delay: 0.6s;
}


.delay3{
opacity:0;
animation: fade-up 1s ease forwards;
animation-delay: 0.8s;
}


.delay4{
opacity:0;
animation: fade-up 1s ease forwards;
animation-delay: 1.0s;
}
.delay5{
opacity:0;
animation: fade-up 1s ease forwards;
animation-delay: 1.2s;
}


.delay6{
opacity:0;
animation: fade-up 1s ease forwards;
animation-delay: 1.4s;
}


.delay7{
opacity:0;
animation: fade-up 1s ease forwards;
animation-delay: 1.6s;
}


.delay8{
opacity:0;
animation: fade-up 1s ease forwards;
animation-delay: 1.8s;
}


.delay9{
opacity:0;
animation: fade-up 1s ease forwards;
animation-delay: 2.0s;
}


.delay10{
opacity:0;
animation: fade-up 1s ease forwards;
animation-delay: 2.2s;
}


.delay11{
opacity:0;
animation: fade-up 1s ease forwards;
animation-delay: 2.4s;
}


.custom-h {
    max-width: 700px;
    background-color: transparent;
    margin: 40px auto;
    padding: 0;
    border-radius: 10px;
    animation: fade-down 1s;
    color: white;
}

@keyframes fade-up {
   0%{
opacity: 0;
transform: translateY(30px) scale(1);
}
100%{

opacity:1;
transform: translateY(0px) scale(1);
}
}

@keyframes fade-down {
   0%{
opacity: 0;
transform: translateY(-30px) scale(0.9);
}
100%{

opacity:1;
transform: translateY(0px) scale(1);
}
}

.custom-box::before,
.custom-box::after {
    content: '';
    display: table;
    clear: both;
}

.custom-box.hide {
    display: none;
}

.home-box h3 {
    font-size: 1.3rem;
    color: black;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 25px;
}

.home-box p {
    font-size: 1rem;
    color: black;
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 22px;
}


.home-box p span {
    font-weight: 500;
}

.home-box .btn {
    margin-top: 20px;
}

.option:hover {
    box-shadow: 0 0 0 1.5px rgb(0 0 0 / 40%);
    transform: box-shadow, scale(1.1) 200ms ease-in;
}

.btn {
    background-color: #04befe;
    padding: 15px 45px;
    border-radius: 10px;
    color: white;
    border: none;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    display: inline-block;
}
.cbtn{
    background-color: gray;  
    padding: 15px 45px;
    border-radius: 10px;
    color: white;
    border: none;
    font-size: 16px;
}

.topic {
    margin-left: 2rem;
}

.exit-btn {
 background-color: red;
 float: right;
}
.exit-btn:hover {
    box-shadow: 0 0 0 1.5px rgb(0 0 0 / 40%);
    transform: box-shadow 200ms ease-out;
}
.next-btn:hover,
.go-home-btn:hover,
.try-again-btn:hover,
.start-quiz-btn:hover {
    box-shadow: 0 0 0 1.5px rgb(0 0 0 / 40%);
    transform: box-shadow 200ms ease-out;
}

.quiz-box .question-number,
.quiz-box .question-text,
.quiz-box .option-container,
.quiz-box .answers-indicator {
    width: 100%;
    float: left;
}

.quiz-box .next-question-btn,
.quiz-box .question-number {
    font-size: 1.3rem;
    font-weight: 600;
    color: #17A4CB;
    padding-bottom: 10px;
    line-height: 25px;
    border-bottom: 1px solid #cccccc;
}

.quiz-box .question-text {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 400;
    color: black;
    line-height: 28px;
    padding: 20px 0;
    margin: 0;
}


.quiz-box .question-text img {
    max-width: 100%;
    display: block;
    margin-top: 15px;
}

.quiz-box .question-text audio {
    width: 100%;
    direction: flex;
    margin-top: 1rem;
}

.quiz-box .option-container .option {
    font-size: 1rem;
    color: black;
    line-height: 22px;
    padding: 13px 15px;
    background-color: #cccccc;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    text-transform: capitalize;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    position: relative;
    overflow: hidden;
}

@keyframes fadeIn {
    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.wrong::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: red;
    z-index: -1;
    animation: slideInLeft .5s ease forwards;
}


@keyframes slideInLeft {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0%);
    }
}

.quiz-box .option-container .option.correct {
    color: white;
}

.quiz-box .option-container .option.wrong {
    color: white;
}

.quiz-box .option-container .option.already-answered {
    pointer-events: none;
}

.quiz-box .btn {
    margin: 20px 0;
}

.quiz-box .answers-indicator {
    border-top: 1px solid #cccccc;
}

.quiz-box .answers-indicator div {
    height: 40px;
    width: 40px;
    display: inline-block;
    background-color: #cccccc;
    border-radius: 50%;
    margin: 15px 5px;
}

.quiz-box .answers-indicator div.correct {
    background-color: green;
    background-image: url("../img/correct.png");
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
}

.quiz-box .answers-indicator div.wrong {
    background-color: red;
    background-image: url("../img/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: 2rem;
    line-height: 42px;
    color: #17A4CB;
}

.result-box table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.result-box table td {
    border: 1px solid #cccccc;
    padding: 8px 15px;
    font-weight: 500;
    color: black;
    text-align: left;
    font-size: 1.3rem;
}

.result-box .btn {
    margin-right: 20px;
}

@media(max-width: 767px) {
    .home-box .btn {
        margin-top: 20px;
        width: 100%;
    }
    .result-box .btn {
        width: 100%;
        margin-bottom: 15px;
    }
    .result-box table {
        margin-left: 5px;
        margin-right: 5px;
    }
    body {
        padding: 5px;
		margin: 5%;
    }
}

@media(max-width: 200px) {
    .home-box .btn {
        margin-top: 20px;
        width: 100%;
    }
    .result-box .btn {
        width: 100%;
        margin-bottom: 15px;
    }
    .result-box table {
        margin-left: 5px;
        margin-right: 5px;
    }
    body {
        padding: 5px;
		margin: 5%;
font-size: 0.5rem;
    }