/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    margin-bottom: 30px;
}

.synth-controls {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.control-group label {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.1rem;
}

#waveform, #octave {
    padding: 8px;
    border-radius: 5px;
    background: #333;
    color: white;
    border: 1px solid #555;
    font-size: 1rem;
}

#volume {
    width: 200px;
    height: 10px;
    cursor: pointer;
}

#octave-display {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

.effects-section {
    margin-bottom: 30px;
}

.effects-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.effects-controls {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.effect-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45%;
}

.effect-group h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.control-group label {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 1rem;
}

.control-group input[type="range"] {
    width: 80%;
    height: 10px;
    cursor: pointer;
}

.control-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.control-group span {
    margin-top: 5px;
    font-size: 0.9rem;
}

.keyboard-section {
    text-align: center;
}

.keyboard-section h2 {
    margin-bottom: 10px;
}

.keyboard-section p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.keyboard {
    display: flex;
    position: relative;
    height: 200px;
    margin: 0 auto;
    width: fit-content;
}

.key {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 15px;
    user-select: none;
    font-weight: bold;
    transition: all 0.1s ease;
}

.key span {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 5px;
}

.white {
    width: 60px;
    height: 200px;
    background: linear-gradient(to bottom, #fff 0%, #f5f5f5 100%);
    border: 1px solid #ccc;
    border-radius: 0 0 5px 5px;
    z-index: 1;
    color: #333;
}

.white.active {
    background: linear-gradient(to bottom, #ffd700, #ffa500);
    transform: translateY(2px);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.black {
    width: 40px;
    height: 120px;
    background: linear-gradient(to bottom, #000 0%, #333 100%);
    border: 1px solid #000;
    border-radius: 0 0 3px 3px;
    margin: 0 -20px;
    z-index: 2;
    color: white;
}

.black.active {
    background: linear-gradient(to bottom, #ffd700, #ffa500);
    transform: translateY(2px);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

footer {
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .synth-controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .keyboard {
        transform: scale(0.8);
    }
}