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

html {
    overflow-y: scroll;
}

:root {
    --c64-blue: #4040e0;
    --c64-light-blue: #8772f9;
    --c64-dark-blue: #0000aa;
    --c64-darker-blue: #422ead;
    --c64-white: #ffffff;
    --c64-light: #a0a0ff;
    --c64-green: #60ff60;
    --c64-red: #ff6060;
}

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

body {
    background: linear-gradient(135deg, #2a2a6e 0%, var(--c64-blue) 50%, #2a2a6e 100%);
    color: var(--c64-light);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 0;
    position: relative;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.disk-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.container {
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.main-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

.title-text {
    font-size: 4rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--c64-light-blue), var(--c64-white), var(--c64-light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(135, 114, 249, 0.5), 0 2px 4px rgba(0, 0, 0, 0.8), 0 4px 8px rgba(0, 0, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.2em;
    animation: glitch 3s infinite;
    position: relative;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--c64-light);
    letter-spacing: 0.3em;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 4px 8px rgba(0, 0, 0, 0.6);
}

.inspire-quote {
    font-size: 0.9rem;
    color: var(--c64-green);
    letter-spacing: 0.15em;
    margin-top: 15px;
    opacity: 0.85;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-style: italic;
}

.title-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(135, 114, 249, 0.2) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 0 0 30px rgba(135, 114, 249, 0.5);
    }

    25% {
        text-shadow: -2px 0 30px rgba(255, 96, 96, 0.5);
    }

    50% {
        text-shadow: 2px 0 30px rgba(96, 255, 96, 0.5);
    }

    75% {
        text-shadow: 0 0 30px rgba(135, 114, 249, 0.5);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
}

.file-input-container {
    background: var(--c64-dark-blue);
    border: 3px solid var(--c64-light-blue);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 40px;
    min-height: 250px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .file-input-container:hover {
        background: #1111bb;
        border-color: var(--c64-white);
        box-shadow: 0 0 20px rgba(135, 114, 249, 0.5);
    }

    .file-input-container.drag-over {
        background: #2222cc;
        border-color: var(--c64-green);
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(96, 255, 96, 0.6);
    }

.file-input-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.file-input-active {
    display: none;
    font-size: 1.5rem;
    color: var(--c64-green);
    font-weight: bold;
}

.file-input-container.drag-over .file-input-content {
    display: none;
}

.file-input-container.drag-over .file-input-active {
    display: block;
}

.disk-icon {
    color: var(--c64-light-blue);
    transition: transform 0.3s ease;
}

.file-input-container:hover .disk-icon {
    transform: rotate(15deg) scale(1.1);
}

.file-input-text {
    font-size: 1.2rem;
    color: var(--c64-white);
    font-weight: bold;
    letter-spacing: 0.1em;
}

.file-input-subtext {
    font-size: 0.9rem;
    color: var(--c64-light);
    opacity: 0.8;
}

.file-input-hidden {
    display: none;
}

.directory-display {
    background: var(--c64-dark-blue);
    border: 8px solid var(--c64-light-blue);
    border-radius: 4px;
    min-height: 300px;
    padding: 16px;
    font-size: 16px;
    line-height: 1.1;
    white-space: pre;
    overflow-x: auto;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(135, 114, 249, 0.3);
}

    .directory-display canvas {
        image-rendering: pixelated;
        image-rendering: -moz-crisp-edges;
        image-rendering: pixelated;
        width: 768px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

.loading-message {
    color: var(--c64-light);
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    width: 100%;
    white-space: normal;
}

.disk-header {
    background-color: var(--c64-light);
    color: var(--c64-dark-blue);
    display: inline;
}

.error {
    color: var(--c64-red);
    background-color: rgba(128, 0, 0, 0.2);
    padding: 15px;
    border: 2px solid var(--c64-red);
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}

.footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--c64-light);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .title-text {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .directory-display canvas {
        width: 100%;
        max-width: 768px;
    }
}
