/* TaskSchmiede Teaser - Console Aesthetic */

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

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.page {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The computer screen frame */
.screen {
    /* 4:3 aspect ratio container - slightly taller to avoid scrollbar */
    width: 100%;
    max-width: 900px;
    aspect-ratio: 4 / 3.2;
    background-color: #f2f2f2;
    border: 3px solid #999999;
    border-radius: 8px;
    padding: 30px 40px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.screen-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10px;
}

.terminal-inner {
    width: fit-content;
}

/* Text styling */
.line {
    font-size: 14px;
    line-height: 1.4;
    color: #2d2d2d;
    white-space: pre-wrap;
    word-wrap: break-word;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.line.visible {
    opacity: 1;
    transform: translateY(0);
}

.line.blank {
    height: 0.6em;
}

.prompt {
    color: #5a5a5a;
    font-weight: 700;
}

.typed {
    color: #4a4a4a;
}

.text {
    color: #2d2d2d;
}

.bold {
    font-weight: 700;
}

.italic {
    font-style: italic;
    color: #555555;
}

.center-text {
    display: block;
    text-align: center;
    margin-left: -0.5em;
}

/* Blinking cursor */
.cursor {
    animation: blink 1s step-end infinite;
    font-weight: 700;
}

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

.cursor-line {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .screen {
        padding: 20px 25px;
        border-width: 2px;
    }

    .line {
        font-size: 12px;
    }
}

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

    .screen {
        padding: 15px 20px;
        aspect-ratio: 3 / 4;
    }

    .line {
        font-size: 11px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }

    .screen {
        border: 1px solid #ccc;
        box-shadow: none;
    }

    .line {
        opacity: 1 !important;
        transform: none !important;
    }

    .cursor {
        display: none;
    }
}
