@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

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

html,
body {
    width: 100%;
    min-height: 100vh;
    overflow: auto;
}

body {
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.terminal {
    width: 1080px;
    min-width: 1080px;
    height: 1350px;
    min-height: 1350px;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.terminal-header {
    background: #f0f0f0;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid #cccccc;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.terminal-title {
    color: #666666;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    margin-left: 12px;
}

.terminal-body {
    font-family: 'JetBrains Mono', monospace;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.6;
    height: calc(100% - 40px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.012) 2px,
            rgba(0, 0, 0, 0.012) 4px);
    z-index: 10;
}

.content-box {
    border: 1px solid #cccccc;
    border-radius: 6px;
    padding: 28px 36px;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 960px;
}

pre {
    margin: 0;
    white-space: pre;
    line-height: 1.4;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}

.prompt {
    color: #1a1a1a;
    font-weight: 700;
}

.claude-color {
    color: #D97757;
}

.claude-label {
    color: #D97757;
    font-weight: 700;
}

.dim {
    color: #aaaaaa;
}

.bold {
    color: #000000;
    font-weight: 700;
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.025;
}

.section-divider {
    border: none;
    border-top: 1px solid #dddddd;
    margin: 16px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 6px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    margin: 12px 0 12px 16px;
}

.info-label {
    color: #666666;
    font-weight: 700;
}

.info-value {
    color: #000000;
    font-weight: 700;
}

.topics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 40px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    margin: 12px 0 12px 16px;
}

.topic-item::before {
    content: '▸ ';
    color: #1a1a1a;
}

.particle {
    position: absolute;
    pointer-events: none;
    z-index: 3;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0;
    animation: particleFloat 4s ease-in-out infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    20% {
        opacity: 0.12;
    }

    80% {
        opacity: 0.12;
    }

    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

/* Desktop Icon Styles */
.terminal-icon {
    position: fixed;
    top: 40px;
    right: 40px;
    width: 100px;
    display: none;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.2s;
}

.terminal-icon:hover {
    transform: scale(1.05);
}

.icon-box {
    width: 70px;
    height: 80px;
    background: #f8f8f8;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    border: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Document fold effect */
.icon-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 20px 20px 0;
    border-color: transparent transparent #e0e0e0 transparent;
}

.icon-inner {
    width: 40px;
    height: 40px;
    background: #2d2d2d;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.icon-inner::after {
    content: '>_';
    color: #27c93f;
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: bold;
}

.icon-label {
    margin-top: 8px;
    color: #1a1a1a;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 8px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: 0;
        background: #ffffff;
    }

    .terminal {
        width: 100%;
        min-width: 0;
        height: 100vh;
        min-height: 100vh;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .terminal-header {
        display: none;
    }

    .terminal-body {
        height: 100vh;
        padding: 10px;
        font-size: 13px;
    }

    .content-box {
        padding: 15px 10px;
        border: none;
    }

    .ascii-container pre {
        font-size: 2.25vw;
        /* Increased by 50% from 1.5vw */
        line-height: 1.1;
        letter-spacing: -0.5px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 2px;
        margin-left: 8px;
        font-size: 13px;
    }

    .topics-grid {
        grid-template-columns: 1fr;
        gap: 4px;
        margin-left: 8px;
        font-size: 13px;
    }

    .section-divider {
        margin: 12px 0;
    }

    #desktop-icon {
        display: none !important;
    }

    pre {
        font-size: 13px;
    }

    .scanline,
    .particle {
        display: none !important;
    }
}