body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
}
/* Hide the scrollbar (Webkit-based browsers like Chrome and Safari) */
body::-webkit-scrollbar {
    display: none;               /* Hides the scrollbar */
}

.parent-container {
    background-image: url('../img/alsn-ship.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Makes the image fixed relative to the viewport */
    min-height: 100vh; /* Ensures it covers the visible screen */
    overflow: hidden; /* Prevents content overflow if unintended */
}
footer {
    background-image: url('../img/footer1.jpg'); /* Replace with your image URL */
    background-size: cover; /* Ensures the image covers the entire footer */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    margin: 0px;
    color: black;
    padding: 10px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}


footer p {
    margin: 0px; 
}

/* NAvigation */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1040;
    background-image: url('../img/header1.jpg'); /* Your background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0px;
    padding: 10px 0;
    color: black;
}


/* Style for the navbar when the sticky button appears */
.sticky-navbar {
    /*background-color: white !important;  Set background color to white */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: adds a subtle shadow */
    transition: background-color 0.3s ease; /* Smooth transition for background color */
}


.navbar, footer {
    color: white;
    text-align: center;
    padding: 10px 0; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: hidden; 
}

.navbar-toggle .icon-bar {
    background-color: black; /* Set to a contrasting color, e.g., black */
}

.navbar-brand img {
    height: 40px; /* Adjust the height of the logo */
    margin-right: 10px; /* Space between the logo and the brand name */
}
.navbar-brand {
    display: flex;
    align-items: center;
    color: black;
}


.navbar-brand span {
    font-weight: 550;
    font-size: 18px; /* Adjust the text size */
}

.nav-sub {
    padding-left: 0;
    margin-bottom: 10px;
    list-style: none;
}

.nav-sub>li>a {
    color: black;
    font-weight: normal;
}


.nav-sub .nav-tabs {
    color: black; 
}

.nav-tabs {
    padding-bottom: 28px;
}

.nav-tabs>li>a  {
    color: black; 
    background-color: rgba(255, 255, 255, 0.5);
    padding: 10px;
    margin-left: 3px;
    top: -20px;
}

.nav-sub>li>a:focus, .nav-sub>li>a:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.5);
    color: black;
}


#date-time {
	margin-top: 5px;
	font-size: 14px;
}



.banner {
    width: 100%; /* Ensure it spans the full width */
    top: 80px; 
    /*padding: 50px 0;  Adjust as needed */
    position: relative; /* Add this if you have absolute elements inside */
    overflow: hidden;
    
}

.main-content {
    margin-bottom: 50px; /* Match the footer's height */
    padding: 20px; /* Optional for content spacing */
    overflow: auto; /* Allow scrolling if content exceeds viewable area */
    box-sizing: border-box; /* Ensures padding doesn't add to total height */
}


.container {
	max-width: 2000px;
    margin-top: 0px;
    padding-bottom: 20px;
}


.radio-type label {
    margin-right: 20px; /* Adjust space between the radio buttons 5369a5*/
}

.custom-radio {
    margin-right: 20px; /* Space between the custom radio and next label */
}


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

.custom-radio {
    width: 20px; /* Size of the radio circle */
    height: 20px; /* Size of the radio circle */
    border: 2px solid #5369a5; /* Border color */
    border-radius: 50%; /* Make it circular */
    display: inline-block;
    margin-right: 10px; /* Space between the radio and label */
    position: relative;
    vertical-align: middle; /* Align with text */
    cursor: pointer; /* Change cursor on hover */
}

.radio-type input[type="radio"]:checked + .custom-radio {
    background-color: #5369a5; /* Background color when checked */
}

.radio-type input[type="radio"]:checked + .custom-radio::after {
    content: '';
    width: 10px; /* Size of the inner dot */
    height: 10px; /* Size of the inner dot */
    background-color: white; /* Color of the inner dot */
    border-radius: 50%; /* Make it circular */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the dot */
}

.modal {
    z-index: 1050; /* Default Bootstrap value */
}

.modal-header,
.modal-body {
	text-align: center;
}

.modal-body form .form-group label {
	text-align: left;
	width: 100%;
}

.error {
	color: red;
	margin-top: 10px;
}

.header-title {
	font-size: 30px;
	margin-bottom: 20px;
	text-align: center;
	font-weight: bold;
	color: #3B5998;
}


.video-placeholder {
	background-color: #e0e0e0;
	padding: 40px;
	font-size: 24px;
	color: #555555;
	border: 1px dashed #007bff;
	margin-bottom: 20px;
}

.forgot-password-link {
	display: block;
	margin-top: 10px;
	text-align: right;
}

/* Base styles for buttons container */
.login-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap to the next line */
    gap: 10px; /* Space between buttons */
    width: 100%; /* Full width of modal */
}

/* Styles for individual buttons */
.fb-login-button,
.g_id_signin {
    flex: 1 1 calc(50% - 10px); /* Flex grow, shrink, and basis */
    max-width: calc(50% - 10px); /* Ensure buttons take up half the width minus gap */
    box-sizing: border-box; /* Ensure padding and border are included in width */
}

/*booking search ticket*/
.select-container {
    position: relative;
    display: flex;
    align-items: center;
}

.select-container i {
    position: absolute;
    left: 30px; /* Adjust this value to position the icon as needed */
    font-size: 16px; /* Adjust the icon size if needed */
    color: #6c757d; /* Adjust the color if needed */
}

.select-container select {
    padding-left: 50px; /* Add padding to the left to avoid overlap with the icon */
    width: 100%; /* Ensure the select takes the full width of the container */
}

.arrow-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow-container i {
    font-size: 24px; /* Adjust the icon size if needed */
    color: #6c757d; /* Adjust the color if needed */
}
/*select*/
.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
    pointer-events: none; /* Prevents icon from blocking select interaction */
}

.select-control {
    padding-left: 70px; /* Adjust this value based on the icon size */
}

/*BODY.PHP*/
/*space between nav bar and content */
.tab-content {
    margin-top: 20px;
}

.card {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    MARGIN: 10px; 
}

/*passenger selection 007bff*/
.dropdown-header {
    cursor: pointer;
    border: 1px solid #9F9F9F;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.5);
    color: #3B5998;
    border-radius: 5px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    height: 50px;
    font-size: 1em;
    box-sizing: border-box;
    overflow: hidden;
}
.dropdown-header #dropdown-placeholder { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.dropdown-header i { flex: 0 0 auto; margin-left: auto; }
.dropdown-body {
    display: none;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #9F9F9F;
    border-radius: 5px;
    margin-top: 5px;
    justify-content: space-between;
    align-items: center;
}
.dropdown-item {
    display: flex;
    align-items: center; /* Vertically center items */
    justify-content: space-between; /* Space between text and buttons */
    width: 100%; /* Ensures full width for each item */
}

.button-group {
    display: flex;
    align-items: center; /* Center buttons and input vertically */
}
.quantity-input {
    width: 30px; /* Fixed width for input */
    text-align: center; /* Center text in input */
    margin: 0 5px; /* Space between buttons and input */
}
.btn-quantity {
    padding: 5px 10px;
    margin: 0 5px;
}
.btn-primary {
    background-color: #007bff;
    border: none;
}
.btn-primary:hover {
    background-color: #0056b3;
}


/*form*/
.form-row {
    display: flex;
    align-items: center; /* Center items vertically */
    justify-content: space-between; /* Space out items evenly */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    width: 100%; /* Ensure the row takes full width */
}

.form-group {
    flex: 1; /* Allow form groups to grow and fill available space */
    margin: 5px 0px ; /* Reduced margin for better spacing */
    min-width: 50px; /* Minimum width for usability */
    box-sizing: border-box; /* Include padding and borders in width */
    padding: 5px; 
}
.row {
    margin-left:0px;
    display: flex;
    align-items: center; /* Vertically center elements */
    justify-content: space-between; /* Space out elements */
    width: 100%;
}

#from_location, #to_location {
    width: 100%; /* Make dropdowns take full width of the container */
}

.passenger-full-width {
    width: 100%; /* Make only the passenger dropdown take full width */
}


.arrow {
    flex: 0 0 auto; /* Prevent the arrow from growing/shrinking */
    margin: 30px 15px 10px ; /* Optional margin to the sides of the arrow */
    font-size: 1em;
}

/*input-wrapper*/
.input-wrapper {
    position: relative;
    margin-top: 20px;
}

.input-wrapper label {
    position: absolute;
    top: -20px;
    left: -1px;
    pointer-events: none;
    transition: 0.2s ease all;
    font-size: 14px;
    color: #3B5998;
    padding: 5px 15px;
    transform-origin: left top;
    line-height: 1;
}

.input-wrapper .form-control,
.input-wrapper select {
    width: 100%;
    padding: 12px 8px;
    border: 1px solid #9F9F9F;; 
    background: rgba(255, 255, 255, 0.5); 
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box; /* Includes padding and border in height */
    height: 50px!important;
}

.input-wrapper input:focus,
.input-wrapper select:focus{
    border-color: #0056b3;
    outline: none;
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label,
.input-wrapper select:focus + label,
.input-wrapper select:not(:placeholder-shown) + label {
    top: -30px;
    left: -1px;
    font-size: 12px;
    color: #0056b3;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #8f8f8f;
}
.separator::before, .separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid;
}
.separator::before {
    margin-right: 10px;
}
.separator::after {
    margin-left: 10px;
}

.search-trip {
    background-color: #3B5998;
    font-size: 1.3em;
    margin-top: 20px; 
    height: 50px; 
}
/*
COLORED BUTTON
#stickySearchTripButton { 
    background-color: #3B5998; 
    color: white;
    width: 150px; 
    padding: 0 10px; 
    border: none; 
    border-radius: 5px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
    transition: background-color 0.3s; 
    display: none; 
    position: fixed; 
    top: -10px;
    z-index: 1050; 
}

#stickySearchTripButton:hover {
    background-color: #0056b3; 
}
*/

#stickySearchTripButton { 
    background-color: transparent; 
    color: black; 
    width: 150px; 
    padding: 0 10px; 
    border: none; 
    border-radius: 5px;  
    /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: color 0.3s;  */
    display: none; 
    position: fixed; 
    top: -10px; 
    z-index: 1050; 
    font-size: 15px; 
    font-weight: bold; 
}

#stickySearchTripButton:hover {
    color: #0056b3; 
    cursor: pointer;
}
*/
/*
#stickySearchTripButton { 
    background-color: transparent;
    color: black; 
    width: 40px; 
    height: 40px; 
    display: flex;
    align-items: center;
    justify-content: center;
    border: none; 
    border-radius: 50%; Circular button 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
    transition: color 0.3s; 
    display: none; 
    position: fixed; 
    top: -5px; 
    z-index: 1050; 
    cursor: pointer; 
    font-size: 15px;; 
}
*/



#stickySearchTripButton i {
    font-size: 20px; /* Adjust the icon size */
    padding-right: 10px; 
}

.trip_type {
    padding: 0px 15px;
}

@media (min-width: 768px) {
    .navbar {
        border-radius: 0px;
    }
    
}

/* Responsive styles for smaller devices */
@media (max-width: 990px) {
    .form-group {
        /* Full width for the passenger selection */
        margin-bottom: 5px; /* Space between stacked elements */
    }
    .passenger-full-width {
        flex-basis: 100%; /* Full width for the passenger selection */
        margin: 0px 0px 0px 0px; /* Space between stacked elements */
    }
    .arrow {
        margin-top: 30px;
        padding: 0px 5px; 
        font-size: 0.5em;
    }

    .dropdown-body {
        display: none; /* Show dropdown body on small screens */
    }
    .row {
        padding: 5px;
    }
    .row .form-group{
        margin: 0px;
        padding: 0px;
    }
}



/* Responsive styles for narrower modals */
@media (max-width: 756px) {
    .login-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        flex-direction: column;
        align-content: space-around;
        justify-content: space-evenly;
        
    }
    
    .fb-login-button,
    .g_id_signin {
        max-width: 100%; /* Make buttons full width of container */
    }
}
