html, body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background-image: url('assets/background.png');
    background-repeat: repeat;
    background-position: top left;
    background-attachment: fixed;
}

.banner {
    position: fixed;
    top: 12px;
    left: 12px;
    width: 220px;
    height: auto;
    z-index: 1000;
    image-rendering: -webkit-optimize-contrast;
}

.page-wrap {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    box-sizing: border-box;
}

.nav-buttons {
    font-size: 16px;
    margin-bottom: 16px;
}

.nav-buttons a {
    text-decoration: none;
    color: #1b1612;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-buttons a:hover {
    color: #44372e;
}

.textbox {
    background: #eee5da;
    border: 3px solid #44372e;
    border-radius: 14px;
    padding: 14px;
    width: min(600px, 90%);
    max-width: 800px;
    height: 240px;
    box-sizing: border-box;
    overflow-y: scroll;
    overflow-x: hidden;
    line-height: 1.5;
    font-size: 15px;
    color: #1b1612;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    -ms-overflow-style: none;
    scrollbar-width: none;
    font-family: monospace;
}

.textbox::-webkit-scrollbar {
    display: none;
}

.error-404 {
    font-size: 3rem;
    font-weight: bold;
    color: #1b1612;
    margin: 0;
    text-align: center;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

@media (max-width: 640px) {
    .error-404 {
        font-size: 2rem;
    }

    .page-wrap {
        padding-top: 84px;
    }
}

@media (max-width: 420px) {
    .banner {
        width: 168px;
    }

    .textbox {
        height: 200px;
        padding: 12px;
        font-size: 14px;
    }
}
