
:root {
    --background-color: #1a1a2e;
    --box-color: #16213e;
    --text-color: #e7e7e7;
    --accent-color: #e94560;
    --border-color: #4e4e9d;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

header {
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: var(--background-color);
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 10px;
    display: inline-flex;
    font-size: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: #cc61be;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--text-color);
}

.outer-container {
    display: flex;
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    padding-top: 100px;
    box-sizing: border-box;
    flex-wrap: wrap;
    justify-content: center;
}

.flex-container {
    display: flex;
    z-index: 2;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
    justify-content: center;
}

.content-box {
    width: 100%;
    max-width: 900px;
    padding: 30px;
    border: 2px solid var(--border-color);
    box-sizing: border-box;
    font-size: 20px;
    z-index: 1;
    position: relative;
}

footer {
    text-align: center;
    padding: 60px 0;
    margin-top: 60px;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
    z-index: 10;
}

@media (max-width: 768px) {
    body, html {
        font-size: 16px;
    }

    header {
        padding: 1rem 0.5rem;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .outer-container, .flex-container {
        flex-direction: column;
        padding: 20px;
        padding-top: 80px;
    }

    .content-box {
        margin: 0 auto;
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .side-image.left,
    .side-image.right {
        display: none;
    }

    #logo {
        font-size: 28px;
        animation: none;
        width: auto;
        border: none;
        text-shadow: none;
        overflow: visible;
        white-space: normal;
    }

    h1, .main-heading {
        margin-top: 2rem;
    }
}

img {
    max-width: 100%;
    height: auto;
}

.side-image {
    height: 800px;
    width: 200px;
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
}

.side-image.left {
    left: calc(50% - 600px / 2 - 400px);
}

.side-image.right {
    right: calc(50% - 600px / 2 - 400px);
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: orange; }
}

h1 {
    font-family: 'Arial', sans-serif;
    font-size: 28px;
    color: #FFFFFF;
    overflow: hidden;
    border-right: .15em solid orange;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation:
        typewriter 4s steps(44) 1s forwards,
        blink-caret .75s step-end infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.7);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 5px,
        transparent 35px,
        transparent 35px
    );
    background-size: 100% 200%;
    animation: move-scan-lines 2s linear infinite forwards;
    z-index: 9999;
}

@keyframes move-scan-lines {
    to {
        background-position: 0 100%;
    }
}

@keyframes typewriter-logo {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret-logo {
    from, to { border-color: transparent; }
    50% { border-color: orange; }
}

#logo {
    font-family: 'Mono', 'Consolas', 'MS PGothic', sans-serif;
    font-size: 50px;
    color: #FFFFFF;
    overflow: hidden;
    white-space: nowrap;
    border-right: .15em solid orange;
    width: 0;
    animation: typewriter-logo 4s steps(30) 1s forwards,
               blink-caret-logo .75s step-end infinite;
    text-shadow: 0 0 10px #FFF, 0 0 20px #FFF, 0 0 30px #FF00DE, 0 0 40px #FF00DE;
}
