@font-face {
	font-family: "segoe";
	src: url("../fonts/segoeui.ttf");
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: "segoe";
	src: url("../fonts/segoeuil.ttf");
	font-weight: 300;
	font-style: normal;
}

@font-face {
	font-family: "segoe";
	src: url("../fonts/seguisb.ttf");
	font-weight: 600;
	font-style: normal;
}

body {
    font-family: 'segoe', sans-serif;
    font-weight: 400;
    height: 100vh;
    background-image: url('../618bg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 0;
}

.cornerbuttons {
    position: fixed;
    display: flex;
    gap: 8px;
    padding: 12px 15px;
    width: 110px;
    height: 70px;
    top: 0;
    left: 0;
    z-index: 8;
    background-image: url('../TWOFOOT.FULLSCREEN.TOPBAR.LEFT.PNG');
    background-size: 100% 100%;
}

.back {
    width: 42px;
    height: 42px;
    background-image: url('../TWOFOOT.CONTROL.GOBACK.NOFOCUS.PNG');
}

.back:hover {
    background-image: url('../TWOFOOT.CONTROL.GOBACK.FOCUS.PNG');
}

.back:active {
    background-image: url('../TWOFOOT.CONTROL.GOBACK.PRESSED.PNG');
}

.sixeighteen {
    width: 40px;
    height: 40px;
    background-image: url('../618nofocus.png');
}

.sixeighteen:hover {
    background-image: url('../618focus.png');
}

.sixeighteen:active {
    background-image: url('../618pressed.png');
}

#preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
}

#preview img {
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    object-fit: contain;
    transition: opacity 1s ease;
}

#leftprev {
    left: 1em;
}

#rightprev {
    right: 1em;
}

.selector {
    top: 0;
    width: 100%;
    padding-top: 18vh;
    left: 14vw;
    position: fixed;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: bottom left;
    user-select: none;
    z-index: 2;
}

.selector span {
    font-size: 24px;
    margin-right: 3em;
    transition: opacity 0.15s;
    color: #02A2D1;
    display: inline-block;
}

.selectinner {
    transition: transform .7s ease-out;
    will-change: transform;
}

.selector:hover {
    transform: scale(1.125);
}

.selector:hover span.active,
.selector span:hover {
    color: #EEEFEF !important;
}

.selector:hover span {
    color: #95D6FC;
}

.selector span.active::after {
    font-weight: bold;
    font-size: 20px;
    margin-left: .5em;
    content: '❯';
    opacity: 0;
    animation-name: jebediah;
    animation-duration: 0.2s;
    animation-delay: 0.6s;
    animation-fill-mode: forwards;  
}

.selector span.active::before {
    font-weight: bold;
    font-size: 20px;
    margin-right: .5em;
    content: '❮';
    opacity: 0;
    animation-name: jebediah;
    animation-duration: 0.2s;
    animation-delay: 0.6s;
    animation-fill-mode: forwards;
}

@keyframes jebediah {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.selector span.active {
    font-size: 28px;
    color: #95D6FC;
    font-weight: 600;
}

h1 {
    position: fixed;
    top: 4%;
    right: 3.5%;
    font-size: 65px;
    font-weight: 300;
    background-image: linear-gradient(#0473A0 30%, rgba(4, 116, 160, 0.15) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    display: inline-block;
    transition: opacity 0.5s ease;
}

.content {
    width: 100vw;
    position: relative;
}

@property --fadey {
    syntax: '<color>';
    inherits: false;
    initial-value: rgba(0, 0, 0, 0);
}

.gallery {
    overflow-x: scroll;
    overflow-y: hidden;
    padding: 50px 14vw;
    position: relative;
    transform: translateY(43px);

    display: block;
    white-space: nowrap;
    
    scrollbar-width: none;

    -webkit-mask-image: linear-gradient(var(--fadey) 13%, black 90%);
    mask-image: linear-gradient(var(--fadey) 13%, black 90%);
    transition: --fadey 0.4s ease;
}

.category {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
    gap: 2px;

    justify-content: start;
    align-content: start;

    width: max-content;
}

.arrows {
    width: 100%;
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 48%;
    box-sizing: border-box;
    padding: 0 1em;
    pointer-events: none;
}

.arrows img {
    pointer-events: all;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.arrows img:hover {
    opacity: 1;
}

.gallery::-webkit-scrollbar {
    display: none
}

span {
    font-size: 27px;
    line-height: 1.2;
}

.gallery img {
    --y-offset: 0px;
    aspect-ratio: 4 / 3;
    height: 124px;
    object-fit: cover;
    object-position: top center;
    opacity: .7;
    background: black;
    transition: opacity 0.1s, transform 0.1s, filter 0.5s ease-out, height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    filter: drop-shadow(rgba(0, 0, 0, 0) 12px 12px 7px);
    box-sizing: border-box;
    user-select: none;
}

.gallery img.dimmed {
    opacity: 0.4;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.1s, filter 0.5s ease-out, height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery img:hover {
    opacity: 1;
    transform: scale(1.25) translateY(var(--y-offset));
    z-index: 1;
    filter: drop-shadow(rgba(0, 0, 0, 0.5) 12px 12px 7px);
    box-shadow: white 0 0 5px;
    border-radius: 1px;
    outline: rgba(255, 255, 255, 0.5) 3px solid;
    border: #061C47 2px solid;
}

.info {
    padding-left: 14vw;
}

#title,
#year {
    opacity: 0;
    transition: opacity 0.15s ease;
}

#year {
    transition-delay: 60ms;
}