body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 20px;
    background: #f0f0f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#app {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

h1 {
    color: #2c3e50;
    margin-bottom: 30px;
}

.game-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.start-screen {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.start-screen h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.start-screen p {
    color: #34495e;
    font-size: 1.2em;
    margin-bottom: 30px;
}

.timer {
    font-size: 2em;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 20px;
}

.boards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.board-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

/* Fix board alignment */
#targetBoard {
    margin-bottom: 52px; /* Compensate for spare pieces tray height */
}

/* Disable pointer events on player board before Ready */
.game-container:not(.memorizing) #playerBoard,
.game-container:not(.memorizing) .spare-pieces-7492f {
    pointer-events: none;
    opacity: 0.7;
}

/* Hide spare pieces on target board */
#targetBoard + .spare-pieces-7492f {
    visibility: hidden;
}

/* Add styling for spare pieces */
.spare-pieces-7492f {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-top: 10px;
}

.spare-pieces-7492f img {
    cursor: grab;
    transition: transform 0.1s;
}

.spare-pieces-7492f img:hover {
    transform: scale(1.1);
}

.label {
    margin-top: 10px;
    font-weight: bold;
    color: #2c3e50;
}

.controls {
    margin: 20px 0;
}

button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #2980b9;
}

.score {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 20px;
}

.game-over {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.high-scores {
    margin-top: 30px;
    text-align: left;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.high-scores h3 {
    color: #2c3e50;
    text-align: center;
}

.high-scores ol {
    color: #34495e;
}

@media (max-width: 768px) {
    .board-wrapper {
        min-width: 250px;
    }
    
    body {
        padding: 10px;
    }
} 