@font-face {
    font-family: Junction;
    src: url(/static/fonts/Junction-regular.otf);
    font-weight: 400;
}
@font-face {
    font-family: Junction;
    src: url(/static/fonts/Junction-bold.otf);
    font-weight: 700;
}
@font-face {
    font-family: Junction;
    src: url(/static/fonts/Junction-light.otf);
    font-weight: 200;
}

@font-face {
    font-family: "Alan Sans";
    src: url(/static/fonts/AlanSans-Regular.woff2);
    font-weight: 400;
}
@font-face {
    font-family: "Alan Sans";
    src: url(/static/fonts/AlanSans-Light.woff2);
    font-weight: 200;
}
@font-face {
    font-family: "Alan Sans";
    src: url(/static/fonts/AlanSans-Bold.woff2);
    font-weight: 700;
}
@font-face {
    font-family: "Alan Sans";
    src: url(/static/fonts/AlanSans-SemiBold.woff2);
    font-weight: 500;
}
@font-face {
    font-family: "Alan Sans";
    src: url(/static/fonts/AlanSans-ExtraBold.woff2);
    font-weight: 800;
}
@font-face {
    font-family: "Alan Sans";
    src: url(/static/fonts/AlanSans-Black.woff2);
    font-weight: 900;
}

* {
    --header-border-size: 4px;
    --amber: 255, 126, 0;
    --amethyst: 156, 67, 244;
    --emerald: 80, 200, 120;
    --jade: 1, 136, 27;
    --rose-quartz: 245, 169, 184;
    --ruby: 224, 16, 95;
    --sapphire: 15, 82, 186;
    --sulphur: 241, 225, 75;
    --turquoise: 48, 213, 200;
    --basalt: 22, 22, 22;
    --slate: 66, 66, 66;
    --marble: 239, 239, 239;

    --text-color-light: var(--marble);
    --text-color-dark: var(--basalt);
    --accent-color: var(--amethyst);
    --accent-color-2: var(--rose-quartz);
    --bg-color: var(--basalt);
}

body {
    display: flex;
    width: 100vw;
    height: 100vh;
    background: url(/static/andromeda.jpeg);
    background-size: cover;
    font-family: "Alan Sans", Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Junction, Helvetica, sans-serif;
}

.wrapper {
    margin: auto;
    width: 100%;
    height: 100%;
    max-width: 1024px;
    max-height: 768px;
    background: url(/static/aero_glass.png), linear-gradient(135deg,rgba(var(--rose-quartz), 0.5) 0%, rgba(var(--amethyst), 0.5) 100%);
    border-radius: 50px;
    box-shadow: 5px 10px 10px;
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
}

header {
    position: relative;
    height: 150px;
}

.hdr-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 12.5% 12.5% 12.5% 12.5% 12.5% 12.5% 12.5% 12.5%;
    grid-template-rows: 30px 30px 30px 30px 30px;
}

.col-span-2 {
    grid-column-end: span 2;
}

.col-span-3 {
    grid-column-end: span 3;
}

.col-span-4 {
    grid-column-end: span 4;
}

.col-span-6 {
    grid-column-end: span 6;
}

.col-span-8 {
    grid-column-end: span 8;
}

.row-span-2 {
    grid-row-end: span 2;
}

.hdr-content {
    z-index: 2;
}

.hdr-content .logo {
    grid-column-end: span 2;
    grid-row-end: span 5;
    padding: 1rem 0;
}

.hdr-content .logo img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.hdr-content .links {
    grid-column-start: 3;
    grid-column-end: 9;
    grid-row-end: span 2;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 0.25rem 50px 0 1rem;
}

.hdr-content .links a {
    font-size: 1.25rem;
    color: white;
    text-shadow: 0 0 5px white;
    z-index: 2;
    text-decoration: none;
    font-family: Junction, Helvetica, sans-serif;
    height: 100%;
    line-height: 60px;
}

.hdr-content .links a:hover {
    text-shadow: 0 0 20px white;
    cursor: pointer;
}

.hdr-bg {
    z-index: 1;
}

.hdr-bg .hdr-top {
    background: linear-gradient(to bottom, rgb(var(--basalt)), color-mix(in lab, rgb(var(--basalt)), black 40%));
    border-radius: 50px 50px 0 0;
}

.hdr-bg .hdr-center-left {
    background: linear-gradient(to bottom, color-mix(in lab, rgb(var(--basalt)), black 40%), black, color-mix(in lab, rgb(var(--basalt)), black 20%));
}

.hdr-bg .hdr-marquee {
    background-color: color-mix(in lab, rgb(var(--accent-color)) 30%, rgb(var(--basalt)));
    border-radius: 17px 0;
    position: relative;
    background-clip: padding-box;
    border: solid var(--header-border-size) rgb(var(--accent-color));
    border-bottom: 0;
    border-right: 0;
    grid-column-end: span 6;
    grid-row-end: span 2;
}

.hdr-bg .hdr-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: var(--header-border-size);
    left: 0;
    z-index: -2;
    background: linear-gradient(to bottom, color-mix(in lab, rgb(var(--basalt)), black 40%), color-mix(in lab, rgb(var(--basalt)), black 20%));
    margin: calc(-1 * var(--header-border-size));
    margin-right: 0;
    border-radius: 0 0 17px 0;
}

.hdr-bg .hdr-bottom-left {
    background: linear-gradient(to bottom, color-mix(in lab, rgb(var(--basalt)), black 20%), rgb(var(--basalt)));
    border-radius: 0 0 17px 0;
    border: var(--header-border-size) solid rgb(var(--accent-color));
    border-top: 0;
    border-left: 0;
    position: relative;
    background-clip: padding-box;
    margin-right: calc(-1 * var(--header-border-size));
}

.menu-button {
    display: none;
}
#links-menu {
    background: linear-gradient(to bottom, rgb(var(--basalt)), color-mix(in lab, rgb(var(--basalt)), black 40%), rgb(var(--basalt)));
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: scroll;
    grid-column-start: 1;
    grid-column-end: 9;
    height: 100vh;
    padding-right: 0;
    flex-direction: column;
    display: none;
}



.marquee {
    --gap: 1rem;
    position: relative;
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: var(--gap);
}

.marquee_content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    gap: var(--gap);
    min-width: 100%;
    padding: 0;
}

.marquee_content a {
    color: rgb(var(--accent-color-2));
    text-shadow: 0 0 2px rgb(var(--text-color-light));
}
.marquee_content a:hover {
    text-shadow: 0 0 10px rgb(var(--text-color-light));
}


@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}
.marquee_content {
    animation: scroll 20s linear infinite;
}
.marquee:hover .marquee_content {
    animation-play-state: paused;
}
.marquee_content > * {
  flex: 0 0 auto;
  color: white;
  margin: 2px;
  padding: 1rem 2rem;
  border-radius: 0.25rem;
  text-align: center;
  list-style-type: none;
}

/* Pause animation when reduced-motion is set */
@media (prefers-reduced-motion: reduce) {
  .marquee__content {
    animation-play-state: paused !important;
  }
}

.hdr-content .marquee {
    border-radius: 17px 0;
    grid-column-start: 3; grid-column-end: span 6; grid-row-start: 3; grid-row-end: span 2;
    background-clip: padding-box;
    margin-left: var(--header-border-size);
}

.dropdown {
    position: relative;
}
.dropdown a {
    line-height: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    margin-top: calc(var(--header-border-size) * -1);
    background-color: rgb(var(--bg-color));
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgb(var(--basalt));
    z-index: 6;
    flex-flow: column nowrap;
}
.dropdown-content > * {
    padding: 0 1rem;
}

.dropdown:hover .dropdown-content {
    display: flex;
}


main {
    padding: calc(47px + 0.5rem) 1rem 1rem;
    margin-top: -47px;
    overflow: scroll;
    width: 100%;
    height: calc(100% - 3rem - 103px);
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: space-around;
}

main a {
    color: rgb(var(--accent-color-2));
}

main > aside {
    display: flex;
    flex-flow: column nowrap;
    flex: 2 1 0;
    background: color-mix(in lab, rgba(var(--accent-color), 0.75) 30%, rgb(var(--basalt)));
    padding: 1rem;
    color: white;
    border: var(--header-border-size) solid rgb(var(--accent-color));
    border-radius: 17px;
    min-height: 100%;
    position: sticky;
    top: 0;
    left: -1rem;
    right: 0;
    background-clip: padding-box;
    overflow: scroll;
    align-items: flex-start;
}

main > aside .button-container {
    flex: 2 1;
    display: block;
    margin-top: 0.5rem;
    line-height: 1;
}

._88x31 {
    width: 88px;
    height: auto;
    display: inline-block;
}
footer ._88x31 {
    margin: 0 0.25rem;
}
footer a {
    margin: 0 0.25rem;
    display: flex;
}
footer a ._88x31 {
    margin: auto;
}

main > section {
    flex: 8 1 0;
}

main > section > * {
    margin: 0.5rem 0;
}
main > section > *:first-child {
    margin-top: 0;
}

footer {
    display: flex;
    flex-direction: row;
    width: 100%;
    position: absolute;
    bottom: 0;
    justify-content: center;
    align-items: center;
    background-color: rgba(20, 20, 20, 0.5);
    height: 3rem;
    color: white;
}

article {
    background: color-mix(in lab, rgba(var(--accent-color), 0.75) 30%, rgb(var(--basalt)));
    padding: 1rem;
    color: white;
    border: var(--header-border-size) solid rgb(var(--accent-color));
    border-radius: 10px;
    min-height: 100%;
}

article.post-summary {
    min-height: unset;
}

article p {
    margin-top: 1rem;
}

#mobile-buttons {
    display: none;
}
#mobile-footer-text {
    display: none;
}

@media screen and (max-width: 600px) {
    .wrapper {
        margin: unset;
        border-radius: 0;
        max-height: unset;
    }

    .hdr-bg .hdr-top {
        border-radius: 0;
    }

    .hdr-bg .hdr-center-left, .hdr-bg .hdr-bottom-left {
        display: none;
    }
    .hdr-content .marquee, .hdr-bg .hdr-marquee {
        grid-column-start: 1;
        grid-column-end: span 8;
    }
    #hdr-links {
        display: none;
    }
    .hdr-content .logo {
        grid-column-end: unset;
        grid-row-end: unset;
        position: absolute;
        top: 0;
        left: 0;
        padding: 5px;
        height: 60px;
    }
    .menu-button {
        display: inline;
        position: absolute;
        right: 0;
        top: 0;
        z-index: 6;
    }
    #links-menu:not(:popover-open):not(:dialog[open]) {
        display: none;
    }
    #links-menu:popover-open {
        display: flex;
    }
    main {
        flex-direction: column;
    }
    main > aside {
        position: relative;
        left: unset;
        order: 999;
        min-height: unset;
    }
    footer img._88x31 {
        display: none;
    }

    #mobile-buttons {
        display: flex;
        flex-direction: row;
        order: 1000;
        background: rgba(61, 15, 107, 0.75);
        padding: 1rem;
        color: white;
        border: var(--header-border-size) solid #8d2af0;
        border-radius: 10px;
        flex-grow: 0;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    #mobile-buttons img {
        height: 31px;
        width: 88px;
        padding: 0;
        margin: 0;
    }
    #mobile-buttons a {
        padding: 0;
        margin: 0;
    }
    #mobile-buttons > * {
        flex-grow: 0;
    }
    footer .non-mobile-footer-text {
        display: none;
    }
    #mobile-footer-text {
        display: unset;
    }
}