html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
  -webkit-font-smoothing: antialiased;  /* For WebKit browsers */
  -moz-osx-font-smoothing: grayscale;   /* For macOS */
}

.background {
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center; 
    background-attachment: fixed;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1; 
}

.content {
    top: -100px;
    position: relative; /* Ensure content stays above the background */
    z-index: 1; /* Layer above the background */
    padding: 20px;
    min-height: 50vh; /* Enough height to allow for scrolling */
}

h2 {
    color: #333;
}
h1 {
    color: #333;
    font-size: 25px;
    text-align: center;
}
h4 {
    color: #fff;
    font-size: 25px;
}

        .bdiv {
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 5px;
    max-width: 750px;
    margin: 5px auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .mdiv {
    background-color: #fff;
    padding: 5px 5px;
    border-radius: 5px;
    max-width: 790px;
    margin: 0px auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }



@keyframes moveClouds {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 0; }
}

@keyframes moveBirds {
    0% { left: -50px; }
    100% { left: 100%; }
}

@keyframes moveCaravan {
    0% { right: -100px; }
    100% { right: 100%; }
}

.header {
    background: linear-gradient(90deg, rgba(78, 158, 77, 0.8), rgba(118, 193, 116, 0.8)), url('/func/images/header.png');
    background-size: auto 100%; /* Ensure the image scales to the height */
    background-position: center;
    background-repeat: no-repeat; /* Prevent the image from repeating */
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    overflow: hidden;
    height: 200px; /* Set the container height */
    max-height: 200px; /* Limit the height to 200px */
    top: -80px;
    border-radius: 5px;
    max-width: 790px;
    margin: 0 auto; /* Horizontally center */
}

.header::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 100%;
    top: 0;
    left: -50%;
    background: url('') repeat-x; /* Cloud image */
    animation: moveClouds 20s linear infinite; /* Moving clouds */
    opacity: 0.3; /* Make the clouds subtle */
}

.bird {
    position: absolute;
    width: 60px;
    height: 60px;
    background: url('../images/bird.png') no-repeat;
    background-size: contain;
    animation: moveBirds 15s linear forwards; /* Only plays once */
    top: 70px;
    left: -50px;
}

.caravan {
    position: absolute;
    width: 80px; /* Adjust size as needed */
    height: 40px; /* Adjust size as needed */
    background: url('../images/caravan.png') no-repeat;
    background-size: contain;
    top: 77px;
    right: -100px; /* Start off-screen */
    animation: none; /* Initial state */
}

.headlogo {
    background-color: #5cb85c; /* Solid green background */
    color: white;
    border-radius: 5px; /* Subtle rounded corners */
    padding: 3px 9px; /* Reduce padding for smaller background */
    position: static; /* Fix to the top of the viewport */
    top: 40px; /* Attach 10px from the top */
    left: 50%; /* Move to the center horizontally */
    z-index: 1000; /* Ensure it stays on top of other elements */
    text-align: center; /* Center the text */
    display: inline-block; /* Ensure the div fits exactly around the text */
    line-height: 0.0; /* Adjust line height for tighter spacing */
    font-size: 25px;
    font-weight: bold;
    border: 2px solid #3d753d;
}














input {
    max-width: 100%;
}

form {
}

input[type="text"], input[type="email"], input[type="password"], input[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

input[type="submit"] {
            background-color: #5cb85c;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 14px;
 	    text-decoration: none;
            cursor: pointer;
            transition: background-color 0.3s;
    	    max-width: 100%;
            display: inline-block;
	    display: flex;
            justify-content: center; /* Center horizontally */
            align-items: center; /* Center vertically */
}

input[type="submit"]:hover {
    background-color: #4cae4c;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}










th, td {
    padding: 12px;
    text-align: left;
}


        .logout {
            background-color: #fb5050;
            color: white;
            border: none;
            border-radius: 5px;
            padding: 10px 35%;
            font-size: 14px;
 	    text-decoration: none;
            cursor: pointer;
            transition: background-color 0.3s;
    	    max-width: 200%;
            display: inline-block;
	    display: flex;
            justify-content: center; /* Center horizontally */
            align-items: center; /* Center vertically */
        }

        .green-button {
            background-color: #5cb85c;
            color: white;
            border: none;
            border-radius: 5px;
            padding: 10px 35%;
            font-size: 14px;
 	    text-decoration: none;
            cursor: pointer;
            transition: background-color 0.3s;
    	    max-width: 200%;
            display: inline-block;
	    display: flex;
            justify-content: center; /* Center horizontally */
            align-items: center; /* Center vertically */
        }

        .green-button:hover {
            background-color: #53a853;
        }


        .styled-select {
            width: 200px;
            position: relative;
        }

        select {
            width: 100%;
            padding: 10px;
            border: 2px solid #4CAF50; /* Green */
            border-radius: 5px;
            background-color: white;
            color: black;
            font-size: 16px;
            appearance: none; /* Remove default arrow */
            cursor: pointer;
            outline: none; /* Remove outline on focus */
        }

        /* Custom arrow */
        .styled-select::after {
            content: '';
            position: absolute;
            top: 50%;
            right: 10px;
            width: 0;
            height: 0;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-top: 5px solid #4CAF50; /* Green arrow */
            transform: translateY(-50%);
        }

        select:focus {
            border-color: #45a049; /* Darker green on focus */
        }







.user-info-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 600px; /* Adjust for desired width */
    margin: 20px auto;
    font-family: Arial, sans-serif;
    font-size: 16px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-info-row {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.user-info-row:last-child {
    border-bottom: none; /* Remove border for last row */
}

.user-info-header {
    flex-basis: 30%;
    font-weight: bold;
    color: #333;
}

.user-info-data {
    flex-basis: 70%;
    color: #555;
}

.user-info-row:hover {
    background-color: #f1f1f1; /* Highlight row on hover */
}



.scrollable-table {
    max-height: 300px; /* Set the desired height */
    overflow-y: auto; /* Enable vertical scrolling */
    border: 1px solid #ccc; /* Optional: Add border for better visibility */
    margin-top: 10px; /* Optional: Add some space above the table */
}













.scrollable-results {
    max-height: 400px; /* Adjust height as needed */
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ccc; /* Optional: to visually separate the scrollable area */
}

.scrollable-results table {
    width: 100%;
    border-collapse: collapse;
}

.scrollable-results table th,
.scrollable-results table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.scrollable-results table th {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}


.license-plate-country {
    display: inline-block; /* Block-like behavior */
    background-color: #425fe0; /* Light blue background */
    color: #fdfdfd; /* Text color */
    font-family: 'Arial', sans-serif; /* Clean font */
    font-size: 1.2em; /* Slightly larger font */
    padding: 5px 5px; /* Padding for spacing */
    border-radius: 5px 0 0 5px; /* Rounded corners on the left */
    text-transform: uppercase; /* Uppercase letters */
    border-top: 1px solid #000; /* Black border between the two sections */
    border-left: 1px solid #000; /* Black border between the two sections */
    border-bottom: 1px solid #000; /* Black border between the two sections */
}

.license-plate-number {
    display: inline-block; /* Block-like behavior */
    background-color: #fdfdfd; /* White background */
    color: #000; /* Text color */
    font-family: 'Arial', sans-serif; /* Clean font */
    font-size: 1.2em; /* Slightly larger font */
    padding: 5px 10px; /* Padding for spacing */
    border-radius: 0 5px 5px 0; /* Rounded corners on the right */
    margin-left: -5px;
    border-top: 1px solid #000; /* Black border between the two sections */
    border-right: 1px solid #000; /* Black border between the two sections */
    border-bottom: 1px solid #000; /* Black border between the two sections */
}

.license-plate-number-yellow {
    display: inline-block; /* Block-like behavior */
    background-color: #e9d035; /* White background */
    color: #000; /* Text color */
    font-family: 'Arial', sans-serif; /* Clean font */
    font-size: 1.2em; /* Slightly larger font */
    padding: 5px 10px; /* Padding for spacing */
    border-radius: 0 5px 5px 0; /* Rounded corners on the right */
    margin-left: -5px;
    border-top: 1px solid #000; /* Black border between the two sections */
    border-right: 1px solid #000; /* Black border between the two sections */
    border-bottom: 1px solid #000; /* Black border between the two sections */
}


.license-plate {
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Center items vertically */
}





/* Campsite Table */
.campsite-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.campsite-table thead {
    background-color: #55ab54; /* Header background color */
    color: #fff; /* Header text color */
}

.campsite-table th, .campsite-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.campsite-table tbody tr:hover {
    background-color: #f1f1f1; /* Row hover effect */
}


/* Button Styles */
.view-button, .action-button {
    background-color: #5cb85c; /* Button background color */
    color: #FFFFFF; /* Button text color */
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block; /* Make it behave like a button */
    transition: background-color 0.3s ease;
    text-align: center; /* Center text inside the button */
}

.view-button:hover {
    background-color: #53a853; /* Button hover effect */
}

.action-button {
    background-color: #55ab54; /* Action button background */
}

.action-button:hover {
    background-color: #4A9C4A; /* Darker green on hover */
}


/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it covers everything */
    opacity: 1; /* Fully visible */
    transition: opacity 0.5s ease-out; /* Fade-out transition */
}

.hidden {
    opacity: 0; /* Make it invisible */
    pointer-events: none; /* Prevent interaction */
}

/* Spinner animation */
.spinner {
    border: 8px solid #f3f3f3; /* Light gray background */
    border-top: 8px solid #3498db; /* Blue top */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite; /* Spin animation */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.admin-content {
    display: none;
    margin-top: 10px;
}

.admin-title {
    cursor: pointer;
    font-size: 24px;
    color: #333;
}



        .collapsible {
            background-color: #f1f1f1;
            color: #333;
            cursor: pointer;
            padding: 18px;
            width: 100%;
            border: none;
            text-align: left;
            outline: none;
            font-size: 18px;
            transition: background-color 0.3s ease;
        }

        .collapsible:hover {
            background-color: #ddd;
        }

        .ccontent {
            padding: 0 18px;
            display: none;
            overflow: hidden;
            background-color: #f9f9f9;
            border: 1px solid #ccc;
            margin-top: 10px;
        }

        .ccontent p {
            margin: 10px 0;
        }