@import url(global_values.css);

*:focus { outline: none; }
*::selection { background-color: #FFF3; }

html {
    height: auto;
    min-height: 100%;
    width: 100%;
    margin: 0;
    user-select: none;
}

input, *[text-selectable] { user-select: text; }

@media (prefers-reduced-motion: reduce) {
    * { animation-play-state: paused !important; }
}

@media screen and (max-width: 600px) {
    :root {
        --fs-h2: 2rem;
        --fs-h3: 1.5rem;
    }
}

@media screen and (min-width: 600px) {
    body::-webkit-scrollbar {
        background: linear-gradient(to bottom, #444444 55%, #242424);
        width: .75vw;
    }

    body::-webkit-scrollbar-button,
    body::-webkit-scrollbar-corner {
        background-color: #FFF3;
        border-radius: 100%;
        display: none;
    }

    body::-webkit-scrollbar-button:hover,
    body::-webkit-scrollbar-corner:hover,
    body::-webkit-scrollbar-thumb:hover {
        background-color: #FFF5;
    }

    body::-webkit-scrollbar-button:active,
    body::-webkit-scrollbar-corner:active,
    body::-webkit-scrollbar-thumb:active {
        background-color: #FFFC;
    }

    body::-webkit-scrollbar-thumb {
        background-color: #FFF3;
        border-radius: 10px;
    }
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #444444 55%, #242424);
    color: var(--clrfg-main);
    font-family: SourceCodePro;
}

.main {
    margin: 10vh 2vw;
    height: calc(100% - 10vh);
    
    @media screen and (max-width: 600px) {
        margin: 5vh 1vw;
        height: calc(100% - 5vh);
    }
}

.main p { font-size: var(--fs-main-p); }
.main h1 { font-size: var(--fs-h1); }
.main h2 { font-size: var(--fs-h2); }
.main h3 { font-size: var(--fs-h3); }
.main h4 { font-size: var(--fs-h4); }
.main h5 { font-size: var(--fs-h5); }
.main h6 { font-size: var(--fs-h6); }

.main h1, .main h2, .main h3, .main h4, .main h5, .main h6 {
    margin: 0;
    font-weight: normal;
    @media screen and (max-width: 600px) { font-size: initial; }
}

.multicolumn {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.center-h { text-align: center; }

.hidden {
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.menu-container { overflow: hidden; }

@media screen and (max-width: 600px) {
    .menu-container { margin: 10vh auto; }
}

.t-uc { text-transform: uppercase; }

div.footer {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    margin-bottom: 1vw;
    font-size: var(--fs-footer-div);
}

abbr { cursor: help; }

.m-warning {
    display: none;
    z-index: 99;
    position: fixed;
    top: 0;
    left: 10%;
    align-self: center;
    width: 80%;
    border: 1px solid #FA0;
    background-color: #D80;
    border-radius: 5px;
    text-align: center;
    padding: 1vh 1vw;
    
    @media screen and (max-width: 600px) {
        display: initial;
    }
}

a { color: var(--clrfg-main); }

div.p-header {
    position: relative;
    text-align: center;
    margin-bottom: 1.5em;
    
    &::before {
        text-align: unset;
        position: absolute;
        bottom: -1em;
        left: 12.5%;
        width: 75%;
        content: "";
        border-bottom: 2px solid #FFF5;
    }
    
    @media screen and (max-width: 600px) {
        h3 { font-size: var(--fs-h2); }
        h4 { font-size: var(--fs-h3); }
    }
}

div.p-headerplus {
    display: inline-table;
    position: relative;
    left: 12.5%;
    &>span {
        display: table-cell;
    }
}

div.infobox {
    width: clamp(240px, 75%, 720px);
    padding: 1dvh 1dvw;
    margin: 1dvw auto;
    background-color: var(--bc, #FFF3);
    border: 1px solid var(--bdc, #FFF);
    border-radius: 8px;
    
    & p {
        margin: 0;
        margin-top: 1rlh;
        font-size: inherit;
    }
    
    &.red {
        --bdc: #C00;
        --bc: #C003;        
        --c: #F99;
    }
    
    &.orange {
        --bdc: #C60;
        --bc: #C603;
        --c: #FC9;
    }
    
    &.yellow {
        --bdc: #CC0;
        --bc: #CC03;
        --c: #FF9;
    }

    &.green {
        --bdc: #0C0;
        --bc: #0C03;
        --c: #9F9;
    }
    
    &.blue {
        --bdc: #06C;
        --bc: #06C3;
        --c: #9CF;
    }
    
    &.purple { /* should i say mAgeNTa? */
        --bdc: #C0C;
        --bc: #C0C3;
        --c: #F9F;
    }
    
    &::before {
        display: block;
        font-weight: bold;
        text-transform: uppercase;
        color: var(--c, #FFF);
        content: var(--infoText);
    }
    
    &.ailevel-0::after, &.ailevel-1::after, &.ailevel-2::after, &.ailevel-3::after {
        display: block;
        margin-top: 1rem;
        font-size: 10pt;
        font-style: italic;
        color: #FFFA;
        content: 'Did you know that the author of this website codes all the pages from scratch?';
    }
    
    &.ailevel-0 { --infoText: 'no ai-generated content' }
    &.ailevel-1 { --infoText: 'no visible ai-generated content' }
    &.ailevel-2 { --infoText: 'partial ai-generated content' }
    &.ailevel-3 { --infoText: 'full ai-generated content' }
}

img {
    width: clamp(240px, 75%, 720px);
    display: block;
    margin: auto;
}

table.grid > *, table.h-grid > *, table.v-grid > * {
    text-align: center;
    & img { max-width: 100%; max-height: 100%; }
}

.mock {
    font-family: cursive !important;
    font-size: calc(var(--fs-main-p) + .25dvw);
    
    @media screen and (max-width: 600px) {
        font-size: calc(var(--fs-main-p) + 2.25dvw);
    }
}

span#accessibility_menu {
    display: inline-flex;
    flex-flow: row;
    position: fixed;
    bottom: 0;
    left: .5vw;
    right: .5vw;
    font-size: .75em;
    border-top: 1px solid #FFF5;
    padding: 1dvh 1dvw;
    width: 100%;
    
    button {
        position: relative;
        display: inline-block;
        appearance: none;
        padding: 1vh 1vw;
        border: 1px solid #FFF3;
        border-radius: 4px;
        
        background-color: inherit;
        background-image: linear-gradient(to bottom, #FFF2 0%, #FFF1 50%, #FFF2);
        
        color: inherit;
        font-size:  inherit;
        
        
        &::after {
            content: "";
            position: absolute;
            
            left: 12.5%;
            bottom: 4px;
            width: 75%;
            
            height: 3px;
            background-color: #FFF3;
            border-radius: 2px;
        }
        
        &[x-bs-active] {
            background-image: linear-gradient(to bottom, #FFF1 0%, #FFF2 50%, #FFF1);
        }
        
        &[x-bs-active]::after, &:focus::after {
            background-color: orange;
            box-shadow: 0 0 10px orange;
        }
    }
    
    
}