html {
    height: 100%
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    width: 100vw;
}

/* 
    base.html 
*/

.main-container {
    min-height: calc(100vh - 255px);
    max-height: max-content;
}

.logo-font {
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
}

.search-button:hover {
    background-color: #ffb7ce;
}


.home-products-container {
    overflow-x: auto;
}

.featured-products-container,
.latest-products-container {
    display: inline-block;
    min-width: 175px;
    margin: 10px;
    vertical-align: top;
}

.search-bar {
    position: absolute;
    max-width: 100vw;
    top: 80%;
    left: 0;
    border-top: 2px solid black;
}

.account-dropdown {
    position: absolute;
    left: -50%;
}

.message-container {
    position: fixed;
    top: 150px;
    right: 5px;
    z-index: 99999;
}

/* Toasts */

.toast-capper {
    height: 3px
}

.toast-product-name {
    text-decoration: none;
}

.toast-product-name:hover {
    color: black;
    text-decoration: underline;
}

.toast-wrapper {
    height: 200px;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Adjust the width and height of the images */
.featured-image,
.latest-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
}


/* Navigation Menu */
.navbar {
    background-color: #ffb7ce !important;
    margin-top: 15px;
}

.navbar-nav {
    width: 100%;
}

.nav-item {
    font-size: 1.25rem;
    color: black;
    padding-bottom: 2px;
    list-style: none;
}

.nav-item:hover {
    border-bottom: 2px solid black;
    padding-bottom: 0px;
}

.dropdown-menu {
    background-color: #ffffff;
    margin-top: 5px;
}

.dropdown-item:hover {
    background-color: #ffb7ce;
}

input[name='q']::placeholder {
    color: #595c5f;
}

/* Footer */
footer {
    height: 100px;
}

footer>div {
    border-top: 2px solid black;
}

footer ul {
    margin-top: 25px;
}

a.icon {
    color: black;
    font-size: 2.5em;
    padding: 10px;
}

/* Mailchimp */

#mc_embed_signup {
    background: #fff;
    clear: left;
    font: 14px Helvetica, Arial, sans-serif;
    width: 600px;
    max-width: 100vw;
}

#mc_embed_signup .button {
    background-color: white;
    border: 1px solid black;
    color: black;
    font-weight: bold;
}

#mc_embed_signup .button:hover {
    background-color: #ffb7ce;
}

/* 
    index.html 
*/

/* Home page image and call to action */
.home-image {
    background: url('/media/bath-bomb-home.webp') no-repeat center center fixed;
    background-size: cover;
    height: 70vh;
    width: 100vw;
}

.home-products-image {
    background: url('/media/bath-bomb-home.webp') no-repeat center center fixed;
    background-size: cover;
    height: 92vh;
    width: 100vw;
}

.testimonial-image {
    background: url('/media/bath-bomb-home.webp') no-repeat center center fixed;
    background-size: cover;
    min-height: fit-content;
    width: 100vw;
}

.featured-products-image {
    background: url('/media/bath-bomb-home.webp') no-repeat center center fixed;
    background-size: cover;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.card-custom-size {
    max-width: fit-content;
    max-height: fit-content;
}

.home-button {
    width: fit-content;
    height: fit-content;
    font-size: 2em;
}

.landing-text {
    color: white;
    max-width: 75%;
}

.landing-text p {
    font-size: 2.7em;
    font-weight: 300;
    padding: 15px;
    background-color: rgba(75, 29, 87, 0.45);
    border-radius: 30px;
}

/* Our Products section */

.our-products {
    max-height: fit-content;
}

.our-products h2 {
    font-size: 2.7em;
}

.our-products p {
    font-size: 1.3em;
}

.our-products hr {
    width: 50px;
    color: black;
    border-top: 3px solid black;
}

.product-home-div {
    height: 35vw;
}

.product-home-image {
    position: relative;
    max-width: 35vw;
}

.product-overlay {
    position: relative;
    bottom: 100%;
    max-width: 35vw;
    height: 35vw;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.product-overlay hr {
    color: white;
}

.product-overlay hr,
.product-overlay p {
    margin: 10px;
}

.product-home-div:hover .product-overlay {
    display: flex;
    /* Show the overlay on hover */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}


/* Our values section */

.our-values {
    height: fit-content;
}

.our-values hr {
    width: 50px;
    color: black;
    border-top: 3px solid black;
}


/* Testimonials */

.testimonials-container {
    min-height: fit-content;
}

.testimonials-container hr {
    width: 50px;
    color: black;
    border-top: 3px solid black;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: unset !important;
    z-index: 9999;
}

.carousel-inner,
.carousel-item,
.carousel-item>img {
    max-height: 450px;
}

.carousel-caption {
    position: absolute;
    bottom: 25%;
    border: 1px solid black;
    padding: 20px;
    min-height: 210px;
}

.carousel-caption {
    text-align: center;
}


/* Location Section */

.location-container {
    height: fit-content;
    border-top: 2px solid black;
}

.location-container hr {
    width: 50px;
    color: black;
    border-top: 3px solid black;
}

.home-address {
    font-size: 1.2rem;
}

#gmp-map {
    height: 80%;
    width: 80%;
    margin: 0 auto;
}

/*
    About Page
*/

.about-text {
    max-width: 80%;
    min-height: 100%;
    font-size: 1.1em;
}

.about-image {
    max-height: fit-content;
    max-width: 80%;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .2);
}


/* 
    All Products Page 
*/

.card-container {
    display: flex;
    flex-wrap: wrap;
}

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-shadow:hover {
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .2);
}

.card-body {
    flex-grow: 1;
}


.card-body a p:hover {
    color: black;
    text-decoration: underline;
}


.categories,
.card-body span {
    font-size: 0.7rem;
}

.categories:hover {
    text-decoration: underline;
}

.old-price {
    font-size: 0.8em;
}

.product-card-image {
    max-width: 800px;
    width: 100%;
    height: auto;
}


/* 
Product Details Page
*/

.product-detail-image {
    max-width: 80%;
    border-radius: 20px;
}

.product-detail-container span.icon {
    font-size: 0.7rem;
}

.image-container {
    max-width: 44vw;
    margin: 0 auto;
}

.image-list {
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    max-width: 80%;
    margin-top: 1rem;
    margin: 0 auto;
    padding: 0;
}

.image-list li {
    width: 22%;
    overflow: hidden;
    cursor: pointer;
}

.image-list li img {
    width: 100%;
    border-radius: 5px;
}

.image-list li.active {
    padding: .2rem;
    border-radius: 5px;
    border: 1px solid #ffb7ce;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.additional_image {
    width: 150px;
}

/* Bag page */

.update-link,
.remove-item {
    cursor: pointer;
}

/* Allauth forms */

.allauth-form-inner-content p {
    margin-top: 1rem;
    color: #000;
}

.allauth-form-inner-content input {
    border: 1px solid #000;
}

.allauth-form-inner-content label:not([for='id_remember']) {
    display: none;
}

.allauth-form-inner-content input::placeholder {
    color: #595c5f;
}

/* Product Form */

.btn-file {
    position: relative;
    overflow: hidden;
}

.btn-file input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox .custom-control-label::before {
    border-radius: 0;
    border-color: #dc3545;
}


/* 404 and 500 error page */

.error-image {
    background: url(/media/bath-bomb-home.jpeg) no-repeat center center fixed;
    background-size: cover;
    height: 75vh;
    width: 100vw;
}


/* 
    Reusable classes
*/

.border-top-and-bottom {
    border-bottom: 2px solid black !important;
    border-top: 2px solid black !important;
}

.ml-10 {
    margin-left: 10%;
}

.product-name:hover {
    text-decoration: underline;
}

.bold-underline-hover:hover {
    font-weight: bold;
    text-decoration: underline;
}

.mw-100 {
    max-width: 100vw !important;
}

.form-control {
    border: 1px solid black;
}


/* 
    Media Queries
*/

@media (min-width: 992px) {
    .logo-font {
        text-align: left;
    }

    .navbar-nav {
        text-align: center;
        padding: 0;
        width: 100%;
        justify-content: space-evenly;
    }

    .navbar-nav ul {
        display: inline-flex;
        padding: 0;
        margin-bottom: 0;
    }

    .description {
        min-height: 145px;
    }

    .product-home-div {
        height: 25vw;
    }

    .product-home-image {
        max-width: 25vw;
    }

    .product-overlay {
        max-width: 25vw;
        height: 25vw;
    }
}

@media (min-width: 1198px) {
    .description {
        min-height: unset;
    }
}

@media (max-width: 340px) {
    .carousel-caption p {
        font-size: 0.8em;
    }
}

@media (max-width: 1198px) {
    .product-instructions {
        position: relative;
        right: 24vw;
        min-width: 80vw;
    }
}

@media (max-width: 992px) {
    .product-instructions {
        position: unset;
        right: unset;
        min-width: unset;
    }
}

@media (max-width: 600px) {
    .image-container {
        max-width: 100%;
    }

    .carousel-caption {
        position: absolute;
        bottom: unset;
        top: 0;
        border: 1px solid black;
        padding: 10px;
        height: inherit;
    }

    .testimonials-container {
        padding-bottom: 25px;
    }

    .carousel-item,
    .carousel-item>img {
        max-height: unset;
        height: 390px;
    }

    .testimonial-body {
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    #gmp-map {
        height: 400px;
        width: 90%;
    }
}

@media (max-width: 1140px) {
    .image-container {
        max-width: 60vw;
    }
}