/* GLOBAL STYLES */
@font-face {
    font-family: 'basketball';
    src: url('img/Basketball.otf') format('opentype');
}

*{
  box-sizing: border-box;
}

body{
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: auto;
  cursor: pointer;
  background: url('https://media.giphy.com/media/RkhMKpIYLT9sukfuXg/giphy.gif') no-repeat center center fixed;
  background-size: cover;
  font-family: 'palatino', serif;
}

/* HEADER */
header{
  background-color: black;
  padding: 10px;
}

.logo img{
  width: auto;
  height: 50px;
}

.logo img:hover{
  transform: scale(1.1);
}

nav{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

/* MAIN */
main{
  flex: 1 0 auto;
}

/* FOOTER */
footer {
    color: white;
    text-align: center;
    padding: 15px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* NAV BAR */
.burger{
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
  color: white;
  justify-content: center;
}

.menu{
  display: none;
}

.menu a{
  text-decoration: none;
  font: normal normal bold 12px/16px Helvetica;
  color: white;
}

.menu a:hover {
    transform: scale(1.1);
}

/* Front Page */
.title {
  position: relative;
  top: 20px;
  left: 50%;
  padding-bottom: 10%;
  transform: translateX(-50%);
  text-align: center;
  justify-content: center;
  z-index: 0;
}

.title h1 {
  font-weight: bold;
  font-family: 'basketball', sans-serif;
  font-size: clamp(10px, 8vw, 60px);
  color: white;
  text-shadow: 0 0 10px rgba(255, 215, 0, 1);
  animation: glow 2s ease-in-out infinite alternate;
  margin: 0;
  padding: 0;
}

@keyframes glow {
  0% {
      text-shadow:
          0 0 10px rgba(255, 215, 0, 1),
          0 0 20px rgba(255, 215, 0, 0.8),
          0 0 30px rgba(255, 215, 0, 0.6),
          0 0 40px rgba(255, 215, 0, 0.4);
  }
  100% {
      text-shadow:
          0 0 20px rgba(255, 215, 0, 1),
          0 0 40px rgba(255, 215, 0, 0.8),
          0 0 60px rgba(255, 215, 0, 0.6),
          0 0 80px rgba(255, 215, 0, 0.4);
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
  max-width: 100vw;
  max-height: 100vh;
  overflow: auto;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
  height: 150px;
  flex: wrap;
  background-color: #222;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-image {
  width: 100%;
  height: 100px;
  border-bottom: 2px solid #333;
  object-fit: cover;
  object-position: center;
}

.card h3{
  color: white;
  font-size: 1.2em;
  margin: 5px 0 5px;
}

.card:hover {
    opacity: 0.8;
    transform: scale(1.1);
    border: 2px solid #FFD700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Sparks Styling */
#sparks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Player Section Styles */
.player-profile {
    display: flex;
    justify-content: center;
    padding: 50px 0;
}

.player-card {
    width: 80vw;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    background-color: rgb(50 30 0 / 80%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.player-card h2,p,ul {
  color: white;
}

.player-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.player-image {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #333;
    object-fit: cover;
    object-position: center;
}

.player-card h2 {
    font-size: 1.8em;
    margin: 15px 0;
}

.position {
    font-size: 1.2em;
}

.stats {
    text-align: left;
    margin-top: 15px;
}

.description{
  text-align: left;
}

.stats p,
.stats ul {
    margin: 5px 0;
}

.stats ul {
    list-style-type: disc;
    margin-left: 20px;
}

iframe{
  width: 100%;
}


/* Adjusting Screen for Desktop */
@media screen and (min-width: 768px){
  .menu{
    padding-right: 10px;
  }

  .burger{
    display: none;
  }

  .menu{
    display: flex;
    gap: 30px;
  }

  footer{
    position: absolute;
    bottom: 0;
  }

  .title h1{
    padding-top: 50px;
  }

  @keyframes glow {
      0% {
          text-shadow:
              0 0 40px rgba(255, 215, 0, 1),
              0 0 80px rgba(255, 215, 0, 0.9),
              0 0 120px rgba(255, 215, 0, 0.8),
              0 0 160px rgba(255, 215, 0, 0.7);
      }
      100% {
          text-shadow:
              0 0 80px rgba(255, 215, 0, 1),
              0 0 160px rgba(255, 215, 0, 0.9),
              0 0 240px rgba(255, 215, 0, 0.8),
              0 0 320px rgba(255, 215, 0, 0.7);
      }
  }

  .card-container{
    max-height: 300vh;
    gap: 40px;
  }

  .card{
    height: 300px;
    width: 240px;
    max-width: 300px;
  }

  .card-image{
    height: 250px;
  }

  .player-image{
    height: 25%;
    width: auto;
  }

  iframe{
    width: 100%;
    height: 40%;
  }

  footer{
    display: none;
  }
}

/* The side navigation menu */
.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  right: 0;
  background-color: #111;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: white;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #f1f1f1;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}

/* By: Henry Chen */
/* Side nav menu copied from W3 Schools */
/* Parts of this code was written by ChatGPT and edited */
