@import url('https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&display=swap');

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

body {
    background-color: #000;
    color: #00ff00;
    font-family: 'VT323', 'Share Tech Mono', monospace;
    font-size: 16px;
    line-height: 1.2;
    overflow: hidden;
    cursor: crosshair;
}

.terminal {
    width: 100vw;
    height: 100vh;
    padding: 20px;
    position: relative;
    background: linear-gradient(0deg, #000 0%, #001100 100%);
}

.header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #00ff00;
    padding-bottom: 10px;
}

.title {
    font-size: 2.5em;
    text-shadow: 0 0 10px #00ff00;
    animation: flicker 0.15s infinite linear;
}

.subtitle {
    font-size: 1.2em;
    margin-top: 10px;
    opacity: 0.8;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    height: calc(100vh - 150px);
}

.terminal-window {
    border: 2px solid #00ff00;
    background: #000;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.terminal-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 2px,
        rgba(0, 255, 0, 0.03) 4px
    );
    pointer-events: none;
}

.window-title {
    background: #00ff00;
    color: #000;
    padding: 5px 10px;
    margin: -17px -17px 15px -17px;
    font-weight: bold;
    text-align: center;
}

.command-line {
    background: #000;
    border: 1px solid #00ff00;
    padding: 10px;
    margin-top: 20px;
    font-family: 'Share Tech Mono', monospace;
}

.prompt {
    color: #00ff00;
    margin-right: 10px;
}

.input-field {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    outline: none;
    width: calc(100% - 50px);
}

.output-area {
    height: 200px;
    overflow-y: auto;
    border: 1px solid #00ff00;
    padding: 10px;
    margin-top: 15px;
    background: #000;
}

.ascii-art {
    font-family: 'Courier New', monospace;
    white-space: pre;
    text-align: center;
    font-size: 12px;
    line-height: 1;
}

.status-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #00ff00;
    color: #000;
    padding: 5px 20px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 255, 0, 0.3);
    animation: scan 3s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.glitch {
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.guitar-chords {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    padding: 40px;
    overflow-y: auto;
}

.guitar-chords.active {
    display: block;
}

.chord-interface {
    max-width: 800px;
    margin: 0 auto;
}

.key-selection {
    text-align: center;
    margin-bottom: 30px;
}

.key-buttons {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.key-btn {
    background: #000;
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 15px 10px;
    font-family: 'VT323', monospace;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.key-btn:hover {
    background: #00ff00;
    color: #000;
    transform: scale(1.05);
}

.key-btn.selected {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 20px #00ff00;
}

.chord-progression {
    border: 2px solid #00ff00;
    padding: 20px;
    margin: 20px 0;
    background: #000;
}

.progression-title {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #00ff00;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 10px;
}

.chord-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.chord-box {
    border: 1px solid #00ff00;
    padding: 15px;
    text-align: center;
    background: #000;
}

.chord-name {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #00ff00;
    font-weight: bold;
}

.tablature {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.2;
    white-space: pre;
    text-align: left;
    background: #000;
    padding: 10px;
    border: 1px solid #00ff00;
    margin-top: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #00ff00;
    color: #000;
    border: none;
    padding: 10px 20px;
    font-family: 'VT323', monospace;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid #00ff00;
}

.close-btn:hover {
    background: #000;
    color: #00ff00;
}

.generate-btn {
    background: #00ff00;
    color: #000;
    border: 2px solid #00ff00;
    padding: 15px 30px;
    font-family: 'VT323', monospace;
    font-size: 18px;
    cursor: pointer;
    margin: 20px auto;
    display: block;
    transition: all 0.3s ease;
}

.generate-btn:hover {
    background: #000;
    color: #00ff00;
    box-shadow: 0 0 20px #00ff00;
}

.progression-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.progression-type {
    background: #000;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progression-type:hover {
    background: #00ff00;
    color: #000;
}

.progression-type.selected {
    background: #00ff00;
    color: #000;
}
