@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

body {
  margin: 0;
  background-color: #000;
  color: #eee;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  font-size: 12px;
}
a {
  text-decoration: none;
}
header {
  width: 1140px;
  max-width: 80%;
  margin: auto;
  height: 50px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}
header a {
  color: #eee;
  margin-right: 40px;
}
/* main */
.main {
  height: 100vh;
  margin-top: -50px;
  width: 100vw;
  overflow: hidden;
  position: relative;
}
.main .list .item {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0 0 0 0;
}
.main .list .item .bgImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.main .list .item .content {
  position: absolute;
  top: 30%;
  width: 1140px;
  max-width: 80%;
  left: 50%;
  transform: translateX(-50%);
  padding-right: 30%;
  box-sizing: border-box;
  color: #fff;
  text-shadow: 0 5px 10px rgba(0, 0, 0, 0.8);
}
.main .list .item .team {
  font-weight: bold;
  letter-spacing: 6px;
  font-size: 1.5em;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: snow;
}
.main .list .item .name,
.main .list .item .stats {
  font-size: 4em;
  font-weight: bold;
  line-height: 1.3em;
  margin-bottom: 0.3em;
}
.main .list .item .stats {
  color: #abf13a;
}
.main .list .item .buttons {
  margin-top: 2em;
}
.main .list .item .buttons button {
  border: none;
  background-color: black;
  color: white;
  letter-spacing: 2px;
  font-family: Poppins;
  font-weight: 500;
  font-size: 1.2em;
  padding: 10px 20px;
  cursor: pointer;
}

.main .list .item .buttons button:hover {
  background-color: #3ab7f1;
  color: black;
}

#playerSelect {
  width: 165px;
  margin-top: 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding: 0.3rem 0.8rem 0.5rem;
  font-size: 1rem;
  border: 1px solid #bebebe;
  border-radius: 5px;
  color: whitesmoke;

  display: block;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0, 0, 0, 0.3)
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='white' stroke='white' stroke-linecap='butt' stroke-linejoin='butt' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e")
    no-repeat right 0.75rem center/16px 16px;
}

#playerSelect option {
  background-color: #3f3e3e;
}

/* animation */
.main .list .item:nth-child(1) {
  z-index: 1;
}

/* animation text in first item */

.main .list .item:nth-child(1) .content .team,
.main .list .item:nth-child(1) .content .name,
.main .list .item:nth-child(1) .content .stats,
.main .list .item:nth-child(1) .content .des,
.main .list .item:nth-child(1) .content .buttons {
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent 0.5s 1s linear 1 forwards;
}
@keyframes showContent {
  to {
    transform: translateY(0px);
    filter: blur(0px);
    opacity: 1;
  }
}
.main .list .item:nth-child(1) .content .name {
  animation-delay: 1.2s !important;
}
.main .list .item:nth-child(1) .content .stats {
  animation-delay: 1.4s !important;
}
.main .list .item:nth-child(1) .content .des {
  animation-delay: 1.6s !important;
}
.main .list .item:nth-child(1) .content .buttons {
  animation-delay: 1.8s !important;
}

@media screen and (max-width: 678px) {
  .main .list .item .bgImage {
    opacity: 0.6;
  }
  .main .list .item .content {
    padding-right: 0;
  }
  .main .list .item .content .name {
    font-size: 2.5em;
  }
  .main .list .item .content .stats {
    font-size: 2.5em;
  }
}
