/*
SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
*/

/* COLOR THEME */
:root {
  --primary-color: #4fc3f7;
  --primary-color2: #a7d0ed;
  --primary-color3: #d3e6f3;
  --acc-color: #ffab91;
  --acc-color2: #ff7043;
  --bg-white: #fff;
  --bg-color: #e0f7fa;
  --bg-color2: #b0bec5;
  --text-color: #37474f;
  --text-color2: #0f0f0f;

  --btn-text: #eee;
  --btn-color: #156bc1;
  --btn-color2: #ff7043;
  --btn-color3: #555;
  --btn-shadow: #111;

  --splash-btn-text-color: #4f626b;
  --splash-btn-shadow-color: hsl(199, 15%, 36%, 35%);
  --splash-btn-color: #d3e6f3;
  --splash-btn-bg-color: #d2e8f3;

  --scroll-percent: 0;
}

@font-face {
  font-family: "bliz";
  src: url("/media/fonts/Airfool.otf");
}

/* UNIVERSALS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-white);

  /* position: relative; */
}

h1 {
  font-family: "bliz";
  font-size: clamp(4rem, 12rem, 25vw);
  font-weight: 300;
  color: var(--text-color2);
}

.content {
  height: 100%;
  width: 100%;
  background-image: url("media/imgs/blizzy-falling.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.content h1 {
  position: absolute;
  top: 10%;
  color: var(--btn-color);
  animation: header-fall 400ms cubic-bezier(0.54, 1.555, 0.78, 0.835) forwards;
  margin: 0;
}

h2 {
  font-family: "bliz";
  font-weight: 200;
  font-size: clamp(1.5rem, 2.5rem, 5vw);
  color: var(--btn-color3);
  position: relative;
  top: -10%;
}

@keyframes header-fall {
  0% {
    transform: translateY(-200%) translateX(-10%) rotate(-15deg);
  }
  100% {
    transform: translateY(0%) translateX(0%) rotate(0deg);
  }
}

.links {
  position: absolute;
  top: 0;
  right: 0;
  margin: 2vw;
  display: flex;
  flex-direction: column;
  gap: 2vw;
}

/* BUTTONS */

.btn-icon {
  width: 48px;
  height: auto;
  stroke: var(--btn-text);
  fill: var(--btn-text);
  margin: 8px 0;
}

.btn {
  padding: 10px 20px;
  background-color: var(--btn-color);
  color: var(--btn-text);
  border-radius: 48px;
  display: inline-block;
  font-family: "bliz";
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
a {
  text-decoration: none;
}

.clickable {
  background-color: var(--btn-color);
  box-shadow: 0 8px var(--btn-shadow);
  transform: translateY(-8px);
}

.clickable:hover {
  background-color: var(--btn-color2);
  box-shadow: 0 12px var(--btn-shadow);
  transform: translateY(-12px);
  cursor: pointer;
}

.clickable:active {
  background: var(--btn-color3);
  box-shadow: 0 5px var(--btn-shadow);
  transform: translateY(-5px);
}

/* Media Queries for Mobile */
@media (max-width: 904px) {
  .btn {
    font-size: 1.5rem;
    margin-top: 1rem;
  }
  .links {
    top: auto;
    bottom: 0;
  }
}
@media (max-width: 578px) {
  h2 {
    top: -15%;
  }
}

/* SPLASH SCREEN STUFF */
.splash-screen,
#video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
}

.splash-screen {
  background-color: transparent;
  z-index: 1;
}

/* Hide sections by default */
.hidden {
  display: none;
}
/* SPLASH SCREEN FANCY BUTTON */
.splash-screen button {
  position: relative;
  padding: 20px 40px;
  border: none;
  background: none;
  cursor: pointer;

  font-family: "bliz";
  font-weight: 200;
  font-size: 5rem;
  color: var(--primary-color);

  background-color: var(--splash-btn-btn-color);
  box-shadow: var(--splash-btn-shadow-color) 2px 2px 22px;
  border-radius: 16px;
  z-index: 0;
  overflow: hidden;
}

.splash-screen button:focus {
  outline-color: transparent;
  box-shadow: var(--splash-btn-btn-color) 2px 2px 22px;
}

.right::after,
.splash-screen button::after {
  content: var(--content);
  display: block;
  position: absolute;
  white-space: nowrap;
  padding: 80px 80px;
  pointer-events: none;
}

.splash-screen button::after {
  font-weight: 200;
  top: -60px;
  left: -40px;
}

.right,
.left {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
}
.right {
  left: 66%;
}
.left {
  right: 66%;
}
.right::after {
  top: -30px;
  left: calc(-66% - 20px);

  background-color: var(--splash-btn-bg-color);
  color: transparent;
  transition: transform 0.4s ease-out;
  transform: translate(0, -90%) rotate(0deg);
}

.splash-screen button:hover .right::after {
  transform: translate(0, -47%) rotate(0deg);
}

.splash-screen button .right:hover::after {
  transform: translate(0, -50%) rotate(-7deg);
}

.splash-screen button .left:hover ~ .right::after {
  transform: translate(0, -50%) rotate(7deg);
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
