/* common */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}
img {
  max-width: 100%;
}
.container {
  max-width: 1280px;
  margin: auto;
}

.btn {
  background-color: #dd0000;
  padding: 15px 25px;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  border: none;
}

/* Animation */
@keyframes banner-animation {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  5% {
    color: orange;
  }
  50% {
    opacity: 0.5;
    color: yellow;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0px);
  }
}
/* player */
@keyframes banner-player-animation {
  0% {
    opacity: 0.5;
    transform: translateX(-20px);
  }
  50% {
    opacity: 0.7;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0px);
  }
}

/* nav */
nav {
  background-color: rgb(0, 0, 0);
  padding: 15px 0;
  font-weight: 600;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 10px;
  justify-content: center;
}
nav ul li a {
  color: white;
  text-decoration: none;
  transition: 0.5s;
}
nav ul li a:hover {
  color: rgb(255, 0, 0);
}

/* banner styles */

.banner {
  display: flex;
  align-items: center;
  background-color: black;
  color: white;
  border-radius: 15px;
  margin: 50px auto;
  animation: banner-animation 0.7s ease-out forwards;
}
.banner-left {
  padding-left: 80px;
  flex: 1;
}

.banner-left h2 {
  font-size: 70px;
  font-weight: 600;
  line-height: 70px;
}
.banner-left p {
  color: #ffffff;
  margin: 15px 0;
  max-width: 65%;
}
.banner-right img {
  display: block;
  animation: banner-player-animation 1s ease-in infinite;
}
.banner-right {
  flex: 1;
}
/* upcoming-matches */
.upcoming-matches {
  display: flex;
  padding: 15px 0;
  gap: 20px;
}
.upcoming-matches-left {
  background-color: black;
  width: 25%;
  border-radius: 15px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: fit-content;
}
.upcoming-matches-left .btn:nth-child(1),
.upcoming-matches-left .btn:nth-child(2) {
  background-color: white;
  color: black;
  font-size: 20px;
  font-weight: 500;
}
.upcoming-matches-left .btn:nth-child(3) {
  font-size: 20px;
  font-weight: 500;
}
.upcoming-matches .card .card-body {
  padding: 20px;
}

.upcoming-matches-right {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.upcoming-matches-right .card {
  border: 1px solid rgb(232, 232, 232);
  border-radius: 10px;
}
.upcoming-matches-right .card img {
  height: 180px;
  width: 100%;
  border-radius: 10px 10px 0 0;
}

.upcoming-matches-right .card .btn {
  background-color: white;
  color: black;
  border: 2px solid black;
  padding: 8px 17px;
  margin-top: 10px;
}
.upcoming-matches-right .card h2 {
  margin: 15px 0;
  font-size: 18px;
  font-weight: 600;
}

.card-bottom {
  color: #161616a8;
  display: flex;
  gap: 20px;
}

/* Laptop/tab responsive */
@media screen and (max-width: 992px) {
  .container {
    margin: 0 20px;
  }
  .upcoming-matches {
    flex-direction: column;
  }
  .upcoming-matches-left {
    flex-direction: row;
    width: 100%;
    background-color: transparent;
  }
  .upcoming-matches-left > * {
    flex: 1;
  }
  .upcoming-matches-left .btn {
    border: 1px solid rgb(232, 232, 232);
    border-radius: 10px;
  }
  .banner-left h2 {
    font-size: 50px;
    line-height: 50px;
  }
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
  .container {
    margin: 0 10px;
  }
  .banner {
    flex-direction: column;
    text-align: center;
    margin-top: 20px;
  }
  .banner .banner-left {
    margin-bottom: 50px;
    padding-left: 0;
    padding-top: 30px;
  }
  .banner .banner-left p {
    margin: 15px auto;
  }
  .upcoming-matches-right {
    grid-template-columns: 1fr;
  }
  .upcoming-matches-left {
    width: 100%;
    align-items: center;
    justify-content: center;
  }
}
