html {
  font-size: 62.5%; /* 10px */
  box-sizing: border-box;
  margin: 0;
  padding: 0;

  @media (max-width: 576px) {
    font-size: 50%; // 8px
  }

  @media (max-width: 440px) {
    font-size: 43.75%;  // 7px
  }
}

a {
  width: 100%;
  height: 100%;
  height: 60px;
  text-decoration: none;
  color: #fff;
}

body {
  width: 100vw;
  max-width: 780px;
  height: 60px;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  cursor: pointer;
  font-family: Onest;
  font-weight: 900;
}

.container {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #022e82ff;
  background: url('./bckg.webp') no-repeat 50% / cover;
  overflow: hidden;
}

.logo {
  width: 15rem;
  z-index: 10;
}

.logo-mob {
  display: none;
}

.main {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.main-info {
  width: 35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-info__team {
  width: 10%;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;

  img {
    max-width: 120%;
    max-height: 100%;
  }
}

.main-info__descr {
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: center;
  margin-bottom: 8px;
}

.main-info__odds {
  display: flex;
  justify-content: center;
  gap: 1px;
  align-items: center;
}

.main-info__date {
  font-size: 15px;
  font-weight: 400;
  color: #ffff;
}

.odds {
  background-color: #ffff;
  width: 4rem;
  padding: 0 5px;
  font-size: 15px;
  color: #022e82ff;
  text-align: center;
  border-radius: 5px;
}

#win1 {
  background-color: #41aa29;
  color: #ffff;
}

.animated-block {
  position: relative;
  width: 180px;
  height: 100%;
  text-transform: uppercase;
  text-align: center;
  font-size: 2rem;
  line-height: 1;
  z-index: 10;
}

.animated-block__first {
  width: 100%;
  position: absolute;
  top: 50%;
  right: 50%;
  animation: anime-first 10s infinite;
  color: #ffff;
}

.animated-block__sec {
  background-color: #41aa29;
  border-radius: 6px;
  padding: 8px 20px 6px 20px;
  position: absolute;
  top: 50%;
  right: 50%;
  animation: anime-sec 10s infinite;
  color: #ffff;
}

.tennis {
  position: absolute;
  width: 15rem;
  bottom: 10%;
}

.basketball {
  position: absolute;
  width: 15rem;
  top: 0;
  right: 10px;
  filter: brightness(0.8);
}

.descr-block {
  display: flex;
  position: absolute;
  align-items: center;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  font-size: 8px;
  font-weight: 400;
  white-space: nowrap;
  z-index: 10;
}

.descr-block__wrapper {
  overflow: hidden;
  width: 100%;
}

.descr-block__inner {
  color: #ffff;
  padding-left: 100%;
  animation: running-line 120s linear infinite;
}

@media (max-width: 768px) {
  .logo {
    width: 12rem;
  }

  .main-info {
    width: 28rem;
  }

  .main-info__team {
    width: 15%;
  }

  .animated-block {
    width: 150px;
    height: 100%;
    text-transform: uppercase;
    text-align: center;
    font-size: 1.6rem;
    line-height: 1;
    z-index: 10;
  }

  .basketball {
    width: 10rem;
  }

  .tennis {
    width: 10rem;
  }
}

@media (max-width: 576px) {
  .logo {
    width: 10rem;
  }

  .animated-block {
    width: 105px;
  }
}

@media (max-width: 440px) {
  .logo {
    display: none;
  }

  .logo-mob {
    display: block;
    width: 11rem;
    margin: 0 auto;
    margin-top: 5px;
  }

  .animated-block__first {
    top: 60%;
  }

  .animated-block__sec {
    padding: 6px 18px;
    top: 60%;
  }

  .descr-block__inner {
    animation: running-line-mob 40s linear infinite;
  }

  .basketball {
    display: none;
  }

  .tennis {
    display: none;
  }
}

@keyframes anime-first {
  0% {
    transform: translate(50%, -70%);
    opacity: 0;
  }
  5% {
    transform: translate(50%, -50%);
    opacity: 1;
  }
  45% {
    transform: translate(50%, -50%);
    opacity: 1;
  }
  50% {
    transform: translate(50%, -30%);
    opacity: 0;
  }
  100% {
    transform: translate(50%, -30%);
    opacity: 0;
  }
}

@keyframes anime-sec {
  0% {
    transform: translate(50%, -70%);
    opacity: 0;
  }
  50% {
    transform: translate(50%, -70%);
    opacity: 0;
  }
  55% {
    transform: translate(50%, -50%);
    opacity: 1;
  }
  95% {
    transform: translate(50%, -50%);
    opacity: 1;
  }
  100% {
    transform: translate(50%, -30%);
    opacity: 0;
  }
}

@keyframes running-line {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-800%);
  }
}

@keyframes running-line-mob {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-1200%);
  }
}

@font-face {
  font-family: 'Onest';
  src: url('./Onest-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest';
  src: url('./Onest-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
