@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');

:root {
  --black: #101010;
  --white: #f3f5f7;
  --text-shadow: rgb(243, 245, 247) 1px 0px 0px, rgb(243, 245, 247) 0.540302px 0.841471px 0px, rgb(243, 245, 247) -0.416147px 0.909297px 0px, rgb(243, 245, 247) -0.989993px 0.14112px 0px, rgb(243, 245, 247) -0.653644px -0.756803px 0px, rgb(243, 245, 247) 0.283662px -0.958924px 0px, rgb(243, 245, 247) 0.96017px -0.279416px 0px;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
  scroll-behavior: smooth;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  width: 100%;
  height: 100vh;
  color: var(--white);
  background-color: var(--black);
  font-family: "Roboto Flex", sans-serif;
  font-size: 1.6rem;
}

h1 {
  margin: 0;
  font-weight: 900;
  font-size: 3.2rem;
  color: var(--black);
  font-style: italic;
  text-shadow: var(--text-shadow);
  transition: transform .3s ease-in-out;
}

@media (min-width: 1200px) {
  h1 {
    font-size: 4.8rem;
  }
}

h2 {
  margin: 0;
  text-align: center;
  transition: top .3s ease-in-out, left .3s ease-in-out;
  font-size: 1.8rem;
}

@media (min-width: 1200px) {
  h2 {
    font-size: 3.2rem;
  }
}

a {
  text-decoration: none;
  cursor: pointer;
}

.main {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../assets/imgs/bg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.container {
  margin: 0 auto;
  width: 90%;
  max-width: 1200px;
}

.main-container {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.link {
  padding: 1rem;
  width: 100%;
  max-width: 35rem;
  position: relative;
  color: var(--white);
  border-radius: 1.6rem;
  overflow: hidden;
  transition: color .3s ease-in-out;
  z-index: 5;
}

@media (min-width: 1200px) {
  .link {
    max-width: 55rem;
  }
}

.link::before,
.link::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: -100%;
  background-color: var(--white);
  transition: left .3s ease-in-out;
  z-index: -5;
}

.link::after {
  left: 0;
  background-color: var(--black);
  opacity: 0.8;
  z-index: -10;
}

.link:hover::before {
  left: 0;
}

.link:hover+h1 {
  animation: grow 1s ease-in-out;
}

@keyframes grow {
  0% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.01);
  }

  50% {
    transform: scale(0.99);
  }

  75% {
    transform: scale(1.01);
  }

  100% {
    transform: scale(1);
  }
}

.link:hover {
  color: var(--black);
}