* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #000000;
    color: #ffffff;
    font-family: Georgia, serif;
}

/* Loading screen */

#loadingScreen {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px;
    background: #000000;

    opacity: 1;
    transition: opacity 1s ease;
}

#loadingScreen p {
    max-width: 600px;
    margin: 0;

    text-align: center;
    font-size: 24px;
    line-height: 1.6;

    animation: loadingText 1.5s ease;
}

#loadingScreen.fade-out {
    opacity: 0;
}

@keyframes loadingText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Password page */

#login {
    display: none;

    min-height: 100vh;
    padding: 30px;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    opacity: 0;
}

#login.show {
    display: flex;
    animation: fadeIn 1s ease forwards;
}

#login h1 {
    margin-bottom: 10px;
    font-size: 42px;
}

#login p {
    font-size: 18px;
    line-height: 1.6;
}

input {
    width: min(100%, 300px);
    margin: 20px 0 12px;
    padding: 15px;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;

    font-size: 17px;
    text-align: center;
    outline: none;
}

input:focus {
    border-color: rgba(255, 255, 255, 0.8);
}

button {
    padding: 13px 34px;

    border: none;
    border-radius: 10px;

    background: #ffffff;
    color: #000000;

    font-size: 17px;
    cursor: pointer;

    transition: transform 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
}

#error {
    min-height: 25px;
    color: #ff8c8c;
}

/* Actual website */

#website {
    display: none;
    opacity: 0;
}

#website.show {
    display: block;
    animation: fadeIn 1s ease forwards;
}

.container {
    width: min(88%, 750px);
    margin: 60px auto;
    padding: 50px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.container h1 {
    margin-top: 0;
    margin-bottom: 40px;

    text-align: center;
    font-size: 42px;
}

.container p {
    margin-bottom: 25px;

    font-size: 19px;
    line-height: 1.9;
}

iframe {
    display: block;
    margin: 35px 0;

    border: none;
    border-radius: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Phone sizing */

@media (max-width: 600px) {
    #loadingScreen p {
        font-size: 20px;
    }

    .container {
        width: 92%;
        margin: 25px auto;
        padding: 28px 22px;
    }

    .container h1 {
        font-size: 33px;
    }

    .container p {
        font-size: 17px;
    }
}

.letter-section {
    margin-bottom: 90px;
}

.letter-section h2 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 30px;
    font-weight: normal;
}

.final-section {
    min-height: 70vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.typewriter {
    visibility: hidden;
    white-space: pre-wrap;
}

.typewriter.typing {
    visibility: visible;
}

.typewriter::after {
    content: "|";
    margin-left: 3px;
    animation: blink 0.7s infinite;
}

.typewriter.finished::after {
    display: none;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}