@font-face {
  font-family: 'HelvetiPixel';
  src: url('../assets/fonts/helvetipixel-webfont.woff2') format('woff2'),
       url('../assets/fonts/helvetipixel-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-smooth: never;
  -webkit-font-smoothing: none;
}

@font-face {
  font-family: 'Bigmalist';
  src: url('../assets/fonts/bigmalistfixed.woff2') format('woff2'),
       url('../assets/fonts/bigmalistfixed.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-smooth: never;
  -webkit-font-smoothing: none;
}

@font-face {
  font-family: 'Outfit';
  src: url('../assets/fonts/Outfit.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-smooth: never;
  -webkit-font-smoothing: none;
}
@font-face {
  font-family: 'MartianMono';
  src: url('../assets/fonts/MartianMono-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-smooth: never;
  -webkit-font-smoothing: none;
}

::selection {
  color: #161731;
  background: #ff9152;
}

::-moz-selection { /* Code for Firefox */
  color: #161731;
  background: #ff9152;
}

body {
    height: 100vh;
    font-family: 'Bigmalist';
    background:url('../assets/imgs/index/tile bg.gif');
    font-size: 1rem;
    color: #FFFEEA;
    overflow: hidden;
    display: flex;
}

body a {
    color: #ff9152;
    transition: 0.2s;
}

body a:hover {
    background: #ff9152;
    color: #161731;
    transition: 0.2s;
}

main {
    box-sizing: border-box;
    padding: 1rem;
    max-width: 1080px;
    background-color: #406BED;
    box-shadow: 0.5rem 0.5rem #fbe1ba;
    overflow-x: hidden;
    display: flex;
    justify-content: space-between;
    max-height: 80vh;
}

.container {
    margin: auto;
    max-width: 1080px;
}

header {
    width: 18%;
    display:flex;
    flex-direction: column;
    font-family: 'HelvetiPixel';
    max-height: 100%;
    overflow: auto;
    scrollbar-width: thin;
}

nav {
    width: 100%;
}

#pfp {
    width: 100%;
    max-width: 300px;
    transition: none;
}

.sidebar-desc {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 1rem;
}

.sidebar-content {
    display:flex;
    justify-content: space-between;
}

.sidebar-img {
    position: relative;
    background:url('../assets/imgs/index/pixel warp thing.png');
    background-size:cover;
    background-repeat:no-repeat;
    width: 100%;
    height: relative;
    aspect-ratio: 3 / 1;
    margin-bottom: 1rem;
}

.main-content {
    line-height: 1.25rem;
    width:80%;
    padding: 0 1rem 1rem 1rem;
    margin-left: 1rem;
    scrollbar-color: #fff;
    scrollbar-width: thin;
    border-left: 1px dashed #fff;
    overflow: auto;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 1rem 0 0 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible;
    width: 100%;
}

nav ul li {
    box-sizing: border-box;
    width: 100%;
    padding: 0.25rem 0.5rem 0.25rem 0.5rem;
    margin: 4px 0;
    border: 1px solid #fff;
    transition: 0.2s;
}

nav ul li:hover {
    transition: 0.2s;
    background: #fff;
    color: #406BED;
    box-shadow: 3px 3px #ff9152;
}

nav ul a:hover {
    background: transparent;
}

header ul:last-child li {
    margin-bottom: 0;
}

header a {
    text-decoration: none;
    color: #fff;
}

.sidebar-status {
    /* border: 1px solid #fff; */
    padding: 0.25rem;
    /* margin-top: 8px; */
    max-height: 128px;
    overflow: auto;
    scrollbar-width: thin;
}

.sidebar-status a {
    color: #ff9152;
    text-decoration: underline;
}

.sidebar-btm {
    align-self: flex-end;
    margin: 1rem auto 0 auto;
}

.sidebar-btm h4{
    position:sticky;
    top: 0;
    background: #406BED;
}

footer {
    font-family: 'HelvetiPixel';
    text-align: center;
    color: #406BED;
    margin-top: 1rem;
}

footer span {
    background: #fbe1ba;
    padding: 0 0.5rem;
    color: #161731;
}

footer a {
    color: #406BED;
}

h1,h2,h3,h4 {
    margin-bottom: 0;
    font-weight: 500;
    text-shadow: 2px 2px #161731;
}

.main-content h1, .main-content h2, .main-content h3, .main-content h4 {
    margin-bottom: 1rem;
}

h2::selection,h3::selection,h4::selection {
    text-shadow: 2px 2px #fff;
}

.heading {
    text-shadow: 2px 2px #161731;
}

.heading::selection {
    text-shadow: 2px 2px #fff;
}

.divider {
    text-align: center;
    margin: 8px;
}

hr {
    border-top: 1px dashed #fff;
    color: transparent;
}

figcaption {
    clear:both;
    font-family: 'HelvetiPixel';
}
figure {
    margin: 0;
    flex-wrap: wrap;
    align-items:flex-start;
    justify-content:space-evenly;
}

figure figure {
    margin-bottom: 1rem;
}

img {
    width: 100%;
}

.buttons {
    margin-top: 1rem;
    text-align: center;
}

.btn-88x31 {
    image-rendering: optimizeSpeed;             /* STOP SMOOTHING, GIVE ME SPEED  */
    image-rendering: -moz-crisp-edges;          /* Firefox                        */
    image-rendering: -o-crisp-edges;            /* Opera                          */
    image-rendering: -webkit-optimize-contrast; /* Chrome (and eventually Safari) */
    image-rendering: pixelated;                 /* Universal support since 2021   */
    image-rendering: optimize-contrast;         /* CSS3 Proposed                  */
    -ms-interpolation-mode: nearest-neighbor;   /* IE8+                           */
    width: 88px;
}

.tag {
    background: #fbe1ba;
    color: #406BED;
}

.taglist a {
    text-decoration: none;
    color: inherit;
}

.blogpost-list {
    padding-left: 1rem;
    line-height: 2rem;
}

.card-list {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-evenly;  
}

.card-list:last-child {
    border-right: 0;
}

.card-list img {
    width: 100%;
}

.card {
    /* box-sizing: border-box; */
    border: 1px solid #fff;
    background: #406BED;
    max-width: 230px;
    padding: 1rem;
    transition: 0.2s;
}

.card-list a:hover {
    background: transparent;
    color: inherit;
}

.card-list a {
    text-decoration: none;
    color: inherit;
}

.card-list h2,.card-list h3, .card-list h4 {
    text-decoration: underline;
    color: #ff9152;
}

.card:hover h2 {
    text-shadow: 2px 2px #406BED;
}


.card:hover {
    box-shadow: 4px 4px #ff9152;
    background: #fff;
    transition: 0.2s;
    color:#161731;
}

.img-grp-no-resize img {
    width: auto;
}
.btn-link:hover {
    background: transparent;
}

.btn-link img:hover {
    transform:scale(1.1);
    transform:rotate(-3deg);
    transition: 0.2s;
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (max-width: 800px) {
    /* body {
        overflow: auto;
    } */
    .container {
        margin-top: 2rem;
        /* overflow: none; */
        max-width: 95%;
        width: 95%;
        max-height: 80vh;
    }
    main {
        max-height: 80vh;
    }
    header {
        /* overflow: auto; */
        max-height: 80vh;
    }
    
} 

 /* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    body {
        overflow: auto;
    }
    .main-content {
        padding: 0;
    }
    main {
        flex-direction: column-reverse;
        max-height: none;
    }
    main, .marquee, .buttons {
        box-shadow: 0rem 0.5rem #fbe1ba;
    }
    img {
        max-width: 100%;
    }
    /* SIDEBAR -> HEADER */
    header {
        min-width: 100%;
        max-width: 100%;
        max-height: none;
        display:flex;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .sidebar-img {
        background:url('../assets/imgs/index/pixel warp thing long.png');
        background-size:contain;
        position: relative;
        height:32px;
        display:flex;
        margin: 1rem 0 0.5rem;
    }
    
    .sidebar-desc {
        width: 60%;
        max-width: 80%;
    }
    #pfp {
        max-width: 100px;
        flex-grow: 1;
    }
    nav {
        width: 100%;
        flex-basis: 100%;
    }
    
    .buttons {
        margin-top: 0;
    }

    .sidebar-content {
        width: 100%;
    }
    
    nav ul {
        text-align: center;
        margin: 0 0 1rem;
    }
    .sidebar-btm {
        max-height: 128px;
        overflow: auto;
    }
    /* END SIDEBAR */

    #oc-feature img {
        width: 110px;
    }

    .main-boxes {
        flex-direction: column;
    }
    .main-box {
        width: 100%;
    }
    .main-content {
        line-height: 1.25rem;
        width:100%;
        padding: 0;
        margin-left: 0;
        scrollbar-width: thin;
        border: none;
        max-height: none;
        overflow: auto;
    }
}