.topnav {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #8BBBAA;
}
ul.topnav li {float: left;}

ul.topnav li a {
    display: block;
    color: #D7FFF1;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

ul.topnav li a:hover:not(.active) {background-color: #F0F9F6;}

ul.topnav li a.active {background-color: #8CD790;}

@media screen and (max-width: 600px) {
    ul.topnav li {
        float: none;
        width: 100%;
    }
}

.source {
    font-size: small;
}

.content {
    font-size: large;
}

.footer {
    font-size: small;
}

img {
    max-width: 75%;
    height: auto;
    display: block;
    margin: auto;
    border-radius: 14px;
}

a {
    color: #285943;
}

body {
    background-color: #F1F9F6;
    color: #060E0B;
    font-family: "Domine", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

p {
    margin-bottom: 10px;
}

#question-container {
    margin-bottom: 22px;
    margin: 24px;
}

#question {
    font-size: large;
    margin-bottom: 12px;
}

.btn-grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 12px;
    color: #060E0B;
    font-family: "Domine", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.button, .btn {
    padding: 12px 16px;
    background-color: #8BBBAA;
    color: #D7FFF1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.4s;
}

.button:hover {
    background-color: #F0F9F6;
}

#controls {
    justify-content: center;
    margin-top: 22px;
}

#controls.show {
    display: flex;
}

#start-btn, #next-btn {
    padding: 12px 24px;
    background-color: #8BBBAA;
    color: #D7FFF1;
    border: solid;
    border-radius: 4px;
    cursor: pointer;
}

#start-btn:hover, #next-btn:hover {
    background-color: #F0F9F6;
}

.hide {
    display: none;
}

.correct {
    background-color: #28a745;
    /*Green color for correct answers */
    color: #060E0B;
}

.wrong {
    background-color: #dc3545;
    /*Red color for incorrect answers*/
    color: #060E0B;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity:0; }
    to { opacity: 1; }
}

#timer {
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 10px;
    text-align: center;
    color: #060E0B;
}

#quiz-app {
    width: 100%;
    max-width: 500px;
    margin: 10px auto;
    padding: 24px;
    background-color: #8BBBAA;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    color: #D7FFF1;
    font-family: "Domine", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

table, th, td {
    border: 2px solid;
    background-color: #e3f0e4;
}

table {
    border-collapse: collapse;
}

th, td {
    padding: 15px;
}

* {box-sizing:border-box}

.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: 10px auto;
}

.myslides {
    display: none;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    color: #8BBBAA;
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: #060E0B;
}

.text {
    color: #8BBBAA;
    font-size: 20px;
    font-style: bold;
    padding: 1px 2px;
    position: absolute;
    bottom: 2px;
    width: 100%;
    text-align: center;
}

.numbertext {
    color: #8BBBAA;
    background: white;
    font-size: 12px;
    padding: 7px 12px;
    position: absolute;
    top: 0;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}

@media only screen and (max-width: 300px) {
    .prev, .next, .text {font-size: 11px}
}