body {
    margin: 0;
    background-color: #f0f0f0;
    font-family: sans-serif;
}

.page-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.game-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ranking-column {
    margin-left: 40px;
    width: 250px;
    padding: 20px;
    border: 2px solid #333;
    background-color: #fff;
    border-radius: 8px;
}

.ranking-column h2 {
    text-align: center;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}

#ranking-list {
    list-style-type: decimal;
    padding-left: 20px;
}

#ranking-list li {
    font-size: 1.1em;
    padding: 8px 5px;
    border-bottom: 1px solid #eee;
}

#ranking-list li:first-child {
    font-weight: bold;
    color: #d9534f;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 700px;
    box-sizing: border-box;
}

.title-container {
    display: flex;
    align-items: center;
}

.stats-container {
    display: flex;
    align-items: center;
}

#timer {
    margin-left: 16px;
}

.lives {
    margin-left: 16px;
}

.lives span {
    color: red;
    font-size: 24px;
    margin: 0 2px;
}

.lives span.empty {
    color: #ccc;
}

.header h1,
.header h2 {
    color: #333;
    margin: 20px 0;
}

canvas {
    border: 2px solid #333;
    background-color: #fff;
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
}

/* --- Game Start Menu Styles --- */
#gameStartMenu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(240, 240, 240, 0.9);
    z-index: 10;
}

#gameStartMenu h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: bold;
    color: #333;
}

#gameStartButton {
    font-size: 1.5rem;
    padding: 1rem 2.5rem;
    cursor: pointer;
    border: 2px solid #333;
    background-color: white;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 1px;
}

#gameStartButton:hover {
    background-color: #333;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.back-button {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: #555;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.back-button:hover {
    background-color: #ddd;
}

.home-button {
    margin-top: 20px;
    padding: 8px 16px;
    background-color: #888;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.home-button:hover {
    background-color: #555;
}