:root {
    --starYellow: #ffe44c;
}

@font-face {
    font-family: EverythingWillBeOk;
    src: url('/Assets/fonts/OMORIfonts/OMORI_GAME.ttf');
}

@font-face {
    font-family: Normal;
    src: url('/Assets/fonts/OMORIfonts/OMORI_GAME2.ttf');
}

@font-face {
    font-family: Determination;
    src: url('/Assets/fonts/undertaleFonts/DeterminationMonoWebRegular.ttf');
}

@font-face {
    font-family: MonsterFriend;
    src: url('/Assets/fonts/undertaleFonts/MonsterFriendFore.otf');
}

@font-face {
    font-family: simple;
    src: url('/Assets/fonts/Simpleplanner.ttf');
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100vw;
    height: 100vh;

    background: url("/Assets/BGs/trspHearts.gif"), var(--pinkIce);

    font-family: var(--fontStack);
}

#wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;

    padding-bottom: 130px;
}

#monitor {
    height: 700px;
    z-index: 2;

    max-width: 1000px;
    max-height: 600px;

    display: flex;
    justify-content: center;

    background: url("/Assets/wallpapers/computer/windows_xp_bliss-wide.jpg");
    background-size: cover;
    background-clip: padding-box;

    border-radius: 20px;
    border-style: solid;
    border-image: url("/Assets/other/screen.png") repeat 35 27 145 27;
    border-image-width: 20px 20px 50px 20px;
    outline: 5px solid gray;

}

#monitorStand {
    position: absolute;
    width: 300px;
    bottom: 5%;
    z-index: 1;
}

#screen {
    background: url("/Assets/BGs/alicebg1.gif");
    position: relative;
    margin-top: 16px;
    width: calc(100% - 33px);
    height: calc(100% - 62px);
    overflow: hidden;

    display: flex;
    flex-flow: row wrap;
    align-content: flex-start;

    /* ? Animation */

    /* ! Z-index FUCKING shenanigans occured here */
    opacity: 0;
    animation: scale .5s 1s forwards;
}

@keyframes scale {
    from {
        /* ! LMFAOOOOOOOOOOOOOOOOOOO */
        opacity: 100%;
        transform: scaleY(0);
    }

    to {
        opacity: 100%;
        transform: scaleY(100%);
    }
}

#whiteScreen {
    position: absolute;
    width: 100%;
    height: 100%;

    background-color: white;

    z-index: 1000;

    opacity: 100%;

    animation: fade .75s 1.5s forwards;

    /* ! Debug */
    /* opacity: 0;
    pointer-events: none; */
}


@keyframes fade {
    from {
        opacity: 100%;
    }

    to {
        opacity: 0%;
        pointer-events: none;
    }
}


/* & Content */

header {
    flex: 1 1 100%;

    background: url("/Assets/BGs/hearts3.gif");
    background-position: center;

    border-bottom: 2px solid var(--bubblegum);
}

h1 {
    font-family: heartBlood;
    font-weight: normal;
    text-transform: lowercase;

    color: var(--kangel);
    padding-left: 20px;

    transition: letter-spacing .25s;
}

h1 div {
    display: inline-block;

    font-size: 4em;
    -webkit-text-stroke: .5px black;
    line-height: .8em;

    transform: rotate(0deg);
    transition: color .25s, transform .25s;
}

h1:hover {
    letter-spacing: 5px;
}

h1:hover>div:nth-child(1),
h1:hover>div:nth-child(4) {
    color: #ffaddd;
    transform: rotate(-9deg);
}

h1:hover>div:nth-child(2),
h1:hover>div:nth-child(6) {
    color: #92c5ff;
    transform: rotate(-15deg);
}

h1:hover>div:nth-child(3),
h1:hover>div:nth-child(7) {
    color: #c6adff;
    transform: rotate(3deg);
}

h1:hover>div:nth-child(5),
h1:hover>div:nth-child(8) {
    color: #ffe057;
    transform: rotate(17deg);
}

nav {
    width: 100%;
    height: 52px;

    display: flex;

    align-content: flex-start;
    align-items: center;
    column-gap: 20px;

    background: white;

    border-bottom: 2px solid var(--bubblegum);
    box-shadow: 1px 2px 2px #666666;
}

nav a {
    display: block;
    display: flex;
    justify-content: center;
    align-items: center;

    border: 2px solid var(--bubblegum);
    border-top: none;
    border-bottom: none;

    min-width: 100px;
    height: 50px;
    padding: 10px;

    background: url("/Assets/BGs/tumblr_ad479ccfea2121a711cc5099eff07479_82048f3a_75.gif");

    color: black;
    text-align: center;
    text-decoration: none;

    transition: color .25s;
}

nav a:hover {
    color: var(--wisteria);
    filter: hue-rotate(30deg);
}

nav a.active {
    filter: hue-rotate(70deg);
}

.navDecor {
    pointer-events: none;
    user-select: none;
}

spacer {
    flex: 1 1;
}

section {
    position: relative;
    z-index: 0;

    display: none;
    flex: 0 1 55%;
    height: calc(100% - 105px - 52px - 40px);

    overflow: auto;
    padding: 20px;

    border-right-style: solid;
    border-image: url("/Assets/borders/borderfilledB.png") 8 fill round;
    border-width: 8px;
    background-clip: padding-box;
}

section.active {
    display: block;
}

.infoBox {
    background: url("/Assets/BGs/alicebg1.gif");
    background-position: center;

    border-style: solid;
    border-image: url("/Assets/borders/pinkHearts.png") 7 round;
    border-width: 9px;
    background-clip: padding-box;
    margin-bottom: 10px;

    padding: 10px;
}

footer {
    flex: 1 1 100%;
    height: 40px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: url("/Assets/BGs/check5-b.gif");
    border-top-style: solid;
    border-image: url("/Assets/borders/borderfilled.png") 8 round;
    border-width: 8px;
    background-clip: padding-box;
}

/* ~ Home */

#dva {
    max-width: 200px;
    float: left;

    pointer-events: none;
    user-select: none;
}

/* ~ Currently Playing */

#steamWrapper {

    height: 280px;
    overflow: auto;
}

.steam {
    height: 100px;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #1b2838;
    color: #949494;

    padding: 10px;
    display: flex;
    gap: 10px;
}

.steam:nth-child(odd) {
    background-color: #16202d;
}

.steam img {
    width: 160px;
    height: 84px;
    object-fit: cover;
    object-position: top;
}

.steam h2 {
    font-size: 1.2em;
    color: white;
    font-weight: normal;
    flex: 1 1;
}

.steam h3 {
    text-transform: lowercase;
    font-variant: small-caps;
}

.infoWrapper {
    display: flex;
    flex-flow: column nowrap;
}

.hoursWrapper {
    display: flex;
    gap: 10px;
}

/* ~ Completed Games */

.gamesDisplay {
    display: flex;
    gap: 10px;
    height: 300px;
    padding: 10px;

    border-radius: 5px;
    box-shadow: 0 0 3px #000000;

    overflow: hidden;

    margin: 10px 0;
}

.gamesDisplay img {
    width: 190px;
    height: 280px;
}

.description {
    height: 210px;
    overflow: auto;
    margin-bottom: 10px;
}

.ratings {
    display: flex;
    justify-content: space-evenly;
}

.starRating {
    color: var(--starYellow);
}

.gamesDisplay .description {
    scrollbar-width: none;
}

.gamesDisplay .description::-webkit-scrollbar,
.gamesDisplay .description::-webkit-scrollbar-button {
    width: 0px;
}


/* OMORI */

#OMORIDisplay {
    background-color: black;
    color: white;

    font-family: Normal;
    font-size: 24px;
}

#OMORIDisplay img {
    border: 3px solid black;
    outline: 5px solid white;
}

#OMORIDisplay h3 {
    font-weight: normal;
}

#OMORIDisplay .description {
    border-bottom: 1px solid white;
}

/* ! Undertale */

#UndertaleDisplay {
    background-color: black;
    color: white;

    font-family: Determination;
}

#UndertaleDisplay img {
    border: 3px solid red;
}

#UndertaleDisplay h3 {
    font-family: MonsterFriend;
    font-size: 1.2em;
    font-weight: normal;
}

#UndertaleDisplay .description {
    border-bottom: 1px solid red;
}

/* ~ Needy Girl Overdose */

#NGODisplay {
    background: linear-gradient(0deg, rgba(255, 149, 253, .3) 0%, rgba(117, 255, 235, .3) 100%);
}

#NGODisplay img {
    border: 5px dashed var(--kangel);
}

#NGODisplay h3 {
    font-family: brightHeart;
    font-size: 2em;
    font-weight: normal;

    color: #ff00c8;
    -webkit-text-stroke: .3px #3dd2ff;
}

#NGODisplay .description {
    border-bottom: 5px dotted var(--kangel);
}

/* Purrgatory */

#PurrgatoryDisplay {
    background-color: white;

    font-family: simple;
}

#PurrgatoryDisplay h3 {
    font-size: 2em;
    font-weight: normal;
}

#PurrgatoryDisplay .description {
    font-size: 24px;
    border-bottom: 5px dotted var(--kangel);
}

/* ~ General */

li::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 20px;
    background-image: url(/Assets/pixels/magicalgirls/rainbow.webp);
    background-size: contain;
    margin-right: 5px;
}

/* ~ Decor */

#kangel {
    flex: 1 1;
    position: relative;
    
    pointer-events: none;
    user-select: none;
}

#kangel img:first-of-type {
    width: 100%;
    position: absolute;
    bottom: 0;
    right: 0;
}

#keyK {
    position: absolute;
}

#topTrim,
#bottomTrim {
    position: absolute;
    width: 100%;
    left: 0;
    z-index: 0;
    pointer-events: none;

    image-rendering: pixelated;
    background-size: contain;
    background-position: center;

    height: 55px;
}

#topTrim {
    top: 0;
    background: url('/Assets/pixels/headers/061-t.gif') repeat-x;
}

#bottomTrim {
    bottom: 0;
    background: url('/Assets/pixels/headers/061-b.gif') repeat-x;
}

@media (prefers-reduced-motion: reduce) {
    #whiteScreen {
        display: none;
    }

    #screen {
        animation: none;
        transform: scaleY(1);
        opacity: 100%;
    }

    h1:hover {
        letter-spacing: 0;
    }

    h1:hover>div {
        transform: rotate(0deg) !important;
    }
}

@media only screen and (max-width: 810px) {}

@media only screen and (max-width: 500px) {
    #wrapper {
        padding: 0;
    }

    #monitor {
        max-width: 100vw;
        max-height: 90vh;
    }

    #monitorStand {
        display: none;
    }

    h1 {
        padding: 0;
        text-align: center;
    }

    h1 div {
        font-size: 2em;
    }

    nav {
        height: unset;
        gap: 2px;
    }

    .navDecor {
        display: none;
    }

    nav a {
        padding: 0px;
        min-width: 80px;
    }

    #screen {
        overflow-y: auto;
    }

    section {
        flex: 1;
        height: calc(100% - 60px - 52px - 40px);
        border: none;
        background-color: white;
    }

    #kangel {
        display: none;
    }

    .steam {
        height: unset;
        flex-flow: column wrap;
        align-items: center;
    }

    .gamesDisplay {
        height: unset;
        flex-flow: row wrap;
    }

    .gamesDisplay img {
        display: block;
        margin: 0 auto;
    }
}