@font-face {
    font-family: Kelmscott;
    src: url("https://rawcdn.githack.com/seeddisperser/kelmscott-mono/main/KelmscottMono.otf");
}

* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 5rem;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.8);
    text-align: left;
    font-family: "Libertinus Mono", monospace;
    font-size: 25px;
    color: rgba(255, 255, 255, 0.9);
    background: rgb(160, 174, 192);
    background-image: url("assets/images/bg-helldiscgrey2000.webp");
    background-position: center 1200px;
    background-attachment: fixed;
}

main {
    flex: 1;
}

header {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.ascii {
    font-family: monospace;
    font-size: 0.25em !important;
    display: grid;
    white-space: pre;
    line-height: 1;
    color: rgba(211, 215, 220, 0.8);
}

.columns {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
    margin-bottom: 2rem;
}

.project {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.largeview {
    display: inline-block;
}

.smallview {
    display: none;
}


@media screen and (max-width: 1100px) {
    .largeview {
        display: none;
    }

    .smallview {
        display: inline-block;
    }
}

h1 {
    font-family: Kelmscott, monospace;
    text-transform: uppercase;
    font-size: 2.34em;
    margin: 0;
    line-height: 0.8;
}

h2 {
    font-family: Kelmscott, monospace;
    font-size: 1.17em;
    margin: 0;
    line-height: 0.9;
}

h3 {
    font-family: Kelmscott, monospace;
    font-size: 1.17em;
    margin: 0;
    line-height: 0.9;
}

h4 {
    font-size: 1em;
    text-transform: uppercase;
    font-weight: bolder;
    margin: 0;
    line-height: 1.1;
}

p, ol {
    font-size: 1em;
    margin: 0;
    line-height: 1.1;
}

hr {
    border: 2.5px ridge rgb(229, 255, 235);
    box-shadow: 1px 1px 1px rgba(0,0,0,0.8);

}

footer {
    text-align: left;
    padding-bottom: 1rem;
    margin-top: 1em;
    line-height: 1.1;
    font-style: italic;
}

small {
    font-size: 0.75em;
    font-style: italic;
    margin: 0;
}

a {
    color: rgba(255, 255, 0, 0.9);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


ol {
    list-style: none;
    counter-reset: item;
    padding-left: 0;
}

ol li {
    counter-increment: item;
}

ol li::before {
    content: counter(item) ". ";
}


img {
    border: ridge rgb(229, 255, 235) 5px;
    border-radius: 5px;
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 1px 1px 1px rgba(0,0,0,0.8);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button {
    border: 2.5px outset rgb(229, 255, 235);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 1px 1px 1px rgba(0,0,0,0.8);
    color: rgba(0,0,0,0.5);
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
}

.button:hover, .button.active {
    border: 2.5px inset hsla(120, 10%, 20%);
    box-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
    background: rgba(0,0,0,0.1);
    color: rgba(0,0,0,0.6);
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

#darkmode {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 1.3em;
    text-align: center;
    text-decoration: none;
}

body.dark, body.dark .modal-content {
    background-image: url("assets/images/bg-helldiscdark2000.webp");
    color:rgb(255, 255, 255);
}

body.dark .button {
    background: rgba(255, 255, 255, 0.5);
    color: rgb(0, 0, 0);
}

body.dark .button:hover, body.dark .button.active {
    background: rgba(255, 255, 255, 0.78);
    color: rgba(0,0,0,0.6);
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    justify-content: center;
    align-items: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: rgb(160, 174, 192);
    background-image: url("assets/images/bg-helldiscgrey2000.webp");
    background-position: center 1200px;
    background-attachment: fixed;
    border: ridge #e5ffeb 5px;
    border-radius: 5px;
    max-width: 1200px;
    width: 90%;
    position: relative;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.8);
}

.modal-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-bottom: 2.5px inset hsla(120, 10%, 20%);
    border-radius: 5px;
}

.modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-credits {
    font-weight: bolder;
    margin: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.75em;
    line-height: 1.1;
}

@media (max-width: 700px) {
    body {
        padding: 0 1.5rem;
        font-size: clamp(18px, 4vw, 25px);
        background-attachment: scroll;
    }
    
    .largeview {
        display: none;
    }

    .smallview {
        display: inline-block;
    }
    
    .columns {
        grid-template-columns: 1fr;
    }
    
    img {
        border-width: min(1vw, 5px);
    }

    #darkmode {
        right: 0.5rem;
    }

    .modal-content {
        border-width: min(1vw, 5px);
        width: 100%;
    }

    .modal-video-wrapper {
        border-width: min(1vw, 2.5px);
    }
}
