body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #faf8ef;
    user-select: none;
    box-sizing: border-box;
    overflow: hidden;
}

.score-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    font-size: 20px;
    margin-bottom: 10px;
    padding: 0 5px;
    box-sizing: border-box;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

canvas {
    width: 100%;
    height: auto;
    background-color: #bbada0;
    border-radius: 10px;
    touch-action: none;
}

.game-button {
    margin-left: 10px;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background: #8f7a66;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.game-button:hover {
    background: #9f8a76;
    transform: translateY(-2px);
}

.game-button:active {
    transform: translateY(0);
}

#gameButtonContainer {
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.modal {
    display: none;
    border: 2px solid #776e65;
    border-radius: 10px;
    background-color: #faf8ef;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.instructions-title {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

h1 {
    font-size: 36px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #776e65;
}

#modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
} 