@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;1,200&family=Open+Sans:wght@300&family=Poppins:ital,wght@0,300;0,400;1,300&display=swap');


* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
    outline:none;
}
html {
	font-size: 10px;
	font-family: 'Montserrat', sans-serif;
	scroll-behavior: smooth;

}

body{
    font-size: 16px;
    margin: 0;
    background-color:#000;
    font-family: 'Monserrat', sans-serif;
    transition: 0.5s;
    justify-content: center;
    min-height: 50vh;

}


  body.active {
    background-color: #fff;
  }
  #toggle {
    position: relative;
    display: block;
    
    width:80px;
    height: 40px;
    border-radius: 40px;
    background: #222;
    transition:0.5s;
    box-shadow: inset 0 8px 60px rgba(0,0,0,0.1),
                inset 0 8px 8px rgba(0,0,0,0.1),
                inset 0 -4px 4px rgba(0,0,0,0.1);
  
  }
  #toggle.active {
    background:#fff;
    box-shadow: inset 0 2px 60px rgba(0,0,0,0.1),
                inset 0 2px 8px rgba(0,0,0,0.1),
                inset 0 -4px 4px rgba(0,0,0,0.1);
  
  }
  #toggle .indicator {
    position: absolute;
    top:0;
    left:0;
    width:40px;
    cursor: pointer;
    height: 40px;
    background: linear-gradient(to bottom, #444, #222);
    border-radius: 50%;
    transform: scale(0.9);
    box-shadow: inset 0 8px 60px rgba(0,0,0,0.1),
                inset 0 8px 8px rgba(2,0,0,0.1),
                inset 0 -4px 4px rgba(0,0,0,0.1);
  
  }
  
  #toggle.active .indicator {
    left:40px;
    background: linear-gradient(to bottom, #eaeaea, #f9f9f9);
    box-shadow: inset 0 8px 20px rgba(0,0,0,0.1),
                inset 0 8px 8px rgba(255,255,255,1),
                inset 0 -4px 4px rgba(255,255,2550,1);
  
  
  }

.custom-box {
    max-width: 700px;
    background-color: rgba(255,255,255,0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 30px;
    margin:40px auto;
    animation: fadeInRight 1s ease;
}
@keyframes fadeInRight {
    0%{
        transform: translateX(40px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity:1;

    }
}
.custom-box::before,
.custom-box::after{
    content: "";
    clear: both;
    display: table;
}
.custom-box.hide{
    display:none;
}
.home-box h1 {
    font-size: 18px;
    color:#be7171;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 25px;

}
.home-box p {
    font-size:16px;
    margin-bottom: 10px;
    line-height: 22px;
    color:#be7171;
    font-weight: 400;

}

.home-box p span {
    font-weight: 500;
}
.home-box .btn {
    margin-top: 20px;
}
.btn {
    padding: 15px 45px;
    background-color: #000;
    color:#eaeaea;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    cursor: pointer;
    display: inline-block;
}
.btn:hover{
    background-color: #be7171;
}
.quiz-box .question-number,
.quiz-box .question-text,
.quiz-box .option-container,
.quiz-box .next-question-btn,
.quiz-box .answers-indicator{
    width: 100%;
    float: left;
}
.quiz-box .question-number{
    font-size: 18px;
    color: #be7171;
    font-weight: 600;
    border: 1px solid #ccc;
    padding-bottom:10px;
    line-height: 25px;
    padding:10px;
}
.quiz-box .question-text {
    font-size:22px;
    color:rgb(138, 114, 114);
    line-height: 28px;
    font-weight: 400;
    padding:20px 0;
    margin:0;
}
.quiz-box .option-container .option{
    background: #cccccc;
    padding:13px 15px;
    font-size:16px;
    line-height: 22px;
    color: #000;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
    opacity: 0;
    position: relative;
    overflow:hidden;
    animation: fadeIn 0.3s ease forwards;
}

.quiz-box .option-container .option.already-answered{
    pointer-events: none;
}
@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;
}

@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:rgb(219, 185, 185);
}


.quiz-box .option-container .option.correct{
    color:rgb(184, 167, 167);
}
  


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

.quiz-box .answers-indicator{
    border-top:1px solid #ccc;
}
.quiz-box .answers-indicator div{
    height:40px;
    width: 40px;
    border-radius: 50%;
    background-color: #ccc;
    display: inline-block;
    margin-right:3px;
    margin-top: 15px;

}

.quiz-box .answers-indicator div.correct{
    background-color: green;
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
}

.quiz-box .answers-indicator div.wrong{
    background-color: red;
    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:#be7171;
}
.result-box table{
    width:100%;
    border-collapse: collapse;
    margin: 30px 0;
}
.result-box table td {
    border:1px solid #ccc;
    padding: 8px 15px;
    font-weight: 500;
    color:#be7171;
    width:50%;
}
.result-box .btn {
    margin-right: 20px;
}

@media (max-width: 767px){
    .result-box .btn {
        margin-bottom: 15px;

    }
    body {
        padding: 15px;
    }
}