
/* page background */

:root {
    --image-bg-color: #f8cf02; /* main background color of the image (no opacity applied) */
    /* value matches between main-bg-color and watermark-opacity-{mobile,desktop} */
    /* (#fceb99, 0.6), (#f8cf02, 0) */
    --main-bg-color: #f8cf02; 

    --watermark-opacity-mobile: 0.3;
    --watermark-opacity-desktop: 0.3;

    --watermark-size-mobile: 160%;
    --watermark-size-desktop: 160%;
}

html, body {
    height: 100%;
    margin: 0;
    background-color: var(--main-bg-color);
}

body {
    display: flex;
    flex-direction: column;
}

/* .card-bg-image {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.3;
}

.card-bg-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
} */

.main-card {
    position: relative;

    width: 100%;
    max-width: 520px;
    width: 100%;

    min-height: 420px;
    height: 100%;

    margin: auto;
    margin-top: 0px;
    margin-bottom: 60px;

    padding: 5px;

    background-color: var(--image-bg-color);

    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);

    /* overflow: visible; */
}

/* watermark */
.main-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background: url("../images/waggy_doggy_logo_transp.png")
                center / var(--watermark-size-mobile)
                no-repeat;

    opacity: var(--watermark-opacity-mobile);

    pointer-events: none;
}

/* Inputs are above the watermark */
.main-card > * {
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .main-card::before {
        background-size: var(--watermark-size-desktop);
        opacity: var(--watermark-opacity-desktop);
    }
}

@media (max-width: 600px) {

    .main-card {

        margin-top: 0px;
        padding: 25px;

    }

}

.title-badge {
    display: block;
    width: fit-content;
    margin: 0 auto;

    color: #222;

    background-color: rgba(255, 255, 255, 0.85);

    padding: 6px 14px;
    border-radius: 8px;

    backdrop-filter: blur(4px);

    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.card, select, input, .slot-option {
    color: #222;
    background-color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
}

.slot-option {

    border: 1px solid #e6e6e6;
    border-radius: 10px;

    padding: 14px 18px;

    margin-bottom: 2px;

    /* background: #f7fbff; */

    display: flex;
    justify-content: space-between;
    align-items: center;

    transition: all 0.15s ease;

    cursor: pointer;
}

.slot-option:hover {

    opacity: 1;
    border-color: #0d6efd;
    background: var(--main-bg-color);

}

.slot-option input {

    margin-right: 10px;

}

/* brand */

.brand {

    /* text-align:center; */

    margin-bottom:0px;

}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.brand img {
    width: 80%;
    height: auto;
    display: block;
    margin: auto;

    animation: bounce 2s infinite;
}

/* booking slots */

.list-group-item, .mb-4, .slot-option {

    opacity:0.90;

}

.list-group-item {

    font-size:18px;
    padding:16px;

}

/* booked slots */

.booked-slot {

    opacity: 0.35;          /* stronger fade */
    cursor: not-allowed;
    pointer-events: none;   /* disables hover + click */
}

/* prevent hover styling */

.booked-slot:hover {

    background: none;
    border-color: #e6e6e6;

}

/* buttons */

.btn-primary {

    padding:12px;

    font-size:18px;

    border-radius:10px;

}

.navbar{
    background-color: var(--main-bg-color);
    text-align: right;
}

.custom-nav {
    position: relative;
}

.custom-nav .navbar-collapse {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1000;

    background-color: var(--main-bg-color);
    padding: 1rem;

    border-bottom: 1px solid #e0d47a;

    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* TODO: hovering does not work, only when an option clicked is working */
/* Smooth highlight effect on hover */
.navbar-collapse .nav-link {
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 4px; /* optional: rounded highlight */
    padding: 0.5rem 1rem; /* make hover area bigger */
}

/* Change background + text color on hover */
.navbar-collapse .nav-link:hover {
    background-color: #e0d47a; /* slightly darker yellow for highlight */
    color: #000;               /* text color, optional */
}
