
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Customizes the scrollbar for the entire page */
html {
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #f0f0f0 #373e46 ; /* For Firefox: thumb and track color */
}

html, body {
    height: 100%; /* Needed to base height calculations off of */
    margin: 0; /* Remove default margin */
    
}


/* Customizes the scrollbar for all elements and the page */
::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

::-webkit-scrollbar-track {
    background: #f0f0f0; /* Color of the track */
}

::-webkit-scrollbar-thumb {
    background-color: #a9a9a9; /* Color of the scrollbar itself */
    border-radius: 4px; /* Roundness of the scrollbar */
    border: 2px solid #f0f0f0; /* Creates a border around the scrollbar */
}


body {
    font-family: "Barlow", sans-serif !important;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    padding-top: 56px;
    display: flex;
    flex-direction: column; /* Stack children vertically */
   
}

body td, tr, th {
    color: #373e46;
}

.borderless td, .borderless th {
    border: none;
}

.rating-red { color: red; }
.rating-orange { color: orange; }
.rating-green { color: green; }

.dark-mode .rating-red { color: red; }
.dark-mode .rating-orange { color: orange; }
.dark-mode .rating-green { color: green; }

.content-wrap {
    flex: 1; /* Takes up all available space */
    padding-bottom: 56px; /* If footer height is 56px */
}

.player-scrolling-container {
    overflow-x: auto;
    white-space: nowrap;
}

.form-inline {
    position: relative; /* Ensures that the dropdown can be positioned relatively to the form */
}

.invalid {
    border: 2px solid red;
}

#searchResults {
    position: absolute;
    z-index: 1000;
    width: 100%;
    left: 0;
    top: 100%;
    background-color: var(--dropdown-bg-color, #fff); /* fallback to white */
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.25rem;
  }

  .search-wrapper {
    position: relative;
  }

 
  
 
.card-img-top {
    width: 100%; /* Adjust this if the image needs to be smaller */
    height: 100% !important;
}

.card .list-unstyled {
    padding-left: 0;
    list-style: none;
}

.list-unstyled li {
    display: flex;
    align-items: center;
}

.list-unstyled img {
    margin-right: 10px;
}

#teamRankingsContainer li {
    padding: 1px;
    list-style-type: decimal;
    list-style-position: inside;
}

#teamRankingsContainer .text-muted {
    color: #6c757d; /* Bootstrap's default muted text color */
}

#teamRankingsContainer strong {
    color: #000; /* Ensures the top three are prominently black */
}


.carousel-caption {
    display: flex; /* Enables flexbox */
    justify-content: space-between; /* Aligns children (text and button) on opposite ends */
    align-items: center; /* Centers items vertically */
    background-color: rgba(0,0,0,0.5); /* Dark background for readability */
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: left;
    width: 90%; /* Ensures the caption uses the full width of its container */
}

#news-carousel .carousel-inner {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

#news-carousel .carousel-item {
    width: 100%;
    height: 0;
    padding-top: 56.25%; /* 16:9 Aspect Ratio = (9 / 16) * 100% */
    position: relative;
}

.alert-grey {

    background-color: #515b66;
    color: #b6b6b6;

}

#news-carousel .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover; /* This will cover the area without stretching the image */
}

#match-list-table .table-responsive {
    overflow-x: auto;
    display: block;
}

.nav-link.highlight, .dropdown-item.highlight {
    color: #e6e1e1 !important;

}
.youtube-video-header {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 100vh; /* Full viewport height */
    max-height: calc(100vh - 100px); /* Adjust based on footer height */
}

.youtube-video-header iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.77777778vh; /* 16:9 aspect ratio calculation (100vw * 9 / 16) */
    height: 100vh;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 56.25vw; /* 16:9 aspect ratio calculation (100vh * 16 / 9) */
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Optional: darkens the video */
    z-index: 2;
}

.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white; /* Ensures text is visible */
    z-index: 3;
}

.header-content h2 {
    margin-bottom: 20px; /* Adjust as needed */
}

.header-content .btn {
    margin: 5px; /* Adjust spacing between buttons */
}



.blur-effect {
    filter: blur(8px);
    transition: filter 0.5s ease-in-out;
}


.content-column {
    padding: 20px;
}


.grid-item {
    margin-bottom: 20px;
}

.tournament-box {
    border: 1px solid #dbdbdb;
    padding: 15px;
    border-radius: 8px;

}

.tournament-box-highlight {
    border: 1px solid #dbdbdb;
    padding: 15px;
    border-radius: 8px;

}

.drop-area {
    cursor: pointer;
    background-color: #f8f9fa;
    border: dashed 2px #6c757d;
}
.drop-area:hover {
    background-color: #e2e6ea;
}


.img-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.caption h1 {
    font-size: 24px;
    margin-top: 15px;
}

.caption ul.icon-list {
    list-style-type: none;
    padding: 0;
}

.icon-list li {
    display: inline;
    margin-right: 10px;
}

.icon-calendar {
    margin-right: 5px;
}

.button-row {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
}

.card-img-top {
    height: 200px; /* Fixed height for uniformity */
    object-fit: cover !important; /* Ensure the image covers the card area */

}



.card-header {
    background-color: #4c5661;
    color: rgb(194, 194, 194);
}

.footer {
    width: 100%; /* Full width */
    height: 56px; /* Set height of footer */
    background-color: rgba(0, 0, 0, 0.05); /* Footer background color */
    text-align: center; /* Center-align text */
    padding: 20px 0; /* Padding for aesthetics */
    position: fixed;
    bottom: 0; /* Sticks to bottom */
    left: 0; /* Align left */
}


.player-info-container {
    display: flex;
    align-items: center; /* Align items vertically in the center */
    justify-content: space-between; /* Distribute space between items */
    width: 100%; /* Full width to accommodate space between items */
}

.avatar {
    width: 25px; /* Control size of the avatar */
    height: 25px;
    border-radius: 50%; /* Circular avatar */
    margin-right: 5px; /* Space between the avatar and the username */
}

.verification-icon {
    width: 12px; /* Control size of the verification icon */
    height: 12px;
    margin-left: 5px; /* Space between the username and the icon */
}

.player-name {
    flex-grow: 1; /* Allows the name to take up any available space */
    margin: 0 10px; /* Spacing around the name for clear separation */
}


/* Dark mode styles */
body.dark-mode {
    background-color: #1f2327;
    color: #cecbcb;
}
body.dark-mode td, tr, th {
    color: #cecbcb;
}


.dark-mode .alert-grey {

    background-color: #373e46;
    
    }

.dark-mode .modal-content {
    background-color: #373e46  !important;
    color: #cecbcb !important;
    border: 0px !important;
}

.dark-mode .navbar-nav > li > .dropdown-menu {
    background-color: #373e46  !important;
    border: 0px !important;

}

 
body.dark-mode #searchInput {
    background-color: #2c2f33;
    color: #fff;
    border-color: #444;
  }
  
  body.dark-mode #searchResults {
    background-color: #2c2f33;
    color: #fff;
  }
  
  body.dark-mode .dropdown-item {
    color: #fff;
  }
  
  body.dark-mode .dropdown-item:hover {
    background-color: #3a3d41;
  }

.dark-mode .dropdown-divider {

    border-color: #373e46 !important;
}


.dark-mode .navbar-nav > li > .dropdown-menu a {
    color: #cecbcb !important;
}

.dark-mode .table-secondary,
.dark-mode .table-secondary>td,
.dark-mode .table-secondary>th {
    background-color: #f8f9fa ;  /* Darker background for dark mode */
    color: #424242 !important;  /* Lighter text for better visibility */
}



.dark-mode .modal-header {
    border-color: #373e46;
}

.dark-mode .modal-footer {
    border-color: #373e46;
}

.dark-mode .card  {
    background-color: #373e46;
    color: #cecbcb;
    border: 0px !important;
}

.dark-mode .tournament-box {
    background-color: #373e46 !important;
    color: #cecbcb;
    border: 0px !important;
    z-index: 55;

}

.dark-mode .tournament-box-highlight {
    background-color: #373e46 !important;
    color: #cecbcb;
    border: 4px !important;

}


.dark-mode .navbar {
    background-color: #1f2327;
}
.dark-mode .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}
.dark-mode .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}
body.dark-mode footer {
    background-color: #343a40 !important; 
    color: #e0e0e0; 
}




#dark-mode-toggle {
    transition: all 0.3s ease;
    align-items: center; /* Center align items */
    display: flex;
    margin-top: -15px; /* Adjust according to your design */
    margin-left: -18px;
    outline: none;
}

#dark-mode-toggle:focus {
    outline: none;
    
}

#dark-mode-toggle:active {
    transform: scale(0.95);
    outline: none;
}

/* Specific icon colors */
#dark-mode-icon.fa-moon {
    color: #fff; /* White moon icon */
}


#dark-mode-icon.fa-sun {
    color: #ebcea5; /* Bootstrap's btn-warning color, or choose your own */
}

body.dark-mode a {
    color: #fafafa; /* a warm orange accent that pops on dark */

}

body.dark-mode a:hover {
    color: #3f99ff; /* slightly lighter on hover for contrast */
}


@media (max-width: 767px) {
    #dark-mode-toggle {
        margin-top: -15px; /* Adjust according to your design */
        margin-left: -190px;
    }
}

#dark-mode-toggle:focus, #dark-mode-toggle:focus-within {
    outline: none; /* Removes the outline on focus */
    box-shadow: none; /* Ensure no box-shadow on the button itself */
}


#matches-container .btn-link {
    color: white !important;
    text-decoration: none;
}

.btn-register-team {
    display: none;
}

.card-img-overlay {
    transition: background-color 0.3s;
    background-color: rgba(0,0,0,0.5); /* Dark background */
    color: white; /* Light text */
    height: 100%;
}
.card:hover .card-img-overlay {
    background-color: transparent; /* Remove background on hover */
    color: rgba(0, 0, 0, 0); /* Darken text on hover */
}

/* Dark mode support for striped tables */
body.dark-mode .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05); /* subtle contrast */
}

body.dark-mode .table {
    color: #f0f0f0; /* brighten up text for dark bg */
}

/* Hide table borders in dark mode */
body.dark-mode table, 
body.dark-mode th, 
body.dark-mode td {
    border-color: transparent !important;
}

.map-overlay-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    padding: 5px;
}
