@import url('https://fonts.googleapis.com/css2?family=Jolly+Lodger&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --header-height: 3.5rem;

    --first-color: hsl(185, 100%, 48%);
    --white-color: hsl(0, 0%, 100%);
    --black-color: hsl(222, 100%, 2%);
    --radial-color: radial-gradient(52% 52% at 50% 50%,
                        hsl(202, 90%, 38%) 0%,
                        hsl(222, 100%, 6%) 100%);

    --body-font: "Montserrat", sans-serif;
    --second-font: "Jolly Lodger", cursive;
    --biggest-font-size: 3rem;
    --big-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;

    --font-regular: 400;
    --font-medium: 500;

    --z-tooltip: 10;
    --z-fixed: 100;
}

@media screen and (min-width: 1150px) {
    :root {
    --biggest-font-size: 9rem;
    --big-font-size: 3.5rem;
    --h2-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;   
    }
}

* {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--black-color);
    color: var(--white-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/*  === Reusable Classes === */

.container {
    max-width: 1120px;
    margin-inline: 1.5rem;
}

.main {
    overflow: hidden;
}

/* HEADER & NAV */
.header {
    position: fixed;
    width: 100%;
    top: 50;
    left: 0;
    background: transparent;
    z-index: var(--z-fixed);
    transition: background-color .3s;
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    color: var(--white-color);
    font-family: var(--second-font);
    font-size: var(--h2-font-size);
    transition: text-shadow .3s;
}

.nav__logo:hover {
    text-shadow: 0 2px 8px var(--first-color);
}

.nav__toggle,
.nav__close {
    display: flex;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Nav for mobile */
@media screen and (max-width: 1150px) {
    .nav__menu {
        position: fixed;
        top: -100%;
        left: 0;
        background-color: var(--black-color);
        width: 100%;
        padding-block: 5rem 4.5rem;
        transition: top .4s;
    }
}

.nav__list {
    display: flex;
    flex-direction: column;
    text-align: center;
    row-gap: 3rem;
}

.nav__link {
    color: var(--white-color);
    font-weight: var(--font-medium);
    transition: text-shadow .3s;
}

.nav__link:hover {
    text-shadow: 0 2px 8px var(--first-color);
}

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

/* Show Menu */
.show-menu {
    top: 0;
}

/* Home */
.home {
    position: relative;
    height: 100vh;
    background-color: var(--black-color);
}
.home__container {
    position: relative;
    height: 70%;
    background: var(--radial-color);
}

.home__container img {
    position: absolute;
}

.home__grass,
.home__pumpkin {
    bottom: 0;
}

.home__tree {
    bottom: .5rem;
    width: 470px;
}

.home__moon {
    bottom: 2rem;
    width: 590px;
}

.home__stone,
.home__tree,
.home__moon {
    max-width: initial;
}

.home__shadow,
.home__points {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home__shadow {
    mix-blend-mode: overlay;
}

.home__titles {
    position: absolute;
    bottom: 11rem;
    text-align: center;
}

.home__subtitle,
.home__title {
    color: var(--black-color);
    font-family: var(--second-font);
    font-weight: var(--font-regular);
    text-shadow: 0 2px 8px var(--first-color);
}

.home__subtitle {
    font-size: var(--big-font-size);
}

.home_title {
    font-size: var(--biggest-font-size);
}

.home__data {
    position: absolute;
    bottom: 4rem;
}

.home__description {
    margin-bottom: 2rem;
}

.home__button {
    display: inline-grid;
    position: relative;
    place-items: center;
    transition: filter .4s;
}

.home__button span {
    position: absolute;
    color: var(--white-color);
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
}

.footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Misc Animations */
/* Heartbeat Pulse */
img {
    transform: scale(0.5);
}
button{
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;

}
.heartbeat img {
    display: block;
    transform-origin: center center;
}

.heartbeat {
	animation: heartbeat 1.5s ease-in-out infinite both;
    display: inline-block;
}

/* .heartbeat:hover {
    animation-duration: 0.5s;
} */

.heartbeat:hover {
    animation: flip-horizontal-bottom 0.4s cubic-bezier(0.455, 0.030, 0.515, 0.955) 0.05s infinite both;
}


@keyframes heartbeat {
  from {
    transform: scale(1);
    transform-origin: center center;
    animation-timing-function: ease-out;
  }
  10% {
    transform: scale(0.91);
    animation-timing-function: ease-in;
  }
  17% {
    transform: scale(0.98);
    animation-timing-function: ease-out;
  }
  33% {
    transform: scale(0.87);
    animation-timing-function: ease-in;
  }
  45% {
    transform: scale(1);
    animation-timing-function: ease-out;
  }
}

@keyframes flip-vertical-left {
  0% {
    transform: rotateX(0);
  }
  100% {
    transform: rotateX(-180deg);
  }
}

canvas {
    border: 1px solid #ccc;
    margin: 20px;
}

.morph-wrap canvas {
    margin: 0 !important;
    background: transparent !important;
    display: block;
}

.canvas-slider {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: 80%;
    z-index: 10;

    appearance: none;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    outline: none;
    opacity: 0%;
}

.canvas-slider:hover {
    opacity: 50%;
    animation: none;
}

.canvas-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #000;
    border-radius: 50%;
    cursor: pointer;
}

.canvas-slider::-moz-range-thumb{
    width: 16px;
    height: 16px;
    background: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

#ghost {
  position: fixed;
  width: 80px;
  height: 80px;
  background: url('/assets/img/cursor/ghost.png') center/contain no-repeat;
  pointer-events: none;
  transition: transform 0.1s linear;
}