@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Caveat:wght@400..700&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Dancing+Script:wght@400..700&family=Fjalla+One&family=Gentium+Book+Plus:ital,wght@0,400;0,700;1,400;1,700&family=Great+Vibes&family=Indie+Flower&family=Jim+Nightshade&family=Lora:ital,wght@0,400..700;1,400..700&family=Pacifico&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Satisfy&display=swap');
/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Roboto, sans-serif;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 12vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 10px #1D428A;
    background-color: rgba(200, 16, 46, 1.0);
    transition: transform 0.3s ease-in-out;
}


.navbar nav ul {
    display: flex;
    list-style: none;
}

.navbar nav a {
    text-decoration: none;
    padding: 0 30px;
    font-size: 20px;
    color: #fff;
    text-shadow: 5px 5px 5px #000;
}

.navbar nav a:hover {
    color: #1D428A;
    font-size: 25px;
}


/* Custom scrollbar styling */
.games-container::-webkit-scrollbar {
    height: 10px;
}

.games-container::-webkit-scrollbar-track {
    background: transparent;
}

.games-container::-webkit-scrollbar-thumb {
    background-color: rgba(200, 16, 46, 0.6);
    border-radius: 10px;
}

.games-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(200, 16, 46, 0.9);
}

.games-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(29, 66, 138, 0.7) transparent;
}


/* General Content Styling */
.content {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* scroll-margin-top: 12vh; */
    box-sizing: border-box;
}

.content#home {
    background-image: url('../assets/landing-page.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

#screen-title {
    color: #1D428A;
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 80px;
    text-shadow: 5px 5px 5px #C8102E;
    padding-top: 12vh;
}

/* Landing screen split */
#landing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    background: url('../assets/bw-logo.png') center no-repeat;
    background-color: #000;
    overflow: hidden;
}

/* Spacer (200vh to push content down) */
#spacer1 {
    width: 100%;
    height: 100vh;
    background: url('../assets/bw-logo.png') center no-repeat;
    background-color: #000;
    z-index: -1;
}
#spacer2 {
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: -1;
    background-image: url('../assets/bw-logo.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.scrolling #landing {
    position: absolute;
    top: 0;
}


section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
section .side {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
section .side#side1 {
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
}
section .side#side2 {
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}
section .side img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Styling specifically for the home subtitle */
.content#home h1 {
    color: #fff;
    -webkit-text-stroke: 2px black;
    padding-top: 20vh;
}

.content#home h2 {
    color: #fff;
    text-shadow: 2px 2px 2px #000;
}

.content#home h3 {
    color: #fff;
    text-shadow: 2px 2px 2px #000;
    font-size: 1.5em;
    font-style: italic;
    margin-bottom: 10px;
}


/* Fixture Bar */
.fixture-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 5%;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
}

.fixtures {
    width: 50%;
    padding: 10px;
}

.games-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.fixture-box {
    flex: 0 0 150px;
    scroll-snap-align: start;
}

.fixture-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fixture-team img {
    width: 60px;
    height: 60px;
    margin-bottom: 5px;
}

.fixture-score {
    font-size: 24px;
    font-weight: bold;
    color: rgb(100, 100, 100 / 1.0);
    text-align: center;
}

.fixture-status {
    font-size: 14px;
    color: #fff;
    text-align: center;
    margin-top: 5px;
}


/* Team page */
.player-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-items: center;
    margin-top: 20px;
    height: 95%;
}

.player-item {
    position: relative;
    text-align: center;
    width: 100%;
}

.player-number {
    position: absolute;
    top: 25%;
    left: 70%;
    transform: translate(-50%, -50%);
    font-size: 15em;
    color: rgba(200, 16, 46, 0.15);
    z-index: 1;
    pointer-events: none;
    font-family: "Fjalla One", serif;
    font-weight: bold;
}

.player-item img {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 2;
    transition: transform 0.3s ease;
}

.player-item img:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.player-name {
    display: block;
    margin-top: 10px;
    font-size: 1em;
    color: #333;
    font-weight: bold;
    text-align: center;
    z-index: 3; /* Ensure name is above the number */
}



/* Overlay styling */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(46, 75, 217, 0.199);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
  }
  
  .overlay.active {
    display: flex;
  }
  
  @keyframes scaleUp {
    from {
      transform: scale(0.5);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  .overlay-content {
    background: #1D428A;
    padding: 20px;
    border-radius: 16px;
    width: 60vw;
    height: 80vh;
    display: flex;
    flex-direction: row;
    animation: scaleUp 0.3s ease-out;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    font-family: Roboto, sans-serif;
    position: relative;
    overflow: hidden;
  }
  
  .overlay-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: 20px;
  }
  
  .last-game-bar {
    color: white;
    text-align: center;
    height: 50%;
  }

  .last-game-bar h1 {
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    padding-top: 20px;
  }

  .last-game-bar h2 {
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    padding-bottom: 20px;
  }


  #previously {
    font-family: "Indie Flower", cursive;
    font-weight: 400;
    font-style: normal;
  }
  #opponent {
    color: #C8102E;
    font-family: "Jim Nightshade", cursive;
    font-weight: 400;
    font-style: normal;
  }

  .last-game-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 12px;
    margin-top: 10px;
    text-align: center;
    justify-items: center;
  }
  
  .stat-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    width: 100%;
    max-width: 100px;
    color: white;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  
  .stat-box:hover {
    transform: scale(1.05);
    cursor: pointer;
    [data-stat-type].stat-better,
    [data-stat-type].stat-neutral,
    [data-stat-type].stat-worse {
    
    will-change: transform;
    }

  }
  
  .stat-box span {
    font-size: 0.75rem;
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    letter-spacing: 1px;
  }
  
  .stat-box strong {
    font-size: 1.2rem;
    font-weight: bold;
  }
  
  .stat-box.stat-better:hover {
    background-color: rgba(0, 200, 83, 0.5); /* green */
  }
  
  .stat-box.stat-neutral:hover {
    background-color: rgba(255, 235, 59, 0.5); /* yellow */
  }
  
  .stat-box.stat-worse:hover {
    background-color: rgba(244, 67, 54, 0.5); /* red */
  }
  

  [data-stat-type].stat-better {
    color: #2ecc71;
    font-size: 1.25em;
    font-weight: bold;
  }
  
  [data-stat-type].stat-neutral {
    color: #f1c40f;
    font-size: 1.25em;
    font-weight: bold;
  }
  
  [data-stat-type].stat-worse {
    color: #e74c3c;
    font-size: 1.25em;
    font-weight: bold;
  }
  
  

  /* Season Stats Vertical List */
  .player-stats {
    display: flex;
    flex-direction: column;
    /* justify-content: flex-start; */
    padding: 10px 0 0 10px;
    color: white;
    border-bottom: 2px solid rgba(200, 16, 46, 0.8);
    height: 50%;
  }
  
  .player-stats h1 {
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: #C8102E;
    margin-bottom: 10px;
  }
  
  .player-stats p {
    margin: 6px 0;
    font-size: 1em;
  }
  
  .player-stats p span {
    font-weight: bold;
    text-decoration: underline;
    color: #ffffff;
  }
  
  /* RIGHT SIDE: Player Image */
  .overlay-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    position: relative;
  }
  
  .overlay-right img {
    width: auto;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border: 5px solid rgba(200, 16, 46, 0.9);
  }
  
  /* Close button */
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #C8102E;
    font-size: 24px;
    cursor: pointer;
    z-index: 1;
    transition: transform 0.3s ease, color 0.3s ease;
    padding-top: 10px;
    padding-right: 30px;
  }
  
  .close-btn:hover {
    transform: scale(1.2);
    color: #A00;
  }
  

/* Standings screen content */
.content#standings {
    height: auto;
}

.standings-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 20px;
}

.conference {
    width: 45%;
}

.conference h2 {
    text-align: center;
    color: #1D428A;
    margin-bottom: 10px;
    text-decoration: underline;
    text-decoration-color: #C8102E;
}

.conference table {
    width: 100%;
    border-collapse: collapse;
    border: solid 1px #C8102E;
    box-shadow: 3px 3px 3px #1D428A;
}

.conference th, td {
    padding: 10px;
    text-align: center;
    height: 40px;
}

.conference th {
    background-color: #C8102E;
    color: #fff;
}


.conference img {
    height: 50px;
}



/* Community screen content */
#explanation {
    width: 80%;
    padding-top: 10px;
    padding-bottom: 10px;
}

.carousel-container {
  position: relative;
  width: 80%;
  overflow: hidden;
  border-radius: 10px;
  background: #1D428A;
  margin-top: 10px;
  box-shadow: 0 5px 15px rgba(200, 16, 46, 0.9);
}

.carousel-container:hover .carousel-track{
    animation-play-state: paused;
}

.carousel-title {
    color: rgba(200, 16, 46, 0.9);
    font-weight: bold;
    font-size: 200%;
    margin-top: 5vh;
}

.carousel-track {
  display: flex;
  animation: 10s slide infinite linear;
}

.carousel-item {
  min-width: 250px;
  margin: 20px;
  text-align: center;
  color: black;
  text-shadow: 2px 2px 2px #fff;
  padding: 20px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-shadow: 2px 2px 2px #000;
}

#dpnba {
    background-image: url('../assets/logo.png');
}

#bbnet {
    background-image: url('../assets/bullyball.png');
    color: black;
    text-shadow: 2px 2px 2px #fff;
}

#dbb {
    background-image: url('../assets/badboys.png');
}

#dfp {
    background-image: url('../assets/dfp.png');
}

#brp {
    background-image: url('../assets/br.png');
}

.carousel-item:hover {
  transform: scale(1.2);
}

@keyframes slide {
    from {
        transform: translate(0);
    }
    to {
        transform: translate(-107%);
    }
}

.link-sections {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.left-links-container, .right-links-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 45%;
}

.section-title {
  margin-top: 5vh;
  margin-bottom: 10px;
  font-size: 1.5em;
  color: rgba(200, 16, 46, 0.9);
}

.left-links, .right-links {
  background: #1D428A;
  color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(200, 16, 46, 0.9);
  width: 100%;
}

.left-links ul, .right-links ul {
  list-style-type: none;
  padding-left: 0;
}

.left-links li, .right-links li {
  margin-bottom: 10px;
}

.left-links a, .right-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.left-links a:hover, .right-links a:hover {
  color: #C8102E;
}
