/*@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@300&display=swap');*/
/*@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono&display=swap');*/
/*@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&display=swap');*/

@font-face {
    font-family: "M PLUS 1p";
    src: url('/assets/fonts/M_PLUS_1p/MPLUS1p-Light.ttf') format("truetype");
}

@font-face {
    font-family: "Ubuntu Mono";
    src: url('/assets/fonts/Ubuntu_Mono/UbuntuMono-Regular.ttf') format("truetype");
}

@font-face {
    font-family: "Black Ops One";
    src: url('/assets/fonts/Black_Ops_One/BlackOpsOne-Regular.ttf') format("truetype");
}

:root {
    --main-text-color: rgb(80, 80, 80);
    --sub-text-color: rgb(122, 122, 122);
}

* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    tap-highlight-color: rgba(0, 0, 0, 0);
}

::selection {
    background: #ffaa49;
    color: #fff;
}

::-moz-selection {
    background: #ffaa49;
    color: #fff;
}

::-webkit-scrollbar {
    width: 9px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background-color: rgba(128, 128, 128, 0);
}

::-webkit-scrollbar-thumb {
    background: rgb(241, 241, 241);
    border-radius:5px;
    box-shadow: 0 0 1px rgb(153, 153, 153);
}

hr {
    opacity: 0.3;
}

#menu_button {
    display: none;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    font-family: 'M PLUS 1p', sans-serif;
    color: var(--main-text-color);
}

aside {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    min-width: 300px;
    width: 37%;
    padding: 30px 2%;
    padding-bottom: 5px;
    background-color: #5269DB;
    background: linear-gradient(#5269DB, #4C47D5);
    color: white;
    box-sizing: border-box;
}

aside > * {
    max-width: 700px;
    width: 100%;
}

aside > nav {
    display: flex;
    justify-content: space-around;
    flex: 0;
}

aside > nav > a {
    display: flex;
    justify-content: center;
    position: relative;
    text-decoration: none;
    color: inherit;
    font-size: 1.2em;
    padding: 5px 5%;
}
aside > nav > a::after {
    position: absolute;
    content: "▲";
    font-size: 0.35em;
    transform: translateY(3em) scaleY(0.1);
    opacity: 0;
}
aside > nav > a:hover::after, aside > nav > a.active::after {
    transition: transform 0.02s;
    transform: translateY(3.8em) scaleY(0.6);
    opacity: 1;
}

aside > section#cui_box {
    position: relative;
    min-height: 0;
    margin: 2% 0;
    flex: 1;
}

aside > section#cui_box > div#cui {
    transition: background-color 0.4s, scrollbar-color 0.4s;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 10px 1%;
    padding: 7px;
    border-radius: 5px;
    background-color: #140d4a50;
    box-sizing: border-box;
    
    overflow-x: hidden;
    overflow-y: scroll;

    scrollbar-color: rgba(127, 130, 175, 0) rgba(128, 128, 128, 0);
    scrollbar-width: thin;
}
aside > section#cui_box > div#cui:hover {
    transition: background-color 0.4s 0.3s, scrollbar-color 0.4s 0.3s;
    background-color: #1e1d207e;
    scrollbar-color: rgba(127, 130, 175, 0.4) rgba(128, 128, 128, 0);
}
aside > section#cui_box > div#cui::-webkit-scrollbar {
    width: 7px;
}
aside > section#cui_box > div#cui::-webkit-scrollbar-thumb {
    transition: background-color 0.4s, box-shadow 0.4s;
    background-color: rgba(127, 130, 175, 0);
    border-radius:5px;
    box-shadow: 0 0 1px rgba(153, 153, 153, 0);
}
aside > section#cui_box > div#cui:hover::-webkit-scrollbar-thumb {
    transition: background-color 0.4s 0.3s, box-shadow 0.4s 0.3s;
    background-color: rgba(127, 130, 175, 0.4);
    box-shadow: 0 0 1px rgb(153, 153, 153);
}

div#cui * {
    line-height: 1.4em;
    font-size: 1em;
    font-family: 'Ubuntu Mono', monospace;
    color: gainsboro;
}

div#cui > #cui_output {
    cursor: text;
    word-break: break-all;
}

div#cui > textarea#cui_input {
    flex: auto;
    resize: none;
    border: none;
    outline: none;
    min-height: 2.8em;
    padding: 0;
    background-color: rgba(255, 255, 255, 0);
    overflow-y: hidden;
    word-break: break-all;
}

aside > section > div#cui + #cui_AO2324 {
    transition: opacity 0.4s;
    position: absolute;
    font-family: 'Black Ops One', Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 17vh;
    transform: translateY(-50%) rotateZ(-90deg);
    right: -26vh;
    top: 50%;
    opacity: 0.6;
    mix-blend-mode: soft-light;
    pointer-events: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    letter-spacing: -0.5vh;
}
aside > section > div#cui:hover + #cui_AO2324 {
    transition: opacity 0.4s 0.3s;
    opacity: 0.15;
}

aside > span {
    text-align: center;
    margin: 10px 1%;
    opacity: 0.4;
    flex: 0;
}

main {
    flex: auto;
    
    overflow-y: auto;
    height: 100%;
    max-width: 63%;

    scrollbar-width: thin;

    background-color: white;
    background-image: url("/assets/images/Cross.svg");
    background-repeat: repeat;
    background-size: 18px;
}

main > section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 5%;
    max-width: 1500px;
    box-sizing: border-box;
}

div#popup_bg {
    transition: opacity 0.3s 0s, left 0s 0s;
    position: fixed;
    left: 37%;
    height: 100%;
    width: 63%;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 1;
}
div#popup_bg.hide {
    transition: opacity 0.25s 0s ease-in, left 0s 0.3s;
    opacity: 0;
    left: 150%;
    pointer-events: none;
}

div#popup {
    transition: transform 0.2s, opacity 0.05s 0.1s ease-out;
    position: fixed;
    top: 30%;
    left: 37%;
    width: 55%;
    max-width: 1450px;
    min-height: 200px;
    height: fit-content;
    margin: 0 4%;
    background-color: white;
    box-shadow: 0 4px 8px 1px rgba(128, 128, 128, 0.4);
    border-radius: 10px;
    padding: 1%;
    padding-bottom: 4px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transform: translateY(-30%);
}
div#popup.hide {
    transition: transform 0.4s, opacity 0.2s;
    transform: translateY(-30%) scale(0);
    opacity: 0;
    pointer-events: none;
}

div#popup > section {
    display: flex;
    max-height: 85vh;
}

div#popup > section > div {
    width: 50%;
    margin-bottom: 10px;
}
div#popup > section > div:first-child {
    overflow-y: auto;
    padding: 8px;
    box-sizing: border-box;
}
div#popup > section > div:last-child {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    max-height: 600px;
    /*background-color: rgba(128, 128, 128, 0.1);*/
    border-radius: 5px;
}

div#popup > section > div img {
    width: 100%;
    pointer-events: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /*border: ridge 2px rgba(128, 128, 128, 0.1);*/
    box-sizing: border-box;
}
div#popup > section > div > img {
    object-fit: contain;
    max-height: 80%;
}

h3#popup_title {
    font-size: 1.4em;
    margin: 0;
    margin-top: 10px;
    line-height: 1.3em;
}
span#popup_date {
    font-size: 0.8em;
    font-weight: bold;
    opacity: 0.7;
}
p#popup_description {
    margin: 10px 0;
    letter-spacing: 0.03em;
    line-height: 1.6em;
}

div#popup_image_list {
    height: fit-content;
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

div#popup_image_list > input {
    display: none;
}
div#popup_image_list > input:checked + label {
    display: none;
}

div#popup_image_list > label {
    transition: transform 0.1s;
    margin: 0 5px;
    width: 70px;
    height: 60px;
    cursor: pointer;
}
div#popup_image_list > label:hover {
    transform: scale(1.04);
}
div#popup_image_list > label > img {
    height: 100%;
    object-fit: cover;
    border: ridge 2px rgba(128, 128, 128, 0.1);
}

div#popup > div {
    text-align: center;
    font-weight: bold;
    opacity: 0.6;
    cursor: pointer;
    padding: 5px;
    box-sizing: border-box;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
div#popup > div:hover {
    opacity: 0.9;
}

@media (max-height: 600px) {
    aside > section#cui_box > div#cui + #cui_AO2324 {
        font-size: calc(20vh - 30px);
        right: calc(-30vh + 50px);
        transform: translateY(-35%) rotateZ(-90deg);
    }
}

@media (max-width: 800px) {

    h2 {
        margin: 5%;
        text-align: center;
        font-size: 2em;
    }

    #menu_button {
        cursor: pointer;
        display: block;
        position: fixed;
        width: 50px;
        height: 50px;
        top: 15px;
        right: 15px;
        background-image: url("/assets/images/menu.svg");
        background-size: 40px;
        background-position: center;
        background-repeat: no-repeat;
        backdrop-filter: blur(1px);
    }

    html, body {
        overflow-x: hidden;
    }

    body {
        position: relative;
    }

    aside {
        position: fixed;
        width: 100%;
        height: 100%;
        z-index: 1;
        flex-direction: column-reverse;
        padding-top: 10px;
        padding-bottom: 20px;
    }

    aside > nav {
        margin: 5px 0;
    }

    aside > section#cui_box {
        margin-top: 0;
    }

    aside > span {
        margin: 0;
    }

    aside > nav > a {
        font-weight: bold;
    }

    aside > nav > a::after {
        display: none;
    }

    aside > section#cui_box > div#cui + #cui_AO2324 {
        font-size: 13vh;
        right: -19vh;
        transform: translateY(-35%) rotateZ(-90deg);
    }

    main {
        min-width: 100%;
        max-width: 100%;
    }

    div#popup_bg {
        left: 0;
        width: 100%;
    }

    div#popup {
        transition: transform 0.35s, opacity 0.3s;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        transform: translateY(0);
    }
    div#popup.hide {
        transition: transform 0.4s, opacity 0.25s 0.2s;
        transform: translateY(-100%);
    }

    div#popup > section {
        flex-direction: column-reverse;
        height: 100%;
        max-height: 100%;
        justify-content: flex-end;
    }

    div#popup > section > div {
        width: 100%;
        padding: 10px;
        margin-bottom: 0;
        box-sizing: border-box;
        border-radius: 0;
    }
    div#popup > section > div:last-child {
        background-color: rgba(128, 128, 128, 0.1);
        max-height: 300px;
    }
    div#popup > section > div:first-child {
        padding-bottom: 50px;
        border-top: solid 0.5px rgba(128, 128, 128, 0.2);
    }
    div#popup_image_list > label:hover {
        transform: scale(1);
    }
    div#popup > div {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        bottom: 20px;
        font-size: 1.4em;
        background-color: white;
    }
}

@media (max-width: 1500px) {
    aside > span > span {
        display: none;
    }
}

@media (max-height: 350px) {
    aside > section#cui_box > div#cui {
        margin: 5px 1%;
    }
    aside > section#cui_box > div#cui + #cui_AO2324 {
        display: none;
    }
    aside > span {
        display: none;
    }
}

@media (min-width: 1920px) {
    body {
        font-size: 1.3em;
    }
}