.overall-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 auto;
}

/* Header */
h1 {
    /* position: absolute;
    top: 20px; */
    font-size: 36px;
    margin: 10px 0;
    font-family: Georgia, serif;
}
h2 {
    /* position: absolute;
    top: 80px; */
    font-size: 18px;
    margin: 10px 0;
    font-family: Georgia, serif;
}
h3 {
    /* position: absolute;
    top: 120px; */
    font-size: 18px;
    margin: 10px 0;
    font-family: Georgia, serif;
}

/* Horizontal container */
.horizontal-container {
    display: flex; /* Use Flexbox to arrange items horizontally */
    align-items: center; /* Align items at the start of the cross axis */
    /* justify-content: space-around; */
    justify-content: space-between;   /* Space between items */
    gap: 200px;
    flex: 1 1 auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

.auth-container {
    display: flex;
    align-items: center;
    flex-direction: column; /* Stack label and input vertically */
    flex: 1 1 auto;  /* Allow these to grow and shrink */
    min-width: 300px;  /* Minimum width to maintain usability */

    margin: 2px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
#signInContainer {
    margin-bottom: 50px;  /* Space below the button */
}

/* Input fields */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #e8f9fd;
}
.form-group {
    flex-grow: 0 0 200px;
    margin: 10px 0;
}
label {
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}
input {
    padding: 10px;
    font-size: 16px;
    width: 200px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: background-color 0.3s;
}
/* Submit button */
button {
    padding: 10px 15px;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
}

/* Error shake */
.shake {
    animation: shake 0.3s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}


/* LEADERBOARD CSS */
#leaderboardContainer {
    min-width: 300px;                /* Set a maximum width */
    margin: 2px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1 1 auto;
    /* height: 100%; */
}

h4 {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin: 0; /* Remove the default margin */
    padding: 0; /* Remove the default padding */
    font-family: Georgia, serif;
}

.leaderboard {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    max-height: 450px; 
    overflow-y: auto; 
}

.leaderboard div {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.leaderboard div:last-child {
    border-bottom: none; /* Remove border for the last item */
}

.leaderboard div:nth-child(odd) {
    background-color: #f2f2f2; /* Alternate background for better readability */
}

.leaderboard div:hover {
    background-color: #eaeaea; /* Highlight on hover */
    cursor: pointer; /* Change cursor to pointer */
}

.leaderboard div span {
    font-weight: bold;
}

/* CSS for the personal pages */
a {
    color: blue;
    text-decoration: underline;
}

.results-container {
    display: flex;
    align-items: center;
    flex-direction: column; /* Stack label and input vertically */
    min-width: 300px;  /* Minimum width to maintain usability */

    margin: 2px;
    padding: 30px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}