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

body {
    font-family: "Nunito", sans-serif;
    background-color: #d5fffdae;
    color: #120e3d;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background-color: #b16ed0;
    color: #9de8e4;
    padding: 10px;
    text-align: center;
}

#sideNav {
    position: fixed;
    top: 20%;
    left: 0;
    width: 200px;
    background-color: transparent;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

#sideNav ul {
    list-style-type: none;
    padding: 0;
}

#sideNav ul li {
    margin-bottom: 10px;
    border-bottom: 1px solid #4b306a;
}

#sideNav a {
    text-decoration: none;
    color: #4b306a;
    display: block;
    padding: 8px 0;
}

#sideNav a:hover {
    color: #007bff;
}

.navbar-nav .nav-link {
    color: #9de8e4 !important;
    font-size: 1.2em;
    text-transform: uppercase;
}

.navbar-nav .nav-link:hover {
    color: #4c1036 !important;
}

.mainWrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.footer {
    padding: 20px;
    text-align: center;
    background-color: #b16ed0;
    color: #9de8e4;
    font-size: 1.2em;
}

.home-section {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 100px 0;
    height: 100vh;
    overflow: hidden;
    background-image: url('../media/branding/img4.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.home-content {
    max-width: 600px;
    margin: 0 auto;
    color: #120e3d;
}

.home-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.home-content p {
    font-size: 1.8em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.home-content .btn-primary {
    background-color: #4c1036;
    border-color: #4c1036;
    padding: 12px 24px;
    font-size: 1.2em;
}

.home-content .btn-primary:hover {
    background-color: #726e97;
    border-color: #726e97;
}

.featured-products {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.featured-products .section-title {
    color: #4c1036;
    font-size: 2.5em;
    margin-bottom: 40px;
}

.card {
    background-color: #ffffff;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease-in-out;
    position: relative;
    /* Added */
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card .card-body {
    text-align: center;
}

.card .card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #4c1036;
}

.card .card-text {
    font-size: 1.2em;
    color: #666;
}

.card .btn-primary {
    background-color: #4c1036;
    border-color: #4c1036;
    padding: 10px 20px;
    font-size: 1em;
}

.card .btn-primary:hover {
    background-color: #726e97;
    border-color: #726e97;
}

.featured-products .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.featured-products .modal-content,
#diy-kits .modal-content,
#popping-pearls .modal-content,
#flavour-syrups .modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #4c1036;
    width: 70%;
    max-width: 600px;
    border-radius: 8px;
    text-align: center;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #4c1036;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}


.close:hover,
.close:focus {
    color: #b16ed0;
    text-decoration: none;
    cursor: pointer;
}

.featured-products .modal .btn-primary,
#diy-kits .modal .btn-primary,
#popping-pearls .modal .btn-primary,
#flavour-syrups .modal .btn-primary {
    background-color: #4c1036;
    border-color: #4c1036;
    padding: 5px 10px;
    font-size: 0.9em;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    cursor: pointer;
}

.featured-products .modal .btn-primary:hover,
#diy-kits .modal .btn-primary:hover,
#popping-pearls .modal .btn-primary:hover,
#flavour-syrups .modal .btn-primary:hover {
    background-color: #726e97;
    border-color: #726e97;
}

.featured-products .modal-img {
    width: 100%;
    max-width: 80%;
    height: auto;
    max-height: 500px;
    margin: 0 auto;
    border-radius: 8px;
}

.order-icon {
    position: fixed;
    bottom: 20px; 
    right: 20px; 
    display: flex;
    align-items: center;
    background-color: #b16ed0;
    color: white; 
    padding: 10px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.order-icon i {
    font-size: 24px;
    margin-right: 8px; 
}

.order-icon:hover {
    background-color: #726e97;
    text-decoration: none;
    color: white;
}

.order-form {
    background-color: white; 
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px; 
    margin: auto;
}

.order-form .form-group {
    margin-bottom: 15px;
}

.order-form .form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 10px;
    width: 100%;
}

.order-form .form-control:required {
    border-color: #f00;
}

.order-form button {
    background-color: #6a1b9a;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
}

.order-form button:hover {
    background-color: #4a0072;
}

.order-form .error-message {
    color: #f00;
    font-size: 0.875em;
    margin-top: 5px;
}


.subscribe-section {
    background-color: #d5fffdae;
    padding: 80px 0;
    text-align: center;
}

.subscribe-section h2,
.subscribe-section p {
    color: #4b306a;
}

.subscribe-section form {
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-section .form-group {
    margin-bottom: 20px;
}

.subscribe-section .btn-primary {
    background-color: #4c1036;
    border-color: #4c1036;
    padding: 12px 24px;
    font-size: 1.2em;
}

.subscribe-section .btn-primary:hover {
    background-color: #726e97;
    border-color: #726e97;
}

.contact-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
}

.contact-form label {
    color: #4b306a;
    display: block;
    margin-bottom: 5px;
}

.contact-form .contact-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #4b306a;
    border-radius: 5px;
    font-size: 1em;
    margin-bottom: 10px;
}

.contact-form .contact-field:focus {
    border-color: #4c1036;
}

.contact-form .btn-primary {
    background-color: #4c1036;
    border: none;
    padding: 10px;
    font-size: 1em;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.contact-form .btn-primary:hover {
    background-color: #726e97;
}

.contact-socials li {
    font-size: 2em !important;
}

.contact-socials img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

#contact-feedback {
    display: block;
    margin-top: 20px;
}

#contact h2 {
    font-size: 3em;
    text-align: center;
}

.socials {
    text-align: center;
    margin-top: 20px;
}

.socials .social-icon {
    font-size: 1.5em;
    color: #4b306a;
    margin: 0 10px;
}

.socials .social-icon:hover {
    color: #4c1036;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #000;
    border-radius: 50%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
}

#gallery {
    background-color: #d5fffdae;
    padding: 80px 0;
}

.gallery h2 {
    font-size: 2.5rem;
    color: #120e3d;
    margin-bottom: 2rem;
}

.carousel-item img {
    width: 100%;
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    flex: 1;
}

.gallery .img-thumbnail {
    cursor: pointer;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    margin: 0 auto;
}

.gallery .row.text-center {
    margin-top: 1rem;
}

.gallery .col-3 {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.home-content {
    max-width: 600px;
    margin: 0 auto;
    color: #120e3d;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media only screen and (max-width: 768px) {
    .navbar-brand img {
        width: 100%;
    }

    .home-section {
        height: auto;
        padding: 50px 20px;
    }

    .home-content h1 {
        font-size: 2.5em;
    }

    .home-content p {
        font-size: 1.2em;
        line-height: 1.4;
    }

    .home-content .btn-primary {
        font-size: 1em;
        padding: 10px 20px;
    }

    .modal-content {
        width: 90%;
        padding: 15px;
    }

    .close {
        font-size: 24px;
        top: 5px;
        right: 5px;
    }
}

@media only screen and (max-width: 991px) {
    .featured-products .card-group {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .featured-products .card {
        width: 100%;
        max-width: 400px;
        margin-bottom: 20px;
    }
}