/* Existing styles with a simplified footer */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    color: #333;
}

.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

footer {
    width: 100%;
    text-align: center;
    padding: 10px 0;
}

/* Rest of your existing styles */

h1 {
    font-size: 24px;
    margin-bottom: 16px;
}

p {
    font-size: 16px;
    margin-bottom: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    text-align: center;
}

.button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.side-by-side {
    display: flex;
    justify-content: space-between;
} 

button {
    width: calc(50% - 10px);
    padding: 10px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    box-sizing: border-box;
}

.check-button {
    background-color: #007BFF;
    color: #fff;
}

.check-button:hover {
    background-color: #0056b3;
}

.clear-button {
    background-color: #FF5722;
    color: #fff;
}

.clear-button:hover {
    background-color: #E64A19;
}

.history-button {
    background-color: #FF9800;
    color: #fff;
}

.history-button:hover {
    background-color: #FB8C00;
}

.leaderboard-button {
    background-color: #FFC107;
    color: #fff;
}

.leaderboard-button:hover {
    background-color: #FFA000;
}

.new-game-button {
    background-color: #4CAF50;
    color: #fff;
    display: none;
}

.new-game-button:hover {
    background-color: #388E3C;
}

.start-new-game-button {
    background-color: #4CAF50;
    color: #fff;
}

.start-new-game-button:hover {
    background-color: #388E3C;
}

#result, #submissionResult {
    font-size: 18px;
    margin-top: 16px;
}

.status-image {
    width: 100px;
    margin: 16px auto;
    display: block;
}

.history-list {
    list-style-type: none;
    padding: 0;
}

.history-item {
    margin-bottom: 8px;
}

.leaderboard-list {
    list-style-type: none;
    padding: 0;
}

.leaderboard-item {
    margin-bottom: 8px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th, .leaderboard-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.leaderboard-table th {
    background-color: #f2f2f2;
    text-align: left;
}

.leaderboard-table tr:hover {
    background-color: #ddd;
}

.clear-leaderboard-button {
    background-color: #f44336;
    color: #fff;
    margin-top: 10px;
}

.clear-leaderboard-button:hover {
    background-color: #d32f2f;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

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