body {
    overflow-y: scroll !important;
    background-color: white;
    color: black;
    font-family: Arial, sans-serif;
    /* font-size: 20px; */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    justify-items: center;
    text-align: center ;
}

h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
}

button {
    background-color: black;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 20px;
}

button:hover {
    background-color: #333;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 10px;
    font-weight: bold;
}

input[type="text"], input[type="email"], input[type="radio"] {
    margin-top: 5px;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: scroll;
}

input[type="radio"] {
    margin-right: 10px;
}

.question {
    margin-top: 20px;
}

.question p {
    font-weight: bold;
}

#finish-screen p {
    font-size: 1.2em;
}

.screen {
    width: 80vw;
    height: 80vh;
    margin: 0;
    padding: 0;
    gap: 0;
    background-color: white;
}
.checkbox {
    display: flex;
    align-items: center;
    padding-top: 10px;
}

.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: black;
    align-self: baseline;
    margin-top: 4.5px;
}

.checkbox label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.question-container {
    position: relative;
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    border: 2px solid #000;
    border-radius: 10px;
    background-color: #f9f9f9;
    font-size: 1.2em;
    line-height: 1.8;
    display: block;
    height: 500px;
    overflow-y: scroll;
}

.answer-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 20px;
}

.answer {
    display: flex;
    align-items: center;
    gap: 5px;
    border: #000 1px solid;
    border-radius: 10px;
    padding: 10px;
}

.answer span {
    cursor: pointer;
    font-size: 1.1em;
    align-self: center;
    justify-self: center;
    text-align: center;
    width: 100%;
}

.answer input[type="radio"] {
    width: 20px;
    height: 20px;
}

.answer:focus {
    border-width: 5px;
    border-style: dotted;
}

.answer.selected {
    border-color: #fff;
    background-color: #000;
    color: #fff;
}


button.submit-answer{
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
}

.submit-answer:focus {
    border-width: 5px;
    border-color: #FFF;
    border-style: dotted;
}

.timer {
    position: static;
    color: white;
    background-color: black;
    padding: 5px;
    width: 100px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    font-size: 1.3em;
    justify-self: end;
}

.timer-label {
    position: static;
    justify-self: end;
    color: black;
    padding: 5px;
    width: 100px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
}

.open-screen-next {
    margin:20px;
}

.score-box {
    display: inline-block;
    color: white;
    background-color: black;
    padding: 5px;
    width: 100px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    font-size: 1.3em;
}

.question-count {
    display: inline-block;
    color: white;
    background-color: black;
    padding: 5px;
    width: 170px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    font-size: 1.3em;
}

.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Leaderboard Screen Styles */
#leaderboard-screen {
    width: 80vw;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 2px solid #000;
    border-radius: 10px;
    text-align: center;
}

#leaderboard-screen h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

#leaderboard-screen p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

#leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

/* Leaderboard Screen Styles */
#leaderboard-screen {
    width: 80vw;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 2px solid #000;
    border-radius: 10px;
    text-align: center;
}

#leaderboard-screen h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

#leaderboard-screen p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

#leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#leaderboard-table th, #leaderboard-table td {
    border: 1px solid #000;
    padding: 10px;
    text-align: center;
    font-size: 1em;
}

#leaderboard-table th {
    background-color: #000;
    color: #fff;
    font-weight: bold;
}

#leaderboard-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

#leaderboard-table tr:hover {
    background-color: #ddd;
}

#leaderboard-table td {
    font-size: 1em;
}

#leaderboard-table td:first-child {
    font-weight: bold;
}

#leaderboard-table td[tabindex="0"] {
    outline: 2px dotted #000;
}

#leaderboard-table th, #leaderboard-table td {
    border: 1px solid #000;
    padding: 10px;
    text-align: center;
    font-size: 1em;
}

#leaderboard-table th {
    background-color: #000;
    color: #fff;
    font-weight: bold;
}

#leaderboard-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

#leaderboard-table tr:hover {
    background-color: #ddd;
}

#leaderboard-table td {
    font-size: 1em;
}

#leaderboard-table td:first-child {
    font-weight: bold;
}

#leaderboard-table td[tabindex="0"] {
    outline: 2px dotted #000;
}

#leaderboard-table tbody {
    display: block;
    height: 300px; /* Adjust this value as needed to fit your page layout */
    overflow-y: scroll;
    width: 100%; /* Ensure the width matches the table */
}

#leaderboard-table thead, #leaderboard-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed; /* Ensures consistent column widths */
}

#leaderboard-table {
    border-collapse: separate; /* Prevents thead and tbody from collapsing together */
}

.leaders-screen-next {
    margin:20px;

}
.leaders-screen-next:focus {
    border-width: 5px;
    border-style: dotted;
    border-color: #FFF;
}