/* Variables */
:root {
  --color-bg: #F1E9DB;
  --color-red: #ea2d1f;
  --color-orange: #d76907;
  --color-action: #5DB7DE;
  --color-white: #f5f9f1;
  --color-dark-green: #1F2F16;
  --color-light-green: #395B50;
  --color-gray: #d9d9d9;
  --color-disabled: #b3b3b3;
  --color-black: #07020D;
  --color-brown: #A39B8B;
}

/* Falling Emojis Background Animation */
.falling-emojis {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.emoji {
  position: absolute;
  top: -60px;
  left: var(--left, 50%);
  font-size: 2rem;
  opacity: 0.4;
  filter: blur(var(--blur, 0px));
  animation: fall var(--duration, 20s) linear var(--delay, 0s) infinite;
  will-change: transform;
}

@keyframes fall {
  0% {
    transform: translateY(-60px) rotate(0deg);
  }

  100% {
    transform: translateY(110vh) rotate(360deg);
  }
}

/* Celebration Animation */
.celebration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 100;
}

.confetti {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  font-size: 3.5rem;
  opacity: 0;
  pointer-events: none;
}

body.celebrate .confetti {
  animation: burst 4s ease-out var(--delay, 0s) 3;
}

body.celebrate .confetti:nth-child(3n) {
  animation-name: burst-left;
  font-size: 4rem;
}

body.celebrate .confetti:nth-child(3n+1) {
  animation-name: burst-right;
  font-size: 3rem;
}

body.celebrate .confetti:nth-child(3n+2) {
  animation-name: burst-up;
  font-size: 3.5rem;
}

@keyframes burst-left {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0deg) translate(0, 0);
  }
  8% {
    opacity: 1;
    transform: scale(1.6) rotate(30deg) translate(0, 0);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(-180deg) translate(-100px, 150px);
  }
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(-540deg) translate(-200px, 400px);
  }
}

@keyframes burst-right {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0deg) translate(0, 0);
  }
  8% {
    opacity: 1;
    transform: scale(1.6) rotate(-30deg) translate(0, 0);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(180deg) translate(100px, 150px);
  }
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(540deg) translate(200px, 400px);
  }
}

@keyframes burst-up {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0deg) translate(0, 0);
  }
  8% {
    opacity: 1;
    transform: scale(1.8) rotate(15deg) translate(0, -30px);
  }
  30% {
    opacity: 1;
    transform: scale(1.3) rotate(-90deg) translate(0, -120px);
  }
  100% {
    opacity: 0;
    transform: scale(0.4) rotate(-360deg) translate(0, 350px);
  }
}

/* Pages */
#content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 100vw;

  background-color: transparent;
  color: var(--color-black);

  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;

  padding: 0 80px;

  scroll-behavior: smooth;
  overflow: hidden;
}

body {
  background-color: var(--color-bg);
}

@media only screen and (max-width: 500px) {
  #content {
    padding: 0 20px;
  }
}


/* Components */
h1 {
  font-size: 3.2rem;
  line-height: 5rem;
}

h2 {
  font-size: 2.6rem;
  line-height: 2.5rem;
  font-weight: 200;
}

h3 {
  font-size: 2rem;
  line-height: 2.5rem;
  font-weight: 150;
}

h4 {
  font-size: 1.5rem;
  line-height: 2.5rem;
  font-weight: 150;
}

p {
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 200;
}

a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none;
}

button {
  min-height: 53px;
  min-width: 164px;
  padding: 0 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-content: center;
  align-items: center;
  cursor: pointer;
  background-color: var(--color-action);
  color: var(--color-black);
  transition: background-color 0.3s, color 0.3s;
  border-radius: 5px;
  border: 1px solid var(--color-white);

  font-size: 1.7rem;
  font-weight: 300;
}

button:hover {
  background-color: var(--color-action);
  color: var(--color-white);
}

button.--action:hover {
  background-color: var(--color-gray);
  color: var(--color-bg);
}

button.--disabled {
  background-color: var(--color-disabled);
  color: var(--color-gray);
  user-select: none;
  cursor: initial;
  pointer-events: none;
}


button.--secondary {
  background-color: var(--color-light-green);
  color: var(--color-white)
}


#logo {
  user-select: none;
}


.action-icon {
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.3s;
  text-align: center;
  font-size: 2rem;
  font-weight: 200;
}

.action-icon:hover {
  opacity: 1;
}

.toastify {
  background: unset !important;
  box-shadow: unset !important;
  cursor: initial !important;

  user-select: none;
  background-color: var(--color-bg) !important;
  border: 1px solid var(--color-white);
  color: var(--color-white);
}

.toastify.info {
  background-color: var(--color-action) !important;
}

.toastify.warning {
  background-color: var(--color-orange) !important;
}

.toastify.error {
  background-color: var(--color-red) !important;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid var(--color-white);
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.skeleton {
  animation: skeleton-loading 1s linear infinite alternate;
  width: 100%;
  background-color: var(--color-disabled);
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% {
    opacity: 0.2;
  }

  100% {
    opacity: 0.4;
  }
}


.error-label {
  color: var(--color-red);
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.5s;
}

.error-label.--visible {
  opacity: 1;
}


input {
  color: var(--color-black);
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--color-black);
  padding-bottom: 8px;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 12px;
}


input:focus-visible {
  border-bottom: 1px solid var(--color-black);
  outline: none;
}