* {
    margin: 0;
    padding: 0;
}

html, body{
    width: 100%;
    /* overflow-x: hidden; */
    font-family: 'League Spartan', sans-serif;
    /* scroll-behavior: smooth; */
    /* scroll-padding-top: 8rem; */
}
*:not(input) {
    cursor: default;
}
a {
    all: unset;
    cursor: pointer;
    transition-duration: 300ms;
    user-select: none;
}
/* anims */
@keyframes offSlideLeft {
    0%  {
        opacity: 1; transform: translateX(0);
    }
    0.1%  {
        opacity: 0.5; transform: translateX(50vw);
    }
    20%  {
        opacity: 1; transform: translateX(0);
    }

    80% {
        opacity: 1; transform: translateX(0);
    }
    99.9% {
        opacity: 0.5; transform: translateX(50vw);
    }
    100%  {
        opacity: 1; transform: translateX(0);
    }
}
@keyframes offSlideRight {
    0% {
        opacity: 1; transform: translateX(0);
    }
    0.1%  {
        opacity: 0.5; transform: translateX(-50vw);
    }
    20%  {
        opacity: 1; transform: translateX(0);
    }

    80% {
        opacity: 1; transform: translateX(0);
    }
    99.9% {
        opacity: 0.5; transform: translateX(-50vw);
    }

    100% {
        opacity: 1; transform: translateX(0);
    }
}
/* base components */
#root {
    width: 150vw;
    /*overflow-x: hidden;*/
    letter-spacing: 1px;
    scroll-behavior: smooth;
}
#main-scroll {
    width: 100%;
    height: auto;
}
.sect {
    width: 100%;
    height: 100vh;
    clear: both;
    box-sizing: border-box;
    position: relative;
    text-align: center;
    color: white;
    /* overflow: hidden; */
    /*background: linear-gradient(lightgray, gray);*/
}
.sect-background{
    width: 100%;
    height: 100%;
    z-index: -100;
    position: absolute;
    top: 0; left: 0;
    display: block;
}
.sect-bar{
    width: 100%;
    height: 4vh;
    position: absolute;
    left:0;
    bottom: -2vh;
    z-index: 10;
}
.sect-header{
    margin-left: 14vw;
    width: 70vw;
    padding: 1vw;
    font-size: xx-large;
    border-bottom: 2px solid #FED52B;
    text-align: left;
}
.sect.disabled{
    display: none;
}
.horizontal-center {
    text-align: center;
    vertical-align: bottom;
}
.horizontal-center > * {
    display: inline-block;
    vertical-align: top;
}
.horizontal-float > * {
    float: left;
}
/* commons */

/* header */

#header{
    width: 100%;
    position: fixed;
    top:0;
    left:0;
    background: #122E49;
    font-size: 2rem;
    font-weight: 700;
    height: 1.5em;
    padding-top: 0.5em;
    z-index: 300;
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}
.header-bg{
    width: 100%;
    position: absolute;
    top: calc(6rem - 4.5vw);
    left: 0;
    z-index: -10;
}
.header-logo{
    height: 1.5em;
    margin-left: 2em;
}
#header-btns{
    cursor: pointer;
    display: flex;
    gap: 2em;
}

.btn-tit{
    color: #4589C8;
    font-variant: small-caps;
}
.btn-tit:hover{
    transition-duration: 333ms;
    color: #eef;
}
.btn-tit:focus{
    transition-duration: 100ms;
    color: #fff;
}

#overlay-trailer{
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: #000000A0;
    z-index: 1000;
    pointer-events: all;
}
#overlay-trailer-vid{
    width: 80vw;
    height: 45vw;
    max-height: 90vh;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#overlay-menu{
    position: fixed;
    width: 100vw;
    height: 100vh;
    display: none;
    background-color: #00000060;
    z-index: 200;
    backdrop-filter: blur(4px);
}
#overlay-menu > div{
    width: 60vw;
    height: 100vh;
    padding-top: 15vh;
    background-color: #4589c8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-size: 4vh;
    gap: 1em;
    position: absolute;
    top: 0;
    left: -70vw;
    transition-duration: 350ms;

    font-weight: 700;
    color: white;
}

#overlay-agreement{
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: #00000030;
    z-index: 1001;
    pointer-events: all;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
#oa-box {
    background-color: white;
    border-radius: 5px;
    border: 0.2em solid #4589C8;
    padding: 3em 4em 2em 10em;
    max-width: 60vw;
    max-height: 70vh;
    margin: 5vw auto;
    color: #122E4A;
    text-align: left;
    font-size: 1rem;
    /*overflow: auto;*/
    position: relative;
}
#oa-box > p{
    margin: 1.5em 0;
    line-height: 1.5em;
}
#oa-box > div {
    text-align: right;
}
#oa-box > div > button {
    display: inline-block;
    line-height: 2em;
    font-size: 1.2em;
    color: white;
    background-color: #1E5892;
    text-align: center;
    padding: 0 3em;
    border-radius: 0.6em;
    border: 0;
    font-weight: bolder;
    transition-duration: 300ms;
}
#oa-box > div > button:last-child{
    line-height: 1.7em;
    font-size: 1.2em;
    color: #1E5892;
    background-color: #1E589200;
    padding: 0 1em;
    border-radius: 0.6em;
}
#oa-box > div > button:hover{
    filter: brightness(1.4);
    cursor: pointer;
}
#oa-box > i{
    position: absolute;
    top: 2rem;
    left: 3rem;
    font-size: 4em;
    color: #4589C8;
}

/* Section: title */
#sect-tit{
    display: flex;
    gap: 2em;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
#sect-tit-bg{
    background: url("../res/bg/tit.webp") no-repeat center center fixed;
    background-size: cover;
}
#sect-tit-logo{
    max-width: 80vw;
    max-height: 50vh;
    transition-duration: 300ms;
}
#sect-tit-buttons{
    padding: 2em;
    max-width: 70vw;
    display: grid;
    gap: 5em;
    grid-template-columns: repeat(auto-fit, minmax(10em, 25em));
}
#sect-tit-buttons button, .specialbutton{
    border-radius: 0.5em;
    border: 0;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    padding: 0.5em;
    font-family: 'League Spartan', sans-serif;
    font-weight: 800;
    font-variant: all-small-caps;
    white-space: nowrap;
    width: 100%;
}
#sect-tit-buybutton {
    overflow: hidden;
    display: flex;
    justify-content: center;
    transition-duration: 100ms;
    gap: 0.5em;
}
#sect-tit-buybutton:hover {
    transform: scale(105%);
}
#sect-tit-buybutton > a {
    background-color: #ffffff00;
    transition-duration: 100ms;
}
#sect-tit-buybutton > a >*{
    cursor: pointer;
    vertical-align: middle;
}
#sect-tit-buybutton > a:hover {
    /*background-color: #ffffff30;*/
    /*transform: scale(105%);*/
    text-shadow: #544 0 0 15px;
    /*color: #ddd;*/
}
#sect-tit-social{
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    color: #4589C8;
    font-size: 2rem;
}
#sect-tit-social > a{
    padding: 0.5rem;
}
/* Section: message */
#sect-msg{
    height: auto;
    font-size: 3.5rem;
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
    padding: 1rem 3em;
    background: #FF9100;
    /*overflow: hidden;*/
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    z-index: 100;
}
#sect-msg > *{
    padding: 0.5em;
    padding-bottom: 0.3em;
}
#sect-msg > b{
    background-color: #C74F00;
    font-weight: 300;
}
#sect-msg > div{
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
}
#sect-msg > div > a{
    margin: 0.5rem;
    margin-top: 0.1rem;
    padding: 0.8rem;
    padding-bottom: 0.7rem;
    border-radius: 0.5rem;
    font-size: 2rem;
    color: #FF9100;
    background-color: white;
    vertical-align: baseline;
}

/* section: slider*/
#sect-sli{
    background: none;
    height: 185vh;
    position: relative;
    font-size: 3.5rem;
}
.sliBox{
    overflow: hidden;
}
.sect-sli-textbox > *{
    padding: 0.5em;
    padding-bottom: 0.3em;
    font-weight: 900;
}
.sect-sli-textbox > b{
    background-color: #FF9100;
    font-weight: 300;
}
.sliBlock{
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;

    background-attachment: fixed;
    background-size: cover;
    background-position: center;

    z-index: -10;
}
.sliBlock > div{
    position: fixed;
    bottom: 4em;
    width: 100%;
    text-align: center;
}
.sliBlock:first-child{
    background-image: url("../res/bg/slider-in.webp");
    height: 100vh;
}
.sliBlock:not(:first-child){
    margin-top: -15vh;
    background-image: url("../res/bg/slider-out.webp");
    mask: url("../res/gfx/paintAlpha.png");
    mask-size: cover;
    mask-position: top center;
    mask-mode: auto;
    mask-composite: subtract;
    -webkit-mask: url("../res/gfx/paintAlpha.png") top center, url("../res/gfx/paintFull.png") top max(5.9vw,5.9vh) center;
    -webkit-mask-size: max(100vw, 100vh) max(6vw,6vh), 100vw 100vh;
    -webkit-mask-repeat: repeat-x;
}

/* Section: features */
#sect-fea{
    height: auto;
    display: grid;
    grid-template-columns: 50% 50%;
    grid-auto-flow: dense;
    grid-auto-rows: 1fr;
}
.sect-fea-img{
    background-size: cover;
    background-position: center;
    /*overflow: hidden;*/
    height: 25vw;
}
.sect-fea-desc{
    background: white;
    overflow: hidden;
    height: 25vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-size: 1.25vw;
    box-sizing: border-box;
    padding: 2em;
    line-height: 1.5em;
    gap: 1em;
    view-timeline-name: --feaSect
}
.sect-fea-img:nth-child(4n+1){
    grid-column: 2;
}
.sect-fea-img:nth-child(4n+3){
    grid-column: 1;
}
.sect-fea-desc:nth-child(4n+2){
    grid-column: 1;
    background: #4589C8;
    color: white;
    align-items: flex-end;
    text-align: right;
}
.sect-fea-desc > .animR{
    animation: linear offSlideRight both;
    animation-timeline: --feaSect;
    animation-range: entry 10% cover 90%;
}
.sect-fea-desc > .animL{
    animation: linear offSlideLeft both;
    animation-timeline: --feaSect;
    animation-range: entry 10% cover 90%;
}
.sect-fea-desc:nth-child(4n){
    grid-column: 2;
    background-size: 100%;
    background: url("../res/bg/tit.webp") fixed top;
    color: #122E4A;
    align-items: flex-start;
    text-align: left;
}
.sect-fea-desc > h1{
    font-variant: small-caps;
    font-size: 1.5em;
    letter-spacing: 0.08em;
}
.sect-fea-desc > p{
}
.sect-fea-desc > hr{
    width: 50%;
    border: solid 0.2em #ff9100;
    background-color: #ff9100;
}
/* Section: pictures */
#sect-pic{
    font-size: 1rem;
    height: 20.5em;
    background: white;
    padding: 2em 0;
}
#spic-container{
    overflow-x: hidden;
}
#spic-scroller{
    display: flex;
    flex-direction: row;
    padding: 0 6em;
    transform: translateX(0px);
    transition-duration: 250ms;
}
#spic-scroller > a > img{
    width: 24em;
    height: 14.5em;
    margin: 1em;
    transition-duration: 250ms;
    filter: brightness(0.9);
    cursor: pointer;
}
#spic-scroller > a > img:hover{
    transform: scale(1.15);
    filter: brightness(1);
    z-index: 10;
}
#spic-scroller:not(:hover) > a.current > img{
    transform: scale(1.1);
    filter: brightness(1);
    z-index: 10;
}
.spic-control{
    position: absolute;
    background: linear-gradient(90deg, #ffffffff, #ffffff00);
    line-height: 22rem;
    font-size: 4rem;
    width: 6rem;
    height: 24rem;
    top: 0;
    left: 0;
    user-select: none;
    cursor: pointer;
}
.spic-control.right{
    left: unset;
    right: 0;
    transform: scaleX(-1);
}
/* Section: community */
#sect-com{
    height: auto;
    font-size: 3.5rem;
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
    padding: 1rem 3em;
    background: #FF9100;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
#sect-com > *{
    padding: 0.5em;
    padding-bottom: 0.3em;
}
#sect-com > b{
    background-color: #C74F00;
    font-weight: 300;
}
#sect-com > div{
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
}
#sect-com > div > a{
    margin: 0.5rem;
    margin-top: 0.1rem;
    padding: 0.8rem;
    padding-bottom: 0.7rem;
    border-radius: 0.5rem;
    font-size: 2rem;
    color: #FF9100;
    background-color: white;
    vertical-align: baseline;
}

/* Section: mail */
#sect-mai{
    padding-top: 7vh;
    height: auto;
    font-size: 2em;
    padding-bottom: 5vh;
    font-family: SSP, sans-serif;
    overflow: hidden;
    view-timeline-name: --bober
}
#sect-mai>h5{
    font-size: 1.9em;
}
#mai-bg-img{
    background: url("../res/bg/bricks.webp") no-repeat center center;
    background-size: cover;
}
#mai-bg-gradient{
    background: linear-gradient(#0294BFE0, #0294BF20);
}

/* Section: footer */
#sect-foo{
    height: auto;
    background: #122E4A;
    padding: 2em;
    font-size: min(3em, 2vw);
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2em
}
#sect-foo img{
    max-width: min(25vw,25vh);
    max-height: min(25vw,25vh);
}
#sect-foo > span{
    font-weight: 800;
    text-align: center;
    line-height: min(25vw,25vh);
    line-break: unset;
}
#sect-foo a{
    text-align: left;
    cursor: pointer;
    padding-right: 0.5em;
}
#sect-foo a:hover{
    text-decoration: underline;
}
#sect-foo a:visited{
    color: white;
}
#sect-foo-col{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.5em;
    padding-top: 1em;
    /*margin-left: 10vw; */
}
#sect-foo-com{
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    font-size: 0.75em;
    gap: 0.5em;
}
#sect-foo-com > a, #sect-foo-com a:visited{
    width: 1.5em;
    height: 1.5em;
    text-align: center;
    line-height: 1.8em;
    padding: 0;
    border-radius: 0.5rem;
    color: white;
    background-color: #4589C8;
}
#sect-foo-com > a:hover{
    color: #122E4A;
}

#foo-rights {
    position: absolute;
    bottom: 1em;
    right: 3em;
    font-size: 1rem;
    z-index: 1000;
}

.yesmobile{
    display: none;
}

@media only screen and (max-width: 900px) and (orientation: portrait){
    .nomobile{
        display: none;
    }
    .yesmobile{
        display: unset;
    }

    #header{
        background: none;
    }
    .header-bg{
        top: 0;
        height: 10vh;
        width: auto;
    }

    #oa-box{
        max-width: 90vw;
        max-height: 70vh;
        font-size: 0.8rem;
        box-sizing: border-box;
        padding: 7rem 0.5rem 0.5rem 0.5rem;
        text-align: center;
    }
    #oa-box > i {
        font-size: 4rem;
        width: 100%;
        top: 2rem;
        left: 0;
        text-align: center;
    }
    #oa-box > div{
        text-align: center;
    }

    #overlay-menu{
        display: block;
        opacity: 0;
        pointer-events: none;
        transition-duration: 250ms;
    }
    #overlay-menu.active{
        opacity: 1;
        pointer-events: all;
    }
    #overlay-menu.active > div{
        left: 0;
    }

    #sect-tit{
        padding-top: 12vh;
        gap: 0;
    }
    #sect-tit-buttons {
        gap: 2rem;
    }
    #sect-tit-buttons button{
        font-size: 2rem;
    }
    #sect-tit-logo{
        max-width: 60vw;
        max-height: 40vh;
    }

    #sect-fea{
        grid-template-columns: 100%;
        grid-auto-rows: max-content;
    }
    #sect-fea > *{
        grid-column: 1;
    }
    .sect-fea-img{
        height: 40vh;
    }
    .sect-fea-desc{
        height: auto;
        min-height: 40vh;
        font-size: 1rem;
        align-items: center !important;
        text-align: center !important;
        background: #4589C8 !important;
        color: white !important;
    }

    /*This section is completely different on mobile so all components need changes*/
    #sect-pic{
        height: 70vh;
        margin: 0; padding: 0;
        background: #FF9100;
    }
    #spic-container{
        overflow: scroll;
        width: 100%; height: 100%;
        margin: 0; padding: 0;
    }
    #spic-scroller{
        width: 100%; height: 100%;
        margin: 0; padding: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        transform: translateX(0);
        transition-duration: 250ms;
    }
    #spic-scroller > a.fake{
        display: none;
    }
    #spic-scroller > a.big > img{
        margin: 0;
        width: 100vw;
        height: 56.25vw;
    }
    #spic-scroller > a > img{
        margin: 0;
        padding: 0;
        width: 50vw;
        height: 28.125vw;
    }
    #spic-scroller > a.big{
        grid-column: span 2;
        width: 100vw;
        height: 56.25vw;
    }
    #spic-scroller > a{
        display: inline-block;
        grid-column: span 1;
        margin: 0;
        padding: 0;
        width: 50vw;
        height: 28.125vw;
    }
    .spic-gradient{
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 5vh;
    }
    .spic-gradient.bottom{
        bottom: 0;
        background: linear-gradient(#44100001, #FF9100ff);
    }
    .spic-gradient.top{
        top: 0;
        background: linear-gradient(#4589C8ff, #10203001);
    }
    .spic-control{
        display: none;
    }

    #sect-com{
        font-size: 2rem;
    }

    #sect-foo{
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1em;
        font-size: 1.6rem;
    }
    #sect-foo a{
        padding: unset;
    }
    #sect-foo-col{
        margin: 0;
        justify-content: center;
        align-items: center;
    }
    #sect-foo img{
        max-width: 50vw;
        max-height: 50vw;
    }
    #foo-rights{
        bottom: 1em;
        left: 0;
        width: 100vw;
        text-align: center;
    }
}
