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

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

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

/* START CSSRESET */
a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    text-decoration: none;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block
}

html, body {
    scroll-behavior: smooth;
}

body {
    line-height: 1
}

blockquote, q {
    quotes: none
}

blockquote:after, blockquote:before, q:after, q:before {
    content: '';
    content: none
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

button, input[type="submit"] {
    padding: 0;
    border: none;
    outline: none;
    font: inherit;
    color: inherit;
    background: none;
    cursor: pointer;
    -webkit-appearance: none;
    border-radius: 0;
}

* {
    box-sizing: border-box;
}

body, html {
    scroll-padding-top: 10vh;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
}

/* SCP */

body {
    background: var(--bg);
    color: var(--color);
    font-family: "Gotham";
    position: relative;
    z-index: 1;

    --red: #d42727;
    --blue: #4dd0e1;

    --bg: black;
    --color: white;
    --accent: var(--red);
}

body::before {
    content: "";
    background: url(/img/scpshowcasebg.jpg);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 105%;
    z-index: -5;
    background-size: cover;
}

body:after {
	content: "";
	background-image: url(/img/dust.png);
	animation: DUST 2s steps(10) infinite;
	position: fixed;
	left: -50%;
	top: -100%;
	height: 300%;
	width: 300%;
	opacity: .4;
    z-index: -4;
}

p {
    margin: 10px 0;
    line-height: 1.5em;
}

p > p {
    margin-top: unset;
}

.button {
    display: inline-block;
    color: var(--color);
    background: var(--accent);
    padding: 0.5em 1em;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    margin: 0.5em;
    text-align: center;
    font-weight: 800;
}

.button:hover {
    transform: scaleY(1.1);
    color: var(--accent);
    background: var(--color);
}

a  {
    color: var(--red);
}

h2 {
    font-weight: 600;
    text-transform: uppercase;
    color: var(--red);
    font-size: calc(1.5em + 2vw);
    margin: 0.5em 0;
    text-align: center;
}

h3 {
    text-transform: uppercase;
    font-size: calc(1em + 2vw);
    font-weight: 900;
    color: var(--red);
}

.starblock {
    display: block;
    width: 100%;
    height: 70px;
    background-image: url(/img/scpfav_padding.png);
    background-size: auto 65px;
    background-repeat: space;
    margin: 0 auto;
    max-width: 499px;
}
.links {
    margin-top: 2em;
}

/* SPLASH SCREEN */
#home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1em;
    position: relative;
}

h1 img {
    width: 1000px;
}

.liner {
    text-transform: uppercase;
    font-weight: 900;
    position: absolute;
    top: 0.5em;
    font-size: calc(1em + 1vw);
}

.liner:last-child {
    top: unset;
    bottom: 0.5em;
}

#home .about {
    text-align: center;
    margin: 5vh 0;
    max-width: 1000px;
    font-size: calc(1em + 0.25vw);
}

#home .button {
    max-width: 10em;
    font-size: 1.5em;
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
}

.submenu {
    --accent: black;
}

nav > * {
    width: 100%;
}

nav {
    width: 100%;
} 

@keyframes DUST {
	0% { transform: translate(0, 0) }
	10% { transform: translate(-10%, -7%) }
	20% { transform: translate(-15%, 6%) }
	30% { transform: translate(8%, -18%) }
	40% { transform: translate(-10%, -3%) }
	50% { transform: translate(5%, -13%) }
	60% { transform: translate(10%, 2%) }
	70% { transform: translate(2%, -10%) }
	80% { transform: translate(15%, 0) }
	90% { transform: translate(0, 15%) }
	100% { transform: translate(0, 0) }
}

/* SECTIONS */
section {
    margin: 5vh auto;
    max-width: 1920px;
    width: 100%;
}

.title {
    display: flex;
    flex-wrap: wrap;
    background: url(/img/bgtex.webp) var(--red);
}

.title h2 {
    font-size: 10vw;
    color: var(--color);
    text-align: center;
    flex-grow: 1;
}

#experiences .title h2 {
    font-size: 5vw;
    padding: 0.5em 0;
}

.title .about {
    flex-basis: calc(30vw + 200px);
    flex-grow: 1;
    padding: 1em;
    display: flex;
    justify-content: center;
    flex-direction: column;
    background: url(/img/bgtex.webp) var(--bg);
}

.title .about p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.case-select {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.case-thumbnail {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-basis: 400px;
    max-width: 500px;
    width: 70%;
    padding: 20px;
    background: url(/img/bgtex.webp) var(--red);
    cursor: pointer;
}

.case-thumbnail img {
    transition: transform 250ms ease-in-out
}

.case-thumbnail:hover img {
    transform: scale(1.05) rotate(1deg)    
}

.case-thumbnail.active-case {
    background: transparent;
}

.case-thumbnail span {
    text-transform: uppercase;
    font-weight: 900;
    text-align: center;
    padding: 0.5em;
}

.case {
    display: none;
    flex-wrap: wrap;
}

.case.active-case {
    display: flex;
    min-height: 50vh;
}

.case .slide {
    flex-basis: 800px;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1em;
}

.slide .image, .slide img {
    width: 100%;
}  

.slide .about {
  max-width: 600px;
  margin: 2em 0;
  text-align: center;
}

.intermission {
    min-height: 50vh;
    background: linear-gradient(232deg, rgba(85,85,85,0.3) 0%, rgba(193,193,193,0.8) 100%), url(/img/scpbg.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    overflow: hidden;
}  

.intermission:last-of-type {
    margin-bottom: 5vh;
}

/* footer */
footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url(/img/bgtex.webp) var(--red);
    color: var(--color);
    padding: 1em 0;
}

footer h3 {
    color: var(--color);
    font-size: calc(1em + 0.25vw);
}

footer .button:not(.button:hover) {
    background: var(--bg);
}

.contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1em;
    margin-bottom: 2em;
}

footer .button {
    padding: 1em;
    font-size: calc(1em + 0.25vw);
}

footer img {
    max-width: 150px;
}

footer > * {
    margin-top: 1em;
}

.socials a {
    font-size: calc(1em + 1vw);
    padding: 0.25em;
    display: inline-block;
}

footer .socials a {
    color: var(--color);
}

/* swiper styling */
.swiper-button-next, .swiper-button-prev {
    background: var(--bg);
    width: 4em;
    height: 4em;
    color: var(--red);
}

.swiper-button-next.swiper-button-disabled, .swiper-button-prev.swiper-button-disabled {
    display: none;
}

/* schematic display */
.callout {
    text-align: center;
    font-size: calc(1em + 1vw);
    padding: 0.5em;
    line-height: 2em;
    z-index: 2;
}

.callout * {
    color: var(--color);
}

.schematic, .dimension, .schematic > *  {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dimension {
    min-width: 50vh;
    height: 50vh;
    perspective: 1000px;
}

.schematic {
    transform-style: preserve-3d;
    transform-origin: center;
    --size: 33vh;
    --base: translateZ(calc(var(--size) * 0.5));
    will-change: transform;
}

.schematic > * {
    position: absolute;
    width: var(--size);
    height: var(--size);
    background: transparent;
    border: 3px dashed;
    transform: var(--base);
    transform-style: preserve-3d;
}

.schematic > span:nth-child(1) {  /* bottom */
    transform-origin: bottom;
    transform: var(--base) rotateX(90deg);
}

.schematic > span:nth-child(2) {  /* top */
    transform-origin: top;
    transform: var(--base) rotateX(-90deg);
}

.schematic > span:nth-child(3) {  /* left */
    transform-origin: left;
    transform: var(--base) rotateY(90deg);
}

.schematic > span:nth-child(4) {  /* right */
    transform-origin: right;
    transform: var(--base) rotateY(-90deg);
}

.schematic > span:nth-child(5) {  /* back */
    transform: var(--base) translateZ(calc(var(--size) * -1));
}

.schematic > span:nth-child(6) {  /* front */
    transform: var(--base) rotateY(180deg);
}

@keyframes SPIN3D {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg) }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg) }
}

.schematic.spinny {
    animation: SPIN3D 20s linear infinite;
}

.schematic.spinny span:hover {
    border-color: var(--red)
}

.schematic.spinny > span::after {
    content: "";
    width: 75%;
    height: 75%;
    border: 1px solid;
    border-radius: 20px;
    border-color: inherit;
    transform: translateZ(calc(var(--size) * 0.1)) rotateY(180deg);
    background-image: var(--merch);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    backface-visibility: hidden;
    will-change: transform;
    transition: transform 500ms cubic-bezier(1,1.55,.62,.77);
}

.schematic.spinny span {
    cursor: pointer;
}

.schematic.spinny span.swapping {
    cursor: not-allowed;
}

.schematic.spinny span:hover::after {
    transform: translateZ(calc(var(--size) * -0.3)) rotateY(180deg);
}

.schematic.spinny span.swapping::after {
    transform: translateZ(calc(var(--size) * 0.5)) rotateY(180deg) scale(0.001);
}


.schematic.boxit.reset, .schematic.boxit.reset > span {
    transition: unset !important;
    transition-delay: unset !important;
}

.schematic.boxit {
    --baseSpeed: 0.2s;
    --size: 40vh;
    transition: transform 2s ease-in-out;
}

.schematic.boxit.ship {
    transform: translateX(-70vh);
}

.schematic.boxit > span {
    transition: transform 1s cubic-bezier(1,1.55,.62,.77);
}

.schematic.boxit .merchgraphic {
    transform: translate(0);
    border: 0;
}

.schematic.boxit .merchgraphic::after {
    content: "";
    width: 100%;
    height: 100%;
    background-image: var(--merch);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    backface-visibility: hidden;
    will-change: transform;
    transition: transform 2s ease-in-out;
}


.schematic.boxit > span:nth-child(2) { transition-delay: calc(var(--baseSpeed) * 5);}
.schematic.boxit > span:nth-child(3) {transition-delay: calc(var(--baseSpeed) * 2);}
.schematic.boxit > span:nth-child(4) {transition-delay:  calc(var(--baseSpeed) * 3);}
.schematic.boxit > span:nth-child(5) {transition-delay: calc(var(--baseSpeed) * 4);}
.schematic.boxit > span:nth-child(6) {transition-delay:  calc(var(--baseSpeed) * 6);}


.schematic.boxit.predrop > span:nth-child(1) {  /* bottom */
    transform: var(--base) rotateX(90deg) translateZ(calc(var(--size) * 2));
}

.schematic.boxit.predrop > span:nth-child(2) {  /* top */
    transform: var(--base) rotateX(-90deg) translateZ(calc(var(--size) * -2));
}

.schematic.boxit.predrop > span:nth-child(3) {  /* left */
    transform: var(--base) rotateY(90deg) translateY(-200%);
}

.schematic.boxit.predrop > span:nth-child(4) {  /* right */
    transform: var(--base) rotateY(-90deg) translateY(-200%);
}

.schematic.boxit.predrop > span:nth-child(5) {  /* back */
    transform: var(--base) translateZ(calc(var(--size) * -1)) translateY(-200%);
}

.schematic.boxit.predrop > span:nth-child(6) {  /* front */
    transform: var(--base) rotateY(180deg) translateY(-200%);
}

.schematic.boxit.predrop > .merchgraphic {  /* merch */
    transform: translateY(-200%);
}
