/* Game specific styles for Virtual Piano */

:root {
    --primary-color: #FF9800;
    --primary-hover: #F57C00;
    --bg-card: #FFFFFF;
    --key-white: #FFFFFF;
    --key-black: #333333;
    --key-active: #FFEB3B;
    /* Yellow for active highlight */
    --border-color: #e0e0e0;
}

.game-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0;
}

.game-container h1 {
    margin-bottom: 1.5rem;
    color: #333;
}

.game-description {
    margin-bottom: 3rem;
    color: #555;
    font-size: 1.1rem;
}

.piano-wrapper {
    background: #f0f0f0;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    overflow-x: auto;
    /* Scroll on very small screens */
    display: flex;
    justify-content: center;
}

.piano-keys {
    display: flex;
    position: relative;
    height: 250px;
    user-select: none;
}

.key {
    cursor: pointer;
    position: relative;
    border-radius: 0 0 4px 4px;
    transition: background 0.1s, transform 0.1s;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 15px;
    font-weight: bold;
    color: #ccc;
    font-size: 0.9rem;
}

.key span {
    pointer-events: none;
    /* So text doesn't steal clicks */
}

/* White Keys */
.key.white {
    width: 60px;
    height: 100%;
    background: var(--key-white);
    border: 1px solid #ccc;
    border-top: none;
    z-index: 1;
}

.key.white:active,
.key.white.active {
    background: #f7f7f7;
    background: linear-gradient(to bottom, #fff 0%, var(--key-active) 100%);
    transform: translateY(2px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Black Keys */
.key.black {
    width: 40px;
    height: 60%;
    background: var(--key-black);
    border: 1px solid #000;
    margin-left: -20px;
    margin-right: -20px;
    z-index: 2;
    /* On top */
    color: #fff;
}

.key.black:active,
.key.black.active {
    background: #000;
    background: linear-gradient(to bottom, #333 0%, #000 100%);
    box-shadow: inset 0 0 10px var(--key-active);
}

/* Instructions */
.instructions {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: left;
    margin: 3rem auto 5rem;
    color: #444;
    line-height: 1.8;
}

.instructions h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.instructions h3:first-child {
    margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .key.white {
        width: 45px;
    }

    .key.black {
        width: 30px;
        margin-left: -15px;
        margin-right: -15px;
    }

    .key span {
        display: none;
    }

    /* Hide key hints on small screens */
}