* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    backdrop-filter: blur(5px);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    transform: scale(1.05);
}

.difficulty-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.difficulty-controls label {
    font-size: 1rem;
    color: #ffffff;
    font-weight: bold;
}

.btn-small {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-small.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    transform: scale(1.05);
}

#optionCount {
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
}

#optionCount:focus {
    outline: none;
    border-color: #4ecdc4;
}

.main {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fretboard-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2rem;
    overflow-x: auto;
    background: rgba(139, 69, 19, 0.3);
    border-radius: 15px;
    padding: 2rem 2rem 2rem 4rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 69, 19, 0.5);
}

.fretboard {
    position: relative;
    width: 100%;
    min-width: 800px;
    height: 300px;
    background: linear-gradient(to bottom, #8B4513 0%, #A0522D 50%, #8B4513 100%);
    border-radius: 10px;
    overflow: visible;
    margin: 0 auto;
}

.string {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #C0C0C0, #808080);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.string:nth-child(1) { top: 12.5%; height: 3.5px; }
.string:nth-child(2) { top: 25%; height: 3px; }
.string:nth-child(3) { top: 37.5%; height: 2.5px; }
.string:nth-child(4) { top: 50%; height: 2px; }
.string:nth-child(5) { top: 62.5%; height: 1.5px; }
.string:nth-child(6) { top: 75%; height: 1px; }

.fret {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #DAA520, #B8860B);
    box-shadow: 1px 0 2px rgba(0, 0, 0, 0.5);
}

.fret-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #FFD700, #FFA500);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.note-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.note-dot:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.note-dot.correct {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    animation: pulse 0.5s ease-in-out;
}

.note-dot.incorrect {
    background: linear-gradient(45deg, #f44336, #da190b);
    animation: shake 0.5s ease-in-out;
}

.note-dot.hidden {
    background: linear-gradient(45deg, rgba(102, 102, 102, 0.8), rgba(68, 68, 68, 0.8));
    color: transparent;
    backdrop-filter: blur(2px);
}

.note-dot.highlighted {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: #fff;
    animation: pulse 2s infinite;
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.6);
    border: 3px solid #ffffff;
}

.note-dot.found {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    animation: foundPulse 0.8s ease-in-out;
    border: 3px solid #ffffff;
    color: #ffffff;
}

.note-dot.tried-incorrect {
    background: linear-gradient(45deg, #ff6b6b, #e53e3e);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
}


.info-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.current-note h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.current-note span {
    color: #4ecdc4;
    font-size: 2rem;
}

.score {
    font-size: 1.5rem;
    color: #ff6b6b;
}

.answer-panel {
    width: 100%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.input-mode, .choice-mode, .find-all-mode {
    text-align: center;
}

.input-mode h3, .choice-mode h3, .find-all-mode h3 {
    margin-bottom: 1rem;
    color: #4ecdc4;
}

.note-input {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.name-note-mode-controls {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

#noteInput {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 1.1rem;
    text-align: center;
    text-transform: uppercase;
    width: 120px;
}

#noteInput:focus {
    outline: none;
    border-color: #4ecdc4;
}

#noteInput.correct {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
}

#noteInput.incorrect {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.2);
    animation: shake 0.5s ease-in-out;
}

.note-choices {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.choice-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.choice-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.choice-btn.correct {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border-color: #4CAF50;
}

.choice-btn.incorrect {
    background: linear-gradient(45deg, #f44336, #da190b);
    border-color: #f44336;
    animation: shake 0.5s ease-in-out;
}

.note-display {
    font-size: 3rem;
    font-weight: bold;
    color: #4ecdc4;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.progress {
    font-size: 1.2rem;
    color: #ff6b6b;
    margin: 0 1rem;
}

.hidden {
    display: none;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes foundPulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.4); }
    100% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes shake {
    0%, 100% { transform: translate(-50%, -50%) translateX(0); }
    25% { transform: translate(-50%, -50%) translateX(-5px); }
    75% { transform: translate(-50%, -50%) translateX(5px); }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
    
    .main {
        padding: 1rem;
    }
    
    .fretboard-container {
        padding: 1rem;
        overflow-x: scroll;
    }
    
    .info-panel {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}