body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f9f9f9;
}

.container {
    display: flex;
    height: 100vh;
    flex: 1;
    overflow: hidden;
}

.reading {
    width: 50%;
    padding: 10px;
    overflow-y: auto;
    background: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.questions {
    width: 50%;
    padding: 10px;
    overflow-y: auto;
    background: #f1f7ff;
}

.questions {
    border-right: none;
}

h1 {
    text-align: center;
    font-size: 1.8em;
    color: #333;
    margin-top: 0;
}

h2 {
    font-size: 1.2em;
    margin-top: 1em;
}

.question {
    margin-bottom: 15px;
}

.question p {
    margin: 0 0 5px 0;
    color: #333;
}

input.blank,
select.match-select {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
    width: auto;
    min-width: 80px;
}

select.match-select {
    width: 140px;
}

.correct {
    border-color: green !important;
    background-color: #e6ffe6 !important;
}

.incorrect {
    border-color: red !important;
    background-color: #ffe6e6 !important;
}

.btn-check {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1em;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-check:hover {
    background: #357ab8;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    width: 280px;
}

.modal-content button {
    margin-top: 10px;
    padding: 6px 12px;
    border: none;
    background: #4a90e2;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.modal-content button:hover {
    background: #357ab8;
}

.footer {
    position: fixed;
    /* Pin to screen */
    bottom: 0;
    /* Stick to the bottom */
    left: 0;
    width: 100%;
    /* Full width */
    background-color: #f0f0f0;
    border-top: 1px solid #ccc;
    display: flex;
    /* Use flex to align content */
    text-align: center;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    /* Stay on top */
    font-size: 14px;
    font-weight: bold;
}