body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(to bottom, #0f0f23, #1a1a4a);
    color: #00ff00;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.7;
}

h1 {
    text-align: center;
    font-size: 3.2em;
    margin-bottom: 30px;
    text-shadow: 0 0 15px #00ff00, 0 0 30px #00ff00;
    letter-spacing: 3px;
}

.tagline-container {
    text-align: center;
    margin-bottom: 40px;
}

.tagline {
    font-size: 1.8em;
    margin: 0;
    line-height: 1.2;
}

.tagline.emphasis {
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    margin-bottom: 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2 {
    display: inline-block;
    background-color: #0f0f23;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    text-shadow: 0 0 10px #00ff00;
    border-bottom: none;
    font-size: 2.2em;
}

.title-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #00ff00;
    z-index: 1;
    box-shadow: 0 0 10px #00ff00;
}

.preset-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.preset-button {
    background-color: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 12px 25px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #00ff00;
    border-radius: 5px;
}

.preset-button:hover {
    background-color: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 20px #00ff00;
    transform: translateY(-2px);
}

.note-name {
    display: none;
}

.control-group {
    width: 100%;
    margin-bottom: 20px;
}

.control-group h4 {
    text-align: center;
    font-size: 1.4em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    border-bottom: 2px solid #00ff00;
    padding-bottom: 10px;
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 255, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
}

.control-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 20px;
}

.control {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 20px;
}

.control label {
    margin-bottom: 5px;
    font-weight: bold;
}

.control-section {
  background-color: rgba(0, 255, 0, 0.1);
  border: 2px solid #00ff00;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.control-section h2 {
  color: #00ff00;
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
  text-shadow: 0 0 10px #00ff00;
}

.control-section ol {
  margin-bottom: 20px;
}

.control-section li {
  margin-bottom: 10px;
}

.effects-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.effect-control {
    width: calc(50% - 10px);
    margin-bottom: 15px;
}

.effect-control:hover {
    background-color: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.effect-control label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #00ff00;
}

.effect-control input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 15px;
    border-radius: 5px;
    background: rgba(0, 255, 0, 0.1);
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

.effect-control input[type="range"]:hover {
    opacity: 1;
}

.effect-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #00ff00;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.effect-control input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #00ff00;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.effect-control input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 2px solid #00ff00;
    outline: none;
    cursor: pointer;
    position: relative;
}

.effect-control input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ff00;
    font-size: 16px;
}

.effect-control label[for$="-on-off"] {
    display: inline;
    margin-left: 5px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;  
    background: #00ff00;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

input[type="range"]:hover {
    opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%; 
    background: #0f0f23;
    cursor: pointer;
    border: 2px solid #00ff00;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0f0f23;
    cursor: pointer;
    border: 2px solid #00ff00;
}

/* Custom styling for checkboxes */
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 2px solid #00ff00;
    outline: none;
    cursor: pointer;
    position: relative;
}

input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ff00;
    font-size: 16px;
}

.recording-instructions {
  color: #00ff00;
  margin-bottom: 20px;
}

.recording-instructions p {
  text-align: center;
  font-size: 1.2em;
  margin-bottom: 15px;
}

.recording-instructions ol {
  list-style-type: none;
  padding: 0;
}

.recording-instructions li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.recording-instructions li::before {
  content: '>';
  margin-right: 10px;
  color: #00ff00;
}

.highlight {
  color: #66ff66;
  text-shadow: 0 0 5px #00ff00;
}

.instrument-selector {
  margin-bottom: 30px;
}

.instrument-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.instrument-button {
  background-color: rgba(0, 255, 0, 0.1);
  border: 2px solid #00ff00;
  color: #00ff00;
  padding: 10px 20px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px #00ff00;
  border-radius: 5px;
  flex: 1;
  min-width: 80px;
  text-align: center;
}

.instrument-button:hover {
  background-color: rgba(0, 255, 0, 0.2);
  box-shadow: 0 0 20px #00ff00;
  transform: translateY(-2px);
}

.instrument-button.active {
  background-color: rgba(0, 255, 0, 0.3);
  box-shadow: 0 0 30px #00ff00;
}

.full-width {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

#piano-container {
  width: 100%;
  max-width: none;
  margin: 20px 0;
  padding: 10px;
  background-color: #1a1a4a;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.piano-keyboard {
  display: flex;
  position: relative;
  height: 200px;
  width: 100%;
  background-color: #222;
  border: 1px solid #333;
  border-radius: 0 0 10px 10px;
  overflow: visible;
}

.piano-key {
    position: relative;
    height: 100%;
    box-sizing: border-box;
    transition: all 0.1s ease;
}

.white-key {
  flex: 1;
  background: linear-gradient(to bottom, #fff 0%, #f0f0f0 100%);
  border-right: 1px solid #ccc;
  height: 100%;
  z-index: 1;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1) inset;
  width: calc(100% / 52); /* 52 white keys */
}

.white-key:last-child {
    border-right: none;
}

.black-key {
  width: calc(100% / 88 * 0.6); /* 88 total keys, black keys are 60% width of white keys */
  height: 60%;
  background: linear-gradient(to bottom, #333 0%, #000 100%);
  position: absolute;
  z-index: 2;
  top: 0;
  border-radius: 0 0 5px 5px;
  box-shadow: -1px 0 2px rgba(255, 255, 255, 0.2) inset, 0 -5px 2px 3px rgba(0, 0, 0, 0.6) inset, 0 2px 4px rgba(0, 0, 0, 0.5);
}

.piano-key.active {
    background: linear-gradient(to bottom, #66ff66 0%, #33cc33 100%);
}

.black-key.active {
    background: linear-gradient(to bottom, #00cc00 0%, #009900 100%);
}

/* Red felt above the keys */
.piano-felt {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    height: 10px;
    background: linear-gradient(to bottom, #8B0000 0%, #A52A2A 100%);
    border-radius: 5px 5px 0 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.piano-key .computer-key {
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
}

.white-key .computer-key {
    color: #000;
}

.black-key .computer-key {
    color: #00ff00; /* Neo green */
}

/* Remove any remaining note labels */
.note-name {
    display: none;
}

@media (max-width: 768px) {
  .piano-keyboard {
    height: 120px;
  }
  
  .black-key {
    height: 50%;
  }
  
  .piano-key .computer-key {
    font-size: 8px;
  }
}

@media (max-width: 480px) {
  .instrument-button {
    font-size: 1em;
    padding: 8px 15px;
  }
}

.preset-management {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.preset-management input,
.preset-management select,
.preset-management button {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
}

.preset-management input:focus,
.preset-management select:focus {
    outline: none;
    box-shadow: 0 0 5px #00ff00;
}

.preset-management button:hover {
    background-color: rgba(0, 255, 0, 0.2);
}

select {
    appearance: none;
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
}

select:focus {
    outline: none;
    box-shadow: 0 0 5px #00ff00;
}

select option {
    background-color: #0f0f23;
    color: #00ff00;
}

#recordingControls {
  display: flex;
  align-items: center;
}

#recordingControls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

#recordButton {
  font-size: 1.2em;
  padding: 12px 25px;
}

#recordButton.recording {
  background-color: rgba(255, 0, 0, 0.2);
  border-color: #ff0000;
  color: #ff0000;
}

.recording-time {
  font-size: 2em;
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00;
}

.cool-button {
  background-color: #4CAF50;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.cool-button:hover {
  background-color: #45a049;
}

.cool-button.recording {
  background-color: #f44336;
}

.recording-time {
  font-size: 24px;
  margin-left: 10px;
}

.contact-contaer {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 40px;
}
.contact-form, .contact-info {
  flex: 1;
  background: rgba(0, 255, 0, 0.1);
  border: 2px solid #00ff00;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
  }
        .form-group {
            margin-bottom: 20px;
        }
        .form-group label {
            display: block;
            margin-bottom: 5px;
            color: #00ff00;
        }
        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 10px;
            background: rgba(15, 15, 35, 0.7);
            border: 1px solid #00ff00;
            color: #00ff00;
            border-radius: 5px;
        }
        .form-group textarea {
            resize: vertical;
        }
        button[type="submit"] {
            background-color: #00ff00;
            color: #0f0f23;
            border: none;
            padding: 12px 20px;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        button[type="submit"]:hover {
            background-color: #66ff66;
            box-shadow: 0 0 15px #00ff00;
        }
        .message-sent {
            background-color: rgba(0, 255, 0, 0.2);
            border: 1px solid #00ff00;
            color: #00ff00;
            padding: 15px;
            margin-top: 20px;
            border-radius: 5px;
            display: none;
        }
        .contact-info h2 {
            color: #00ff00;
            margin-top: 0;
        }
        .social-icons {
            margin-top: 20px;
        }
        .social-icons a {
            color: #00ff00;
            font-size: 24px;
            margin-right: 15px;
            transition: all 0.3s ease;
        }
        .social-icons a:hover {
            color: #66ff66;
            transform: scale(1.2);
        }

.slider {
    -webkit-appearance: none;
    width: 200px;
    height: 15px;
    border-radius: 5px;
    background: rgba(0, 255, 0, 0.1);
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #00ff00;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #00ff00;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.waveform-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.waveform-option {
    display: flex;
    align-items: center;
    margin: 0 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.waveform-option:hover {
    transform: scale(1.05);
}

.waveform-bullet {
    width: 20px;
    height: 20px;
    border: 2px solid #00ff00;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.waveform-bullet::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: #00ff00;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.waveform-option.active .waveform-bullet::after {
    opacity: 1;
}

.waveform-label {
    font-size: 1.2em;
    color: #00ff00;
}

.main-nav {
    background-color: rgba(31, 31, 63, 0.8);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.1);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: #00ff00;
    text-decoration: none;
    font-size: 1.2em;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.main-nav a:hover, .main-nav a.active {
    background-color: rgba(0, 255, 0, 0.2);
    text-shadow: 0 0 10px #00ff00;
}

.visualizations {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 20px 0;
}

.visualization-container {
  flex-basis: calc(50% - 10px);
  margin-bottom: 20px;
}

.visualization-container h3 {
  color: #00ff00;
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.2em;
  text-shadow: 0 0 5px #00ff00;
}

.visualization-container canvas {
  width: 100%;
  height: 150px;
  border: 1px solid #00ff00;
  background-color: rgba(15, 15, 35, 0.8);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.visualizations div {
  text-align: center;
}

.visualizations canvas {
  border: 1px solid #00ff00;
  background-color: rgba(15, 15, 35, 0.8);
}

.visualizations h3 {
  color: #00ff00;
  margin-bottom: 10px;
}

.cta-button {
    display: inline-block;
    background-color: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    border: 2px solid #00ff00;
}

.cta-button:hover {
    background-color: rgba(0, 255, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.tutorial {
    background-color: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tutorial:hover {
    background-color: rgba(0, 255, 0, 0.15);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    transform: translateY(-3px);
}

.tutorial h3 {
    margin-top: 0;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #00ff00;
    background-color: rgba(31, 31, 63, 0.5);
}

input, textarea {
    background: rgba(15, 15, 35, 0.7);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 10px;
    border-radius: 5px;
}

button {
    background-color: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

button:hover {
    background-color: rgba(0, 255, 0, 0.3);
}

::selection {
    background-color: rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0f0f23;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.3);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 0, 0.5);
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 10px;
    }

    h1 {
        font-size: 2.8em;
    }

    .tagline {
        font-size: 1.6em;
    }

    .tagline.emphasis {
        font-size: 2.2em;
    }

    .section-title h2 {
        font-size: 2em;
    }

    .preset-buttons {
        flex-wrap: wrap;
    }

    .preset-button {
        margin: 5px;
        padding: 10px 20px;
        font-size: 1.1em;
    }
	
	.visualization-container {
    flex-basis: 100%;
	}
  
	.visualization-container canvas {
    height: 120px;
	}
	
    .effect-control {
        width: 100%;
	}

    .controls {
        padding: 15px;
    }

    .control-group {
        margin-bottom: 25px;
    }

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

    .control {
        width: 100%;
        margin: 10px 0;
    }

    .slider {
        width: 100%;
        max-width: 300px;
    }

    .waveform-selector {
        flex-wrap: wrap;
        justify-content: center;
    }

    .waveform-option {
        margin: 5px 10px;
    }

    .tutorial {
        padding: 20px;
    }

    .tutorial h3 {
        font-size: 1.6em;
    }

    .cta-button {
        font-size: 1.1em;
        padding: 12px 20px;
    }

    .main-nav ul {
        flex-wrap: wrap;
    }

    .main-nav li {
        margin: 5px 10px;
    }

    .main-nav a {
        font-size: 1.1em;
        padding: 8px 12px;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-form, .contact-info {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5em;
    }

    .tagline {
        font-size: 1.4em;
    }

    .tagline.emphasis {
        font-size: 1.9em;
    }

    .section-title h2 {
        font-size: 1.8em;
    }
	
	.visualization-container h3 {
    font-size: 1em;
	}
  
	.visualization-container canvas {
    height: 100px;
	}

    .control-group h4 {
        font-size: 1.3em;
    }

    .preset-button {
        font-size: 1em;
        padding: 8px 15px;
    }

    .main-nav a {
        font-size: 1em;
        padding: 6px 10px;
    }
}

@media (max-width: 3520px) {
    #piano-container {
        overflow-x: auto;
    }
}

@media (max-width: 1200px) {
  .piano-keyboard {
    height: 150px;
  }
  
  .black-key {
    height: 55%;
  }
}