:root {
    --wavy-text-up-value: -5px;
}

::selection {
    background-color: #5e0f70;
}

body {
    margin: 0;
    
    background-color: #000000;
    color: #ffffff;

    font-family: "PixeloidMono";
    font-size: 18px;
    text-shadow:
            #5e0f70 0px 2px, #5e0f70 2px 0px, #5e0f70 2px 2px,
            #000 -2px 0px, #000 0px -2px, #000 -2px -2px, #000 2px -2px, #000 -2px 2px,
            #000 0px 4px, #000 4px 0px, #000 4px 4px,
            #000 4px 2px, #000 2px 4px, #000 4px -2px, #000 -2px 4px;
    
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1vw;
}
@font-face {
    font-family: "PixeloidMono";
    src: url("assets/fonts/PixeloidMono.ttf");
}
img, span, h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

ul {    
    margin: 0;
    padding: 0;
    margin-left: 20px;
}
ul li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
ul li:not(.nomarker)::before {
    content: ".";
    display: inline-block;
    position: absolute;
    transform: translateY(-5px) translateX(-20px);
}



.hbox, .ahbox {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1vw;
    gap: 15px;
}
.vbox, .avbox {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 15px;
}
.hstretch {
    align-items: stretch;
}
.vstretch {
    justify-content: stretch;
}
.hcenter {
    align-items: center;
    text-align: center;
}
.vcenter, .avcenter {
    justify-content: center;
    align-content: center;
}
.hright {
    align-items: flex-end;
    text-align: right;
}
.gapless {
    gap: 0px;
}
.gap1 {
    gap: 6px;
}
.gap2 {
    gap: 9px;
}
.gap3 {
    gap: 12px;
}
.gap {
    gap: 15px;
}

.ahbox {
    @media(orientation: portrait) {
        flex-direction: column;
        flex-wrap: wrap;
    }
}
.avbox {
    @media(orientation: portrait) {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
.avcenter {
    @media(orientation: portrait) {
        align-items: center;
        text-align: center;
    }
}
.ahautomargin {
    @media(orientation: portrait) {
        margin-left: auto;
        margin-right: auto;
    }
}

.aligntextboxes > .textbox {
    flex: 1;
}


.textbox {
    border-image: url("assets/art/border.png") 18 18 18 18 fill / 18px 18px 18px 18px;
    padding: 36px 36px 36px 36px;
    
    border-image-repeat: repeat;
    image-rendering: pixelated;
    @media(orientation: portrait) {
        padding: 28px 28px 28px 28px;
    }
}
.textbox.small {
    padding: 20px 20px 20px 20px;
}
.textbox.alt {
    border-image: url("assets/art/border2.png") 18 18 18 18 fill / 18px 18px 18px 18px;
    border-image-repeat: repeat;
}
.imgborder {
    border-image: url("assets/art/border.png") 18 18 18 18 fill / 18px 18px 18px 18px;
    padding: 20px 20px 20px 20px;
    image-rendering: pixelated;
    max-width: 100%;
    min-width: 1px;
    @media(orientation: portrait) {
        border-image: none;
        padding: 0;
    }
}

.window {
    border-image: url("assets/art/border_window.png") 40 36 12 12 fill / 40px 36px 12px 12px;
    padding: 40px 36px 12px 12px;
    
    border-image-repeat: stretch;
    image-rendering: pixelated;
    @media(orientation: portrait) {
        padding: 28px 28px 28px 28px;
    }
}
.windowtitle {
    font-size: 18px;
    text-shadow: none;
    color: #ffffff;
    margin-top: -3px;
    margin-left: 8px;
}



.bg1, .bg2, .bg3 {
    position: absolute;
    left: 0;
    right: 0;
    top: 300px;
    bottom: 0;
    z-index: -100;
    image-rendering: pixelated;
    background-repeat: repeat-x;

    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.bg1 {
    background-image: url("assets/art/bg_1.png");
    animation-name: bgLeft;
    animation-duration: 160s;
    
    top: 100px;
}
.bg2 {
    background-image: url("assets/art/bg_2.png");
    animation-name: bgRight;
    animation-duration: 120s;
}
.bg3 {
    background-image: url("assets/art/bg_3.png");
    animation-name: bgLeft;
    animation-duration: 80s;
}

@keyframes bgLeft {
    0% { background-position-x: 0px; }
    100% { background-position-x: 640px; }
}
@keyframes bgRight {
    0% { background-position-x: 0px; }
    100% { background-position-x: -640px; }
}





header {
    user-select: none;
}
.menubutton {
    color: #ffffff;
    font-family: "PixeloidMono";
    font-size: 18px;
    text-shadow:
            #5e0f70 0px 2px, #5e0f70 2px 0px, #5e0f70 2px 2px,
            #000 -2px 0px, #000 0px -2px, #000 -2px -2px, #000 2px -2px, #000 -2px 2px,
            #000 0px 4px, #000 4px 0px, #000 4px 4px,
            #000 4px 2px, #000 2px 4px, #000 4px -2px, #000 -2px 4px;
    text-wrap-mode: nowrap;
    @media(orientation: portrait) {
        text-wrap-mode: wrap;
        margin: 0px auto;
    }
}
.menubutton::before {
    content: url("assets/art/pointer.png");
    display: inline-block;
    image-rendering: pixelated;
    margin-right: 5px;
    transform: translateY(4px);
    opacity: 0;

    @media(orientation: portrait) {
        display: none;
    }
}
.menubutton:hover::before {
    opacity: 1;
}











.pablo {
    width: 200px;
    height: 200px;
    background-image: url("assets/art/pablo.png");
    animation-name: pablo;
    animation-duration: 1s;
    animation-timing-function: steps(30);
    animation-iteration-count: infinite;
    transform-origin: left;
    transform: translateY(20px);
    @media(orientation: portrait) {
        transform: scale(0.7) translateY(-30px);
    }
}
.pablo-container {
    animation-name: pabloContainer;
    animation-duration: 3s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    transform: translateY(0px);
}
@keyframes pabloContainer {
    0% {
        animation-timing-function: ease-out;
        transform: translateY(0px);
    }
    25% {
        animation-timing-function: ease-in;
        transform: translateY(20px);
    }
    50% {
        animation-timing-function: ease-out;
        transform: translateY(0px);
    }
    75% {
        animation-timing-function: ease-in;
        transform: translateY(-20px);
    }
    100% {
        animation-timing-function: ease-out;
        transform: translateY(0px);
    }
}
@keyframes pablo {
    from {
        background-position: 0px 0;
    }
    to {
        background-position: -6000px 0;
    }
}





.flag {
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
}
.flag.horizontal {
    flex-direction: column;
}
.flag.vertical {
    flex-direction: row;
}
.flag > div {
    flex: 1;
}



.icon16big {
    user-select: none;
    pointer-events: none;
    transform: translateY(2px) scale(1.5);
    padding-right: 13px;
    @media(orientation: portrait) {
        transform: translateY(4px);
        padding-right: 9px;
    }
}




.big {
    font-size: 27px;
    text-shadow:
            #5e0f70 0px 3px, #5e0f70 3px 0px, #5e0f70 3px 3px,
            #000 -3px 0px, #000 0px -3px, #000 -3px -3px, #000 3px -3px, #000 -3px 3px,
            #000 0px 6px, #000 6px 0px, #000 6px 6px,
            #000 6px 3px, #000 3px 6px, #000 6px -3px, #000 -3px 6px;
    @media(orientation: portrait) {
        font-size: 18px;
        text-shadow:
                #5e0f70 0px 2px, #5e0f70 2px 0px, #5e0f70 2px 2px,
                #000 -2px 0px, #000 0px -2px, #000 -2px -2px, #000 2px -2px, #000 -2px 2px,
                #000 0px 4px, #000 4px 0px, #000 4px 4px,
                #000 4px 2px, #000 2px 4px, #000 4px -2px, #000 -2px 4px;
    }
}

small {
    font-size: 9px;
    text-shadow:
            #5e0f70 0px 1px, #5e0f70 1px 0px, #5e0f70 1px 1px,
            #000 -1px 0px, #000 0px -1px, #000 -1px -1px, #000 1px -1px, #000 -1px 1px,
            #000 0px 2px, #000 2px 0px, #000 2px 2px,
            #000 2px 1px, #000 1px 2px, #000 2px -1px, #000 -1px 2px;
}
a {
    color: #58c8f2;
    text-decoration: none;
    text-shadow:
            #000 -2px -2px, #000 2px -2px, #000 -2px 2px, #000 2px 2px,
            #000 -2px 0px, #000 2px 0px, #000 0px -2px, #000 0px 2px;
}

.gray {
    color: #736070;
    text-shadow: none;
}
.sub {
    font-size: 9px;
    text-shadow:
            #000 -1px -1px, #000 1px -1px, #000 -1px 1px, #000 1px 1px,
            #000 -1px 0px, #000 1px 0px, #000 0px -1px, #000 0px 1px;
    color: #736070;
}
.hideportrait {
    @media(orientation: portrait) {
        display: none;
    }
}
.pixelated {
    image-rendering: pixelated;
}

.wavy-effect {
    animation-name: wavy;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-iteration-count: infinite;
    position: relative;
    top: 0;
    left: 0;
}
@keyframes wavy {
    0% {
        animation-timing-function: ease-out;
        top: 0px;
    }
    50% {
        top: var(--wavy-text-up-value);
    }
    100% {
        animation-timing-function: ease-in;
        top: 0px;
    }
}

