/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;700&display=swap");

:root {
  /* CSS HEX */
  --white: #ffffffff;
  --alice-blue: #f0fbffff;
  --non-photo-blue: #abeaffff;
  --asparagus: #5b914eff;
  --hunter-green: #285b1cff;
  --caf-noir: #442705ff;
  --sepia: #6d4519ff;
  --butterscotch: #e89d53ff;

  --color_background: var(--non-photo-blue);
  --color_body: #000000;
  --color_accent_1: #d86e38;

  /* Card theme 1 */
  --card_1_background: #d86e38;
  --card_1_color: white;
  --card_1_off-color: #d86e38;

  --mobile_bound: 650px;
}

/* Swup Transitions */

/* Define a transition duration during page visits */
html.is-changing .transition-fade {
  transition: opacity 0.25s;
  opacity: 1;
}

/* Define the styles for the unloaded pages */
html.is-animating .transition-fade {
  opacity: 0;
}

body {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1em;

  font-family: "Quicksand", sans-serif;
  font-size: 16px;
  color: var(--color_body);

  animation: huerotate 10s linear infinite;
}

body::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-image: url(assets/clouds.jpg);
  background-size: 500px;
  z-index: -1;
  animation: clouds 10s linear infinite;
  transition: filter 500ms linear;
  filter: brightness(0.95);
}

body.loading::before {
  filter: brightness(0.5);
}

main {
  opacity: 0;
}

main {
  margin: auto;
}

.ready main {
  transition: opacity 500ms linear;
  opacity: 1;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.wrapper {
  /* overflow: hidden; */
  max-width: 95vw;
  gap: 0.5em;
  display: flex;
  flex-direction: column;
}

.canvas {
  position: relative;
  display: flex;
  justify-content: center;
}
.canvas > * {
  width: 450px;
  max-width: 80vw;
}

.canvas > *:not(:first-child) {
  top: 0;
  position: absolute;
}

footer {
  width: 100%;
  bottom: 0;
  text-align: center;
}

a:hover,
button:hover {
  cursor: pointer;
}

a {
  color: currentColor;
}

a svg *,
button svg * {
  stroke: currentColor;
}

a:has(svg),
button:has(svg) {
  display: flex;
  gap: 0.5em;
}

p a {
  text-decoration: underline;
}

.display-none {
  display: none;
}

.shadow {
  filter: drop-shadow(0px 2px 2px black);
}

.socials {
  display: flex;
}

.center-horizontally {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.center-vertically {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card {
  border-radius: 15px;
  background-color: var(--alice-blue);
  max-width: 95vw;
  width: 800px;
  padding: 1.5em;
}

.shape-pill {
  background: gray;
  border-radius: 50px;
  color: white;
  padding: 0.2em 0.5em;
  width: fit-content;
}

.button--shape-pill {
  position: relative;
  --border-size: 2px;
  background: transparent;
  border-radius: 50px;
  color: var(--card_1_color);
  stroke: var(--card_1_color);
  padding: calc(0.5em - var(--border-size)) calc(1em - var(--border-size));
  width: fit-content;
  border: solid var(--border-size) var(--card_1_background);

  z-index: 1;
}

.button--shape-pill:before {
  position: absolute;
  content: "";
  left: -1px;
  right: -1px;
  top: -1px;
  bottom: -1px;
  background: var(--card_1_background);
  border-radius: inherit;
  z-index: -1;
}

a.button--shape-pill:hover::before,
button.button--shape-pill:hover::before {
  opacity: 0;
}
a.button--shape-pill:hover,
button.button--shape-pill:hover {
  color: var(--card_1_background);
  stroke: var(--card_1_background);
}

.links {
  display: flex;
  gap: 0.5em;
  justify-content: center;
  flex-wrap: wrap;
}

#bubble-area {
  left: 60%;
  top: -5%;
  width: fit-content;
}

.shape--bubble {
  background: white;
  color: black;
  border-radius: 200px;
  padding: 0.5em 1em;
  text-wrap: nowrap;
  border: #d86e38 3px solid;
}

.animate--pop-in {
  transform: scaleY(0) translateY(200%);
  transition: transform 250ms ease-in-out;
  transition-delay: 1000ms;
}

@media screen and (max-width: 650px) {
  #bubble-area {
    margin: auto;
    right: 0;
    left: 0;
    top: -40%;
  }
  .shape--bubble {
    text-wrap: unset;
  }
}

.ready .shape--bubble {
  transform: scaleY(1) translateY(0);
}

.animate--bounce {
  animation: bounce 900ms ease-in-out infinite;
  /* transition: transform 200ms ease; */
}

/* Swup Transitions */

/* Define a transition duration during page visits */
html.is-changing .transition-fade {
  transition: opacity 0.25s;
  opacity: 1;
}

/* Define the styles for the unloaded pages */
html.is-animating .transition-fade {
  opacity: 0;
}

#consent-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  background-color: var(--alice-blue);
  padding: 1em;
  justify-content: flex-end;
  align-items: center;
  gap: 1em;
  z-index: 1;
}

@keyframes clouds {
  0% {
    background-position-x: 0px;
  }
  100% {
    background-position-x: 500px;
  }
}

@keyframes huerotate {
  0% {
    backdrop-filter: hue-rotate(30deg);
  }
  50% {
    backdrop-filter: hue-rotate(94deg);
  }
  100% {
    backdrop-filter: hue-rotate(30deg);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: translateY(0.5%) scaleY(0.98);
  }
}
