@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");

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

* {
  margin: 0;
}

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

html {
  font-size: 12px;

  @media (min-width: 500px) {
    font-size: 13px;
  }

  @media (min-width: 900px) {
    font-size: 9px;
  }

  @media (min-width: 1000px) {
    font-size: 10px;
  }

  @media (min-width: 1100px) {
    font-size: 11px;
  }

  @media (min-width: 1200px) {
    font-size: 12px;
  }

  @media (min-width: 1300px) {
    font-size: 13px;
  }
}

body {
  margin: 0;
  background-color: #000;
  color: #eee;
  font-family: Poppins, Arial, Helvetica, sans-serif;
}
a {
  text-decoration: none;
}
header {
  max-width: 80%;
  margin: auto;
  height: 50px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}
header a {
  color: #eee;
  margin-right: 40px;
}
header nav {
  margin: auto;
}
.main {
  height: 100vh;
  margin-top: -50px;
  width: 100vw;
  position: relative;
}
.main .item {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0 0 0 0;
}
.main .item .bgImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  /* mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0)); */
  mask-image: linear-gradient(
    180deg,
    #000000ff 0%,
    #00000050 80%,
    #00000000 100%
  );
}
.main .item .content {
  position: absolute;
  top: 8em;
  box-sizing: border-box;
  color: #fff;
  text-shadow: 0 5px 10px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: inherit;
  padding: 1rem 1rem 3rem;
}

.main .item .content .playerImage {
  width: 80%;
  max-width: 500px;
  border: 5px solid #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.8);
  margin-bottom: 2em;
  overflow: hidden;
  border-radius: 20px;
}

.main .item .team {
  font-weight: bold;
  letter-spacing: 6px;
  font-size: 1.5em;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: snow;
}
.main .item .name,
.main .item .stats {
  font-size: 3em;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 0.3em;
}
.main .item .stats {
  color: #abf13a;
}

.main .item .des {
  font-size: 1.5em;
  line-height: 1.5em;
  margin-bottom: 1.5em;
  color: lightgoldenrodyellow;
}
.main .item .des ul {
  padding: 0;
  list-style-position: inside;
  list-style-type: disclosure-closed;
  color: aliceblue;
}
.main .item .buttons {
  margin-top: 2em;
}
.main .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;
  border: 2px solid white;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.main .item .buttons button:hover {
  background-color: white !important;
  color: black;
}

.main .item .buttons button:first-child {
  margin-right: 1em;
}
.main .item .buttons button:nth-child(2) {
  background-color: #f1a83a;
  color: black;
}

#playerSelect {
  width: 11em;
  margin-top: 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.3em;
  padding: 0.5rem 1rem;
  border: 1px solid #bebebe;
  border-radius: 5px;
  color: whitesmoke;
  display: block;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0, 0, 0, 0.8)
    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 .item:nth-child(1) {
  z-index: 1;
}

/* animation text in first item */
.main .item:nth-child(1) .content .playerImage,
.main .item:nth-child(1) .content .team,
.main .item:nth-child(1) .content .name,
.main .item:nth-child(1) .content .stats,
.main .item:nth-child(1) .content .des,
.main .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 .item:nth-child(1) .content .name {
  animation-delay: 1.2s !important;
}
.main .item:nth-child(1) .content .stats {
  animation-delay: 1.4s !important;
}
.main .item:nth-child(1) .content .des {
  animation-delay: 1.6s !important;
}
.main .item:nth-child(1) .content .buttons {
  animation-delay: 1.8s !important;
}

@media screen and (max-width: 520px) {
  .main .item .bgImage {
    opacity: 0.5;
  }
}

@media screen and (min-width: 900px) {
  .main .item .content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: inherit;
    gap: 2em;
    padding-inline-start: 4rem;
  }

  .main .item .content .playerImage {
    width: 45%;
    max-width: 550px;
    margin-bottom: 0;
  }
}
