/* --- GLOBAL RESET --- */

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Media */
img, picture, video, canvas, svg {
  max-width: 100%;
  display: block;
}

/* Forms */
button, input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

/* Lists */
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}




/* CUSTOM CSS */

body {
    width: 100%;
    height: 100vh;
}

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

    position: relative;
  z-index: 2;
}

h1 {
    color: #0B1751;
text-align: center;
font-family: Magilio;
font-size: 128px;
font-style: normal;
font-weight: 400;
line-height: 90%;
}

h2{
color: #0B1751;
text-align: center;
font-family: Grandstander;
font-size: 36px;
font-style: normal;
font-weight: 300;
line-height: normal;    
}

#background{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
      pointer-events: none; /* empêche interactions */
  overflow: hidden;
justify-content: space-around;   
z-index: -1; 
}

.column{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 30px;
      overflow: hidden;
  white-space: nowrap;
}

.scroller {
  display: flex;
  flex-direction: column;
  animation: scrollDown linear infinite;
}
.exp{
color: #ff8317a0;
text-align: center;
font-family: Inter;
font-size: 40px;
font-style: normal;
font-weight: 200;
line-height: normal;
width: 24px;

}

#whiteOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 10;
  opacity: 1;
  transition: opacity 1.4s ease-out;
}

#exitOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0B1751;
  transform: translateX(-100%);
  transition: transform 0.9s cubic-bezier(.6, .01, .3, 1);
  z-index: 20;
}


#background {
  opacity: 0;
  transition: opacity 1.4s ease-out;
}

main h1, main h2 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}




@keyframes scrollDown {
  0% {
    transform: translateY(-33.33%);
  }
  100% {
    transform: translateY(0%);
  }
}




@media (min-width: 1600px) {
  h1 {
    font-size: 160px;
  }

  h2 {
    font-size: 48px;
  }

  .column {
    width: 40px;
  }

  .exp {
    font-size: 48px;
  }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  h1 {
    font-size: 128px;
  }
  h2 {
    font-size: 36px;
  }

  .column {
    width: 32px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  h1 {
    font-size: 90px;
    line-height: 100%;
  }

  h2 {
    font-size: 28px;
  }

  .exp {
    font-size: 32px;
  }

  .column {
    width: 24px;
    gap: 12px;
  }
}

@media (max-width: 767px) {
  body {
    height: 100vh;
  }

  main {
    padding: 40px 10px;
  }

  h1 {
    font-size: 52px;
    line-height: 100%;
  }

  h2 {
    font-size: 20px;
  }

  #background {
    justify-content: space-between;
  }

  .column {
    width: 15px;
    margin: 0 5px;
  }

  .exp {
    font-size: 20px;
    line-height: 22px;
    width: auto;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 42px;
  }
  h2 {
    font-size: 18px;
  }

  .column {
    width: 12px;
  }

  .exp {
    font-size: 16px;
  }
}
