/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #e0e0e0;
    max-width: 700px;
    margin: 0 auto; /* Center the content block */
    padding: 0 15px; /* Optional: Add horizontal padding */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    /* background: rgba(255, 255, 255, 0.7) url('https://raw.githubusercontent.com/hoochiecoo/spo/main/v3/image2vector%20(1).svg') repeat;
    background-size: 100px 100px; Adjust the size of the repeated image */
    background-color: #151111;
}

/* Wrapper to center the content */
.container {
    max-width: 700px; /* Optional: Set max-width for the container */
    margin: 0 auto; /* Center horizontally */
    padding: 0 15px; /* Optional: Add padding */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

a {
    color: #ff6f61;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Navbar Styles */
.navbar {
    background-color: #1f1f1f;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    color: #ffffff;
    font-size: 1.5rem;
}

/* Hero Section Styles */
.hero {
    padding: 20px;
    text-align: center;
    background-color: #333333;
}

.hero h1 {
    margin: 0;
    font-size: 2rem;
}

.hero p {
    margin: 10px 0;
}

.search-box {
    margin-top: 20px;
}

select {
    padding: 10px;
    background-color: #444;
    border: none;
    color: #e0e0e0;
    border-radius: 5px;
    margin: 5px 5px
}

button {
    padding: 10px 20px;
    background-color: #ff6f61;
    border: none;
    color: #121212;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
}

button:hover {
    background-color: #9e6dff;
}

/* Info Section Styles */
.info-section {
    padding: 20px;
    /* text-align: center; */
    background-color: #1f1f1f;
}

.info-section h2 {
    margin-top: 0;
}

/* Booking Section Styles */
.booking-section {
    padding: 20px;
    background-color: #333333;
}

.booking-section h2 {
    margin-top: 0;
}

.slots {
    list-style: none;
    padding: 0;
}

.slots li {
    padding: 10px;
    margin-bottom: 10px;
    background-color: #444;
    border-radius: 5px;
    cursor: pointer;
}

/* Footer Styles */
.footer {
    padding: 10px;
    text-align: center;
    background-color: #1f1f1f;
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #1f1f1f;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.popup-content h2 {
    margin-top: 0;
}

input {
    padding: 10px;
    margin-top: 10px;
    background-color: #444;
    border: none;
    color: #e0e0e0;
    border-radius: 5px;
    width: calc(100% - 22px); /* Adjust width to fit within the popup */
}

input::placeholder {
    color: #888;
}

/* Mobile-First Styles */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .search-box {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    select, button {
        width: 100%;
        margin: 5px 0;
    }
}



.image-carousel {
    overflow-x: auto;
    overflow-y: hidden; /* Hide vertical scrollbar */
    white-space: nowrap;
    width: 100vw; /* Full viewport width */
    padding: 0; /* Remove padding */
    box-sizing: border-box; /* Include padding in width calculations */
}

.carousel-wrapper {
    display: flex; /* Use flexbox to arrange images horizontally */
}

.carousel-image {
    width: 100vw; /* Full viewport width */
    height: auto; /* Maintain aspect ratio */
    border: 0px solid #ddd;
    object-fit: cover; /* Ensure images cover the area */
}

/* Media query for larger screens */
@media (min-width: 768px) {
    .carousel-image {
        width: 50vw; /* Adjust to fit 2 images per view on larger screens */
    }
}


/* SectionMenu Styles */
.section-menu {
    background-color: #1f1f1f;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.menu-link {
    color: #ffffff;
    margin: 0 15px;
    text-decoration: none;
    font-size: 1.2rem;
}


.menu-link:hover {
    text-decoration: underline;
}

/* CsvLoader Styles */
.csv-loader {
    padding: 20px;
    background-color: #333333;
    color: #e0e0e0;
}

.csv-section h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #ffffff;
}

.csv-loader table {
    width: 100%;
    border-collapse: collapse;
}

.csv-loader th,
.csv-loader td {
    padding: 10px;
    text-align: left;
    border: 1px solid #444;
}

.csv-loader th {
    background-color: #555555;
    color: #ffffff;
    cursor: pointer;
}

.csv-loader tr:nth-child(even) {
    background-color: #444;
}

.csv-loader tr:nth-child(odd) {
    background-color: #333;
}

.csv-loader td {
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .csv-loader h3 {
        font-size: 1.2rem;
    }

    .csv-loader th,
    .csv-loader td {
        padding: 3px;
    }


    
}


/* Loading Spinner Styles */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1); /* Light grey background */
    border-left: 4px solid #ff6f61; /* Orange color */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto; /* Center the spinner */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}




/* Add the following styles to your CSS file */

.navbar {
    background-color: #333;
    color: white;
    padding: 0.2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Centered and Beautiful Menu Bar Styles */
.menu-bar {
    background-color: #444;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 5px;
    margin-top: 2px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

/* Optional: Add hover effects to make the menu bar more interactive */
.menu-bar:hover {
    background-color: #555;
    transition: background-color 0.3s ease; /* Smooth transition effect */
}

.menu-link {
    color: white;
    text-decoration: none;
    margin: 0 0.7rem; /* Increased spacing between links */
    font-size: 1.1rem;
    transition: color 0.3s ease; /* Smooth transition effect */
}

.menu-link:hover {
    color: #ff6f61;
    text-decoration: underline;
}




.sponsor-logo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Updated FakeData and Profile Card Styles */
.fake-data {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* Make it full-width */
    box-sizing: border-box; /* Include padding in width calculations */
}

.profile-card {
    background-color: #222317;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    margin-bottom: 2rem;
    padding: 1.5rem;
    width: 100%; /* Make it full-width */
    max-width: 100%; /* Remove max-width to match the full content width */
    box-sizing: border-box; /* Include padding in width calculations */
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #555; /* Add a subtle border for separation */
    padding-bottom: 1rem;
}

.profile-header img {
    margin-right: 1.5rem;
    border-radius: 50%; /* Circular image */
    border: 2px solid #ff6f61; /* Add a border to the image */
}

.profile-body {
    margin-top: 1rem;
    color: #e0e0e0;
}

.profile-body p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Optional: Hover effect for profile cards */
.profile-card:hover {
    background-color: #292a1e;
    transition: background-color 0.3s ease; /* Smooth transition effect */
}

.matches-section {
    padding: 20px;
    background-color: #222;
    color: #e0e0e0;
}

.match-card {
    background-color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

.match-card p {
    margin: 8px 0;
}

.match-card .rating-positive {
    color: green;
}

.match-card .rating-negative {
    color: red;
}





/* Match Results Section */
.match-results {
    padding: 20px;
    background-color: #222;
    color: #e0e0e0;
}

.match-block {
    background-color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin-bottom: 20px;
}

.match-table {
    width: 100%;
    border-collapse: collapse;
}

.match-table .match-row {
    border-bottom: 1px solid #444;
}

.match-table .player-cell {
    padding: 10px;
    color: #e0e0e0;
    width: 150px; /* Fixed width for player cells */
    word-wrap: break-word; /* Ensure text wraps within the fixed width */
}

.match-table .rait-cell {
    padding: 10px;
    font-weight: bold;
}

.match-table .results-cell {
    padding: 10px;
}

.result {
    display: inline-block;
    margin-right: 5px;
}




/* General table styling */
#comparisonResult table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-family: Arial, sans-serif;
}

/* Style for table headers */
#comparisonResult th {
    background-color: #333;
    color: #fff;
    padding: 10px;
    font-size: 18px;
    border-bottom: 2px solid #fff;
}

/* Style for table cells */
#comparisonResult td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

/* Add space between columns */
#comparisonResult td:first-child,
#comparisonResult td:last-child {
    width: 30%;
}

#comparisonResult td:nth-child(2) {
    width: 40%;
    font-weight: bold;
}

/* Make alternating rows shaded */
#comparisonResult tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Bold player names */
#player1Name, #player2Name {
    font-weight: bold;
    font-size: 18px;
}

/* Add spacing and alignment to button */
button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}



/* compare */

.h2h-data {
    display: flex;
    justify-content: center;
}
.shared-data {
    width: 100%;
}
ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
}
li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #555;
}

li:hover {
    background-color: #9e6dff;
    
}

.player, .opponent {
    width: 30%;
    text-align: center;
    font-weight: bold;
}
.label {
    width: 40%;
    text-align: center;
    color: #aaa;
}
.dropdown {
    margin: 10px 0;
}













/* Bowling ball styling */
/* Bowling ball styling */
.bowling-ball {
    position: fixed; /* Keep balls fixed in the background */
    width: 100px;
    height: 100px;
    background-color: #4B4B4B; /* Dark gray color for the ball */
    border-radius: 50%;
    box-shadow: inset 10px -10px 0px rgba(0, 0, 0, 0.5);
    animation: moveBall 5s linear infinite;
    z-index: -1; /* Send the balls to the background */
}

/* Add the holes on the ball */
.bowling-ball::before,
.bowling-ball::after,
.hole-3 {
    content: '';
    position: absolute;
    background-color: #000;
    border-radius: 50%;
}

/* First hole */
.bowling-ball::before {
    width: 15px;
    height: 15px;
    top: 20px;
    left: 25px;
}

/* Second hole */
.bowling-ball::after {
    width: 15px;
    height: 15px;
    top: 40px;
    left: 15px;
}

/* Third hole */
.hole-3 {
    width: 15px;
    height: 15px;
    position: absolute;
    top: 40px;
    left: 40px;
}

@keyframes moveBall {
    0% {
        left: -100px;
        transform: rotate(0deg);
    }
    100% {
        left: 110%;
        transform: rotate(360deg);
    }
}








.youtube-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.youtube-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.youtube-video {
    flex: 1;
}

.responsive-iframe {
    width: 315px;
    height: 560px;
}

.video-info {
    flex: 1;
    background-color: #2e2e2e;
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.smaller {
    font-size: 80%; /* 20% smaller */
}

.match-comparison {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-image {
    width: 40px; /* Slightly reduced size for player images */
    height: 40px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.vs {
    font-size: 19px;
    font-weight: bold;
    padding: 0 10px;
}

.player-name,
.team-name,
.player-rating {
    font-size: 80%; /* Smaller text */
}

.set-scores {
    margin-top: 10px;
    font-size: 80%;
}

.penalty {
    font-style: italic;
    font-size: 80%;
    color: #ff6b6b;
}

.join-league-link {
    margin-top: 20px;
    display: inline-block;
    padding: 8px 16px; /* Adjust padding to match smaller text */
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
}

.join-league-link:hover {
    background-color: #0056b3;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .youtube-content {
        flex-direction: column;
        align-items: center;
    }

    .responsive-iframe {
        width: 210px;
        height: 375px;
    }

    .video-info {
        width: 100%;
        margin-top: 20px;
    }

    .vs {
        margin: 10px 0;
    }
}

.result-bold {
    font-weight: bold;
    color: #ffeb3b; /* Optional: Add color to make the result stand out */
}

















/* Tennis Score Card Styles */
.score-card {
    background-color: #1e1e1e;
    width: 350px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.score-card .title {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 10px;
}

.score-card .status {
    font-weight: bold;
    font-size: 18px;
    margin: 10px 0;
    color: #76ff03; /* Green for 'Finished' status */
}

.players {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.player {
    text-align: center;
}

.player img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.player .name {
    font-weight: bold;
    margin: 5px 0;
    color: #ffffff;
}

.player .rank {
    color: #a0a0a0;
    font-size: 12px;
}

.score {
    font-size: 32px;
    font-weight: bold;
    color: #76ff03; /* Green for score */
    margin: 10px 0;
}

.details {
    margin: 10px 0;
    color: #e0e0e0;
}

.surface {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #444;
    border-radius: 15px;
    background-color: #333;
    color: #ffffff;
}

.set {
    margin-bottom: 20px;
}

.set .set-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    color: #ffffff;
}

.set-table {
    width: 100%;
    border-collapse: collapse;
}

.set-table td {
    font-size: 18px;
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #444;
}

.set-table td.winner {
    font-weight: bold;
    color: #76ff03; /* Green for winner */
}

.set-table td.normal {
    font-weight: normal;
    color: #a0a0a0;
}

.live-chart {
    font-size: 12px;
    color: #76ff03;
    text-decoration: none;
    display: block;
    margin-top: 10px;
}

.live-chart:hover {
    text-decoration: underline;
}

.bold {
    font-weight: bold;
}







