/* Add this at the top of your CSS file */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Global body styles */
body {
    font-family: 'Poppins', sans-serif; /* Updated font */
    background-color: #fafafa;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

/* Main app container */
#app {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

header {
    text-align: center;
    padding: 40px 20px;
    background-color: #1e1e1e; /* Dark background */
    color: white;
    border-bottom: 4px solid #ff5722; /* Orange border */
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.7); /* Glowing orange shadow */
}

h1 {
    font-size: 48px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* Navigation styles */
nav {
    display: flex;
    justify-content: center;
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 20px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: #ff5722; /* Orange hover */
    color: white;
}

nav a.active {
    background-color: #ff5722; /* Orange active state */
    color: white;
}

/* Container for both player sections */
#cards-and-stats-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    align-items: stretch;
}

/* Left section: Right player's stats and player card */
#left-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 20px;
}

/* Right section: Left player's player card and season stats */
#right-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 20px;
}

/* Ensure the player card and stats are aligned */
.player-card, .stats-column {
    flex: 1;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Player cards container */
#player-cards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    flex: 1;
}

/* Individual player card */
.player-card {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 20px;
    width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Player card heading */
.player-card h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Centered image and stats */
.headshot {
    width: 140px;
    height: 210px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 3px solid #f1f1f1;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Player card paragraph styles */
.player-card p {
    margin: 5px 0;
    font-size: 16px;
    color: #666;
}

/* Button styles */
.button-select, .toggle-button {
    background-color: #ff5722; /* Orange background */
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button-select:hover, .toggle-button:hover {
    background-color: #e64a19; /* Darker orange on hover */
    transform: scale(1.05);
}

.button-select:active, .toggle-button:active {
    transform: scale(1.1);
    background-color: #d84315; /* Even darker orange on click */
}

/* Rankings section styles */
#rankings {
    margin-top: 40px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#rankings h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Ranking player styles */
.ranking-player {
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.ranking-player:hover {
    background-color: #e0f7fa;
}

.ranking-player:first-child {
    background-color: #ffeb3b;
    font-weight: bold;
}

.ranking-player:first-child h3 {
    color: #222;
}

.ranking-player h3 {
    font-size: 18px;
    color: #333;
}

.ranking-player p {
    font-size: 16px;
    color: #666;
}

/* Medal and GOAT symbols */
.medal {
    font-size: 24px;
    color: #ff5722;
    margin-right: 10px;
}

.medal.second {
    color: #ff9800;
}

.medal.third {
    color: #607d8b;
}

.goat {
    font-size: 32px;
    color: #ffd700;
    margin-right: 10px;
}

/* Ranking Movement Indicators */
.ranking-movement {
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ranking-movement span {
    color: #333;
}

.ranking-movement .up {
    color: #28a745;
}

.ranking-movement .down {
    color: #dc3545;
}

/* Medal Colors for Top Players */
.gold {
    background-color: #ffd700;
    color: #333;
}

.silver {
    background-color: #c0c0c0;
    color: #333;
}

.bronze {
    background-color: #cd7f32;
    color: #333;
}

/* Tab content styles */
.tab-content {
    display: none;
}

/* Active tab content */
.tab-content.active {
    display: block;
}
/* Search Bar Styles */
#search-bar {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 6px;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.3s ease;
  }
  
  #search-bar:focus {
    border-color: #ff5722; /* Orange focus border */
  }
  
/* Rank Number Styles */
.rank-number {
    font-size: 18px;
    font-weight: bold;
    margin-right: 10px;
    color: #333;
    display: inline-block; /* Ensure it appears inline with the name */
  }

/* Player Info Styles */
.player-info h3 {
display: flex;
align-items: center; /* Align the ranking number and name vertically */
}

/* Toggle button styles */
.toggle-button {
    background-color: #ff5722; /* Orange background */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    justify-content: center;
    margin: 20px 120px;
    width: 160px;
    height: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.toggle-button:hover {
    background-color: #e64a19; /* Darker orange on hover */
}

.toggle-button.active {
    background-color: #1e2a3a;
    color: white;
}

/* Spacing and layout for the toggle button */
#game-mode-toggle {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    font-size: 18px;
}

#cards-and-stats-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    align-items: stretch;
}

/* Player cards take up more space */
#player-cards {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

/* Stats columns take up less space */
.stats-column {
    flex: 1;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* ELO Rankings Tab */
#elo-rankings {
    text-align: center;
    padding: 20px;
}

#rankings-list {
    margin-top: 20px;
}

.ranking-player {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ranking-player:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.ranking-player h3 {
    font-size: 1.2rem;
    color: #1e2a3a;
    margin: 0;
}

.ranking-player p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* Gold, Silver, Bronze Backgrounds */
.ranking-player:first-child {
    background-color: #ffd700; /* Gold */
}

.ranking-player:nth-child(2) {
    background-color: #c0c0c0; /* Silver */
}

.ranking-player:nth-child(3) {
    background-color: #cd7f32; /* Bronze */
}

/* Medal and GOAT symbols */
.medal {
    font-size: 24px;
    margin-right: 10px;
}

.medal.second {
    color: #ff9800; /* Orange for second place */
}

.medal.third {
    color: #607d8b; /* Blue-gray for third place */
}

.goat {
    font-size: 32px;
    color: #ffd700; /* Gold for GOAT */
    margin-right: 10px;
}

/* Ranking Movement Indicators */
.ranking-movement {
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ranking-movement span {
    color: #333;
}

.ranking-movement .up {
    color: #28a745; /* Green for upward movement */
}

.ranking-movement .down {
    color: #dc3545; /* Red for downward movement */
}
