@font-face {
    font-family: "Main";
    src: url("../fonts/NokioSlabAlt-Light.ttf") format("truetype");
}
@font-face {
    font-family: "Title";
    src: url("../fonts/NokioSlabAlt-Bold.ttf") format("truetype");
}

:root {
    --kickstarter-color: rgb(0, 206, 120, 1);
    --kickstarter-color-translucent: rgb(0, 206, 120, 0.3);
    --kickstarter-color-translucent-light: rgb(0, 206, 120, 0.175);
}

html {
    margin: 0;
    padding: 0;
    border: none;
    background: white;

    font-family: "Main";
    font-size: clamp(0px, 5vw, 25px);
    color: black;

    overflow: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
}
@media (min-width: 1024px) {
    html {
        font-size: clamp(0px, 5vw, 30px);
    }
}
body {
    margin: 0;
    border: none;

    /* background: linear-gradient(to top, var(--kickstarter-color-translucent-light), var(--kickstarter-color-translucent)); */

    background: 
        radial-gradient(
            circle at 60% 80%,
            rgba(246, 255, 0, 0.8) 0%,
            transparent 80%
        ),
        linear-gradient(
            120deg,
            #00d0ff 0%,
            #a600ff 50%,
            #ff0099 100%
        );

    overflow: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo {
    width: 17.5em;
    height: 11.5em;
    background: transparent url("../images/logo_games.svg") no-repeat center center / contain;

    filter: drop-shadow(0 0.1em 0.025em rgba(0, 0, 0, 0.25));

    z-index: 1;
}

.moto {
    text-align: center;
    /* color: rgba(255, 255, 255, 0.2); */
    /* text-shadow: 0 0 0.15em rgba(255, 255, 255, 0.4); */
    color: rgba(255, 255, 255, 0.56);

    font-family: "Title";

    margin-top: -1.2em;
    /* font-size: 0.8em; */
    font-size: 1em;

    position: relative;
    cursor: pointer;
}
.fun-right {
    font-size: 1.4em;
    font-family: "Title";
    display: block;
    /* margin-top: 3em; */
    position: relative;
    color: white;
    margin-left: 1.5em;
}

.fun-right::after {
    content: "";
    position: absolute;
    left: -1em;
    bottom: -0.2em;
    width: 1.5em;
    height: 1.5em;
    background: transparent url("../images/hand.svg") no-repeat center center / contain;
    filter: drop-shadow(0em -0.045em 0.02em rgba(0, 0, 0, 0.2));

    transform: rotate(127deg);
}
.fun-right::before {
    z-index: -1;
    content: "";
    position: absolute;
    --padding: -3.5em;
    left: var(--padding);
    top: var(--padding);
    width: calc(100% - (2 * var(--padding)));
    height: calc(100% - (2 * var(--padding)));
    mask-image: url("../images/splash4.svg");
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: contain;
    background: var(--kickstarter-color);
    margin-top: -0.2em;
}

.open .moto {
    visibility: hidden;
}

.games {
    visibility: hidden;
    padding: 2em;
    margin-top: 1em;
    z-index: 1;
}
.open .games {
    visibility: visible;
}

a {
    display: block;
    text-decoration: none;
    position: relative;
}

/* HAND */

.games {
    font-size: 0.25em;
}
.box {
    width: 40em;
    height: 40em;

    position: relative;
    margin: -29em auto 0;

    --space: 0em;
}

.box::before {
    content: "";
    position: absolute;
    --padding: 10%;
    left: calc(var(--padding) + 4em);
    top: calc(var(--padding) + 4em);
    width: calc(100% - (2 * var(--padding)));
    height: calc(100% - (2 * var(--padding)));
    background: black;
    transform: translate(calc(4em + var(--space)), calc(8em + var(--space))) scale(0.9, 0.75) skew(-6deg, -7deg);
    filter: blur(1em);
    opacity: 0.15;
}
.box::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    background: transparent url("../../ashesandamber/res/images/box_only.png") no-repeat center center / contain;

    transform: translate(calc(-1 * var(--space)), calc(-1 * var(--space)));
}

.box::before,
.box::after {
    transition: transform 2s ease;
}
.box:hover {
    --space: 2em;
}

.hand {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 10em;
    height: 10em;
}

.hand::before {
    content: "";
    position: absolute;
    left: 1em;
    top: 1.5em;
    width: 100%;
    height: 100%;
    mask-image: url("../images/hand.svg");
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: contain;
    background: black;
    opacity: 0.1;
    transform: scale(0.9, 0.75) skew(-6deg, -7deg);

    animation: bounce-shadow 1s infinite;
}
.hand::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: transparent url("../images/hand.svg") no-repeat center center / contain;

    animation: bounce-front 1s infinite;
}

@keyframes bounce-shadow {
    0%, 20%, 50%, 70% {
        top: 1.5em;
    }
    40% {
        top: 3em;
    }
    60% {
        top: 2em;
    }
}
@keyframes bounce-front {
    0%, 20%, 50%, 70% {
        top: 0;
    }
    40% {
        top: -2em;
    }
    60% {
        top: -1em;
    }
}

/* CARD BACKGROUND */


.background {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;

    position: absolute;
    --size: 70em;
    --top: 100em;
    left: calc(0.5 * (100% - var(--size)));
    top: calc(-1 * var(--top));

    transform: rotate(35deg);
    width: var(--size);
    height: calc(100% + (2 * var(--top)));
    outline: solid 1px black;

    opacity: 0.1;
}

.background .background-card {
    font-size: 2em;

    width: 1em;
    height: 1.5em;
    background: white;
    border-radius: 0.15em;

    margin: 0.3em;
}

/* CONTACT */

.contact {
    font-size: 0.75em;
    position: absolute;
    bottom: 1em;
    color: white;
    font-family: "Title";

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25em;
}

.contact .subline {
    display: flex;
    flex-direction: row;
    gap: 1em;
}

.contact a {
    text-decoration: none;
    color: white;
    cursor: pointer;
}
.email_ {
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
}