:root {
    --bg-color: #3a3535;
    --post-color: white;
    --text-color-invert: black;
    --text-color: white;
    --accent: #c70000;
    --shadow: 5px 5px 5px #00000050;
    --std-margin: 0.5em;

    --text-outline: drop-shadow(2px 2px 0 var(--text-color)) 
        drop-shadow(-2px 2px 0 var(--text-color)) 
        drop-shadow(2px -2px 0 var(--text-color)) 
        drop-shadow(-2px -2px 0 var(--text-color))
}

@font-face {
    font-family: "Ancient Computer";
    src: url('/fonts/AncientComputerRegular.ttf') format('truetype');
    font-weight: normal;
}



* {
    cursor: url('/i/cursor.png'), auto;
}

*::selection {
    color: var(--text-color-invert);
    background-color: var(--accent);
}

body {
    background-color: var(--bg-color);
    background-image: url(/i/weirdweb/bayerdark.png);
    font-family: "Ancient Computer", Courier, monospace;
    font-size: 24px;
    color: var(--text-color);
}

a {
    color: var(--accent);
    text-decoration-style: dotted;
}

a:hover {
    color: var(--text-color);
    cursor: url('/i/cursor2.png'), auto;
}

.external {
    text-decoration-style: solid;
}

#back-btn {
    position: absolute;
    left: 50px;

    font-size: 2.5em;
    font-weight: bold;

    display: flex;
    align-items: center;
    gap: 1rem;
    
    /* Adjusting text styling since this is technically a link */
    text-decoration: none;
    color: var(--text-color);
}

#back-btn:hover {
    color: var(--text-color-invert);
    filter: var(--text-outline);
}

#back-btn:hover::after {
    content: "Return";
    font-size: 0.5em;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
}

h1 {
    border-bottom: 2px solid var(--text-color);
    margin-bottom: 0;
}

h1 a {
    text-decoration: none;
    color: var(--text-color);
}

h1 a:hover {
    color: var(--accent);
}

h2 {
    margin-top: var(--std-margin);
    margin-bottom: 0;
}

p {
    margin: var(--std-margin);
    text-align: center;
}

h1, h2 {
    font-size: 200%;
}

ol {
    display: grid;
    margin: 10px auto;
    padding: 0;
    border: 2px solid var(--text-color);
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

ol > li {
    border: 3px double var(--text-color);
    position: relative;
    list-style-position: inside;
    padding: 10px;
    height: 85px;
}

ol > span {
    border: 1px dotted var(--text-color)
}

ol > span:nth-child(-n+7) {
    background: var(--text-color-invert);
    height: 36px;
}

ol > span, li > span, li > a {
    display: flex;
    align-items: center;
    justify-content: center;
}

ol > li, ol > span:nth-child(n+8){
    background-color: #00000018;
}

footer {
    margin: 1em;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========= MOBILE FORMATTING ========= */

@media screen and (max-width: 1200px) {
    #back-btn {
        left: 20px;
        top: 0px;
    }
    
    ol {
        display: block;
        border: none;
    }

    ol > li, ol > span {
        border: none;
        list-style-position: outside;
        height: auto;
        padding: unset;
    }
    ol > span:nth-child(-n+7) {
        display: none;
    }
    
    ol > li, ol > span:nth-child(n+8){
    background-color: unset;
}
}