:root {
  --shadow-default: 0 4px 6px rgba(0, 0, 0, 0.2);
  --content-width: 600px;
  --primary-color: #fdfdfd;
  --correct-color: #ccffcc;
  --wrong-color: #ffcccc;
}

body {
    overflow: auto;
    overflow-x: hidden;
    background: var(--primary-color);

}

header {
    position: fixed;
    background: var(--primary-color);
    top: 0;
    left: 0;
    right: 0;
    padding: 1em;
    text-align: right;
}

main {
    margin-top: 5em;
    max-width: var(--content-width);
    margin-right: auto;
    margin-left: auto;
}
footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1em;
    font-size: 0.8em;
    color: var(--primary-color);
    text-align: right;
}

.alignment {
    display: flex;
    align-items: center;
}
#content {
    margin-left: 1em;
    margin-right: 1em;
    height: auto;
}

h1, h2, h3 {
    font-family: Arial, Helvetica, sans-serif;
}

p {
     font-family: Georgia, "Times New Roman", serif;
}

.question {
    display: flex;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    background: #efefef00;
    border-bottom: 1px solid lightgrey;
    height: 5em;
    padding: 2em;
    align-items: flex-end;
}

.button {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    display: block;
    width: 100%;
    border: none;
    padding: 1em;
    margin-top: 15px;
    background: #eeeeee;
}

.button:hover {
    background: #dddddd;
    cursor: pointer;
}

.button.correct {
    background: var(--correct-color);
}

.button.wrong {
    background: var(--wrong-color);
}

.button-grid {
    width: 100%;
    flex-direction: column; 
    align-items: center;
    gap: 15px;                 
  }

@media (min-width: 800px) {
    .title-pic {
        float: left; 
        margin: 0 10px 10px 0;
    }
    .title-button {
        width: auto;
        float: right;
        margin-top: 5em;
    }
}

@media (max-width: 799px) {
    h1 {
        text-align: center;
    }
    .title-button {
        flex: none;
        position: fixed;
        bottom: 5em;
        left: 10%;
        right: 0;
        width: 80%;
        max-width: 500px;
        border-radius: 0;
    }
    .title-pic {
        display: block !important;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .title-text {
        display: none;
    }
}



.single-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.question-result {
    font-family: Arial, Helvetica, sans-serif;
    margin: 1em;
    padding: 1em;
    line-height: 1.2em;
}

#givenAnswer {
    background: var(--wrong-color);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    display: block;
    border: none;
    padding: 1em;
    margin-top: 15px;
}

#correctAnswer {
    background: var(--correct-color);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    display: block;
    border: none;
    padding: 1em;
    margin-top: 15px;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 0; /* 15% from the top and centered */
    min-height: 100%;
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}