@font-face {
  font-family: 'FamiljenGrotesk';
  src: url(./fonts/FamiljenGrotesk-VariableFont_wght.ttf);
}

*,
*:before,
*:after {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'FamiljenGrotesk', sans-serif;
  background-color: #e9e9eb;
  transition: background-color 1s;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

button {
  cursor: pointer;
  font-family: inherit;
}

.additional-info-bcg {
  background-color: #dddddd;
}

.additional-info {
  width: 1674px;
  margin-right: auto;
  margin-left: auto;
  padding-top: 5px;
  padding-bottom: 5px;

  display: flex;
  justify-content: space-between;
}

.additional-info-text {
  font-size: 15px;
}

.additional-info-link:hover {
  text-decoration: underline;
}

header {
  background-color: #201e1c;
}

.header-container {
  display: flex;
  justify-content: space-between;

  width: 1674px;
  margin-right: auto;
  margin-left: auto;
  padding: 5px 15px;
}

.header-first-block {
  display: flex;
  align-items: center;
  gap: 50px;
}

.header-second-block {
  display: flex;
  align-items: center;
  gap: 50px;
}

.logo-icon {
  width: 163px;
  height: 49px;
}

.shop-btn {
  display: flex;
  align-items: center;
  gap: 9px;

  width: 117px;
  height: 30px;
  padding-left: 17px;
  padding-right: 2px;
  border-radius: 30px;

  font-size: 17px;
  font-weight: 500;
}

.arrow-bcg {
  width: 25px;
  height: 25px;
  background-color: #c0c0a8;
  border-radius: 50%;
}

.arrow-right {
  width: 25px;
  height: 25px;
  rotate: 180deg;
}

.header-link {
  color: #ffffff;
  font-weight: 400;
  font-size: 15px;
}

.header-link:hover {
  text-decoration: underline;
}

.signIn-btn {
  display: flex;
  align-items: center;
  gap: 10px;

  width: 125px;
  height: 45px;
  padding: 7px;

  background: #fff;
  font-size: 17px;
  font-weight: 500;
  border-radius: 100px;
}

.profile-icon {
  width: 32px;
  height: 32px;
}

.color-stripe {
  width: 100vw;
  height: 7px;
  background: linear-gradient(90deg, #0ff, #db00ff 48%, #faff00);
}

main {
  width: 1600px;
  margin-right: auto;
  margin-left: auto;
}

.hero-section {
  display: flex;
  padding-top: 200px;
}

.hero-container {
  width: 640px;
  height: 420px;
  padding-top: 90px;
  padding-left: 70px;
  margin-bottom: 30px;
  margin-left: 100px;

  background-image: url(./images/hero-bcg.svg);
  background-repeat: no-repeat;
  background-size: contain;
}

.hero-text {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 45px;
  font-weight: 500;
  margin-bottom: 25px;
}

.hero-text-container {
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
}

.animated-text-1 {
  display: inline-block;
  animation-name: slideUp;
  animation-duration: 0.75s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

.animated-text-2 {
  display: inline-block;
  animation-name: slideUp;
  animation-duration: 0.75s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  animation-delay: 0.2s;
}

.animated-text-3 {
  display: inline-block;
  animation-name: slideUp;
  animation-duration: 0.75s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  animation-delay: 0.4s;
}

.animated-text-4 {
  display: inline-block;
  animation-name: slideUp;
  animation-duration: 0.75s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  animation-delay: 0.6s;
}

@keyframes slideUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-text-secondary {
  font-size: 18px;
  font-weight: 400;
  color: #393939;
  max-width: 420px;
  line-height: 22.5px;
  margin-bottom: 30px;
}

.hero-btn {
  width: 225px;
  height: 50px;
  margin-bottom: 16px;

  background-color: #c0c0a8;
  color: black;
  border-radius: 50px;
  border: none;
  padding: 1px;
  min-width: 192px;

  font-size: 18px;
  line-height: 18px;
  transition: 0.3s;
}

.hero-btn:hover {
  text-decoration: underline;
  background-color: #dfdfc9;
}

.stars-img {
  animation-name: slideRight;
  animation-duration: 0.75s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  animation-delay: 0.2s;
}

@keyframes slideRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.hero-rating-text {
  display: inline-block;
  color: #393939;
  font-size: 14px;
  max-width: 150px;
  line-height: 17.5px;

  animation-name: slideRight;
  animation-duration: 0.75s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  animation-delay: 0.2s;
}

.hero-link {
  text-decoration: underline;
}

.advantages-list {
  display: flex;
  gap: 80px;

  margin-left: 130px;

  animation-name: slideUp;
  animation-duration: 0.75s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  animation-delay: 0.2s;
}

.advantages-icon {
  width: 33px;
  height: 33px;

  margin-bottom: 8px;
}

.advantages-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.advantages-text {
  font-size: 17px;
  font-weight: 400;
}

.hero-container-2 {
  position: relative;
  width: 100%;
}

.hero-img-container {
  background-image: url(./images/domino-bg.png);
  background-repeat: repeat-x;
  background-size: contain;

  position: absolute;
  top: calc(9vh - 100px);
  left: 50%;
  z-index: 0;

  width: 29.06976744186vw;
  max-width: 482px;
  height: 100%;
  margin: 0 auto;

  transform: translateX(-50%);

  animation-name: opacity;
  animation-duration: 0.6s;
  animation-timing-function: ease-out;
}

@keyframes opacity {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 100%;
  }
}

.hero-img-1 {
  position: absolute;
  top: 30px;
  left: -100px;
  z-index: 5;
  width: 350px;
}

.hero-img-2 {
  position: absolute;
  top: 80px;
  left: 180px;
  z-index: 4;

  width: 150px;
}

.hero-img-3 {
  position: absolute;
  z-index: 3;
  top: 180px;
  left: 360px;

  width: 230px;
}

.hero-img-4 {
  position: absolute;
  z-index: 2;
  top: 60px;
  left: 400px;

  width: 110px;
}

.hero-img-5 {
  position: absolute;
  z-index: 1;
  top: 30px;
  right: 60px;
  width: 195px;
}

.box-animation-1 {
  animation-name: fall;
  animation-duration: 0.8s;
  animation-timing-function: linear;
}

.box-animation-2 {
  animation-name: fall;
  animation-duration: 0.8s;
  animation-delay: 0.4s;
  animation-timing-function: ease;
}

.box-animation-3 {
  animation-name: fall-2;
  animation-duration: 1s;
  animation-delay: 0.7s;
  animation-timing-function: ease-out;
}

.box-animation-4 {
  animation-name: fall-3;
  animation-duration: 0.8s;
  animation-delay: 0.7s;
  animation-timing-function: ease-out;
}

.box-animation-5 {
  animation-name: fall-4;
  animation-duration: 0.8s;
  animation-delay: 1s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  animation-play-state: running;
}

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

  100% {
    transform: translateY(0) rotate(0);
    opacity: 100%;
  }
}

@keyframes fall-2 {
  0% {
    transform: translateY(-150px) rotate(-10deg);
    opacity: 0;
  }

  100% {
    transform: translateY(0) rotate(0);
    opacity: 100%;
  }
}

@keyframes fall-3 {
  0% {
    transform: translateY(-200px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 100%;
  }
}

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

  100% {
    transform: translateY(0) rotate(0);
    opacity: 100%;
  }
}
