*{
    color: white;
    font-family: "Courier Prime", monospace;
}

html, body{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #000;
    overflow: hidden;
}

body{
    background-position: center;
    background-size: cover;
}

.darkener{
    background-color: rgba(0, 0, 0, 0.5);
    height: 100%;
}

#mainpage{
    overflow: hidden;
    width: 100%; height: 100%;
}

.subpage{
    padding: 2rem 1rem;
    width: calc(100% - 2rem); height: calc(100% - 4rem);
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

#p5spot > *{
    width: 100% !important; height: 100% !important;
}

h1, h2, h3{
    font-family: "Merriweather", serif;
    margin: 0;
    padding: 0;
}

p{
    margin:0; padding: 0;
}

h1{
    font-weight: 300;
}

h2{
    font-weight: 400;
}

h3{
    font-weight: 700;
}

#titlespot{
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    pointer-events: none;
    position: absolute;
    top: 0;
    left:0;
    text-align: right;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
}

#titlespot > *{
    pointer-events: all;
    background-color: rgba(0, 0,0, 0.75);
    max-width: calc(100% - 4rem);
    display: block;
    padding: 1rem 2rem;
    width: 25rem;
}

#titlespot > * > *:not(:last-child){
    padding-bottom: 1rem;
}

.window{
    background-color: black;
    border: 1px solid white;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0.5rem;
    overflow: hidden;
    width: 100%;
    box-shadow: rgb(57, 57, 58) 0px 20px 30px -10px;
}

.window .windowTopBar{
    border-bottom: 1px solid white;
    display: flex;
}

.window .windowTopBar *{
    text-align: center;
}

.window .windowTopBar .windowTitle{
    flex-grow: 1;
    padding: 0.5rem;
}

.window .windowTopBar .closebutton{
    cursor: pointer;
    background-color: black;
    transition: background-color 0.25s;
    border-left: 1px solid white;
    padding: 0.5rem 2rem
}

.window .windowTopBar .closebutton:hover, .actionbar > *:hover{
    background-color: #353535;
    font-weight: 700;
}

.windowContent{
    padding: 1rem 2rem;
    font-weight: 300;
    overflow-y:scroll;
    max-height: calc(100% - 4rem);
}

.windowContent > *:not(:last-child){
    margin-bottom: 1rem;
}

.windowContent img, .windowContent video{
    display: block;
}

.windowContent > *{
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    max-width: 100%;
}

.figuretext{
    font-size: 0.75rem;
    text-align: center;
}

.figuretext::before{
    content: "Figure [?] - ";
}

a:not(p > a){
    display: block;
}

nav > *, a{
    cursor: pointer;
}

nav > *:not(:last-child){
    margin-bottom: 0.25rem;
}

nav > *::before, .backbut::before{
    content: "[";
    padding-right: .5rem;
}

.backbut::after{
    content: "]";
    padding-left: .5rem;
}

.line{
    border-bottom: 1px solid white;
}

.actionbar{
    display: flex;
    justify-content:flex-end;
    align-items: center;
}

.actionbar > *:not(:first-child){
    margin-left: 1rem;
}

.actionbar > *{
    padding: 0.5rem 1rem;
    border: 1px solid white;
}

nav > *::after{
    content: "] -";
    padding-left: .5rem;
}

nav > *:hover, .backbut:hover{
    text-decoration: underline;
    font-weight: 700;
}

a{
    text-decoration: none;
    user-select: none;
}

.backbut{
    position: absolute;
    top: 1rem;
    left: 1rem;
}

img{
    object-fit: cover;
    object-position: center;
}

.divider{
    display: flex;
    justify-content:space-between;
    align-items: center;
}

.collection{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.collection > *:not(:last-child){
    border-bottom: 1px solid white;
}

.collection > *:hover{
    background-color: #353535;
    font-weight: 700;
}

.collection .divider > div{
    flex-grow: 1;
    padding-left: 2rem;
    max-width: calc(70% - 2rem);
}

.collection img{
    width: 30%;
    height: 5rem;
    /* border: 1px solid white; */
}

img.hideai{
    object-position: top;
    width: 250px;
    height: 200px;
}

[data-shuffler="live"], [data-shuffler="hover"]{
    user-select: none;
}

@media screen and (max-width: 900px){
    html{
        font-size: 80%;
    }

    p, a{
        font-size: 1rem;
    }

    .figuretext{
        font-size: 1rem;
    }

    .backbut{
        display: none;
    }

    .collection .divider > div{
        max-width: calc(70% - 1rem);
        padding-left: 1rem;
    }
    
}