/* reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance:textfield;
}
/* end reset */

/* fonts */
@font-face {
  font-family: "Elegant Lux Pro";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/Elegant-Lux-Pro.woff2") format("woff2");
}
/* end fonts */

/* variables */
:root {
  --color-primary: #4cb5bf;
  --color-text: #3c404c;
  --color-background: #fefefe;
  --font-primary: "Elegant Lux Pro", Helvetica, Arial, sans-serif;
}
/* end variables */

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

  font-family: var(--font-primary);
  color: var(--color-text);
  font-size: 1.6rem;
  /* background-color: var(--color-background); */
  text-align: center;


  overflow: auto;
    background: linear-gradient(315deg, rgba(220,253,255,0.7) 3%, rgba(240,254,255,0.7) 68%, rgba(217,253,255,0.7) 98%);
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
    background-attachment: fixed;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.temp {
  opacity: 0;
  margin-top: auto;
  margin-bottom: 3rem;
  font-style: italic;
  font-size: 2.6rem;
  animation: link-apparition 0.4s ease-out forwards;
  animation-delay: 4s;
}

@keyframes gradient {
  0% {
      background-position: 0% 0%;
  }
  50% {
      background-position: 100% 100%;
  }
  100% {
      background-position: 0% 0%;
  }
}

a,
.link {
  opacity: 0;
  display: inline-block;
  position: relative;
  z-index: 2;
  font-size: 4rem;
  font-family: "Elegant Lux Pro", Helvetica, Arial, sans-serif;
  color: var(--color-text);
  text-align: center;
  text-decoration: none;
  transition: color 0.3s;
  animation: link-apparition 0.4s ease-out forwards;
  animation-delay: 3s;
  @media (hover:hover) {
    &:hover {
      color: var(--color-primary);
    }
  }
}

#logo-neloam {
  display: block;
  margin: 0 auto 12rem;
  width: 500px;
  max-width: 90%;
}

#text {
  transform: translateX(-40px);
  animation: translate 1s cubic-bezier(.05, .69, .14, 1) forwards;
  animation-delay: 0.8s;
}

.bubble {
  fill: var(--color-primary);
}
.bubble-2 {
  transform: scale(0);
  transform-origin: center;
  transform-box: fill-box;
  animation: bubble2-apparition 0.4s cubic-bezier(.05, .69, .14, 1) forwards;
  &:first-child {
    animation-delay: 0.7s;
  }
  &:last-child {
    animation-delay: 0.9s;
  }
  
}

.bubble-1 {
  opacity: .7;
  transform: translateY(200px) scale(0);
  transform-origin: center;
  transform-box: fill-box;
  animation: bubble1-apparition 1.4s ease-out forwards;
  animation-delay: 0.7s;
}

.letter {
  fill: var(--color-text);
}

@keyframes bubble1-apparition {
  0% {
    opacity: 0;
    transform: translateY(200px) scale(0);
  }
  30% {
    opacity: .1;
    transform: translateY(170px) scale(0);
  }
  100% {
    opacity: .7;
    transform: translateY(0) scale(1);
  }
}

@keyframes bubble2-apparition {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes translate {
  0% {
    transform: translateX(-40px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes link-apparition {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
