@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Funnel Display', Helvetica, sans-serif;
    cursor: none;
}


:root {
    --primary-color: #0b132b;
    --accent-color: #023047;
    --text-color: white;
    --background-color: #f1faee;
}

body {
    background-color: var(--background-color);
    /* min-height: 100vh;
    width: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    flex-direction: column; */

    /* background: url('assets/hero.jpg') no-repeat;
    background-size: cover;
    background-position: center; */
}

h1 {
    color: #e63946;
    font-size: 50px;
    text-align: center;
    padding: 5px;
}

h2 {
    color: var(--accent-color);
    font-size: 35px;
    text-align: center;
    padding: 5px;
}

p {
    color: #435058;
    font-size: 20px;
    text-align: center;
}

a {
    text-decoration: none;
    color: black;
}

.hero {
    min-height: 100vh;
    width: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.canvas-container {
    margin: 0 auto;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 101;
}

canvas {
    width: 300px;
    height: 100px;
    /* cursor: pointer; */
}

.spacecraft {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* background-color: var(--background-color); */

    background-image: url('https://images.unsplash.com/photo-1601333925326-15b724dbcd0c?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=2070');
    background-repeat: no-repeat;
    background-position: center;
    /* background-attachment: fixed; */
    background-size: 100%;
}


/* SPLASH SCREEN */

.intro {
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: black;
    transition: 1s;
}

.logo-header {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

.logo-span {
    position: relative;
    display: inline-block;
    font-size: 100px;
    bottom: -20px;
    opacity: 0;
}

.logo-span.active {
    bottom: 0;
    opacity: 1;
    transition: ease-in-out 0.5s;
}

.logo-span.fade {
    bottom: 150px;
    opacity: 0;
    transition: ease-in-out 0.5s;
}





header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 100px;
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 32px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
}

.logo:hover {
    background: linear-gradient(to right,
            #fc72ff,
            #8f68ff,
            #487bff,
            #8f68ff,
            #fc72ff);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}

@keyframes animate-gradient {
    to {
        background-position: 200%;
    }
}

.navbar a {
    position: relative;
    font-size: 18px;
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    margin-left: 40px;
}

.navbar a::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-color);
    transition: 0.3s;
}

nav a:hover::before {
    width: 100%;
}

/* GRID LAYOUT */

.grid-container {
    overflow: hidden;
    padding: 20px;
    display: grid;
    grid-auto-columns: 400px;
    grid-auto-rows: 250px;
    gap: 3em;
    grid-template-areas:
        "box-1 box-2"
        "box-1 box-2";
}

.box {
    background-color: black;
    overflow: hidden;
    background-position: center 50%;
    background-size: 100%;
    background-repeat: no-repeat;
    opacity: 0.8;
    transition: background-size 400ms ease, opacity 400ms ease;
    border-radius: 5%/50%;
}

.box:hover {
    background-size: 105%;
    opacity: 1;
    /* cursor: pointer; */
}

.box p {
    color: white;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.box:hover p {
    opacity: 1;
}

#trailer {
    height: 20px;
    width: 20px;
    background-color: #e63946;
    border-radius: 20px;
    position: fixed;
    transform: translate3d(-100px, -100px, 0);
    z-index: 20000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 500ms ease;
    display: grid;
    place-items: center;
}


#trailer:not([data-type=""])>#trailer-icon {
    opacity: 1;
}

#trailer-icon {
    font-size: 6px;
    line-height: 4px;
    opacity: 0;
    transition: opacity 400ms ease;
}

/* IMAGE MODAL */

.overlay {
    position: fixed;
    bottom: 1600px;
    right: 0;
    width: 100%;
    height: 100%;
    padding: 2em;
    background: var(--background-color);
    color: black;
    overflow-x: hidden;
    overflow-y: scroll;
    z-index: 500;
    padding: 2em;
}

.overlay::-webkit-scrollbar {
    display: none;
}

img {
    width: 50%;
    height: 50%;
    object-fit: cover;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
}

.overlay-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2em 0;
}

/* .col:nth-child(1) {
    margin-right: 20px;
} */

.col:nth-child(2) {
    /* text-align: right; */
    padding: 5px;
}

#close-btn {
    /* cursor: pointer; */
    opacity: 0.4;
}

.img-container {
    width: 100%;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-details {
    width: 100%;
    display: flex;
    gap: 40px;
    padding: 1em 0 4em 0;
    flex-direction: column;
    text-align: center;
    padding: 20px 250px;
}

/* .item-details p:nth-child(1) {
    flex: 0 0 150px;
}

.item-details p:nth-child(2) {
    flex: 1;
} */

#item-copy {
    text-align: center;
    margin: 0;
}


/* MARQUEE */

.marquee {
    position: relative;
    background: #0f0f0f;
    color: #eee;
    padding: 30px 0;
    font-weight: 600;
    font-size: 40px;
    text-transform: uppercase;
    overflow: hidden;
}

.marquee-inner {
    display: flex;
    width: fit-content;
    flex: auto;
    flex-direction: row;
}

.marquee-part {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 4px;
}

.arrow {
    /* width: 60px;
    height: 80px; */
    margin: 0 1em;
    transform: rotate(180deg);
    transition: all 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.arrow.active {
    transform: rotate(0deg);
    transition: all 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}

/* glitchfruit */

button {
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 4px;
    border: solid 2px #121212;
    margin: 16px 10px;
    position: relative;
}


button.shadow {
    box-shadow: 4px 4px #121212;
    transition: transform 50ms, box-shadow 50ms;
}

button.shadow:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px #121212;
    /* cursor: pointer; */
}

button.shadow:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px #121212;
}

button.accent-color {
    background-color: var(--accent-color);
    color: var(--text-color);
}

button.primary-color,
.form.primary-color {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.form {
    border: 2px solid var(--shadow-color);
    padding: 20px;
    border-radius: 4px;
    background-color: var(--background-color);
    color: var(--text-color);
}

label {
    color: black;
}

.form.shadow {
    box-shadow: 4px 4px 0px 0px var(--shadow-color);
}

.form label {
    display: block;
    margin-bottom: 5px;
    padding-top: 10px;
}

.form input,
.form select {
    width: 100%;
}

.form .button-container {
    display: flex;
    padding-right: 4px;
    justify-content: space-between;
}

.form-container {
    display: flex;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.button-holder {
    display: flex;
    flex-direction: row;
    padding: 20px;
}

input:focus,
select:focus {
    outline: none;
}

input[type=text]::-moz-placeholder {
    color: var(--light-text);
    font-weight: 500;
}

input[type=text]::placeholder {
    color: var(--light-text);
    font-weight: 500;
}

input[type=text] {
    background-color: var(--base-color);
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 4px;
    border: solid 2px var(--shadow-color);
    margin-bottom: 10px;
}

select,
option {
    background-color: var(--base-color);
    font-weight: 500;
    padding: 12px 18px;
    border-radius: 4px;
    border: solid 2px var(--shadow-color);
    /* cursor: pointer; */
    margin-bottom: 10px;
}


/* 3D MODEL */

#container3d canvas {
    width: 100vw !important;
    height: 100vh !important;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}


.credits {
    padding: 100px;
    display: flex;
    flex-direction: column;
}

.credit-text {
    text-align: left;
    color: white;
    font-family: "Space Mono", monospace;
}

/* FOOTER */

.footer {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 2em;
}

.footer p {
    color: #e63946;
}