html, body{
    width: 100vw;
    height: 100%;
    height: -webkit-fill-available;
    margin: 0;
    padding: 0;
    overflow: hidden;
}


@font-face {
    font-family: SSP;
    src: url("../res/fonts/SSP.ttf") format("truetype");
}
@font-face {
    font-family: SSP;
    font-weight: bold;
    src: url("../res/fonts/SSPB.ttf") format("truetype");
}
@font-face {
    font-family: RB;
    src: url("../res/fonts/RB.woff") format("woff"),
    url("../res/fonts/RB.ttf") format("truetype");
}


.horizontal-center {
    text-align: center;
    vertical-align: bottom;
}
.horizontal-center > * {
    display: inline-block;
    vertical-align: top;
}

/* header */

#header{
    box-sizing: border-box;
    width: 100vw;
    position: fixed;
    top:0;
    left:0;
    padding: 0 5vw;
    background: #223C45;
    font-size: 2vh;
    font-weight: 700;
    height: 6vh;
    z-index: 300;
    font-family: RB, sans-serif;
    text-align: center;
    /*box-shadow: 0 1px 3px #223C45;*/
}
#header-logo{
    float:left;
    height: 4vh;
    margin: 1vh;
    margin-left: 1vw;
    cursor: pointer;
}
#header-btns{
    float: right;
    margin-top: 2vh;
    cursor: pointer;
}
#localize-flag{
    float:right;
    transform: translate(0,0);
    margin: 0.5em;
    margin-right: 1.5em;
    height: 2em;
    z-index: 19001;
    cursor: pointer;
}
#localize-popup{
    transition-duration: 300ms;
    position: fixed;
    background-color: #223C45F0;
    z-index: 10000;
    right: calc(5vw + 1em);
    top: 6vh;
    font-size: 2vh;
    font-family: RB, sans-serif;
    padding-right: 1em;
    overflow: hidden;
}
#localize-popup.inactive{
    height: 0px !important;
}
#localize-popup > div{
    color: white;
    margin: 0.5em;
    width: 100%;
    height: 2em;
    line-height: 2em;
    cursor: pointer;
}
#localize-popup > div > img{
    float: right;
}

.btn-tit{
    margin: 0 1vh;
    color: white;
    text-decoration: none;
}
.btn-tit:hover{
    transition-duration: 333ms;
    color: #FED52B;
}

#bg-hold{
    width: 100vw;
    height: 94vh;
    position: fixed;
    top: 6vh;
    left: 0;
    z-index: -10;
}
.bg-layer{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition-duration: 500ms;
}
.bg-layer.active{
    opacity: 1;
}

#fg-split{
    width: 100vw;
    height: 94vh;
    position: fixed;
    top: 6vh;
    left: 0;
    z-index: 10;
}

#fg-cards{
    width: 70%;
    height: 100%;
    position: absolute;
    left:0;
}
#fg-menu{
    width: 30%;
    height: auto;
    position: absolute;
    right:0;
    background: #082D3E;
    padding-top: 2rem;
    padding-bottom: 2rem;
    font-size: 0px;
}

#cbox{
    width: 70%;
    height: calc(100% - 12.25em);
    border-bottom: #00000098 solid 6em;
    background: #00000098;
    position: absolute;
    left: 15%;
    top: 3em;
    overflow: auto;
    box-shadow: #000000AA 0 0 8px;
    backdrop-filter: blur(10px);
}
.cbox-page{
    box-sizing: border-box;
    width: 100%;
    padding: 2em;
    position: absolute;
    opacity: 0;
    color: white;
    transition-duration: 150ms;
    height: 1px;
    overflow: hidden;
}
.cbox-page.active{
    opacity: 1;
    height: auto;
}
.cards-btn{
    position: absolute;
    top:0;
    width: 14%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #eee;
    opacity: 0.75;
    font-size: 3em;
    transition-duration: 250ms;
    cursor: pointer;
}
.cards-btn:hover{
    opacity: 1;
    color: white;
}
.cards-btn > div{
    position: absolute;
    left: calc(50% - 0.4em);
    top: calc(50% - 0.4em);
    z-index: -1;
    width: 0.8em;
    height: 0.8em;
    border-radius: 0.5em;
    background: #082D3E;
    opacity: 0.6;
}
#cards-right{
    right:0;
}

#dc-icons{
    width: 70%;
    left: 15%;
    position: absolute;
    bottom: 3em;
}
.dotto{
    position: relative;
    font-size: 2.5em;
    margin: 1rem;
}
.dotto > div:not(.dci-icon){
    height: 1rem;
}
.dotto > div > img{
    width: 1em;
    height: 1em;
}
.dci-icon{
    opacity: 0.6;
    transform: translateY(0.1em);
}
.dci-icon:hover{
    opacity: 1;
}
.dci-bar{
    background: white;
    width: 0.25em;
    height: 3px;
    border-radius: 1px;
    transition-duration: 300ms;
    opacity: 40%;
}
.active > div > .dci-bar{
    width: 0.75em;
    background: #FED52B;
    opacity: 90%;
}
.active > .dci-icon{
    opacity: 0.95 !important;
}

.menuPart{
    overflow: hidden;
    transition-duration: 300ms;
    display: inline-block;
    font-size: 1rem;
}
.menuPart.btnSplit{
    overflow: hidden;
    position: relative;
}
.menuPart.btnSplit > a{
    display: block;
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    text-decoration: none;
    color: black;
    transition-duration: 150ms;
    filter: brightness(100%);
}
.menuPart.btnSplit > a:hover{
    filter: brightness(80%);
}
.menuPart.btnSplit > a:first-child {
    left:0;
    border-right: 1px solid gray;
}
.menuPart.btnSplit > a:last-of-type {
    right:0;
    border-left: 1px solid gray;
}
.menuPart.botton > span{
    z-index: 5;
}
.menuPart.botton > i{
    height: 100%;
    font-size: 6.8rem;
    opacity: 0.4;
    position: absolute;
    right:-0.05em;
    top:-0.05em;
    transition-duration: 500ms;
    pointer-events: none;
}
.menuPart.botton > svg{
    height: 6.5rem;
    opacity: 0.4;
    position: absolute;
    right:-0.2rem;
    top:-0.2rem;
    transition-duration: 500ms;
    pointer-events: none;
}
.menuPart.botton > img{
    height: 6.5rem;
    opacity: 0.4;
    position: absolute;
    right:-0.2rem;
    top:-0.2rem;
    transition-duration: 500ms;
    pointer-events: none;
}
.menuPart.botton:hover > i{
    transform: scale(1.15);
}
.menuPart.botton:hover > svg{
    transform: scale(1.15);
}
.menuPart.botton:hover > img{
    transform: scale(1.15);
}
.menuPart.hidden{
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
}
.menu-buttons > a{
    width: 40%;
    height: 4em;
    border-radius: 0.75em;
    margin: 0.5vw 0.25vw;
    font-family: RB, sans-serif;
    text-decoration: none;
    font-size: 1.5rem;
    text-align: center;
    line-height: 4em;
    background: gray;
    position: relative;
    color: white;
}
.menu-buttons > div{
     width: calc(80% + 0.5vw);
     height: 4em;
     border-radius: 0.75em;
     margin: 0.5vw 0.25vw;
     font-family: RB, sans-serif;
     text-decoration: none;
     font-size: 1.5rem;
     text-align: center;
     line-height: 4em;
     background: gray;
     position: relative;
     color: white;
 }
.menuPart.heading{
    font-family: SSP, sans-serif;
    font-weight: bold;
    color: white;
    width: 100%;
    font-size: 1.5rem;
    margin: 0.3em 0;
    text-align: center;
}
.menuPart.heading.hidden{
    margin: 0;
}
.menuPart.return{
    color: white;
    width: 100%;
    text-align: center;
    font-family: SSP, sans-serif;
    line-height: 2rem;
    padding: 2rem 0;
    text-decoration: none;
}

.cbox-page > h1{
    font-family: RB, sans-serif;
    font-weight: 100;
    width: 100%;
    text-align: center;
    font-size: 3em;
}
.cbox-page > p{
    font-family: SSP, sans-serif;
    line-height: 1.5em;
    font-size: 1.5em;
}

@media (orientation: portrait) {
    .nomobile{
        display: none;
    }

    #fg-split{
        display: grid;
        grid-template-rows: 1fr max-content;
        height: 94%;
    }
    #fg-cards{
        width: unset;
        height: unset;
        justify-self: stretch;
        align-self: stretch;
        position: relative;
    }
    #fg-menu{
        justify-self: stretch;
        align-self: stretch;
        width: unset;
        height: auto;
        padding-bottom: 2rem;
        position: relative;
    }

    #header > a{
        display: inline-block;
    }

    #dc-icons{
        bottom: 3.25em;
    }
    .dotto{
        font-size: 4em;
    }
    #cbox{
        border-bottom: #00000098 solid 8.5em;
        height: calc(100% - 14.75em);
    }
    .cbox-page > p{
        font-size: 2em;
    }

    .menuPart{
        font-size: 2rem;
    }
    .menuPart.heading{
        font-size: 3rem;
    }
}

@media screen and (max-height: 700px) {
    .cbox-page > h1{
        font-size: 2rem;
    }
    .cbox-page > p{
        font-size: 1rem;
    }
}

@media (orientation: portrait) and (max-width: 71rem){
    #cbox{
        border-bottom-width: 16.5em;
        height: calc(100% - 22.75em);
    }
}

@media (orientation: landscape) and (max-width: 77rem){
    #cbox{
        border-bottom-width: 10.5em;
        height: calc(100% - 17.75em);
    }
}
