/* Global Reset for Semantic Tags */
body, h1, h2, h3, h4, p, figure, margin, padding {
    margin: 0;
    padding: 0;
}

/* Global Variables */
:root {
    --primary-blue: #3b82f6;
    --header-green: #7cf385;
    --logo-purple: #8699f5;
    --light-grey: #d9d9d9;
    --text-white: #ffffff;
    --text-black: #000000;
}

body {
    background-color: #3b82f6;
    font-family: Arial, sans-serif;
    color: whitesmoke;
    scroll-behavior: smooth;
}
h1{
    font-family: "Kings", cursive;
}

html {
    scroll-behavior: smooth;
}

.pixel-nav {
    font-family: 'Jersey 25', cursives;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
}

.pixel-title {
    font-family: 'Jersey 25', cursive;
    font-size: 32px;
    text-transform: uppercase;
    color: black;
}

.serif-italic {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
}

section {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    border-bottom: 2px solid #2a61b8;
}

/* Shared Header Styles */
.top-header {
    background-color: var(--header-green);
    height: 70px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 20px;
}

.logo-box {
    display: block;
    width: 60px;
    height: 50px;
    background-color: var(--logo-purple);
    position: absolute;
    left: 20px;
}

/* Home Section */
#home .top-header {
    justify-content: flex-start;
    padding-left: 100px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-black);
    text-decoration: none;
    text-transform: uppercase;
}
a:link,
a:visited {
  color: rgb(0, 0, 0)
  /*transition: color 0.5s;*/
}

a:hover,
a:focus {
  color: #2800F5;
  text-decoration: none;
  /*background-color: rgba(240, 240, 240, 0.15);*/
}
a:active {
  color: rgba(149, 0, 0, 0.85);
}

.home-content {
    flex: 1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.home-content h1 {
    font-size: 5rem;
    font-weight: normal;
}

.home-content h2 {
    font-size: 2.5rem;
    margin-top: 10px;
    font-weight: normal;
    letter-spacing: 4px;
}

/* About Section */
#about .top-header {
    justify-content: center;
}

#about .top-header .pixel-title {
    color: black;
}

.about-content {
    flex: 1;
    padding: 50px 80px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-content: space-between;
    transition: opacity 0.5s, transform 0.5s;
}

.about-text {
    font-size: 20px;
    line-height: 1.4;
    font-weight: bold;
    text-align: justify;
}
/* 1. Define the movement */
@keyframes slideRight {
    from {
        transform: translateX(-50px); /* Starts 50px to the left */
        opacity: 0;                   /* Starts invisible */
    }
    to {
        transform: translateX(0);     /* Ends at its original position */
        opacity: 1;                   /* Ends fully visible */
    }
}

.about-footer {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    display: inline-block; 
    animation: slideRight 2s ease-out forwards;
}

/* Teams Section */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.9); /* Starts lower and slightly smaller */
    transition: all 0.8s cubic-bezier(0.17, 0.55, 0.55, 1); /* Smooth "pop" effect */
}

/* 2. The Final State (Visible) */
.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#teams {
    padding-bottom: 40px;
}

/* 1. The Starting State (Hidden) */

.teams-container {
    padding: 20px 40px;
}

.conference-title {
    font-family: 'Jersey 25', cursive;
    font-size: 50px;
    margin-bottom: 10px;
    margin-top: 20px;
    font-weight: normal;
}


.division-row {
    display: grid;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.team-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    gap: 15px;
    margin: 0;
}

.team-logo-placeholder {
    width: 120px;
    height: 120px;
    background-color: white;
    color: black;
    display: grid;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #ccc;
}

.division-name {
    font-family: 'Jersey 25', cursive;
    font-size: 60px;
    margin-left: 20px;
    font-weight: normal;
}

/* Players Section */
#players .top-header {
    justify-content: center;
}

#players .top-header .pixel-title {
    color: var(--text-black);
}
#players img {
   max-width: fit-content;
   max-height: fit-content;
   padding: 5px;
    object-fit: cover;
    
}
.players-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    padding: 60px 100px;
    flex: 1;
}

.player-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
}

.player-name {
    font-family: 'Jersey 25', cursive;
    font-size: 45px;
    color: var(--text-white);
}


/* SCOREBOARD CORE */
.scoreboard-container {
background: #0b0b0b;
border-radius: 12px;
padding: 18px;
color: white;
}

/* MAIN SCORE LINE */
.score-row {
display: flex;
justify-content: center;
align-items: center;
gap: 18px;
font-size: 44px;
font-family: Arial, sans-serif;
}

/* TEAM LABELS */
.team-name {
font-size: 20px;
letter-spacing: 2px;
color: #d1d1d1;
}

/* SCORE NUMBERS */
.score-number {
color: #ff3b3b;
font-weight: bold;
transition: transform 0.2s ease;
}

/* ESPN/NHL BURST ANIMATION */
@keyframes scoreBurst {
0% { transform: scale(1); }
50% { transform: scale(1.5); color: white; }
100% { transform: scale(1); }
}

.score-pop {
animation: scoreBurst 0.4s ease;
}


/* BROADCAST BAR */
.broadcast-bar {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 8px;
font-size: 14px;
letter-spacing: 2px;
color: #aaa;
}

/* LIVE DOT */
.live {
color: red;
font-weight: bold;
animation: blink 1s infinite;
}

@keyframes blink {
50% { opacity: 0.3; }
}

