* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Titillium Web', sans-serif;
}

body.modal-open {
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body {
    background-image: url('../../res/img/backgrounds/tradbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 35, 72, 0.6), rgba(18, 35, 72, 0.6));
    z-index: -1;
}

.application_1 hr {
    background-color: #cda757;
    height: 4px;
    width: 400px;
    border: none;
    margin: 10px auto;
    display: block;
    border-radius: 3px;
    margin-top: -10px;
}

h1 {
    font-family: 'Bree Serif', serif;
    font-size: 45px;
    color: white;
    text-align: center;
    margin-bottom: 5px;
}

.app_cont1 {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.application_container {
    width: 600px;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 40px;
    border-radius: 3px;
    justify-content: space-between;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: justify;
    color: #122348;
    margin-top: 30px;
    font-size: 1.2rem;
    animation: fadeIn 1s ease-in forwards 0.5s;
}

.application_container:hover {
    transform: translateY(-7px);
    box-shadow: 0px 10px 20px rgba(205, 168, 87, 0.8);
}

h2 {
    font-family: 'Bree Serif', serif;
    font-size: 30px;
    color: #122348;
    text-align: center;
    margin-bottom: 10px;
}

.application_2 hr {
    background-color: #cda757;
    height: 4px;
    width: 300px;
    border: none;
    margin: 10px auto;
    display: block;
    border-radius: 3px;
    margin-top: -10px;
}

#paper_app {
    display: flex;
    align-items: center;
    gap: 15px;
}

#pma_app {
    max-width: 100px;
    height: auto;
}

#paper_app p {
    margin: 0;
    text-align: left;
}

.btn_app {
    background-color: #122348;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 15px;
    display: inline-block;
}

.btn_app:hover {
    background-color: #cda757;
}

.correct {
    background-color: green;
    color: white;
    font-weight: bold;
}

.wrong {
    background-color: red;
    color: white;
    font-weight: bold;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 35, 72, 0.7);
    z-index: 1000;
}

.modal {
    color: #122348;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 25px;
    border-radius: 2px;
    z-index: 1000;
    width: 800px;
    height: 600px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.sample_probs {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.sample_probs img {
    height: 50px;
    width: auto;
}

.sample_probs h2 {
    margin: 0;
    font-size: 28px;
}

.modal p {
    font-size: 25px;
    margin-bottom: 10px;
    line-height: 1;
}

.answer {
    padding: 10px;
    border-radius: 3px;
    background-color: #122348;
    color: white;
    display: none;
    font-size: 15px !important;
}

.exam_buttons {
    font-size: 20px !important;
}

.exam_buttons label {
    display: block;
    margin: 4px 0;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.exam_buttons input[type="radio"] {
    margin-right: 8px;
    accent-color: #122348;
}

.exam_buttons label:hover {
    background-color: #cda757;
}


#figure {
    height: 140px;
    width: auto;
}

.modal hr {
    background-color: #cda757;
    height: 4px;
    width: 100%;
    border: none;
    margin: 10px auto;
    display: block;
    border-radius: 3px;
    margin-top: -10px;
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    cursor: pointer;
    color: #122348;
}

#quiz-form h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.modal button {
    background-color: #122348;
    color: white;
    padding: 6px 30px;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 15px;
    display: block;
    margin: 15px auto;
}

.modal button:hover {
    background-color: #cda757;
    color: white;
}

#quiz-result {
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    margin-top: 10px;
}


@media screen and (max-width: 375px) {
    .modal {
        width: 90%;
        max-width: 300px;
        height: auto;
        max-height: 80vh;
        overflow-y: auto;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 35px;
    }

    .application_1 hr {
        height: 3px;
        width: 250px;
    }

    .application_2 hr {
        height: 4px;
        width: 300px;
    }

    .application_container {
        width: 85%;
        border-radius: 5px;
        max-width: 1100px;
    }

    .modal {
        width: 90%;
        max-width: 350px;
        height: auto;
        max-height: 80vh;
        overflow-y: auto;
    }

    #figure {
        height: 100px;
        width: auto;
    }

    .sample_probs h2 {
        margin: 0;
        font-size: 18px;
    }

    .modal p {
        font-size: 15px;
    }

    .exam_buttons {
        font-size: 18px !important;
    }

    #quiz-form h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    #figure {
        height: auto;
        max-width: 250px;
    }
}

@media screen and (max-width: 768px) {
    .modal {
        width: 650px;
        height: 600px;
    }

    #figure {
        max-height: 100px;
        width: auto;
    }
}

@media screen and (max-width: 992px) {
    .application_container {
        width: 85%;
        border-radius: 5px;
        max-width: 1100px;
    }
}

@media screen and (max-width: 1024px) {
    .application_container {
        width: 85%;
        border-radius: 5px;
        max-width: 1100px;
    }
}

@media screen and (max-width: 1200px) {
    .application_container {
        width: 85%;
        border-radius: 5px;
        max-width: 1100px;
    }
}