html {
    background-color: #1C1421;
    font-family: Saturn;
    overflow: hidden;
    --ofdtime: 250ms;
}



@font-face {
    font-family: Saturn;
    src: url(assets/font.otf);
}

::-webkit-scrollbar {
    width: 30px;
}

::-webkit-scrollbar-track {
    background-color: #2D1E2F;
    border-right: 10px #1C1421 solid;
    margin-bottom: 10px;
}


::-webkit-scrollbar-thumb {
    background-color: #FCECD1;
    height: 20%;
    border-right: 10px #1C1421 solid;
    background-clip: padding-box;
}

.abscent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.depthcentered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.abshoricent {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
}

.bg_banner {
    width: 70vw;
}

.bg_bannerdiv {
    width: 70vw;
    top: 50%;
    height: 40vh;
    overflow: clip;
}

@keyframes edifanim {

    0% {
        opacity: 0;
        transform: translateY(10%);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }


}

.bg_bannerdiv img {
    position: absolute;
    width: 100%;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    animation-delay: calc(var(--ofd)*var(--ofdtime));
    opacity: 0;
}

.animedif {
    animation-fill-mode: forwards;
    animation-name: edifanim;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(1, 0, 0, 1);
}

.TRLogo {
    position: absolute;
    left: 9vw;
    top: 4vh;
    height: 7vh;
    transform: scale(1.0);
    transition: 250ms;
}

.BLicons {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1vw;
    margin: 0;
    padding: 0;
}

.BLicons>img {
    height: 15vh;
}

.BRSocials {
    position: absolute;
    right: 5vw;
    bottom: 5vh;
    color: #FCECD1;
    font-size: 2rem;
    transform: scale(1);
}

.BRSocials {
    cursor: pointer;
}


#xlink:hover {
    color: #AAD795;
}

#dlink:hover {
    color: #AAD795;
}



.HLreset {
    text-decoration: none;
    color: inherit;
}

.window {
    border: 5px solid #FCECD1;
    height: 60vh;
    width: 40vw;
}

.windowtab {
    height: 10%;
    width: 100%;
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: #FCECD1;
    margin-top: -0.5%;
}


.windowtab>button {
    background-color: #1C1421;
    font-family: Saturn;
    height: 100%;
    width: 8%;
    margin-left: 92%;
    color: #FCECD1;
    font-size: 2rem;
    border: transparent;
    transform: scale(1);
    transition: 0ms;
    opacity: 1;
    cursor: pointer;
}

.windowtab>p {
    position: absolute;
    margin: 0;
    top: 0%;
    font-size: 1.5rem;
}

.windowtab>button:hover {
    opacity: 0.5;
}


.windowmaintext span {
    color: #FCECD1;
    position: absolute;
    text-wrap: nowrap;
}

.windowmaintext>span:nth-child(1) {
    font-size: 4em;
    top: 15%;
    right: 5%;
}

.windowmaintext>span:nth-child(2) {
    font-size: 2em;
    top: 27%;
    right: 5%;
}

.windowline {
    position: absolute;
    top: 35%;
    width: 90%;
    height: 2px;
    background-color: #FCECD1;
}

.windowmainbuttons {
    position: absolute;
    bottom: -2%;
    width: 100%;
}

.windowmainbuttons>button {
    position: absolute;
    color: black;
    background-color: #AAD795;
    border: transparent;
    font-family: Saturn;
    font-size: 2rem;
}

.windowmainbuttons>button:hover {
    cursor: pointer;
}

.windowmainbuttons>button:first-child {
    left: 0;
}

.windowmainbuttons>button:nth-child(3) {
    right: 0;
}

.unitslist {
    background-color: rgba(28, 20, 33, 0.95);
    border: 5px solid #FCECD1;
    width: 75vw;
    top: 5vh;
    height: 84vh;
    transform: translate(-50%, 0);
}

.smallwindowtab {
    height: 5%;
    margin-top: -0.1%;
    transition: 0;
}

.smallwindowtab>.closewindowbutton {
    width: 5%;
    margin-left: 95%;
    font-size: 1rem;
}


.unitstitle {
    position: relative;
    height: 8%;
    width: 100%;
    font-family: Saturn;
    margin-bottom: 2%;
}

.unitstitle>span:nth-child(1) {
    position: absolute;
    font-size: 2.5rem;
    color: #FCECD1;
    right: 2.5%;
    top: 50%;
    transform: translateY(-50%);
}


.unitstitle>.windowline {
    position: absolute;
    top: 100%;
    width: 95%;
}

.unitswrapper {
    position: relative;
    display: grid;
    height: 81%;
    width: 100%;
    overflow-y: scroll;
    grid-template-columns: repeat(5, 19.8%);
}

.unit {
    display: inline-block;
    color: #FCECD1;
    margin-bottom: 15%;
    margin-left: 5%;
    transform: scale(1);
    transition: 120ms;
    box-shadow: 0 0 0px black;
}

.unit:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
    cursor: pointer;

}

.usnit:hover>span:nth-child(2) {
    color: #AAD795;
}

.unsit:hover>span:nth-child(3) {
    background-color: #AAD795;
    transition: 120ms;
}

.units>span:nth-child(2) {
    color: #FCECD1;
    font-size: 3rem;
    margin: 0;
    transition: color 120ms;
    line-height: 50%;
}

.units>span:nth-child(3) {
    color: #1C1421;
    background-color: #FCECD1;
    font-size: 1.5rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    margin: 0;
}

.unit>p:nth-child(3) {
    color: #FCECD1;
    font-size: 1.7rem;
    margin: 0;
    opacity: 0.5;
    line-height: 80%;
    padding-bottom: 0.8rem;
}

.unit:hover>.unitname span:nth-child(1) {
    color: #AAD795;
}

.unit:hover>.unitname span:nth-child(2) {
    color: #AAD795;
}


.unit img {
    width: 100%;
}

.unitname {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.unitname span:nth-child(1) {
    color: #FCECD1;
    font-size: 3rem;
    margin: 0;
    transition: color 120ms;
    line-height: 90%;
}

.unitname span:nth-child(2) {
    color: #FCECD1;
    font-size: 1.5rem;
    margin: 0;
    margin-left: 0.25rem;
}

.minwindowtab {
    height: 4%;
    margin-top: -0.1%;
}

.minwindowtab>.closewindowbutton {
    width: 2.5%;
    margin-left: 97.5%;
    font-size: 1rem;
}


.unitdesc {
    top: 4vh;
    height: 86vh;
    width: 70vw;
    border: 5px #FCECD1 solid;
    background-color: #1C1421;
}

.unitimgcontainer {
    position: absolute;
    border: 5px #FCECD1 solid;
    height: 92%;
    width: 65%;
    top: 6%;
    left: 0.5%;
}

.mainrender {
    background-image: var(--imgdir);
    height: 95%;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.unitimgcontainer img {
    height: 95%;
}

.slidebuttoncontainer {
    position: absolute;
    height: 5%;
    width: 100%;
    bottom: 0;
    left: 0;
    border: transparent;
}

.slidebuttoncontainer button {
    position: absolute;
    height: 100%;
    width: 5%;
    border: transparent;
    background-image: url(assets/1.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.slidebuttoncontainer>button:nth-child(1) {
    left: 0%;
    top: 0;
}

.slidebuttoncontainer>button:nth-child(2) {
    right: 0%;
    top: 0;
}

.slidebuttoncontainer button>img {
    height: 100%;
}

.rotated {
    transform: rotate(180deg);
}

.sphereswrapper {
    position: absolute;
    display: grid;
    grid-template-columns: var(--columns);
    grid-template-rows: 100%;
    align-content: center;
    height: 100%;
    width: auto;
    left: 50%;
    transform: translateX(-50%);
}

.sphere {
    background-image: url(assets/2.png);
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
}

.current {
    background-image: url(assets/2fill.png);
}

.unittext {
    position: absolute;
    top: 6%;
    left: 67%;
    width: 32.5%;
    height: 93%;
}

.unittext .windowline {
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    background-color: #452E3F;
}

.unittext p {
    font-family: Saturn;
    color: #FCECD1;
    ;
    margin: 0;
}


.unittext>span:nth-child(1) {
    font-size: 5rem;
    color: #FCECD1;
}

.unittext>span:nth-child(2) {
    color: #FCECD1;
    font-size: 2.5rem;
}

.unittext>p:nth-child(3) {
    font-size: 2.5rem;
    color: #AAD795;
}

.unittext>p:nth-child(5) {
    font-size: 1.5rem;
    line-height: 80%;
}

.buttoncontainer {
    position: absolute;
    bottom: 7.5%;
    height: 45%;
    width: 100%;
}

.buttonexternallink {
    position: relative;
    width: 100%;
    height: 16%;
    background-color: #FCECD1;
    margin-bottom: 1vh;
    border-top: 1vh #FCECD1 solid;
    border-bottom: 1vh #FCECD1 solid;
}

.buttonexternallink>p {
    position: absolute;
    font-size: 2.5rem;
    left: 2%;
    top: 50%;
    transform: translateY(-57%);
    color: Black;
    margin: 0;
    width: 30%;
    text-align: left;
    line-height: 55%;
}

.buttonexternallink>img {
    position: absolute;
    width: 10%;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.animatable {
    transition: 250ms;
}

.oculto {
    transform: translateX(-50%) scale(0.8) rotateX(11deg) rotateY(11deg);
    opacity: 0;
}

.visible {
    transform: translateX(-50%) scale(1) rotateX(0deg) rotateY(0deg);
    opacity: 100%;
}

.ocultoabs {
    transform: translate(-50%, -50%) scale(0.8) rotateX(11deg) rotateY(11deg);
    opacity: 0%;
}

.visibleabs {
    transform: translate(-50%, -50%) scale(1) RotateX(0deg) rotateY(0deg);
    opacity: 100%;
}

.backlayer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
}

.backlayeranim {
    transition: 300ms;
}

.fadeanim {
    transition: 100ms;
}

.focuslayer {
    position: absolute;
    left: 0;
    top: 0;
    height: 100vh;
    width: 100vw;
    background-color: black;
    opacity: 0;
}

.loadercont {
    height: 250px;
    width: 500px;
    z-index: 30;
    animation-fill-mode: forwards;
}

.loadercont p {
    text-align: center;
    font-size: 5rem;
    font-family: saturn;
    color: #FCECD1;
}

.bar {
    position: absolute;
    left: 50%;
    top: 70%;
    width: 80%;
    height: 20%;
    background-color: #452E3F;
    transform: translateX(-50%);
    overflow: hidden;
}


.bar>div {
    --w: 20%;
    position: absolute;
    left: calc(var(--w)*-1);
    width: var(--w);
    height: 100%;
    background: #FCECD1;
    transition: 250ms;
    animation-name: loader;
    animation-duration: 1.5s;
    animation-timing-function: steps(15);
    animation-iteration-count: infinite;
}

@keyframes loader {
    0% {
        left: calc(var(--w)*-1);
    }

    100% {
        left: 100%;
    }
}



@keyframes slidedowcent {
    0% {
        transform: translateX(-50%) translateY(-50%);
        opacity: 1;
    }

    25% {
        opacity: 0;
    }

    100% {
        transform: translateX(-50%) translateY(100vh);
        opacity: 0;
    }
}

.slideanim {
    animation-name: slidedowcent;
    animation-duration: 0.75s;
    animation-timing-function: ease-in-out;
}

.mediagallery {
    display: block;
    height: 90vh;
    width: 75vw;
    background-color: rgba(28, 20, 33, 1);
    border: 5px solid #FCECD1;
}

.gallerytitle {
    position: relative;
    height: 8%;
    width: 100%;
    font-family: Saturn;
    margin-bottom: 2%;
}

.gallerytitle>span:nth-child(1) {
    position: absolute;
    font-size: 2.5rem;
    color: #FCECD1;
    right: 1.5%;
    top: 50%;
    transform: translateY(-50%);
}


.gallerytitle>.windowline {
    position: absolute;
    top: 100%;
    width: 98%;
}

.gallerywrapper {
    position: relative;
    height: 80%;
    width: 98%;
    overflow-y: scroll;
    overflow-x: hidden;

    display: grid;
    grid-template-columns: repeat(5, 19.5%);
    row-gap: 1%;
    column-gap: 0.5%;
    grid-auto-rows: 33%;
    grid-auto-flow: dense;
}

.gallerywrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: 100ms;
    box-sizing: border-box;
}

.wide {
    grid-column: span 2;
}

.slim {
    grid-row: span 2;
}

.bigsquare {
    grid-row: span 2;
    grid-column: span 2;
}

.gallerywrapper:hover>* {
    opacity: 0.25;
}

.gallerywrapper:hover>*:hover {
    opacity: 1;
    border: 5px solid #FCECD1;
}

.gallerywrapper::-webkit-scrollbar {
    margin: 0;
    width: 15px;
}

.gallerywrapper::-webkit-scrollbar-track {
    background: transparent;
    border: 0;
    margin: 0;
}

.gallerywrapper::-webkit-scrollbar-thumb {
    background: #FCECD1;
    padding: 0 4px;
    border: 0;
    border-left: 2.5px solid transparent;
    border-right: 2.5px solid transparent;
    background-clip: padding-box;
}

.mediawindow {
    height: 95vh;
    width: 80vw;
    background-color: #1C1421;
    background-color: rgba(28, 20, 33, 0.8);
    border: 5px #FCECD1 solid;
}

.imgprevcont {
    background-color: transparent;
    width: 100%;
    height: 95%;
}

.imgprevcont img {
    object-fit: contain;
    height: 100%;
    width: 100%;
}

.control {
    position: absolute;
    top: 5%;
    height: 95%;
    width: 5%;
    background-color: rgba(28, 20, 33, 0.5);
    opacity: 0.5;
    transition: 250ms;
    border: transparent;
}

.control:focus {
    outline: none;
}

.control:hover {
    opacity: 1;
    cursor: pointer;
}

#controlizq {
    left: 0;
}

#controlder {
    right: 0;
}

@media (max-width :1220px) {


    .window {
        width: 80vw;
    }

    .windowmaintext span {
        color: #FCECD1;
        position: absolute;
        text-wrap: nowrap;
    }

    .windowmaintext>span:nth-child(1) {
        font-size: 2.3em;
        top: 15%;
        right: 5%;
    }

    .windowmaintext>span:nth-child(2) {
        font-size: 2em;
        top: 22.5%;
        right: 5%;
    }

    .windowline {
        position: absolute;
        top: 32%;
        width: 90%;
        height: 2px;
        background-color: #FCECD1;
    }

    .bg_bannerdiv {
        width: 200vw;
        top: 50%;
        height: 29vh;
        overflow: clip;
    }

    .windowtab {
        height: 5%;
    }

    #mainwindowtab {
        height: 7%;
    }

    .windowtab>button {
        height: 100%;
        width: 8%;

    }

    .windowmainbuttons {
        position: absolute;
        bottom: -2%;
        width: 100%;
    }

    .windowmainbuttons>button {
        font-size: 1.5rem;
    }

    .windowmainbuttons>button:first-child {
        left: 0;
    }

    .windowmainbuttons>button:nth-child(3) {
        right: 0;
    }

    .unitswrapper {
        grid-template-columns: repeat(2, 49%);
        overflow-x: hidden;
    }

    .unitslist {
        width: 85vw;
    }

    .unit {
        margin-bottom: 0;
    }

    .unitname span:nth-child(1) {
        font-size: 2rem;
    }

    .unitname span:nth-child(2) {
        font-size: 1.5rem;
    }

    ::-webkit-scrollbar {
        width: 15px;
    }

    ::-webkit-scrollbar-track {
        background-color: #2D1E2F;
        border-right: 5px #1C1421 solid;
        margin-bottom: 10px;
    }


    ::-webkit-scrollbar-thumb {
        background-color: #FCECD1;
        height: 20%;
        border-right: 5px #1C1421 solid;
        background-clip: padding-box;
    }

    .smallwindowtab>.closewindowbutton {
        width: 15%;
        right: 0;
        margin-left: 85%;
        font-size: 1rem;
    }

    .mediagallery {
        width: 85vw;
    }

    .gallerywrapper {
        position: relative;
        height: 80%;
        width: 98%;
        overflow-y: scroll;
        overflow-x: hidden;
        display: grid;
        grid-template-columns: repeat(2, 49%);
        row-gap: 1%;
        column-gap: 0.5%;
        grid-auto-rows: 25%;
        grid-auto-flow: dense;
    }

    .mediawindow {
        width: 85vw;
        height: 40vh;
    }

    .mediawindow>.windowtab {
        display: none;
    }

    .imgprevcont {
        height: 100%;
    }

    .control {
        width: 30%;
        opacity: 0;
        transition: 0;
    }

    .control:hover {
        opacity: 0;
    }

    .unitdesc {
        width: 85vw;

    }

    .minwindowtab>.closewindowbutton {
        width: 12%;
        margin-left: 88%;
        font-size: 1rem;
    }

    .unitimgcontainer {
        height: 50%;
        width: 95%;
        top: 7%;
        left: 1%;
    }

    .slidebuttoncontainer {
        height: 10%;
    }

    .slidebuttoncontainer>button {
        width: 10%;
    }

    .mainrender {
        height: 90%;
    }



    .unittext {
        top: 57%;
        left: 1%;
        width: 100%;
        height: 93%;
    }

    .unittext .windowline {
        position: relative;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        background-color: #452E3F;
    }

    .unittext p {
        font-family: Saturn;
        color: #FCECD1;
        margin: 0;
    }


    .unittext>span:nth-child(1) {
        font-size: 5rem;
        color: #FCECD1;
    }

    .unittext>span:nth-child(2) {
        color: #FCECD1;
        font-size: 2.5rem;
    }

    .unittext>p:nth-child(3) {
        font-size: 2.5rem;
        color: #AAD795;
    }

    .unittext>p:nth-child(5) {
        font-size: 1.5rem;
        line-height: 80%;
    }

    .buttoncontainer {
        bottom: 20%;
    }


    .buttonexternallink {
        position: relative;
        width: 17.5%;
        height: 16%;
        margin: 1%;
        background-color: #FCECD1;
        margin-bottom: 1vh;
        border-top: 1vh #FCECD1 solid;
        border-bottom: 1vh #FCECD1 solid;
        float: left;
    }

    .buttonexternallink>p {
        display: none;
    }

    .buttonexternallink>img {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        height: 100%;
        width: 100%;
        object-fit: contain;
    }

    .sphereswrapper {
        position: absolute;
        display: grid;
        grid-template-columns: var(--columns2);
        grid-template-rows: 100%;
        align-content: center;
        height: 100%;
        width: auto;
        left: 50%;
        transform: translateX(-50%);
    }

}