:root {
    --col-anemo: #33ccb3;
    --col-cryo: #98c8e8;
    --col-dendro: #7bb42d;
    --col-electro: #d376f0;
    --col-geo: #cfa726;
    --col-hydro: #1c72fd;
    --col-pyro: #e2311d;
}

*, ::before, ::after {
    box-sizing: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayrotate;
}

html {
    font-size: 62.5%;
    box-sizing: border-box;
}

body {
    font-family: "GIFont", Georgia, 'Times New Roman', Times, serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    background: #FBFAF8 center no-repeat;
}

body#region_mondstadt {
    background-image: url(../img/elements/anemo.svg);
}

body#region_liyue {
    background-image: url(../img/elements/geo.svg);
}

body#region_inazuma {
    background-image: url(../img/elements/electro.svg);
}

body#region_sumeru {
    background-image: url(../img/elements/dendro.svg);
}

body#region_fontaine {
    background-image: url(../img/elements/hydro.svg);
}

body#region_natlan {
    background-image: url(../img/elements/pyro.svg);
}

body#region_nod-krai {
    background-image: url(../img/elements/lunar.svg);
}

@font-face {
    font-family: 'GIFont';
    src: url('fonts/gifont.woff2') format('woff2'),
        url('fonts/gifont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.container {
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 80vw;
    max-width: 80dvw;
    text-align: center;

}

h1 {
    font-size: 4.2rem;
    /* background: linear-gradient(to right, var(--col-dendro), var(--col-anemo), var(--col-cryo), var(--col-hydro), var(--col-electro), var(--col-pyro), var(--col-geo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
}

button.blue {
    background: #0D4AA0;
    font-family: "GIFont", sans-serif;
    color: #fff;
    border: 0;
    cursor: pointer;
}

button.inspire {
    height: 5rem;
    width: 20rem;
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

button.submit, button.close {
    height: 4rem;
    width: 18rem;
    font-size: 1.4rem;
    align-self: center;
    margin-top: 2rem;
}

.output, .charList {
    font-size: 1.8rem;
    line-height: 1.4em;
}

img {
    font-size: 1.2rem;
}

.itemImg {
    width: 16rem;
    height: 16rem;
    margin: 1.6rem;
}

.charImages {
    margin-top: 2rem;
}

.charImg {
    width: 10rem;
    height: 10rem;
    margin: 0 1rem;
}

button.toggle {
    position: fixed;
    background: none;
    border: none;
    cursor: pointer;
}

button.toggle.info {
    width: 5.6rem;
    height: 5.6rem;
    bottom: 2rem;
    left: 2rem;
}

button.toggle.set {
    width: 6rem;
    height: 5.6rem;
    bottom: 2rem;
    right: 2rem;
}

.settingsCont, .infoCont {
    background: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
}

.information {
    width: 60rem;
    display: flex;
    flex-flow: column nowrap;
    background: #FBFAF8;
    padding: 2rem;
}

.settings {
    width: 40rem;
    display: flex;
    flex-flow: column nowrap;
    background: #FBFAF8;
    padding: 2rem;
}

fieldset {
    display: flex;
    flex-flow: column nowrap;
    border: #000 1px solid;
}

legend {
    font-size: 2rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5em;
}

.information h2 {
    font-size: 2rem;
}

p {
    font-size: 1.4rem;
    line-height: 1.5em;
}

a {
    color: #4DD5FF;
}

fieldset div {
    margin: 1rem 0;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
}

input[type="checkbox"] {
    width: 2rem;
    height: 2rem;
}

.selectDiv {
    position: relative;
    width: 20rem;
}

.selectDiv::after {
    content: "\2304";
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.4rem;
    position: absolute;
    bottom: 9px;
    right: 5px;
}

select {
    width: 100%;
    height: 3.2rem;
    appearance: none;
    font-family: "GIFont", sans-serif;
    color: black;
    font-size: 1.4rem;
    padding-left: 1rem;
    border: 1px solid black;
    border-radius: 0;
    background: white;
}

label {
    font-size: 1.4rem;
    margin-left: 1rem;
}

.error {
    color: #e2311d;
    font-size: 1.4rem;
    text-align: center;
    display: none;
}

@media (prefers-color-scheme: dark) {
    /* body {
        color: #FAFDFF;
        background-color: #16232C;
    } */
}

@media screen and (max-width: 956px) {
    h1 {
        font-size: 3.2rem;
    }
    
    button.inspire {
        height: 4rem;
        width: 16rem;
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }
    
    button.submit, button.close {
        height: 3rem;
        width: 12rem;
        font-size: 1rem;
        margin-top: 1rem;
    }

    .container {
        max-width: 95vh;
        max-width: 95dvh;
        margin: 0 1rem;
    }

    .output, .charList {
        font-size: 1.4rem;
        line-height: 1.5em;
    }
    
    img {
        font-size: 1.2rem;
    }
    
    .itemImg {
        width: 12rem;
        height: 12rem;
    }
    
    .charImages {
        margin-top: 2rem;
    }

    .charImg {
        width: 8rem;
        height: 8rem;
        margin: 0 1rem;
    }

    button.toggle.info {
        width: 3.75rem;
        height: 3.75rem;
        bottom: 1rem;
        left: 1rem;
    }

    button.toggle.set {
        width: 4rem;
        height: 3.75rem;
        bottom: 1rem;
        right: 1rem;
    }

    .settings, .information {
        width: 38rem;
        padding: 1rem;
    }

    .information p {
        font-size: 1.2rem;
    }
    
    legend {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
        margin-top: 1rem;
        line-height: 1.5em;
    }
    
    fieldset div {
        margin: 0.5rem 0;
    }
    
    input[type="checkbox"] {
        width: 2rem;
        height: 2rem;
    }

    .selectDiv {
        position: relative;
        width: 15rem;
    }
    
    .selectDiv::after {
        font-size: 1.8rem;
        bottom: 7px;
        right: 3px;
    }
    
    select {
        height: 2.8rem;
        font-size: 1.2rem;
        padding-left: 0.5rem;
    }
    
    label {
        font-size: 1.2rem;
        margin-left: 0.5rem;
    }

    .error {
        font-size: 1.2rem;
    }

}

@media screen and (max-width: 320px) {
    .settings, .information {
        width: 30rem;
        padding: 1rem;
    }

    h1 {
        font-size: 2.8rem;
    }

    .information h2, legend {
        font-size: 1.6rem;
        line-height: 1.5em;
    }

    .output, .charList, p, label {
        font-size: 1.2rem;
    }
    
    .itemImg {
        width: 9rem;
        height: 9rem;
        margin: 0.8rem;
    }
    
    .charImages {
        margin-top: 2rem;
    }

    .charImg {
        width: 6rem;
        height: 6rem;
        margin: 0 0.5rem;
    }

    fieldset div {
        margin: 0.25rem 0;
    }

}