/* Snake */

@media (min-width: 600px) {
    .home_body {
        white-space: pre;
        margin-bottom: 10px;
        font-size: 15pt;
        line-height: 1.2;
        text-align: center;
        position: relative;
    }
}

@media (max-width: 599px) {
    .home_body {
        white-space: pre;
        margin-bottom: 10px;
        font-size: 10.5pt;
        line-height: 1.2;
        text-align: center;
        position: relative;
    }
}


.typewriter_snake {
    display: inline-block;
    overflow: hidden; /* Ensures the content is not revealed until the animation */
    border-right: .15em solid #207733; /* The typewriter cursor */
    white-space: nowrap; /* Prevents text from wrapping */
    position: absolute; /* Removes it from the document flow */
    left: 50%; /* Center the effect */
    transform: translateX(-50%); /* Adjust position for centering */
    animation: typing 3s steps(40, end), blink-caret .75s step-end infinite, hide-caret 0s 6s forwards;
    width: 19ch; /* Set a fixed width for the animation duration */    
}

@keyframes typing {
    from { width: 0; }
    to { width: 19ch; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #207733; }
}

@keyframes hide-caret {
    0% { border-color: #207733; }
    100% { border-color: transparent; }
}

/* Tetris */

.contact_intro {
    white-space: pre;
    margin-bottom: 10px;
    padding-top: 10px;
    line-height: 0.9;
    text-align: center;
    position: relative;
}

/* pong */

.typewriter_pong {
    display: inline-block;
    overflow: hidden; /* Ensures the content is not revealed until the animation */
    border-right: .15em solid #207733; /* The typewriter cursor */
    white-space: nowrap; /* Prevents text from wrapping */
    position: absolute; /* Removes it from the document flow */
    left: 50%; /* Center the effect */
    transform: translateX(-50%); /* Adjust position for centering */
    animation: typing_pong 3.5s steps(40, end), blink-caret .75s step-end infinite, hide-caret 0s 6s forwards;
    width: 22ch; /* Set a fixed width for the animation duration */    
}

@keyframes typing_pong {
    from { width: 0; }
    to { width: 22ch; }
}

.about_body_wide {
    white-space: pre;
    margin-bottom: 10px;
    font-size: min(1.3vw, 15pt);
    line-height: 1;
    text-align: center;
    position: relative;
}

