* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    background: #050505;
    color: #00ff66;

    font-family: "Courier New", Courier, monospace;

    display: flex;
    justify-content: center;
    align-items: center;
}

#terminal {
    width: 100%;
    max-width: 900px;
    min-height: 500px;

    padding: 40px;
    background: #050505;
}

#screen {
    width: 100%;
}

#output {
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 18px;
}

/* =========================================
   EINGABEFELD
   ========================================= */

#input-area {
    display: flex;
    align-items: center;

    margin-top: 20px;

    font-size: 18px;
}

.prompt {
    margin-right: 10px;
}

#command-input {
    flex: 1;

    background: transparent;
    border: none;
    outline: none;

    color: #00ff66;

    font-family: inherit;
    font-size: 18px;
}

#command-input::selection {
    background: #00ff66;
    color: #050505;
}


/* =========================================
   WORDLE
   ========================================= */

#wordle-board {
    display: flex;
    flex-direction: column;

    gap: 8px;

    margin-top: 25px;
    margin-bottom: 20px;
}


/* Eine Zeile */

.wordle-row {
    display: flex;
    gap: 8px;
}


/* Einzelne Kachel */

.wordle-tile {
    width: 42px;
    height: 42px;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 1px solid #333;

    color: #00ff66;

    font-size: 20px;
    font-weight: bold;

    background: #080808;
}


/* Richtiger Buchstabe */

.wordle-tile.correct {
    border: 2px solid #00ff66;
    background: #092b18;
}


/* Buchstabe enthalten */

.wordle-tile.present {
    border: 2px solid #c9a227;
    background: #211d08;
    color: #d8b83c;
}


/* Buchstabe nicht enthalten */

.wordle-tile.absent {
    border: 2px solid #333;
    background: #0b0b0b;
    color: #555;
}

/* =========================================
   TERMINAL CURSOR
   ========================================= */

#command-input {
    caret-color: #00ff66;
}


/* =========================================
   WORDLE KACHEL-ANIMATION
   ========================================= */

.wordle-tile {
    opacity: 0;
    transform: scale(0.85);

    animation: tileAppear 0.18s ease-out forwards;
}

.wordle-tile:nth-child(1) {
    animation-delay: 0.00s;
}

.wordle-tile:nth-child(2) {
    animation-delay: 0.04s;
}

.wordle-tile:nth-child(3) {
    animation-delay: 0.08s;
}

.wordle-tile:nth-child(4) {
    animation-delay: 0.12s;
}

.wordle-tile:nth-child(5) {
    animation-delay: 0.16s;
}

@keyframes tileAppear {

    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* =========================================
   LEICHTES TERMINAL-FLICKERN
   ========================================= */

#terminal {
    animation: terminalStart 0.4s ease-out;
}

@keyframes terminalStart {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}