/* color */
:root {
    --text: black;
    --bg: antiquewhite;
    --page: white;
    --link: darkblue;
}

body.dark-mode {
    --text: white;
    --bg: rgb(3, 0, 3);
    --page: black;
    --link: pink;

    .ss {
        filter: invert(1);
    }

    .rss {
        filter: invert(1);
    }
}

/* general */

body {
    background-color: var(--bg);
    color: var(--text);
    max-width: 50rem;
    margin: 0 auto;
    padding: 1rem;
    text-align: justify;
    hyphens: auto;
    line-height: 175%;
}

h1, h2, h3 {
    text-align: center;
    font-size: 100%;
}

h2, h3 {
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--link);

    &:hover {
        text-decoration: underline;
    }
}

img {
    max-width: 100%;
    height: auto;
}

table {
    width: 100%;
    height: 100%;
}

th, td {
    padding: 10px;
}

/* classes */

.box {
    background-color: var(--page);
    border: 1px solid var(--text);
    padding: 4rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    position: relative;
    box-shadow: 1px 1px;
}

.details {
    font-size: 90%;
}

.right {
    text-align: right !important;
}

.foot {
    text-align: center;
    padding: 1rem;
    opacity: 75%;
    font-size: 80%;

    a {
        color: var(--text);
    }
}

.ss {
    padding: 1rem;
    width: 15%;
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
}

.rss {
    width: 3%;
    position: absolute;
    top: 15px;
    right: 15px;
}

.mobile {
    display: none;
}

.switch {
    text-align: right;
    position: absolute;
    bottom: 15px;
    right: 15px;
}

.miku {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 20%;
}

.buttons {
    text-align: center;
}

/* langs */
@font-face {
    font-family: "nasin-nanpa";
    src: url("../fonts/nasin-nanpa-5.0.0-beta.2.otf") format("opentype");
}


.tp, .eo, .es {
    font-family: "Open Sans", serif;
    font-size: 90%;
    line-height: 180%;

    h1, h2, h3 {
        font-weight: normal;
    }
}

.eo, .es {
    h1 {
        text-transform: uppercase;
    }

    h2 {
        font-style: italic;
    }
}

.sp {
    font-family: nasin-nanpa, sans-serif;
    text-align: left;
    
    p {
        margin-bottom: 5%;
    }

    h1 {
        font-size: 120%;
    }

    h1, h2 {
        font-weight: normal;
    }

    b, em {
        color: gray;
        font-style: normal;
    }
}

/* mobile */
@media (max-width: 600px) {
    body {
        padding: 0;
        font-size: 75%;
    }
    video {width: 50%;} 
    .box {
        padding: 1rem;
        border-left: 0;
        border-right: 0;
        box-shadow: 0 0;
    }
    .ss {width: 30%;}
    .rss {display: none;}
    .mobile {display: block;}
}
