body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    text-align: center;
    margin: 0;
    padding: 20px;
    padding-bottom: 60px; /* Ensure the content doesn’t overlap with the footer */
}

h1 {
    color: #333;
}

input[type="number"] {
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    width: 80%;
    max-width: 300px;
    box-sizing: border-box;
}

button {
    padding: 10px 20px;
    margin: 10px 0;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 80%;
    max-width: 300px;
    box-sizing: border-box;
}

button:first-of-type {
    background-color: #4CAF50;
    color: white;
}

button:first-of-type:hover {
    background-color: #45a049;
}

button:nth-of-type(2) {
    background-color: #f44336;
    color: white;
}

button:nth-of-type(2):hover {
    background-color: #e53935;
}

button:last-of-type {
    background-color: #2196F3;
    color: white;
}

button:last-of-type:hover {
    background-color: #1976D2;
}

p {
    color: #555;
    font-size: 18px;
}

#game-id {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

#result, #score, #average-time, #average-deviation, #elapsed-time {
    font-size: 18px;
    margin: 10px 0;
}

#history {
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}

/*
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
} */

.menu {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.menu a {
    margin: 10px 0;
    text-decoration: none;
    color: #333;
    font-size: 18px;
}

/* Hide arrows in Webkit browsers */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hide arrows in Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

element {
    appearance: value;
  }
  


@media (max-width: 600px) {
    body {
        padding: 10px;
        padding-bottom: 70px; /* Ensure content doesn’t overlap with the footer */
    }

    input[type="number"] {
        font-size: 14px;
    }

    button {
        font-size: 14px;
    }

    p {
        font-size: 16px;
    }

    #history {
        max-width: 100%;
    }
}
