:root {
    --background: #1a1a1a;
    --text: #ffffff;
    --primary: #6C63FF;
    --secondary: #FF5555;
}

#credits {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background); 
    color: var(--text); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif; 
    font-size: 20px;
    text-align: center;
    transition: font-size 0.1s ease, letter-spacing 0.1s ease;
    z-index: 100;
    text-shadow: 
        0 0 5px var(--primary), 
        0 0 15px var(--primary), 
        0 0 25px rgba(255, 255, 255, 0.5); 
}

#credits span:nth-child(odd) {
    text-shadow: 
        0 0 5px var(--primary),
        0 0 15px var(--primary),
        0 0 25px rgba(255, 255, 255, 0.5);
}

#credits span {
    display: inline-block;
    margin: 0.5em 0; 
    transition: text-shadow 0.1s ease;
}

#credits span:nth-child(odd) {
    color: var(--primary);
}

body {
    margin: 0;
    padding: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.setting-group input[type="range"] {
    -webkit-appearance: none;
    height: 10px;
    background: rgba(108, 99, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
}

.setting-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    cursor: pointer;
}

.setting-group select {
    width: 100%;
    padding: 12px;
    background: rgba(108, 99, 255, 0.2);
    border: 2px solid var(--primary);
    border-radius: 8px;
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setting-group select:hover {
    background: rgba(108, 99, 255, 0.3);
    transform: scale(1.02);
}

.setting-group select:focus {
    outline: none;
    box-shadow: 0 0 15px var(--primary);
}

.setting-group select option {
    background: var(--background);
    color: var(--text);
    padding: 10px;
}

.menu-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 20px;
}

.game-title {
    font-size: 64px;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
    margin-bottom: 40px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.menu-button {
    padding: 15px 30px;
    font-size: 24px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-button:hover, .menu-button.selected {
    background: var(--primary);
    transform: scale(1.1);
}

.hidden {
    display: none !important;
}

#song-select {
    padding: 20px;
}

.song-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.song-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.song-item:hover, .song-item.selected {
    background: rgba(108, 99, 255, 0.2);
    transform: scale(1.02);
}

#chart-editor {
    padding: 20px;
}

.editor-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #2a2a2a;
    border-bottom: 2px solid #3a3a3a;
}

.editor-controls input[type="number"] {
    width: 60px;
    padding: 5px;
    border: 1px solid #444;
    background: #333;
    color: #fff;
    border-radius: 4px;
}

.editor-controls label {
    color: #ddd;
    font-size: 14px;
}

.editor-controls button {
    padding: 8px 15px;
    background: #6c63ff;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: ease 0.2s;
}

.editor-controls button:hover {
    background: #5449ff;
}

.editor-controls .time-display {
    color: #fff;
    font-family: monospace;
    font-size: 16px;
    padding: 5px 10px;
    background: #333;
    border-radius: 4px;
}

.editor-controls .separator {
    width: 1px;
    height: 24px;
    background: #444;
    margin: 0 10px;
}


#timeline {
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    z-index: 1000;
}

.game-stats {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: var(--text);
}

.game-lanes {
    display: flex;
    height: 100%;
    justify-content: center;
    gap: 10px;
    padding: 0 20%;
}

.lane {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.hit-indicator {
    position: absolute;
    bottom: 120px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.key-overlay {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 24px;
    color: var(--text);
    transition: all 0.1s ease;
}

.hit-flash {
    height: 8px;
    background: #fff;
    box-shadow: 0 0 20px #fff;
}

.key-pressed {
    transform: scale(1.2);
    color: #fff;
    text-shadow: 0 0 10px #fff;
}

.note {
    position: absolute;
    width: 80%;
    height: 20px;
    background: var(--primary);
    border-radius: 4px;
    left: 10%;
    transform: translateY(-50%);
}

.settings-container {
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
}

.setting-group input,
.setting-group select {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: var(--text);
}

.controls-display {
    position: absolute;
    bottom: 10px;
    right: 10px;
    text-align: right;
    font-size: 14px; 
    color: #ccc;
}

.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2ecc71;
    color: white;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
    z-index: 1000;
}

.achievement-icon {
    font-size: 24px;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
