html, body {
    min-height: 100vh; /* Ensures the background covers the full viewport */
    margin: 0;
    padding: 0;
    background-image: url('background.jpg'); /* Replace with your image path */
    background-size: cover; /* Ensures the image covers the whole background */
    background-repeat: no-repeat; /* Prevents repeating */
    background-position: center center; /* Centers the image */
    background-attachment: fixed; /* Keeps the background from moving */
    /* background: linear-gradient(to right, lightblue, lightgreen); */
    /* Add padding for safe areas iphone bezels */
    /*padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);*/
}
/*html[data-file="manual-input.html"] body {
    background-color: white;
    background: linear-gradient(to right, lightblue, lightgreen);
}*/

body{
    background-color: rgb(33 37 41);
}

/* ScoreCard input buttons */
input[inputmode="numeric"] {
    border: none;
    background: none;
    width: 2ch; /* Fixed space for two digits */
    text-align: center;
    font-size: inherit;
    padding: 0;
    margin: 0;
    box-shadow: none;
    display: inline-block;
    color: inherit;
}

input[inputmode="numeric"]:focus {
outline: none;              /* Remove focus outline */
}

td{
    padding: .5rem .3rem !important;
}


/* Customize button to stand out */
button[type="submit"] {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
}

/* Spinner CSS */
.spinner {
    border: 4px solid whitesmoke;
    border-top: 4px solid black;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
    display: none; /* Hidden by default */
  }
  
  /* Animation for spinner */
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
 /* Style for the overlay */
 .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent gray background */
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Make sure it's on top of other content */
}

/* Style for the success message */
.message-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mandatory-asterix{
    color: red;
}
/*#newPlayerInput{
    margin-top: 0.15rem !important;
}*/ 

/* Custom styles for Chosen elements */
/* Box when not selected */
.chosen-container-multi .chosen-choices {
    background-image: none !important;
    background-color: white !important;
    border: 1px solid #ced4da !important; /* Border matches Bootstrap input */
    border-radius: 0.375rem !important; /* Rounded corners like Bootstrap input */
    padding: 0.375rem 0.75rem !important;
    width: 100% !important;
}

/* Placeholder text */
.chosen-search-input {
    font-size: 1rem !important; /* Matches Bootstrap font size */
    color: #6c757d !important; /* Matches placeholder color in Bootstrap */
}

/* Text when selected */
.chosen-container-multi .search-choice {
    color: #495057 !important; /* Bootstrap text color */
    font-size: 0.85rem !important;
    background-color: #f8f9fa !important; /* Light background for tags */
    border: 1px solid #ced4da !important; /* Border matches input */
    border-radius: 0.2rem !important; /* Slightly rounded like Bootstrap badges */
}

/* Options provided when open */
.chosen-container .chosen-results {
    background-color: #ffffff !important; /* White dropdown background */
    font-size: 1rem !important; /* Matches Bootstrap font size */
    border: 1px solid #ced4da !important; /* Border matches input fields */
    border-radius: 0.25rem !important;
    max-height: 200px; /* Scrollable if too many options */
    overflow-y: auto;
}

/* Hover when an option is open */
.chosen-container .chosen-results .highlighted {
    background: none !important;
    background-color: #0d6efd !important; /* Bootstrap primary button hover color */
    color: #ffffff !important; /* White text for contrast */
    box-shadow: none !important; /* Remove any box shadow */
}


/* Option item text color */
.chosen-container .chosen-results li {
    color: #495057 !important; /* Bootstrap text color */
}

/* Focused input border for multi-select */
.chosen-container-active .chosen-choices {
    border-color: #80bdff !important; /* Matches Bootstrap's focus border */
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important; /* Matches focus glow */
}

#preview img {
    max-width: 85vh; /* Ensures the image doesn't exceed the container's width */
    display: block; /* Removes extra space below the image */
    margin: 0 auto; /* Centers the image horizontally */
}

.chart-container {
    background-color: white;
  }