/* styles.css */
body {
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #74ebd5, #acb6e5);
    color: #333;
    text-align: center;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 2.5em;
    color: #1a3c34;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 15px;
}

.auth-container {
    margin: 20px auto;
    width: 100%;
    max-width: 400px;
}

.auth-form {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.auth-input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.auth-input:focus {
    border-color: #007bff;
    outline: none;
}

.auth-button {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-button:hover {
    background: #0056b3;
}

.leaderboard-container, .profile-container {
    margin: 20px auto;
    width: 100%;
    max-width: 500px;
}

.leaderboard-table, .profile-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.leaderboard-table th, .profile-table th {
    background: #2c3e50;
    color: white;
    padding: 12px;
    font-size: 1em;
}

.leaderboard-table td, .profile-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
}

.leaderboard-table tr:nth-child(even), .profile-table tr:nth-child(even) {
    background: #f8f9fa;
}

.leaderboard-table tr:hover, .profile-table tr:hover {
    background: #e9ecef;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.action-button {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
}

.action-button:hover {
    background: #218838;
}

.action-button.logout-button {
    background: #dc3545;
}

.action-button.logout-button:hover {
    background: #c82333;
}

canvas {
    border: 1px solid #000;
    background: #f0f0f0;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#gameContainer {
    margin: 20px auto;
    width: 100%;
    max-width: 400px;
}

select {
    margin: 10px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 2em;
    }

    .auth-form, .leaderboard-container, .profile-container {
        width: 90%;
    }

    .leaderboard-table th, .leaderboard-table td,
    .profile-table th, .profile-table td {
        padding: 8px;
        font-size: 0.8em;
    }

    .action-button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}