* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    background: transparent;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;              /* fallback */
    background: url("/taxi.jpg") no-repeat center center;
    background-size: cover;
    z-index: -2;
    transform: translateZ(0);   /* prevents repaint jitter */
}

@supports (height: 100svh) {
    body::before {
        height: 100svh; /* small viewport height – stable */
    }
}

/* Dark overlay */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: -1;
}

header h1 {
    font-size: 2.5rem;
    margin-top: 15px;
    font-weight: bold;
}

.description {
    max-width: 600px;
    margin: 15px auto 0px auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Buttons */
.button-container {
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    gap: 12px;
}

.page-wrapper {
    background-color: rgba(0,0,0,0.6);
    padding: 20px;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
}

.nav-btn {
    background-color: rgba(255,255,255,0.85);
    color: black;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: 0.2s ease;
}

.nav-btn:hover {
    background-color: white;
    transform: scale(1.05);
}

.about-btn {
    display: block;
    margin: 0 auto 15px auto;
    width: 50%;
    background-color: rgba(255,255,255,0.85);
    color: black;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: 0.2s ease;
}

.about-btn:hover {
    background-color: white;
    transform: scale(1.05);
}

.admin-btn {
    background-color: transparent;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.2s ease;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    .nav-btn .admin-btn {
        font-size: 1rem;
        padding: 12px;
    }
}

.back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 15px;
    background: rgba(255,255,255,0.85);
    color: black;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
}

.back-btn:hover {
    background: white;
}

/*------------------------Admin----------------------------*/

.admin-wrapper {
    background: rgba(0,0,0,0.6);
    padding: 20px;
    margin: 15px auto;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
}

.admin-card {
    background: rgba(255,255,255,0.95);
    color: black;
    padding: 20px;
    border-radius: 12px;
}

.admin-card h2 {
    margin-bottom: 15px;
    text-align: center;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-form input,
.admin-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
}

.admin-form textarea {
    min-height: 100px;
    resize: vertical;
}

.admin-form button {
    margin-top: 10px;
    padding: 14px;
    border-radius: 8px;
    border: none;
    background: black;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}

.admin-form button:hover {
    background: #333;
}

.admin-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.admin-actions a {
    text-decoration: none;
    font-weight: bold;
    color: black;
}

.admin-actions a:hover {
    text-decoration: underline;
}

/* Admin buttons inline with title */
.admin-icons a {
    margin-left: 10px;
    font-size: 1rem;
    text-decoration: none;
}

.logout-link {
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    display: block;
}

.logout-link:hover {
    text-decoration: underline;
}

/* ===== TAXI LOGO (CENTERED) ===== */

.taxi-logo {
    display: flex;
    justify-content: center;
}

.taxi-logo img {
    width: 300px;        /* controls size */
    max-width: 70%;
    height: auto;
}

@media (max-width: 480px) {
    .taxi-logo img {
        width: 200px;
    }
}

/*---------------------------------------------------------*/

.map-link {
    margin-left: 6px;
    font-size: 1.2rem;
    text-decoration: none;
}

.map-link:hover {
    opacity: 0.7;
}

