* {
box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #09090b;
    color: #8fff9f;
    font-family: "Courier New", monospace;
    overflow-x: hidden;
}

.hidden {
    display: none;
}

/* TERMINAL */

.terminal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 10vw;
    background:
    radial-gradient(
        circle at top left,
        rgba(50, 255, 120, 0.05),
                    transparent 35%
    ),
    #09090b;
}

.terminal-content {
    max-width: 900px;
}

.type-line {
    margin: 12px 0;
    min-height: 1.5em;
    font-size: clamp(18px, 2.4vw, 25px);
    line-height: 1.5;
}

.hidden-button {
    opacity: 0;
    pointer-events: none;
}

.hidden-button.show-button {
    opacity: 1;
    pointer-events: auto;
}

button {
    margin-top: 38px;
    width: fit-content;
    padding: 15px 28px;
    background: transparent;
    color: #8fff9f;
    border: 1px solid #8fff9f;
    border-radius: 999px;
    font-family: "Courier New", monospace;
    font-size: 18px;
    cursor: pointer;
    transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    opacity 0.5s ease;
}

button:hover {
    background: #8fff9f;
    color: #09090b;
    transform: translateY(-2px);
}

/* OMG SCREEN */

.excited {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #09090b;
    color: white;
    font-family: Georgia, serif;
    font-size: clamp(30px, 5vw, 52px);
    text-align: center;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.excited.show {
    opacity: 1;
}

/* LETTER */

.letter {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    overflow: hidden;
    background:
    radial-gradient(
        circle at 15% 10%,
        rgba(140, 110, 255, 0.32),
                    transparent 30%
    ),
    radial-gradient(
        circle at 90% 20%,
        rgba(255, 180, 230, 0.15),
                    transparent 30%
    ),
    radial-gradient(
        circle at top,
        #5b4b8a 0%,
        #2d2742 45%,
        #0b0b10 100%
    );
    color: white;
    font-family: Georgia, serif;
    opacity: 0;
    transform: translateY(24px);
    transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.letter.show {
    opacity: 1;
    transform: translateY(0);
}

/* GLASS CARD */

.card {
    position: relative;
    z-index: 10;
    width: min(850px, 100%);
    padding: clamp(32px, 7vw, 72px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    backdrop-filter: blur(18px);
    overflow: hidden;
    box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(180, 150, 255, 0.14),
    0 0 140px rgba(255, 190, 235, 0.06);
}

/* KLEINE GLITZERSTERNE AUF DER KARTE */

.card::before {
    content: "✦   ✧   ✦   ✧   ✦   ✧";
    position: absolute;
    inset: 0;
    padding: 24px 26px;
    color: rgba(255, 245, 255, 0.9);
    font-family: Georgia, serif;
    font-size: 18px;
    letter-spacing: 24px;
    line-height: 1;
    pointer-events: none;
    text-shadow:
    0 0 8px rgba(255, 255, 255, 0.8),
    0 0 18px rgba(220, 195, 255, 0.45);
    opacity: 0.9;
    z-index: 1;
}

.card::after {
    content: "✧        ✦        ✧";
    position: absolute;
    right: 18px;
    bottom: 20px;
    color: rgba(255, 240, 255, 0.85);
    font-family: Georgia, serif;
    font-size: 16px;
    letter-spacing: 16px;
    pointer-events: none;
    text-shadow:
    0 0 8px rgba(255, 255, 255, 0.7),
    0 0 16px rgba(255, 210, 245, 0.35);
    opacity: 0.85;
    z-index: 1;
}

.card > * {
    position: relative;
    z-index: 2;
}

/* TEXT */

h1 {
    margin-top: 0;
    margin-bottom: 48px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.08;
    font-weight: 400;
}

.message {
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.9;
}

.message p {
    margin: 0 0 34px;
}

.signature {
    margin-top: 60px;
    margin-bottom: 0;
    font-size: 26px;
    font-style: italic;
}

/* SCHWEBENDER GLITZER IM HINTERGRUND */

.glitter {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    bottom: -30px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
    0 0 8px rgba(255, 255, 255, 0.9),
    0 0 24px rgba(255, 220, 255, 0.8);
    opacity: 0;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }

    15% {
        opacity: 0.9;
    }

    85% {
        opacity: 0.55;
    }

    100% {
        transform: translateY(-120vh) scale(1.3);
        opacity: 0;
    }
}

/* HANDY */

@media (max-width: 600px) {
    .terminal {
        padding: 35px 24px;
    }

    .letter {
        padding: 24px 14px;
    }

    .card {
        border-radius: 22px;
    }

    .card::before {
        padding: 18px 16px;
        font-size: 14px;
        letter-spacing: 14px;
    }

    .card::after {
        right: 10px;
        bottom: 14px;
        font-size: 13px;
        letter-spacing: 10px;
    }

    .message {
        line-height: 1.8;
    }

    .message p {
        margin-bottom: 28px;
    }
}

