/* ----------------------------- Color References ---------------------------- */

/* ------------------------------ CSS Variables ------------------------------ */
:root {
    /* Background Colors */
    --color-background-light: rgb(255, 251, 249); /* Off-White */
    --color-background-cream: rgb(253, 247, 245); /* Cream */
    --color-hero-overlay: rgba(95, 95, 95, 0.4); /* Hero image tint overlay */

    /* Accent & Text Colors */
    --color-accent-peach: #eed6c2; /* Peach Accent */
    --color-accent-dark: #302121; /* Darker variant */
    --color-text-dark: #302321; /* Dark Brown for text and links */
    --color-heading: black;

    /* Border */
    --color-border: rgba(0, 0, 0, 0.5);
    --border-width: 2px;
    --border-radius: 10px;

    /* Typography */
    --font-cormorant: 'Cormorant', serif;
    --font-italiana: 'Italiana', sans-serif;
    --font-weight-regular: 400;
    --font-weight-bold: 600;
    --font-size-base: 14px;
    --font-size-heading: 1.5rem;
    --font-size-small: 90%;
}

/* ------------------------------ Global Styles ------------------------------ */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-background-cream);
    font-size: var(--font-size-base);
    font-family: var(--font-family-base);
}

/* ------------------------------ Font Styles ------------------------------ */
.italiana-regular {
    font-family: var(--font-italiana);
    font-weight: var(--font-weight-regular);
    font-style: normal;
}  

.italiana-bold {
    font-family: var(--font-italiana);
    font-weight: var(--font-weight-bold);
    font-style: normal;
}  

.cormorant {
    font-family: var(--font-cormorant);
    font-weight: var(--font-weight-regular);
    font-style: normal;
}

/* ------------------------------ Heading Styles ------------------------------ */
h2, h3, h4, h5, h6 {
    color: var(--color-dark-brown);
    text-transform: uppercase;
}

/* ------------------------------ Utility Styles ------------------------------ */
.small-hr {
    border: 1px solid var(--color-text-dark);
    width: 80%;
    margin: 0 auto;
}

.hidden-heading, .hidden-cover-text {
    display: none;
}

a {
    text-decoration: none;
}

/* ------------------------------- Table Styles ------------------------------- */

.centered-column {
    text-align: center;
}

.vertical-centered-column {
    vertical-align: middle;
}


/* ---------------------------------------------------------------------- 
    Hero Image Content 
------------------------------------------------------------------------- */

.hero {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Color overlay to dim the background image */
.color-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(95, 95, 95, 0.4);
    height: 100%;
    width: 100%;
}

/* Heading styles for hero cover */
#home-cover-heading, 
#treatments-cover-heading, 
#bookings-cover-heading, 
#profile-cover-heading {
    margin-top: 0.5em;
    padding-top: 0.5em;
    font-size: 2.1em;
    font-weight: var(--font-weight-regular);
    letter-spacing: 2mm;
    color: #bebebe;
    text-shadow: 5px 7px 0 #313131;
}

#bookings-cover-heading {
    padding-bottom: 2em;
}

/* General cover text styles */
.cover-text {
    letter-spacing: 0.4mm;
    text-transform: uppercase;
    color: #e9e9e9;
}

#est-tag {
    font-size: 70%;
    color: azure;
    padding-bottom: 2em;
}

.hidden-hero-text {
    display: none;
}

/* ---------------------------------------------------------------------- 
    Scrolling Text Styles 
------------------------------------------------------------------------- */
 
#scroll-container {
    border-bottom: 3px groove #ecd2be9a;
    width: 100%;
    padding: 5px 10px;
    overflow: hidden;
    white-space: nowrap;
}

#scroll-text {
    transform: translateX(100%);
    animation: my-animation 27s linear infinite;
    display: inline-block;
    white-space: nowrap;
}

@keyframes my-animation {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

main {
    flex: 1 0 auto;
}

/* ----------------------------- Media Queries ----------------------------- */
@media (max-width: 767px) {
    .custom-btn-mobile {
        font-size: 0.65rem;
        padding: 3px 8px;
        margin: 0;
    }

    .responsive-booking-table table,
    .responsive-booking-table thead,
    .responsive-booking-table tbody,
    .responsive-booking-table th,
    .responsive-booking-table td,
    .responsive-booking-table tr {
        display: block;
        text-align: center;
    }

    .responsive-booking-table thead tr {
        display: none;
    }

    .responsive-booking-table td {
        position: relative;
        padding-left: 50%;
        font-size: 0.85rem;
        border-bottom: 1px solid #ccc;
    }

    .responsive-booking-table td::before {
        position: absolute;
        left: 10px;
        top: 6px;
        white-space: nowrap;
        font-weight: bold;
    }

    .responsive-booking-table td:nth-of-type(1)::before { content: "Treatment"; }
    .responsive-booking-table td:nth-of-type(2)::before { content: "Date"; }
    .responsive-booking-table td:nth-of-type(3)::before { content: "Time"; }
    .responsive-booking-table td:nth-of-type(4)::before { content: "Status"; }
    .responsive-booking-table td:nth-of-type(5)::before { content: "Edit"; }
    .responsive-booking-table td:nth-of-type(6)::before { content: "Delete"; }
}

@media screen and (min-width: 768px) {
    .hero > div {
        max-height: 28.125rem;
    }

    .hero > div > img {
        max-height: 28.125rem;
        width: 100%;
        object-fit: fill;
    }

    #home-cover-heading,
    #treatments-cover-heading,
    #bookings-cover-heading,
    #profile-cover-heading {
        font-size: 3em;
        letter-spacing: 5mm;
        padding-top: 30px;
        text-shadow:8px 10px 0 #313131;
        font-weight: 600;
    }

    #est-tag {
        font-size: 100%;
        padding-bottom: 0.5em;
        letter-spacing: 0.9mm;
    }

    .cover-text {
        padding-top: 20px;
        font-size: 18px;
        font-weight: 600;
        letter-spacing: 0.5mm;
    }

    .cover-text-md {
        letter-spacing: 0.4mm;
        padding-top: 10px;
        text-transform: capitalize;
        font-style:italic;
        font-weight: 300;
        color:#e9e9e9;
        margin: 0px 50px;
    }

    #scroll-text {
        font-size: 16px;
        animation-duration: 40s;
    }
}

@media screen and (min-width: 1024px) {
    body {
        align-items: center;
    }

    .container {
        padding-left: 0;
        padding-right: 0;
    }

    .hero > div {
        max-height: 35rem;
    }

    .hero > div > img {
        max-height: 35rem;
        width: 100%;
    }

    #home-cover-heading,
    #treatments-cover-heading,
    #bookings-cover-heading,
    #profile-cover-heading {
        font-size: 4em;
        letter-spacing: 10mm;
        padding-top: 2em;
        padding-bottom: 10px;
    }

    #est-tag {
        color: transparent;
    }

    .cover-text {
        margin: 0px -50px;
        padding-bottom: 100px;
    }

    #scroll-text {
        font-size: 20px;
        font-weight: 600;
        animation-duration: 50s;
    }
}

@media screen and (min-width: 1280px) {
    .container {
        max-width: 95%;
    }

    .logo-link > img {
        max-height: 210px;
        max-width: 210px;
    }

    .hero > div {
        min-height: 40rem;
        max-height: 55rem;
    }

    .hero > div > img {
        min-height: 40rem;
        max-height: 55rem;
        width: 100%;
    }

    #home-cover-heading,
    #treatments-cover-heading,
    #bookings-cover-heading,
    #profile-cover-heading {
        font-size: 6.5em;
        letter-spacing: 14mm;
        padding-top: 2em;
        padding-bottom: 0.2em;
        text-shadow: 12px 14px 0 #313131;
    }

    .cover-text {
        margin: 0 -50px;
        padding-bottom: 5em;
        font-size: 30px;
    }

    #scroll-text {
        font-size: 30px;
        animation-duration: 55s;
    }
}

@media screen and (min-width: 1400px) {
    .logo-link > img {
        max-height: 210px;
        max-width: 210px;
    }

    .hero > div {
        min-height: 55rem;
        max-height: 86rem;
    }

    .hero > div > img {
        min-height: 55rem;
        max-height: 64rem;
        width: 100%;
        object-fit: cover;
    }

    #home-cover-heading,
    #treatments-cover-heading,
    #bookings-cover-heading,
    #profile-cover-heading {
        font-size: 6.5em;
        letter-spacing: 10mm;
        padding-top: 20px;
        padding-bottom: 50px;
        text-shadow: 12px 14px 0 #313131;
    }

    .cover-text {
        margin: 0 -50px;
        padding-bottom: 150px;
        font-size: 30px;
    }

    #scroll-text {
        font-size: 30px;
        animation-duration: 55s;
    }
}
