@import url(https://fonts.googleapis.com/css?family=VT323);

:root {
    --main-color: #09ce9e;
    --sec-color: #ff2b5e;
    --bg-color: black;
    --text-color: #ffef0d;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "VT323", monospace !important;
    background: linear-gradient(135deg, #190627, #e9446f, #16acab, #190627);
    margin: 0;
    padding: 0;
}

/* Dithering effect */
.dither-effect-container {
    display: flex; /* Use flexbox */
    justify-content: center; /* Center horizontally */
}

.dither-effect {

    filter: contrast(140%) brightness(120%); /* Apply dithering effect */
    width: 20vw;
    max-width: 150px;
}
.login-background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/img/wirbrauchendich.png");
    /* Replace 'background-image.png' with the actual filename of your background image */
    background-size: cover;
    background-position: center;
    z-index: -1;
    /* Ensure the background image is behind other content */
}

/* Target all labels and set their text color */
label {
    color: var(--text-color) !important;
    /* Replace "your-desired-color" with the color you want */
    font-size: 24px;
}

/* Target other text elements and set their text color */
p,
span,
div,
h1,
h2,
h3,
h4 {
    color: var(--text-color) !important;
    /* Replace "your-desired-color" with the color you want */
    font-size: 22px;
}

.login-page {
    /* Your existing styles for login-page */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-page>div {
    display: block;
    /* Ensure forms are displayed on separate lines */
    margin-bottom: 20px;
    /* Add some space between forms */
}

.login-page form {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Your existing styles for forms */
}

.login h1 {
    color: var(--main-color);
    font-size: 24px;
    margin-bottom: 20px;
}

.login form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login form label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--main-color);
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 20px;
}

.login form input[type="email"],
.login form input[type="password"] {
    width: calc(100% - 70px);
    height: 50px;
    border: 1px solid var(--sec-color);
    margin-bottom: 20px;
    padding: 0 15px;
    font-size: 16px;
}

.login form input[type="submit"] {
    width: calc(100% - 70px);
    height: 50px;
    background-color: var(--main-color);
    border: none;
    cursor: pointer;
    color: #ffffff;
    font-size: 16px;
    text-transform: uppercase;
}

.login form input[type="submit"]:hover {
    background-color: var(--sec-color);
}

.dos-button {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--bg-color);
    border: 2px solid var(--main-color);
    font-family: "VT323", monospace;
    font-size: 30px;
    color: var(--main-color);
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break words if necessary */
}

.deactivated {
    border: 2px solid grey !important;
    color: grey !important;
}

.dos-button:hover {
    color: var(--sec-color);
    /* Change the text color on hover */
    border: 2px solid var(--sec-color);
}

.dos-button::before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--main-color);
    opacity: 0.05;
    mix-blend-mode: multiply;
}

/* Custom select styling */
select {
    background-color: var(--bg-color);
    border-color: var(--main-color);
    border-width: 2px !important;
    color: var(--sec-color);
    font-family: "VT323", monospace;
    font-size: 30px;
    width: 80%;
    text-align: left;
    /* margin-left: 2vw; */
    padding-left: 2vw;
    appearance: none;
    /* Remove default styling */
    -moz-appearance: none;
    /* Remove default styling for Firefox */
    -webkit-appearance: none;
    /* Remove default styling for Webkit browsers */
    cursor: pointer;
}

/* Custom arrow for select dropdown */
select::after {
    content: "▼";
    /* Unicode character for arrow */
    position: absolute;
    top: 50%;
    right: 2vw;
    transform: translateY(-50%);
    pointer-events: none;
    /* Ensure the arrow doesn't interfere with clicking the select */
}

.alert {
    display: flex;
    flex-direction: column;
    padding: 4px;
    width: 70vw;
    display: inline-block;
    background-color: var(--bg-color);
    border: 2px solid var(--main-color);
    font-family: "VT323", monospace;
    font-size: 24px;
    color: var(--main-color);
    top: 50%;
    /* Center vertically */
    left: 50%;
    /* Center horizontally */
    transform: translate(-50%, -50%);
    /* Move back by half of its width and height */
    text-align: center;
    position: fixed;
    /* Position fixed relative to viewport */
    max-height: 70vh;
    overflow: auto;
    /* Custom Scrollbar Styles */
    scrollbar-color: var(--main-color) var(--bg-color);
    /* thumb color, track color */
    z-index: 99;
    /* Increase the z-index to place the content above pseudo-element */
    touch-action: pan-y;
    /* Enable vertical scrolling with touch interactions */
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Adjust the color and opacity as needed */
    filter: blur(50px);
    /* Adjust the blur radius as needed */
    z-index: 60;
    /* Adjust the z-index to make sure it's on top of other content */
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--main-color);
}

label {
    text-transform: uppercase;
}

input {
    background-color: var(--bg-color);
    border-color: var(--main-color);
    border-width: 2px !important;
    color: var(--sec-color);
    font-family: "VT323", monospace;
    font-size: 30px;
    width: 80%;
    text-align: left;
    /* margin-left: 2vw; */
    /* padding-left: 2vw; */
}

.email-addresses-input {
    width: 100% !important;
}

textarea {
    background-color: var(--bg-color);
    border-color: var(--main-color);
    border-width: 2px !important;
    color: var(--sec-color);
    font-family: "VT323", monospace;
    font-size: 30px;
    width: 100%;
    text-align: left;
    /* margin-left: 2vw; */
    /* padding-left: 2vw; */
}

/* Media query for desktop screens with a maximum width of, for example, 1024px */
@media (min-width: 768px) {

    input,
    table,
    select {
        max-width: 500px;
        /* Adjust the maximum width as needed */
    }
}

.schichtenShit {
    padding-bottom: 250px;
}

input[type="radio"] {
    display: none;
    /* Hide the default radio button */
}

.timeInput {
    width: 50px;
}

/* Style the custom radio button */
input[type="radio"]+label::before {
    content: "";
    /* Create a pseudo-element for the custom radio button */
    display: inline-block;
    width: 15px;
    /* Customize the width of the circle */
    height: 15px;
    /* Customize the height of the circle */
    border: 3px solid var(--main-color);
    /* Customize the border color of the circle */
    border-radius: 50%;
    /* Make it a circle by using border-radius */
    background-color: transparent;
    /* Customize the background color of the circle */
    margin-right: 10px;
    /* Add spacing between the circle and label text */
    cursor: pointer;
    /* margin-left: 2vw; */
}

/* Style the custom radio button when it's selected */
input[type="radio"]:checked+label::before {
    background-color: var(--sec-color);
    /* Change the background color when selected */
}

input[type="radio"]:checked+label {
    font-weight: bold;
    /* Change the font weight when selected */
    color: var(--sec-color) !important;
}

/* Style the disabled radio label (optional) */
input[type="radio"]:disabled+label {
    color: #999;
    /* Change the text color */
}

input:focus {
    outline: none !important;
    border-color: var(--sec-color);
}

/* CSS for fixed submit button */
.submit-bottom-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: var(--bg-color);
    text-align: center;
}

/* Increase the margin-bottom of form elements to accommodate the fixed submit button */
.form-content {
    margin-bottom: 100px;
    /* Adjust the value as needed to prevent overlap */
}

.form-content input,
.form-content select,
.form-content label,
p,
h1,
h2 {
    margin-left: 10px;
    /* Adjust the padding as needed */
}

#profile-pic-container img {
    max-width: 256px;
    height: auto;
    /* Maintain aspect ratio */
}

.shift-radio input[type="radio"] {
    /* Hide the default radio button */
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 4px solid #ccc;
    border-radius: 50%;
    margin-right: 4px;
    margin-bottom: 5px;
    vertical-align: middle;
    cursor: pointer;
    position: relative;

  }

  /* Custom styles for each radio button */
  input[type="radio"].red {
    border-color: #e9446f;
  }

  input[type="radio"].grey {
    border-color: grey;
  }

  input[type="radio"].green {
    border-color: #16acab;
  }

/* Styling for the radio button when checked */
.shift-radio input[type="radio"]:checked {
    background-color: transparent;
}

/* Pseudo-element styles for the "X" */
.shift-radio input[type="radio"]:checked::before {
    content: "X";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 500;
    font-size: 28px; /* Increase the font size for a larger "X" */
}
.form-wrap {
    width: 90%;
    max-width: 600px;
    background: black;
    padding: 10px;
    border-radius: 25px;
    margin: auto;
    margin-top: 0;
    margin-bottom: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  
  }


  /* Basic table styling for readability */
#aufbauTable {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    overflow-x: auto;
    display: block;
}

#aufbauTable th, #aufbauTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    white-space: normal; /* Ensures text wraps within cells */
    word-wrap: break-word; /* Ensures long words break correctly */
    overflow-wrap: break-word; /* Added to handle long words */
}

/* Fixed table header background */
#aufbauTable th {
    background-color: black;
}

/* Scrollable table */
.table-container {
    max-width: 100%;
    overflow-x: auto;
}

/* Responsive styling for small screens */
@media screen and (max-width: 1px) {
    #aufbauTable, #aufbauTable thead, #aufbauTable tbody, #aufbauTable th, #aufbauTable td, #aufbauTable tr {
        display: block;
    }

    #aufbauTable tr {
        margin-bottom: 1em;
        border: 1px solid #ddd;
        padding: 8px;
    }

    #aufbauTable td {
        border: none;
        border-bottom: 1px solid #ddd;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    #aufbauTable td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 10px;
        font-weight: bold;
        text-align: left;
    }
}

.loader-icon {
    
}

/* Custom Styles */
.select2-container--default .select2-selection--multiple {
    background-color: var(--bg-color);
    border: 2px solid var(--main-color) !important;
    min-height: 38px;
  }
  .select2-container .select2-search--inline .select2-search__field {
    font-family: "VT323", monospace !important;
  }

  .select2-search__field {
    background-color: var(--bg-color);
    border: 2px solid var(--main-color);
  }
  
  .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--main-color);
    border: 1px solid var(--main-color);
    color: white;
    padding: 2px 10px;
    margin: 4px 2px;
  }
  
  .select2-results {
    background-color: var(--bg-color);

  }
  .select2-selection__clear {
    color: var(--sec-color) !important;
  }
  .select2-selection__choice__remove {
    color: var(--sec-color) !important;
  }
  
  .select2-container--default .select2-results__option--highlighted {
    background-color: var(--sec-color);
    color: white;
  }
  .select2-dropdown {
    border: 2px solid var(--main-color) !important;
  }

  .not-ready {
    background-color: red;
    color: white; /* Optional: to make the text more readable */
}

button.check-in {
    background-color: green;
    color: white;
}

button.check-out {
    background-color: red;
    color: white;
}
