.match-outline { 
    background-color: yellow !important; 
    border: 2px solid orange; 
    box-sizing: border-box; 
}

body { 
    font-family: Arial; 
    background: #f5f5f5; 
    padding: 20px; 
}

#top-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 20px auto;
    gap: 15px;
}

#current-note {
    font-size: 1.8rem;
    font-weight: bold;
}

#current-score {
    font-size: 1.2rem;
}

/* Placeholder animation */
@keyframes placeholder-pulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.5; }
    100% { opacity: 0.3; }
}

.placeholder {
    display: inline-block;
    width: 1.5em;
    height: 1em;
    background-color: white;
    border-radius: 4px;
}

#kotta {
    width: 100%;
    max-width: 320px;
    height: auto;
    border: 1px solid #ccc;
    background: white;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.guitar-neck {
    position: relative;
    width: 1200px;
    height: 250px;
    background: #deb887;
    margin: 0 auto;
    box-shadow: inset 0 0 5px #8b5a2b;
    flex-shrink: 0;
}

.string { 
    position: absolute; 
    left: 0; 
    right: 0; 
    background: black; 
    transform: translateY(-50%); 
}

.fret { 
    position: absolute; 
    top: 0; 
    bottom: 0; 
}

.note-spot { 
    position: absolute;
    height: 20px;
    width: 20px;
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s;
    z-index: 10;
    transform: translate(-50%, -50%);
}

.note-spot:hover {
    background: rgba(0, 0, 0, 0.1);
}

.used-once {
    background: #999 !important;
    border: 2px dashed #555 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    opacity: 0.4;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

.marker { 
    position: absolute; 
    width: 10px; 
    height: 10px; 
    background: black; 
    border-radius: 50%; 
    transform: translate(-50%, -50%); 
}

.highlight-correct { 
    background: lightgreen !important; 
}

.highlight-wrong { 
    background: lightcoral !important; 
}

#note-name-big {
    display: inline-block;  /* Hogy működjön a transform */
    transform-origin: center;
    will-change: transform;
    position: relative;
}

.note-name-correct {
    color: #28a745;
    display: inline-block;
    animation: correct-note 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform-origin: center;
}

.note-name-wrong {
    color: #dc3545;
    display: inline-block;
    animation: wrong-note 0.5s cubic-bezier(0.36, 0, 0.66, -0.56) forwards;
    transform-origin: center;
}

@keyframes correct-note {
    0% { 
        transform: scale(1) translateZ(0);
        filter: brightness(100%);
    }
    50% { 
        transform: scale(1.3) translateZ(0);
        filter: brightness(120%);
    }
    100% { 
        transform: scale(1) translateZ(0);
        filter: brightness(100%);
    }
}

@keyframes wrong-note {
    0% { transform: translateX(0) translateZ(0); }
    20% { transform: translateX(-10px) translateZ(0); }
    40% { transform: translateX(10px) translateZ(0); }
    60% { transform: translateX(-10px) translateZ(0); }
    80% { transform: translateX(10px) translateZ(0); }
    100% { transform: translateX(0) translateZ(0); }
}

@media (max-width: 768px) {
    #top-bar { 
        flex-direction: column; 
        align-items: stretch; 
        text-align: center; 
    }
}

#countdown {
    display: inline-block;
    transform-origin: center;
    will-change: transform;
    transition: transform 0.2s ease-out;
}

@keyframes countdown-attention {
    0% { 
        transform: scale(1) translateZ(0);
        color: #666;
    }
    30% { 
        transform: scale(1.2) translateZ(0);
        color: #000;
    }
    100% { 
        transform: scale(1) translateZ(0);
        color: #666;
    }
}

.countdown-attention {
    animation: countdown-attention 0.5s cubic-bezier(0.36, 0, 0.66, 1.5) !important;
    animation-fill-mode: forwards !important;
}

.guitar-neck.disabled {
    pointer-events: auto !important;
    opacity: 0.7;
    cursor: not-allowed;
}

.guitar-neck.disabled .note-spot {
    pointer-events: none;
    cursor: not-allowed;
} 