@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: 'TimesNewPixel';
  src: url('../assets/fonts/timesnewpixel-webfont.woff2') format('woff2'),
       url('../assets/fonts/timesnewpixel-webfont.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: 'HelvetiPixel';
    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;
    max-height: 600px;
    overflow-x: hidden;
    display: flex;
}

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

header {
    max-width: 30%;
    min-width: 30%;
}

nav {
    min-width: 30%;
}

#pfp {
    position: absolute;
    margin-bottom: auto;
    bottom: -2.5rem;
}

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

.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: 1 / 1;
    margin-bottom: 3.5rem;
}

.sidebar-img h1 {
    position: absolute;
    bottom: -4.5rem;
    left: 140px;
    font-size: 3rem;
    font-weight: 500;
    color:#406BED;
    background-color: #fff;
    box-shadow: 5px 5px #ff9152;
}

.main-content {
    min-width: 67%;
    padding: 0 1rem 1rem 1rem;
    overflow: auto;
    overflow-x: hidden;
    scrollbar-color: #fff;
    scrollbar-width: thin;
}

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

nav ul li {
    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; */
}

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

.sidebar-btm {
    align-self: flex-end;
    margin-bottom: 0;
    scrollbar-width: thin;
    max-height: 100px;
    overflow: auto;
}

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


/* marquee code from https://codepen.io/jamesbarnett/pen/kQebQO */
.marquee {
    box-sizing: border-box;
    height: 1.5rem;
    border: 1px solid #fff;
    overflow: hidden;
    position: relative;
    width: 100%;
    background: #406BED;
    margin-bottom: 4px;
    padding: 2px;
    box-shadow: 0.5rem 0.5rem #fbe1ba;
    z-index: -1;
}

.marquee div {
    display: block;
    animation: marquee 10s linear infinite;
    width: 200%;
    position: absolute;
    overflow: hidden;
    text-align: left;
}

.marquee span {
    /* float: left;
    width: 50%; */
    padding-right: 40%
}

@keyframes marquee {
  0% { left: 0; }
  100% { left: -100%; }
}

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

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

footer a {
    color: #406BED;
}

.button-container {
    display: flex;
    flex-wrap:wrap;
    text-align: center;
    gap: 0.5rem;
}

.buttons {
    text-align: center;
    background-color: #406BED;
    margin-top:4px;
    padding: 4px;
    box-sizing: border-box;
    box-shadow: 0.5rem 0.5rem #fbe1ba;
    width: 100%;
}

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

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

.main-boxes {
    margin-top: 1rem;
    display:flex;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
}

.main-boxes:first-child {
    border: 1px dotted #fff;
}

.main-boxes .main-box {
    max-height: 200px;
    overflow: auto;
    scrollbar-width: thin;
}

.main-boxes ul, .main-boxes li, .list-formatted {
    list-style-type: '- ';
    margin: 0 0 0 0.5rem;
    padding: 0 0 0 0;
}

.main-box {
    width: 50%;
    padding: 0 0.5rem 0.5rem;
    /* margin: auto; */
}

.main-box-header {
    position:sticky;
    top: 0;
    background-color: #406BED;
    margin: 0;
}

.main-box#oc-feature {
    margin: auto;
    width: 80%;
    text-align: center;
    margin-bottom: 1rem;
}

#oc-feature h3, p {
    margin: 0 0 0.5rem;
}

#floating-img {
    position: relative;
}

#floating-img img {
    position: absolute;
    right: -8rem;
    top: -12rem;
}

#floating-img img:hover {
    transition: 0.2s;
    rotate: -3deg;
}

.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+                           */
}

.btn-link:hover {
    background: transparent;
}

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

.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;
}

.site-update {
    display: block;
    margin-bottom: 1rem;
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (max-width: 1090px) {
    .sidebar-img h1 {
        margin-left: 1rem;
        font-size: 2.5rem;
        margin-bottom: 2rem;
        left: 41%;
    }
    #pfp {
        width: 41%;
    }
} 

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (max-width: 880px) {
    .sidebar-img h1 {
        margin-left: 1rem;
        font-size: 2.25rem;
        margin-bottom: 2rem;
        left: 41%;
    }
    #pfp {
        width: 41%;
    }

    #floating-img img {
        width: 80px;
        height:auto;
        position: absolute;
        right: 0;
        top: -3rem;
    }
} 

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (max-width: 800px) {
    /* SIDEBAR -> HEADER */
    header {
        min-width: 30%;
        max-width: 30%;
    }
    .sidebar-img {
        position: relative;
        height:64px;
        display:flex;
        margin-bottom: 4rem;
    }

    .sidebar-img h1 {
        margin-left: 1rem;
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    #floating-img {
        display: none;
    }
    
    .sidebar-content {
        flex-direction: column;
    }
    
    nav ul {
        text-align: center;
        margin-left: 0;
        margin-bottom: 2rem;
    }
    .sidebar-btm {
        max-height: 100px;
        overflow: auto;
        margin-bottom: 1rem;
    }
    /* END SIDEBAR */
}



 /* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    body {
        overflow: auto;
    }
    .container {
        max-width: 95%;
    }
    .main-content {
        padding: 0;
    }
    main {
        flex-direction: column;
        max-height: none;
    }
    main, .marquee, .buttons {
        box-shadow: 0rem 0.5rem #fbe1ba;
    }
    /* SIDEBAR -> HEADER */
    header {
        min-width: 100%;
        max-width: 100%;
        max-height: none;
    }
    .sidebar-img {
        position: relative;
        height:128px;
        display:flex;
        margin-bottom: 1rem;
    }

    .sidebar-img h1 {
        font-size: 3rem;
        position: relative;
        margin: auto;
        width: 60%;
        bottom: 0;
        left: 0;
    }

    #pfp {
        position: relative;
        margin-bottom: 0;
        bottom: 0;
        width: 128px;
    }
    
    nav ul {
        text-align: center;
        margin-left: 0;
        margin-bottom: 2rem;
    }
    /* END SIDEBAR */

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

    .main-boxes {
        flex-direction: column;
    }
    .main-box {
        width: 100%;
    }
}