/* Google Fonts */
@import url(https://fonts.googleapis.com/css?family=Anonymous+Pro);

/* Base styles for all screens */
* {
    color: white;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    margin: 0;
    font-family: 'Anonymous Pro', monospace;
    overflow: hidden;
    background-size: contain;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    font-size: 16px;
}

body.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

h1,
p,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

.container {
    width: 90%;
    height: 85%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0);
    border-radius: 0 50px 0 50px;
}

/* Default content sizing (for screens up to 1920px) */
.content {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    animation: showContent 1s forwards;
    animation-delay: 1s;
    position: absolute;
    width: 90%;
    height: 80%;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 55%;
}

.content h1 {
    position: absolute;
    margin-top: 5%;
    margin-left: 15%;
    font-size: 24px;
}

.content a {
    text-decoration: none;
    color: white;
    font-size: 24px;
    text-align: center;
    position: relative;
    left: 17.5%;
    top: 20%;
    padding: 10px;
    margin-top: 20%;
    margin: 10px;
    display: inline-block;
    transition: 1s;
    border-bottom: 1px solid white;
}

.content p,
.content ul {
    width: 40%;
    color: white;
    font-size: 26px;
    text-align: center;
    position: relative;
    left: 17.5%;
    top: 25%;
    padding: 10px;
    margin-top: 25%;
    margin: 10px;
    display: inline-block;
    transition: 1s;
    border-bottom: 1px solid white;
}

.content li {
    list-style-type: none;
    margin-bottom: 10px;
}

.content a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotateZ(5deg);
    transition: 1s;
}

.menu-rt {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    animation: showContent 1s forwards;
    animation-delay: 5s;
    position: absolute;
    width: fit-content;
    height: fit-content;
    background: rgba(255, 255, 255, 0.1);
    left: 72.5%;
    top: 5%;
    border: 0.5px solid white;
}

.menu-rt a {
    text-decoration: none;
    color: white;
    font-size: 24px;
    text-align: center;
    padding: 0 10px;
    transition: 1s;
}

.menu-rt a:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transition: 1s;
}

.feed {
    width: 20%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid white;
    position: absolute;
    left: 82.5%;
    top: 0%;
    overflow-y: auto;
}

.article {
    width: 90%;
    height: fit-content;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid white;
    position: relative;
    transform: translate(-50%, 0%);
    left: 50%;
    border-bottom: 1px solid white;
    margin-top: 15px;
    margin-bottom: 15px;
}

.article .title {
    font-size: 24px;
    font-weight: bold;
    padding: 10px;
}

.article .article-content {
    padding: 10px;
    padding-left: 15px;
    font-size: 16px;
}

.article .footer {
    font-size: 12px;
    padding: 10px;
}

/* Hide scrollbar */
::-webkit-scrollbar {
    display: none;
}

/* Animations */
@keyframes showContent {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.border_lt {
    position: absolute;
    top: 42.5%;
    left: 42.5%;
    width: 15%;
    height: 15%;
    border-top: 2px solid white;
    border-left: 2px solid white;
    animation: resize_lt 1s forwards;
    animation-delay: 2.5s;
    animation-fill-mode: forwards;
}

.border_rb {
    position: absolute;
    bottom: 42.5%;
    right: 42.5%;
    width: 15%;
    height: 15%;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    animation: resize_rt 1s forwards;
    animation-delay: 2.5s;
    animation-fill-mode: forwards;
}

@keyframes resize_lt {
    from {
        top: 42.5%;
        left: 42.5%;
    }

    to {
        top: 0%;
        left: 0%;
    }
}

@keyframes resize_rt {
    from {
        bottom: 42.5%;
        right: 42.5%;
    }

    to {
        bottom: 0%;
        right: 0%;
    }
}

.typewriter {
    margin-top: 40px;
    margin-left: 10px;
}

.typewriter h1 {
    width: fit-content;
    color: white;
    overflow: hidden;
    border-right: 0.15em solid white;
    white-space: nowrap;
    letter-spacing: 0.25em;
    margin: 0 auto;
    font-size: 36px;
    animation:
        typing 1.5s steps(4, end),
        blink-caret 1s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 45%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: white;
    }
}

/* Media Queries for Scaling */
/* For 2K screens (2560px) and above */
@media screen and (min-width: 2560px) {
    body {
        font-size: 24px;
    }

    .content h1 {
        font-size: 36px;
    }

    .content a,
    .menu-rt a {
        font-size: 34px;
    }

    .content p,
    .content ul {
        font-size: 34px;
    }

    .article .title {
        font-size: 32px;
    }

    .article .article-content {
        font-size: 24px;
    }

    .article .footer {
        font-size: 20px;
    }

    .typewriter h1 {
        font-size: 52px;
    }

    /* Scale up spacing */
    .content a,
    .content p,
    .content ul {
        padding: 15px;
        margin: 15px;
    }

    .article {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .article .title,
    .article .article-content,
    .article .footer {
        padding: 15px;
    }

    .article .article-content {
        padding-left: 20px;
    }

    .typewriter {
        margin-top: 60px;
        margin-left: 20px;
    }
}

/* For 4K screens (3840px) and above */
@media screen and (min-width: 3840px) {
    body {
        font-size: 34px;
    }

    .content h1 {
        font-size: 56px;
    }

    .content a,
    .menu-rt a {
        font-size: 48px;
    }

    .content p,
    .content ul {
        font-size: 48px;
    }

    .article .title {
        font-size: 48px;
    }

    .article .article-content {
        font-size: 36px;
    }

    .article .footer {
        font-size: 28px;
    }

    .typewriter h1 {
        font-size: 72px;
    }

    /* Scale up spacing */
    .content a,
    .content p,
    .content ul {
        padding: 20px;
        margin: 20px;
    }

    .article {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .article .title,
    .article .article-content,
    .article .footer {
        padding: 20px;
    }

    .article .article-content {
        padding-left: 30px;
    }

    .typewriter {
        margin-top: 80px;
        margin-left: 30px;
    }

    /* Scale up borders */
    .border_lt,
    .border_rb {
        border-width: 3px;
    }

    .content a,
    .content p,
    .content ul {
        border-bottom-width: 2px;
    }

    .menu-rt {
        border-width: 1px;
    }

    .feed,
    .article {
        border-width: 2px;
    }
}

/* Phone screens - Show unavailable message */
@media screen and (max-width: 1280px) {
    body {
        background-size: cover;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        position: relative;
    }

    /* Hide all direct children of body */
    body>* {
        display: none !important;
    }

    /* Create our mobile message overlay */
    body::after {
        content: "This cyberpunk experience is optimized for desktop. Please visit from a computer for the full effect.";
        color: #00ff00;
        font-family: 'Anonymous Pro', monospace;
        font-size: 1.5rem;
        text-align: center;
        padding: 2rem;
        max-width: 80%;
        text-shadow: 0 0 5px #00ff00;
        border: 1px solid #00ff00;
        background-color: rgba(0, 0, 0, 0.9);
        line-height: 1.5;
        animation: glitch 1s linear infinite;
        display: block !important;
        position: relative;
        z-index: 1000;
    }

    @keyframes glitch {

        0%,
        100% {
            text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
        }

        25% {
            text-shadow: -2px 0 5px #ff00ff, 2px 0 5px #00ffff;
        }

        75% {
            text-shadow: 2px 0 5px #ff00ff, -2px 0 5px #00ffff;
        }
    }
}
