@font-face {
    font-family: 'DSEG7';
    src: url('dseg7-classic-latin-400-normal.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

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

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    padding: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.clock {
    font-size: 50px;
    font-weight: 400;
    letter-spacing: 8px;
    font-family: 'DSEG7', monospace;
    line-height: 1.2;
    padding: 10px 0;
    overflow: visible;
}

.clock .digit {
    position: relative;
    display: inline-block;
}

.clock .digit-shadow {
    color: #1a1a1a;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.clock .digit-foreground {
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.sequencer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

.instrument-row {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
}

.step {
    width: 40px;
    height: 40px;
    border: 1px solid #ffffff;
    background-color: #000000;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.step.active {
    background-color: #ffffff;
}

.step.playing {
    outline: 2px solid #ffff00;
    outline-offset: -2px;
}

.button-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.play-pause-btn,
.help-btn {
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 12px 24px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
}

.help-btn {
    padding: 12px;
    width: 40px;
}

.play-pause-btn:hover,
.help-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #000000;
    border: 1px solid #ffffff;
    padding: 40px;
    position: relative;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
}

.modal-close:hover {
    background-color: #ffffff;
    color: #000000;
}

.modal-body {
    color: #ffffff;
    font-family: 'Courier New', monospace;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .container {
        gap: 40px;
        padding: 20px;
    }
    
    .clock {
        font-size: 36px;
        letter-spacing: 4px;
    }
    
    .sequencer {
        gap: 15px;
        padding: 0 10px;
    }
    
    .step {
        width: calc((100vw - 60px - 120px) / 16);
        min-width: 20px;
        max-width: 40px;
        height: calc((100vw - 60px - 120px) / 16);
        min-height: 20px;
        max-height: 40px;
        aspect-ratio: 1;
    }
    
    .instrument-row {
        gap: 4px;
    }
    
    .button-group {
        gap: 8px;
    }
    
    .play-pause-btn,
    .help-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .help-btn {
        padding: 10px;
        width: 36px;
    }
}

@media (max-width: 480px) {
    .container {
        gap: 30px;
        padding: 15px;
    }
    
    .clock {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .sequencer {
        gap: 12px;
        padding: 0 5px;
    }
    
    .step {
        width: calc((100vw - 40px - 60px) / 16);
        min-width: 16px;
        max-width: 30px;
        height: calc((100vw - 40px - 60px) / 16);
        min-height: 16px;
        max-height: 30px;
    }
    
    .instrument-row {
        gap: 3px;
    }
}

