@import url("https://fonts.googleapis.com/css2?family=VT323&display=swap");

body {
    font-size: 18px;
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(to bottom, transparent, #0003), #959175;
}

main {
    margin: auto;
    width: 100%;
}

.outer {
    margin: 48px auto;
    border: 22px solid;
    border-color: #706f51 #beb999 #9e937d #353922;
    border-radius: 6px;
    width: 800px;
    height: 500px;
    position: relative;
    outline: 3px solid #0004;
    box-shadow: 0px 0px 16px black;
}

.terminal {
    box-shadow: inset 0px 0px 16px black;
    line-height: 1.25;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    font-family: "VT323", monospace;
    background: 0 0 / auto 8px linear-gradient(to bottom, transparent, #0003),
        linear-gradient(to bottom, transparent, #0005),
        radial-gradient(farthest-corner at 0% 0%, #444 0%, #333 25%, transparent 35%),
        #1f1f1f;
    color: lime;
    padding: 1rem 1.5rem;
    border: 16px solid;
    border-color: #333 #222 #222 #1111;
    padding-top: 3rem;
    text-shadow: 0px 0px 4px #0f0a;

    &::before {
        content: "Welcome to the FORTUNE-9 OS";
        transform: scaleX(2);
        transform-origin: top left;
        width: calc(50% - 24px);
        text-align: center;
        display: block;
        position: absolute;
        top: 1rem;
    }

    &,
    aside {
        display: flex;
        gap: 16px;
    }

    aside {
        flex: 2;
        flex-direction: column;
    }

    .index,
    .gabe,
    .main {
        border: 3px solid green;
        flex: 3;
        padding: 16px 24px;
        display: block;
        position: relative;
        img {
            margin-top: 1rem;
            height: 120px;
        }
    }

    .main {
        overflow-y: auto;
    }
}

p {
    white-space: pre;
    margin: 0;

    &:not(:last-child) {
        margin-bottom: 1rem;
    }

    max-width: 100%;
    overflow-wrap: break-word;
}

a {
    color: inherit;
}

li {
    list-style: square;
}

.title {
    transform-origin: left top;
    transform: scaleX(2);
    width: fit-content;

    &:not(:first-child) {
        margin-top: 2rem;
    }

    &::before {
        content: ">";
        margin-right: 0.25ch;
    }

    &::after {
        content: "";
        display: inline-block;
        vertical-align: baseline;
        margin-left: 0.5ch;
        width: 0.5ch;
        height: 1rem;
        background: lime;
    }
}

.crack {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    object-fit: fill;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    pointer-events: none;
    opacity: 0.25;
    z-index: 1;
}

ul {
    margin-left: -1rem;
    margin-top: 0.5rem;
}

hr {
    color: lime
}