* {
    font-family: "Google Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "GRAD" 0;
}

html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.webiste-logo {
    width: 200px;
}

.navbar {
    background-color: rgb(220 220 220) !important;
}

/* Base Template */
.alert-wrapper {
    position: fixed;
    top: 70px;
    right: 5%;
    z-index: 1050;
    pointer-events: none;
}

#alertBox {
    pointer-events: auto;
    padding: 7px 16px;
    font-size: 1rem;
    border-radius: 30px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#alertBox.hide {
    opacity: 0;
    transform: translateY(-12px);
}

/* Home Page Card */
.home-exam-cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
}

.home-exam-card {
    flex: 0 0 calc(33% - 20px);
    margin: 5px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgb(236 166 110) 100%);
    border-radius: 10px;
    box-shadow: 2px 3px 4px 2px #bcb1b1;
}

.home-exam-card-body {
    display: flex;
    justify-content: space-between;
    /* border: 2px solid rgba(96, 95, 95, 0.442); */
    border-radius: 10px;
    padding: 20px 10px;
    height: 100%;
}

.home-exam-card-title {
    font-weight: 700;
    text-transform: uppercase;
}

.common-booster {
    margin: 0px 0px 5px 0px;
    border-radius: 15px;
    padding: 2px 10px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
}

.home-card {
    flex: 0 0 calc(20% - 20px);
}

.score-booster {
    background-color: #d7d71a;
    width: 130px;
}

.exam-oriented {
    background-color: #0d6efd;
    color: #fff;
    width: 135px;
}

.most-important {
    background-color: #dc3545;
    color: #fff;
    width: 140px;
}

.rank-booster {
    background-color: #198754;
    color: #fff;
    width: 125px;
}

.quick-scoring {
    background-color: #fd7e14;
    color: #fff;
    width: 130px;
}

.must-practice {
    background-color: #6f42c1;
    color: #fff;
    width: 130px;
}

.btn-subject {
    border-radius: 10px;
    padding: 5px 15px;
    font-weight: 700;
    color: white;
    background-color: black;
    font-size: 20px;
    margin-top: 15px;
}

.btn-subject:hover {
    color: #ffffff;
    background-color: #000000;
}

.home-cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}


/* Chapter Page Card */
.chapter-title {
    border-bottom: 1px solid rgb(39, 36, 36);
    padding-bottom: 10px;
}

.chapter-cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.chapter-card {
    /* border: 2px solid rgba(96, 95, 95, 0.442); */
    border-radius: 10px;
    flex: 0 0 calc(25% - 20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 15px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgb(247 193 150) 100%);
    box-shadow: 2px 3px 4px 2px #bcb1b1;
}

.chapter-card-body {
    padding: 10px 15px;
    height: 100%;
}

.card-img-top {
    height: 130px;
    object-fit: cover;
}

.card-title {
    font-weight: 700;
    text-transform: uppercase;
}

.btn-attempt-container {
    display: grid;
    /* flex-direction: row-reverse; */
    padding: 10px 15px 0px 15px;
}

.btn-attempt {
    border-radius: 10px;
    padding: 5px 15px;
    border: 1px solid #5d5555;
    background-color: #ff8c2d;
    color: #fff;
    font-weight: 600;
}

.btn-attempt:hover {
    background-color: #f7d0d091;
    border: 1px solid #f7d0d091;
    color: #df8215;
}

.attempted {
    border-radius: 10px;
    padding: 5px 15px;
    border: 1px solid #292828;
    /* color: #2e2720; */
    font-weight: 600;
    background-color: #fff;
    color: #ff8c2d;
}

.attempted:hover {
    background-color: #3e3c3c91;
    border: 1px solid #3e3c3c91;
    color: #2e2720;
}

.chapterScore {
    padding: 5px;
    text-align: center;
}

.chapterScore p {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 0;
}


/* Quiz Page */
.quiz-info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: black;
    border-radius: 5px;
}

.quiz-info-container p {
    padding: 5px;
    font-size: 20px;
    flex: 1 1 calc(25%-20px);
    margin: 0;
}

.quiz-container {
    border: 2px solid #9a8a8a;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0px 20px 0px;
    width: 100%;
}

.quiz-container img {
    width: 200px;
    height: 150px;
}

.quiz-container .question-container {
    font-size: 22px;
    margin-bottom: 15px
}

.quiz-container div {
    align-items: center;
    cursor: pointer;
    font-size: 15px;
}

.quiz-container .option-container {
    background: #f1b88e;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-self: center;
}

.option-container input[type="radio"] {
    display: none;
}

.option-container label {
    display: flex;
    align-items: center;
}

.option-container label::before {
    content: "";
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #333;
    margin-right: 8px;
    background: #f0e6e6;
}

.option-container input[type="radio"]:checked+label::before {
    background-image: url("../image/check.png");
    border-color: #641a1a;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-color: #000;
}

.option-text {
    color: #000000;
}

.option-text p {
    margin: 0;
    color: #000000;
}


#previous {
    background: #a1a1a1;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 5px 15px;
}

#next {
    font-weight: 700;
    border: none;
    padding: 5px 15px;
    color: white;
    border-radius: 10px;
    background: #0b95e8;
}

#submitTest {
    font-weight: 700;
    border: none;
    color: white;
    padding: 5px 15px;
    border-radius: 10px;
    background: #ea843a;
}

/* Result Analysis */
#resultAnalysis {
    padding: 15px;
}

.result-card {
    border: 2px solid #dcdcdc;
    border-radius: 10px;
    padding: 15px;
    background-color: #dcdcdc;
    margin-bottom: 10px;
}


#resultAnalysis #question {
    font-size: 20px;
    margin-bottom: 10px;
}

#resultAnalysis #question p:nth-of-type(-n+2) {
    display: inline-flex;
    flex-direction: row;
    font-size: 20px;
}

#resultAnalysis p {
    font-size: 15px;
    margin: 0px;
    display: inline-block;
}

#resultAnalysis img {
    width: 200px;
    height: 150px;
}

#resultAnalysis #option1,
#resultAnalysis #option2,
#resultAnalysis #option3,
#resultAnalysis #option4 {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}


#resultAnalysis #correctOption {
    font-size: 17px;
}

#resultAnalysis #explanation {
    font-size: 17px;
}

#resultAnalysis #explanation img {
    width: 200px;
    height: 150px;
}

/* Blog Page */
.search-bar-container {
    background-color: #e1e1e175;
    padding: 10px;
    border-radius: 10px;
}

.post-container {
    border: 2px solid #f4e9e9;
    border-radius: 10px;
    background-color: #dfd8d88c;
    padding: 15px;
}

.post-content {
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    margin-bottom: 15px;
}

.post-content .post-img {
    border: 3px solid #e7e7e7;
    display: block;
    height: 145px;
    overflow: hidden;
    transition: border .3s;
    border-radius: 10px;
    margin: 10px 0 10px 10px;
}

.post-content .post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.post-content .post-img:hover {
    border: 3px solid #1e90ff;
}

.post-content h3 {
    font-size: 21px;
    line-height: 28px;
    font-weight: 600;
    margin: 0 0 7px;

}

.inner-content {
    margin-top: 10px;
}

.inner-content h3 a {
    color: #1e90ff;
    text-decoration: none;
    transition: all 0.3s;
}

.inner-contenth3 a:hover {
    color: #333;
}

.inner-content p,
.single-post p {
    color: #666;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin: 0 0 10px;
}

.post-content a.read-more {
    color: #fff;
    background-color: #1E90FF;
    font-size: 12px;
    text-transform: capitalize;
    padding: 3px 8px;
    border-radius: 2px;
    transition: all 0.3s;
    text-decoration: none;
    border-radius: 7px;
}

.post-content a.read-more:hover {
    color: #fff;
    background-color: #333;
}

/* Single Blog Post Page */
.single-post {
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.single-post h3 {
    color: #1e90ff;
}

.single-post .post-information {
    margin: 0 0 10px;
}

.single-post p {
    text-align: justify;
}

.feature-image-container .single-feature-image {
    margin: 0 auto 20px;
    display: block;
    border: 3px solid #e7e7e7;
    border-radius: 10px;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.navbar-toggler:focus:not(:focus-visible) {
    border: none;
    outline: none;
    box-shadow: none;
}

@media (max-width: 1000px) {
    .navbar>.container {
        justify-content: space-around;
    }

    .home-exam-card {
        flex: 0 0 calc(40% - 20px);
    }

    .home-card {
        flex: 0 0 calc(33.333% - 20px);
    }

    .quiz-info-container p {
        flex: 1 1 calc(50% - 20px);
    }

    .home-card {
        flex: 0 0 calc(50% - 20px);
    }

    .chapter-card {
        flex: 0 0 calc(33% - 20px);
    }

    .navbar-toggler {
        border: none;
    }

}

@media (max-width: 767px) {

    .home-card {
        flex: 0 0 calc(50% - 20px);
    }

    .quiz-info-container p {
        margin: 0 7px;
    }

    .home-exam-card {
        flex: 0 0 calc(50% - 20px);
    }

    .home-card {
        flex: 0 0 calc(70% - 20px);
    }

    .post-content .post-img {
        margin-right: 10px;
    }

    .inner-content {
        margin-left: 10px;
    }

    .post-content {
        margin-bottom: 30px;
        padding-bottom: 10px;
    }

    .chapter-title,
    .home-blog-title,
    .blog-title {
        font-size: 25px;
    }

    .chapter-card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 500px) {
    .home-card {
        flex: 0 0 calc(100% - 20px);
    }

    .quiz-info-container p {
        font-size: 15px;
    }

    .home-exam-card {
        flex: 0 0 calc(100% - 20px);
    }

    .home-card {
        flex: 0 0 calc(100% - 20px);
    }

    .chapter-title,
    .home-blog-title,
    .blog-title {
        font-size: 20px;
    }

    .cards-wrapper {
        justify-content: center;
    }

    .card {
        width: 90%;
    }

    .chapter-card {
        flex: 0 0 calc(100% - 20px);
    }

    .quiz-container {
        width: 90%;
        margin-left: 20px;
    }

}

@media (max-width: 470px) {

    .quiz-info-container p {
        font-size: 12px;
    }

    .card-img-top {
        height: 200px;
    }
}