/* Add the following CSS to ensure the content below the navbar is not hidden behind it: */

:root {
    --bs-success: #75cb3c; /* Replace with your desired success color */
    --bs-success-rgb: 117, 203, 60; 
    --bs-navbar-hover-color: #38651b;
    --bs-navbar-active-color:  #75cb3c;
    --bs-navbar-brand-hover-color: #75cb3c; 
    --bs-nav-link-hover-color: #38651b;
    --bs-link-color-rgb: 117, 203, 60; 
    }
/* Height of the navbar */
html {
    scroll-padding-top: 90px; 
}

input:-webkit-autofill {
    font-family: inherit; /* or specify your desired font */
    -webkit-text-fill-color: #000; /* Change text color if needed */
    transition: background-color 5000s ease-in-out 0s; /* To prevent the yellow background */
}

input, textarea {
    font-family: inherit;
}

.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: #59992e;
    --bs-btn-border-color: #75cb3c;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #5faa2c;
    --bs-btn-hover-border-color: #5faa2c;
    --bs-btn-focus-shadow-rgb: 59, 198, 171;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #75cb3c;
    --bs-btn-active-border-color: #75cb3c;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #75cb3c94;
    --bs-btn-disabled-border-color: #75cb3c94;
    }

 /*I could be mistaken, but I think these baseGrid classes affect Cards*/   
.baseGrid {
    /* Apply Bootstrap grid classes */
    display: block; /* Default to block display for all baseGrid elements */
}
@media (min-width: 576px) {
    .baseGrid {
        width: 100%;
    }
}
@media (min-width: 768px) {
    .baseGrid {
        width: 50%;
    }
}
@media (min-width: 992px) {
    .baseGrid {
        width: 33.333333%;
    }
}

@media (max-width: 767px) {
    .navbar-nav .nav-link,
    .dropdown-item {
      font-size: 1.25rem; /* Adjust size as needed */
    }
  }

@keyframes glow {
    0% {
        box-shadow: 0 0 5px #75cb3c;
    }
    50% {
        box-shadow: 0 0 20px #75cb3c;
    }
    100% {
        box-shadow: 0 0 5px #75cb3c;
    }
}

@keyframes glow-red {
    0% {
        box-shadow: 0 0 5px #cb3c3c;
    }
    50% {
        box-shadow: 0 0 20px #cb3c3c;
    }
    100% {
        box-shadow: 0 0 5px #cb3c3c;
    }
}

.glow-button {
    animation: glow 1.5s infinite;
}

.glow-button-4 {
    animation: glow 1.5s 4;
}

.glow-error {
    animation: glow-red 1.5s 3;
}


.title-shadow {
    color:white;
    font-weight:bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 1);
}

.box-shadow {
    box-shadow: 4px 4px 7px rgba(0, 0, 0, 0.5);
}

.button-shadow {
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h1 {
    font-weight:bold;
}

a {
    color: rgb(54, 129, 4);
}

/* Ensure the page takes up the full height */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.alert-success  {
    /* background-color: #5faa2c !important; */ /*just a little darker than normal success to make text stand out better */
}

.alert-light .btn-close {
    filter: invert(100%); /*changes the color on the close button on the alert-light class becuase you can't see it otherwise.*/
}

.text-success {
    color: #5faa2c !important; /*just a little darker than normal success to make text stand out better */ 
 }

 .text-xsmall {
    font-size: x-small;
 }

/* Background image fixed across the entire page */
body.withBG {
    /* background: url('https://via.placeholder.com/1920x1080') no-repeat center center fixed; */
    background: url('/img/bg-court.webp') no-repeat center center fixed;
    background-size: cover; /* Ensure the background covers the entire viewport */
}

    /* Semi-transparent overlay */
    .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4); /* 40% opacity */
    z-index: -1; /* Make sure the overlay is behind everything else */
    } 

/* Flexbox layout to push the footer to the bottom */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Full viewport height */
}

main {
    flex: 1; /* Make content grow to fill the space */
    padding: 20px;
    z-index: 2;
    margin-top: 90px;
}

/* Sticky footer */
    footer {
    z-index: 2;
} 

.fs-7 {
    font-size: 0.8rem; /* Adjust the value as needed */
}
.fs-8 {
    font-size: 0.6rem; /* Adjust the value as needed */
}

.bg-light a {
    color: rgba(var(--bs-primary-rgb));
}

.alert-light {
    background-color: #ecececdc;
}

.alert-transparent {
    background-color: rgba(255, 255, 255, 0.5); /* RGBA for semi-transparent background */
    
}

/* .navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #18bc9c;
    font-size: 1.75rem;
} */

div.box-green {
    border-width: 5px !important;
    border-color:white !important;
    /* background-color: #52893fdc  !important;  */
    background-color: #4a971775  !important; 
}

div.box-red {
    border-width: 5px !important;
    border-color:white !important;
    /* background-color: #52893fdc  !important;  */
    background-color: #83000075  !important; 
}

div.box-blue {
    border-width: 5px !important;
    border-color:white !important;
    background-color: #3e6c9bdc !important;
}

div.box-white {
    border-width: 5px !important;
    border-color:#ececec !important;
    background-color: #ecececdc !important;
}

div.box-clear {
    border-width: 5px !important;
    border-color:#ececec !important;
    /*background-color: #ecececdc !important;*/
}

.background-gradient {
    background: linear-gradient(180deg, #ffffff31, #ffffff) !important; /* Custom background gradient */
}


.form-check-label {
    display:inline;
}

.navbar-nav .nav-link.active, .nav-link:hover, .navbar-nav .nav-link.show{
    color: var(--bs-success);
}
.navbar-brand .tagline {
    font-size: 0.75rem;
    color: #fff;
    text-decoration: wavy;
}

.navbar {
    --bs-navbar-padding-y: 0.125rem;
}

.offcanvas-header {
    padding-bottom: 0em;
}

.offcanvas-body {
    padding-top: 0em;
    padding-left: 2em;
}

.form-label {
    font-weight: bold;
}

.form-signin{
    max-width: 500px;
}

.card-header {
    font-weight: bold;
    font-size: 1.2em;
    z-index: 1;
}

/* 
.card-content {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.50);
    padding: 20px;
    border-radius: 0.25rem;
}
*/
.card-header.bg-success {
    --bs-bg-opacity: 0.65;
    z-index: 1;
} 
.card-header.bg-danger {
    --bs-bg-opacity: 0.30;
    z-index: 1;
}
.card-header.bg-info {
    --bs-bg-opacity: 0.65;   
    z-index: 1;
}
.card-header.bg-warning {
    --bs-bg-opacity: 0.65;
    z-index: 1;
} 

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2px;
    padding-left: 1px;
    padding-right: 1px;
    background-color: #ffffff00;
}
/* .card {
    border-radius: 0.50rem;
    border-width: 2px;
} */

.border-thick {
    border-radius: 0.50rem;
    border-width: 2px;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.9rem;
}


.card-bg-pickleball {
    position: relative;
    overflow: hidden;
   
}
.card-bg-racquetball {
    position: relative;
    overflow: hidden;
   
}
.card-bg-tennis {
    position: relative;
    overflow: hidden;
   
}
.card-bg-pickleball::before {
    background: url('../img/pickleball.webp') no-repeat center;
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    opacity: 0.75; /* Adjust the opacity to fade the image */
    z-index: 0;
    overflow: auto;
    display: flex;
}

.card-bg-tennis::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/tennisBall.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.75; /* Adjust the opacity to fade the image */
    z-index: 0;
}
.card-content {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.50); /* Semi-transparent white background */
    padding: 10px;
    border-radius: 0.25rem;
}

.progress, .progress-stacked {
    border-radius: 0;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.50);
    color: var(--bs-primary);
    
}

.progress-bar {
    text-align: left;
}

.center-checkbox {
    text-align: center;
}

.hero {
    background-color: ecececdc;
    background-position: top center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    width: 100%;
    
    display: flex;
    justify-content: center;
    align-items: center;
    color: white; /* Text color for visibility */
    text-align: center; /* Center text */
}

#idHeroContent {
    padding: 5em;
}

.toggle-icon-white::after {
    filter: invert(1);
}

.btn-sm, .btn-group-sm > .btn {
    --bs-btn-padding-y: 0.05rem;
    --bs-btn-padding-x: 0.25rem;
    --bs-btn-font-size: 0.75rem;
    --bs-btn-border-radius: var(--bs-border-radius-sm);
}


.table-sm > :not(caption) > * > * {
    padding: 0.24rem 0.24rem;
    font-size: 0.9em;
}

.checkbox-lg  {
    width: 1.25em;
    height: 1.25em;
    transform: scale(1.25);
    margin-right: 0.25em;
}

.radio-lg  {
    width: 1.3em;
    height: 1.3em;
    /* transform: scale(1.1); */
    margin-right: 0.25em;
}

/*Modifying Tables for Mobile Screens*/
@media (max-width: 768px) {
   
    .responsive-table-sm > :not(caption) > * > * {
        padding: 0.25rem 0.25rem;
        font-size: small;
        overflow-x: hidden;
    }

    .responsive-table thead {
        display: none;
    }
    .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td {
        display: block;
        width: 100%;
    }
    .responsive-table tr {
        margin-bottom: 1rem;
    }
    .responsive-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    .responsive-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 15px;
        font-weight: bold;
        text-align: left;
    }

    .responsive-table tr.transparent-row{
        background-color: transparent !important;
    }

}
