:root {
    --back:#f9efea;
    --button:#008080;
    --btnfocus:#006a6a;
    --sidenav:#0f2e2e;
}

html {
    overflow-y: scroll;
}

h2 {
    font-size: clamp(8px, 6vw, 24px) !important;
}

h4 {
    font-size: clamp(5px, 6vw, 16px) !important;
}

h5 {
    font-size: clamp(4px, 6vw, 14px) !important;
}

.card {
    overflow-x:auto;
    overflow-y:auto;
}

#hrCal {
    height: 1px; /* Thickness */
    background-color: lightgrey; /* Color */
}

#h2Cal {
    font-size: clamp(2em, 6vw, 2.5em) !important;
}

body {
    background: var(--back);
    margin-top:100px;
    padding-bottom: 5px !important;
    height: 100%;
}

a, a:hover {
    color: inherit;
    text-decoration:none !important;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--btnfocus) !important;
}

.btn-sty {
    color: #ffffff;
    background: var(--button);
    box-shadow: none;
    border: none;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
}

.btn-danger {
    color: #ffffff;
    box-shadow: none;
    border: none;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

.btn-success {
    color: #ffffff;
    box-shadow: none;
    border: none;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

.btn-sty:hover {
    color: #a9a9a9;
    background: var(--btnfocus);
}

.labels {
    font-size: 11px;
}

/* sidebar */
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    padding-bottom:1%;
    background-color: var(--sidenav);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 110px;
    
    display:flex;
    flex-direction: column;
    
}
    
.sideCont {
    display:flex;
    flex-direction: column;
    flex-grow:1;
    
    justify-content:flex-end;
}
    
/* sidebar width */
.toggle {
    width: 170px;
}
    
/* sidebar buttons */
.sidenav a {
    padding: 8px 32px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #ffffff !important;
    display:block;
    transition: 0.3s;
    cursor:pointer;
}
    
.sidenav a:hover {
    color: #757575 !important;
}
    
#sidebarBottom {
    left: auto;
    width: 0px;
    justify-self: flex-end;
}

/* top bar height and alignment */
/* (the height here needs to be the same as the top for the sidebar) */

#topTitleCalendar {
    font-size: clamp(0.8em, 8vw, 1.6em) !important;
    position: relative;
    bottom:1.5px;
}

#topTitle {
    font-size: clamp(0.2em, 8vw, 1em) !important;
}

.topContainer {
    display:flex;
    flex:1;
    height: 80px;
    width:100%;
    align-items:center;
    justify-content:center;
    position: fixed;
    top:0;
    z-index: 100;
    background-color: var(--button);
    cursor:default;
    overflow: hidden;
}

.topLeft {
    display:flex;
    flex: 1 1 0;
    width:0;
    justify-content:flex-start;
    align-items:center;
    height:80px;
}

.topCenter {
    display:flex;
    flex: 1 1 0;
    width:0;
    justify-content:center;
    align-items:center;
    height:80px;
}

.topRight {
    display:flex;
    flex: 1 1 0;
    width:0;
    justify-content:flex-end;
    align-items:center;
    height:80px;
    overflow: hidden;
}

/* sidebar stuff */
@media screen and (max-height: 450px) {
.sidenav {padding-top: 15px;}
.sidenav a {font-size: 18px;}
}

/* style for the button to toggle the sidebar */
.sidebarButton {
font-size:30px;
cursor:pointer;
margin: 0 20px 4px 20px;
}
  
.centered-text {
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    color: #29a1c8;
    margin-top: 20px;
}

.loginWrapper {
    min-height: 100vh; /* Full height of the viewport */
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    gap: 10px; /* Add controlled spacing between elements */
}

.user_card {
    width: auto;
    font-size:16px;
    margin-top: auto;
    margin-bottom: auto;
    background: #fff;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -moz-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 5px;

}

.hidden-checkbox {
    display: none;
}

.selectCard:has(.hidden-checkbox:checked) {
    background-color: lightgray;
    color: white;
    border-color: lightgray;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.selectCard:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked + label.btn-sty {
    background-color: var(--btnfocus);
    color: white;
    border-color: var(--btnfocus);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.form_container {
    margin-top: 20px;
}

#form-title{
    color: var(--button);
}

.page-title{
    color: var(--button);
    font-size: clamp(32px, 12vw, 64px) !important;
}

.login_container {
    padding: 0 2rem;
}
.input-group-text {
    background: var(--button) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 0.25rem 0 0 0.25rem !important;
}
.input_user,
.input_pass:focus {
    box-shadow: none !important;
    outline: 0px !important;
}

#messages{
    background-color: #0f2e2e;
    color: #fff;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px; 
}

.details {
    margin: 10px 0;
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 3px;
    width: 100%;
}

.detailsListItem {
    display:flex;
    flex:1;
    text-align: left;
    align-items:center;
    justify-content: space-between;
    list-style-type: none;
    margin: 0;
    padding: 4px 0;
}

#calendar {
    margin: 10px auto;
    max-width: 1000px;
    overflow-y: auto;
    border: 1px solid grey;
    height: 600px; 
}

.fc-toolbar {
    padding: 20px;
}
.fc-toolbar-title {
    font-weight: 200;
}
.fc-timegrid-slot {
    height: 35px;
    border-bottom: 1px solid;
}
.fc-timegrid-slot-label { 
    font-size: 0.9em;
    color: darkgrey;
}

.fc-timegrid-body {
    overflow-y: auto;  
}
.fc-highlight {
    background-color: lightblue;
}
.fc-col-header-cell {
    background-color: white;
    padding: 10px 0;
    font-weight: 500;
}

.fc-col-header-cell .fc-scrollgrid-sync-inner a{
    text-decoration:none !important;
    color: #111 !important;
}

.fc-timegrid-col {
    background-color: white;
}

#deleteEquipForm #addEquipForm #bookingForm .card-body {
    padding: 20px;
}
#deleteEquipForm #addEquipForm #bookingForm .row {
    margin-bottom: 5px;
}
#deleteEquipForm #addEquipForm #bookingForm .control-label {
    padding-top: 7px;
}
#deleteEquipForm #addEquipForm #bookingForm .btn-success {
    margin-top: 10px;
}

.text-center.mt-4 {
    margin-top: 5px;
    padding-top: 5px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: nowrap;
}

.fc-button {
    background-color: lightblue;
    border: none;
}
.fc-button:hover {
    background-color: lightblue;
}

.fc-button-primary:not(:disabled) {
    background-color: var(--btnfocus);
}

#equipmentSelect {
    max-width:500px;
    margin:20px auto;
    text-align:center;
}

.dropdown-content {
    position: absolute; /* Make sure it's positioned relative to the input */
    width: 100%; /* Match the input field's width */
    max-height: 200px; /* Optional: Limit height and allow scrolling */
    overflow-y: auto; /* Enable scrolling if needed */
    border: 1px solid #ccc;
    background: white;
    z-index: 1000; /* Ensure it appears above other elements */
    padding: 5px;
    width: 94.8%;
    
}

.dropdown-content-2 {
    position: absolute; /* Make sure it's positioned relative to the input */
    width: 100%; /* Match the input field's width */
    max-height: 200px; /* Optional: Limit height and allow scrolling */
    overflow-y: auto; /* Enable scrolling if needed */
    border: 1px solid #ccc;
    background: white;
    z-index: 1000; /* Ensure it appears above other elements */
    padding: 5px;
    width: 100%;
    
}

.dropdown-item {
    padding: 15px;
    cursor: pointer;
    font-size: 15px;
}
.dropdown-item:hover {
    background-color: #ddd;
}

.notification-box {
    background-color: #fff;
    color: #c42323;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    width: 30px; /* Adjust the width as needed */
    height: 30px;
    position: relative; /* Change to absolute positioning */
    text-align: center;
    font-size: 12px;
    z-index: 1000; /* Ensure it appears above other elements */
}

.popup {
    flex-direction: column;
    position: relative; /* Fixed positioning to stay in view */
    left:40px;
    background-color: white; /* Popup background color */
    border: 1px solid #ccc; /* Border around popup */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Shadow effect */
    padding: 20px; /* Padding inside the popup */
    z-index: 2000; /* Higher z-index to stay on top */
    display: none; /* Initially hidden */
    height:70px;
    width: 200px; /* Set width for the popup */
    color: black
}

.popup .close {
    cursor: pointer;
    float: right; /* Align close button to the right */
    font-size: 20px; /* Font size for close button */
    margin-top: -10px; /* Adjust position of close button */
    color: #333; /* Color for close button */
}

.popup ul {
    padding-left: 20px; /* Padding for the list inside popup */
}

.button-footer {
    display:flex;
    justify-content: center;
    align-content: center;

}

.admin-information {
    font-size: 12px;       /* Larger font size */
    max-width: 220px;      /* Wider tooltip */
    padding: 10px;         /* Add padding for readability */
    background-color: white;  /* Light background */
    color: grey;           /* Text color */
    border: 1px solid grey; /* Border for the tooltip */
    border-radius: 2px;    /* Rounded corners */
    z-index: 1000;         /* Ensure it appears above other elements */
}

.bookedSlot {
    background-color: var(--button);
}

.popWarning {
    bottom:10px;
    right:10px;
    display:none; /* Initially hidden */
    flex-direction: column;
    position: fixed; /* Fixed positioning to stay in view */
    background-color: white; /* Popup background color */
    border: 1px solid #ccc; /* Border around popup */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Shadow effect */
    padding: 20px; /* Padding inside the popup */
    z-index: 2000; /* Higher z-index to stay on top */
    width: 300px; /* Set width for the popup */
    color: red;
    text-align: center;
    font-weight: bold;
}

.fc-event-content {
    white-space: nowrap;         
    overflow: hidden;          
    align-items: center;          
    padding: 2px;                
    box-sizing: border-box;       
    max-width: 100%;              
}

.fc-event-title, .fc-event-time {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px); /* Start slightly below */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Final position */
    }
}

.app-button {
    all: unset;
    margin: 30px;  
    width: min(400px, 90vw);
    height: min(200px, 25vh); 
    min-height: 40px;  
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.8rem, 3vh, 2rem); 
    font-weight: bold;
    border-radius: 10px;
    transition: transform 0.2s;
    color: white;
    text-decoration: none;

    opacity: 0; /* Start hidden */
    animation: fadeInUp 0.8s ease-out forwards;
}

.app-button:hover {
    transform: scale(1.05); 
    color: white !important; 
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.app-button a,
.app-button a:hover {
        color: white !important;
        text-decoration: none;
}

@media screen and (max-height: 400px) {
    .app-button {
        height: min(300px, 20vh);  
        margin: 3px;  
        font-size: clamp(0.8rem, 2vh, 1.5rem);
    }
}

.app-button-purple {
    background-color: #855bbd;
}

.app-button-green {
    background-color: #008080;
}

.mhbook-title {
    font-size: clamp(8px, 12vw, 32px) !important;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 80px;
}

.button-content {
    display: flex;
    flex-direction: column;  
    align-items: center;     
    justify-content: center; 
}

.button-image {
    width: clamp(30px, 5vw, 50px);
    height: auto;
    margin-bottom: 10px;
    filter: invert(1);
}

.button-image-Two {
    width: clamp(60px, 10vw, 100px); 
    height: auto;
    margin-bottom: 10px;
    filter: invert(1);
}

.custom-background-page {
    margin: 0;
    padding: 0;
    background: url('../static/IntermedBackground.svg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

.manualContainer {
    display: flex;
    height: 100vh;
    max-width: 100%;
}

.manualTask {
    flex: 2;
    border-right: 2px solid #ddd;
    padding: 20px;
    overflow-y: auto;
}

.instructions {
    flex: 3;
    padding: 20px;
    overflow-y: auto;
    border-right: none;
    font-size: clamp(4px, 3vw, 16px) !important;
}

.task-item {
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    overflow-x: hidden;
    font-size: clamp(4px, 3vw, 16px) !important;
}

.task-item:hover {
    background-color: #f8f9fa;
}

.instructions img {
    border-radius: 15px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
    margin-left: 0;
    padding: 0;
}

.notification-container {
    position: fixed;
    top: 100px; 
    right: 30px; 
    z-index: 1000;
}

.notification {
    background: white;
    padding: 10px 20px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-width: 200px;
    max-width: 300px;
    display: none;
    text-align: left;
    font-size: 14px;
}

.notification.success {
    border-left: 4px solid #28a745;
}

.notification.error {
    border-left: 4px solid #dc3545;
}

.notification.warning {
    border-left: 4px solid #ffc107;
}

.notification.info {
    border-left: 4px solid #17a2b8;
}

.helpModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    }
    
    .helpModalContent {
    background-color: white;
    margin: 8% auto;
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 5px solid var(--button);
    font-size: clamp(4px, 6vw, 18px) !important;
    height:80%;
    overflow-y: auto;
    }

    .helpModalContent h4 {
        text-align: center;
        width: 100%;
        font-size: clamp(8px, 6vw, 24px) !important;
    }
    
    .closeHelpModal {
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
    }

    .helpGif {
        border: 5px solid var(--button);
        max-width: 500px;
        width: 100%;
        border-radius: 15px;
        margin-top: 20px; 
    }

    .help-button {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 40px;               
        height: 40px;            
        background-color: var(--button);    
        color: white;                
        font-size: 24px;             
        text-align: center;
        line-height: 40px;       
        border-radius: 50%;           
        cursor: pointer;
        position: fixed;            
        bottom: 20px;             
        right: 20px;                 
        z-index: 9999;                
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .help-button:hover {
        background-color: var(--btnfocus);     
    }

    .modalNavigation {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .helpModalNavigation button {
        padding: 10px;
        background-color: var(--button);
        color: white;
        border: none;
        cursor: pointer;
        border-radius: 5px;
        margin-right: 5px;
    }
    
    .helpModalNavigation button:hover {
        background-color: var(--btnfocus);
    }