p, span, h1, h2, h3, h4, h5, h6, b, a, button {
    font-family: 'Iosevka Term SS08 Web';
    margin: 0;
}

#pagehistory {
    margin-left: 32px;
    margin-right: 32px;
}

#pagehistory div * {
    font-weight: bold;
}

.bg-container {
    width: 100%;
    height: 100%;
    position: fixed;
}
.bg-grid {
    width: calc(100% + 256px);
    height: calc(100% + 256px);
    position: fixed;
    background-image: url("assets/images/grid.png");
    background-repeat: repeat;
}

.button-template {
    padding-right: 8px;
    margin-bottom: 16px;
}

h1 {
    font-size: 32pt;
}
h2 {
    font-size: 24pt;
}
sub {
    font-size: 8pt;
}

hr {
    position: relative;
    top: 4px;
}

.column-template {
    display: table;
    width: 448px;
    margin: 16px;
    margin-bottom: 0px;
}
.left-column {
    width: 224px;
    display: table;
    float: left;
}
.left-column * {
    width: 216px;
    margin-bottom: 11px;
}
.right-column {
    width: 224px;
    display: table;
    float: left;
}
.right-column * {
    position: relative;
    left: 8px;
    width: 216px;
    margin-bottom: 11px;
}

.clickimage {
    position: relative;
    width: 448px;
    margin: 16px;
}

.small-hr {
    position: relative;
    width: 32px;
    height: 8px;
}

@viewport {  
    orientation: portrait;  
}  

.imagepreview {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    background-color: rgb(0,0,0,.5);
    z-index: 10;
}
.previewcontainer {
    position: absolute;
}
.blocker {
    width: 100%;
    height: 100%;
    position: absolute;
    pointer-events: all
}
.closebutton {
    color: #888;
    font-size: 24px;
    position: absolute;
    left: calc(100% - 32px);
    top: 8px;
    font-stretch: expanded;
    background-color: transparent;
    background-repeat: no-repeat;
    border: none;
}
.setbgbutton {
    color: #fff;
    font-size: 24px;
    position: absolute;
    left: 8px;
    top: 8px;
    font-stretch: expanded;
    background-color: transparent;
    background-repeat: no-repeat;
    border: none;
}
.fullbutton {
    color: #fff;
    font-size: 24px;
    position: absolute;
    left: 8px;
    top: calc(100% - 44px);
    font-stretch: expanded;
    background-color: transparent;
    background-repeat: no-repeat;
    border: none;
}
.randombgbutton {
    color: #fff;
    font-size: 24px;
    left: calc(100% - 48px);
    top: 8px;
    font-stretch: expanded;
    background-color: transparent;
    background-repeat: no-repeat;
    border: none;
}
.hidebutton {
    color: #fff;
    font-size: 24px;
    left: 8px;
    top: 8px;
    font-stretch: expanded;
    background-color: transparent;
    background-repeat: no-repeat;
    border: none;
    position: fixed;
}
.fullbgbutton {
    color: #fff;
    font-size: 24px;
    left: 8px;
    top: calc(100% - 44px);
    font-stretch: expanded;
    background-color: transparent;
    background-repeat: no-repeat;
    border: none;
    position: fixed;
}
.removebgbutton {
    color: #888;
    font-size: 24px;
    position: fixed;
    left: calc(100% - 48px - 24px);
    top: 12px;
    font-stretch: expanded;
    background-color: transparent;
    background-repeat: no-repeat;
    border: none;
}
.smallfullbgbutton {
    color: #fff;
    font-size: 24px;
    left: 8px;
    top: calc(100% - 44px);
    font-stretch: expanded;
    background-color: transparent;
    background-repeat: no-repeat;
    border: none;
    position: absolute;
}
.smallremovebgbutton {
    color: #fff;
    font-size: 24px;
    position: absolute;
    left: calc(100% - 48px - 24px);
    top: 12px;
    font-stretch: expanded;
    background-color: transparent;
    background-repeat: no-repeat;
    border: none;
}

.template {
    display: none;
}

.button-text {
    text-align: right;
    padding-right: 16px;
}
.button-header {
    text-align: right;
    font-size: 30px;
    padding-right: 16px;
    font-stretch: 175%;
}

.header {
    font-stretch: expanded;
    color: #ffde00;
}

p {
    font-size: 14pt;
}

p, h1, h2, h3, h4, h5, h6 {
    padding-left: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-stretch: expanded;
    padding-left: 16px;
}

b {
    font-stretch: expanded;
}

hr {
    margin: 8px;
}

html {
    padding: 0;
    margin: 0;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

a {
    text-decoration: none;
}

.maincontent {
    width: 480px;
    margin: auto;
}

.imagesource, .previewsource p {
    color: #888;
}
.imagesource, .previewsource {
    position: absolute;
    right: 16px;
    bottom: 16px;
    color: #888;
}
.brsource {
    position: fixed;
    right: 16px;
    bottom: 16px;
    color: #888;
}

@media screen and (min-width: 1024px) {

    div.minibg {
        display: none;
    }

    div.content {
        position: absolute;
        top: 0px;
        background-color: white;
        width: 480px;
        min-height: 100%;
        margin: 0px;
        padding: 0px;
        box-shadow: 0px 0px 16px rgba(0,0,0,.2);
    }
    div.content:not(.content-centered) {
        left: calc(15% - 64px);
    }
    .content-centered {
        left: calc(50% - 240px);
    }
    
    div.border {
        min-height: 25vh;
    }
}

@media screen and (max-width: 1024px) {
    div.minibg {
        position: relative;
    }
    img.minibg {
        margin: 0;
        width: 100%;
    }
    img.bg {
        display: none;
    }
    .maincontent {
        padding-top: 16px;
    }

    div.content {
        position: absolute;
        left: 0px;
        top: 0px;
        background-color: white;
        min-width: 100%;
        min-height: 0%;
        margin: 0px;
        padding: 0px;
    }

    .bg-container {
        display: none;
    }

    div.border {
        height: 0;
    }
    div.border:last-child {
        height: 16px;
    }

    .brsource {
        display: none;
    }
}

img.bg {
	position: fixed;
}

a:hover, button:hover {
    filter: brightness(75%)
}