@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');

:root {
    /* Dark green for text and important elements */
    --primary-color: #00472f;
    /* Light cyan for background */
    --secondary-color: #84ffff;
    /* Very dark green for text */
    --text-color-dark: #003030;
    /* White for text on dark background */
    --text-color-light: #ffffff;
    /* Cyan for hover effects */
    --hover-color: #4dffff;
    /* Gray for borders */
    --border-color: #666666;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9faef;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    line-height: 1.6;
    color: var(--text-color-dark);
}

body.contact-page {
    background: linear-gradient(rgba(105, 211, 250, 0.5), #F5F5DC), url('../img/contact-bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

p {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

header, footer {
    background: #00472f;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 24px;
    width: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    box-sizing: border-box;
}

header {
    position: fixed;
    top: 0;
}

header h1 {
    font-size: inherit;
    margin: 0;
    font-weight: bold;
    text-transform: uppercase;
}

nav {
    width: 200px;
    position: absolute;
    padding: 20px;
    top: 64px;
    left: 50%;
    transform: translateX(calc(-700px + 20px));
    background: #f9faef;
    z-index: 0;
    height: calc(100vh - 64px);
    overflow-y: auto;
    transition: all 0.3s ease;
}

nav a {
    /* Basic navigation link styling */
    display: block;
    margin: 10px 0;
    padding: 12px 15px;
    background: var(--secondary-color);
    text-decoration: none;
    color: var(--text-color-dark);
    position: relative;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid var(--primary-color);
}

nav a:hover {
    background: var(--hover-color);
    transform: translateX(5px);
    outline: 2px solid var(--primary-color);
}

.dropdown {
    position: relative;
}

.submenu {
    display: none;
    padding: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.submenu a {
    margin-top: 5px;
    padding: 12px 15px 12px 25px;
    background: var(--secondary-color);
    border-bottom: 1px solid var(--primary-color);
    font-weight: bold;
    color: var(--text-color-dark);
}


.submenu a:hover {
    background: var(--hover-color);
}

.dropdown:hover .submenu {
    display: block;
    max-height: 300px; /* Adjust this value based on content */
    padding: 5px 0;
}

.dropdown > a::after {
    content: " \25BC";
    font-size: 12px;
    position: absolute;
    right: 10px;
    transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
}

main {
    margin-left: 250px;
    padding: 20px;
    position: relative;
    z-index: 1;
    margin-top: 64px;
    flex: 1;
    padding-bottom: 80px;
}

.banner {
    position: relative;
    text-align: center;
    padding: 50px 30px;
    color: white;
    font-size: 20px;
    height: 300px;
    display: flex;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 30px;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: 100%;
}


.photo-credit {
    position: absolute;
    bottom: -40px;
    right: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 0.9em;
    z-index: 0;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    margin: 0;
}


.text-box {
    text-align: left;
    padding: 30px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 0px;
    border-radius: 10px;
    line-height: 1.5;
}

.text-box-gallery {
    text-align: left;
    padding: 10px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 0px;
    border-radius: 10px;
    line-height: 0.5;
}

.text-box p {
    margin-bottom: 10px;
}

.text-box-gallery .price {
    color: #008000;
    font-weight: bold;
    margin: 0.25rem 0;
    text-align: right;
    font-size: 1.2em;
    font-family: 'Open Sans', sans-serif;
    background-color: rgba(230, 249, 120, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    margin-bottom: 20px;

  }


footer {
    position: relative;
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 20px;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

/* Large screens */
@media screen and (min-width: 1401px) {
    nav {
        transform: translateX(calc(-700px + 20px));
    }
}

/* Medium screens */
@media screen and (max-width: 1400px) and (min-width: 1025px) {
    nav {
        transform: translateX(calc(-50vw + 20px));
    }
}

/* Tablets */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    nav {
        width: 180px;
        transform: translateX(calc(-50vw + 20px));
        padding: 15px;
        background: #00472f;
        border-radius: 0 10px 10px 0;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    }

    nav a {
        padding: 12px 15px;
        font-size: 15px;
        margin: 5px 0;
        border-radius: 8px;
        background: var(--secondary-color);
        transition: all 0.3s ease;
        border: 2px solid var(--primary-color);
        color: var(--primary-color);
    }

    nav a:hover {
        background: var(--hover-color);
        transform: translateX(5px);
        outline: 2px solid var(--primary-color);
    }

    .submenu {
        width: 160px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        margin-top: 5px;
        border: 1px solid var(--primary-color);
    }

    .submenu a {
        padding: 10px 15px 10px 25px;
        font-size: 14px;
        background: var(--secondary-color);
        border-radius: 0;
        color: var(--primary-color);
        border-bottom: 1px solid var(--primary-color);
    }

    .submenu a:first-child {
        border-radius: 8px 8px 0 0;
    }

    .submenu a:last-child {
        border-radius: 0 0 8px 8px;
        border-bottom: none;
    }

    .submenu a:hover {
        background: var(--hover-color);
    }

    main {
        margin-left: 220px;
    }

    .banner {
        height: 250px;
        padding: 30px 20px;
    }

    .banner h2 {
        font-size: 1.8em;
        padding: 15px;
    }

    .photo-credit {
        font-size: 14px;
    }
}

/* Mobile devices */
@media screen and (max-width: 768px) {
    body {
        padding-bottom: 0;
    }

    header {
        position: relative;
        padding: 15px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    nav {
        width: 100%;
        position: static;
        height: auto;
        padding: 15px;
        background: #00472f;
        transform: none;
        overflow-x: hidden;
        box-sizing: border-box;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    nav a {
        display: block;
        width: 100%;
        color: var(--primary-color);
        background: var(--secondary-color);
        margin: 5px 0;
        padding: 12px 20px;
        font-size: 15px;
        box-sizing: border-box;
        text-align: left;
        border-radius: 8px;
        transition: all 0.3s ease;
        border: 2px solid var(--primary-color);
    }

    nav a:hover {
        background: var(--hover-color);
        transform: translateX(5px);
        outline: 2px solid var(--primary-color);
    }

    .dropdown {
        display: block;
        width: 100%;
    }

    .submenu {
        position: static;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        box-sizing: border-box;
        margin: 5px 0;
        padding: 5px 0;
        display: block;
        max-height: none;
        border-radius: 8px;
        border: 1px solid var(--primary-color);
    }

    .submenu a {
        background: var(--secondary-color);
        border-bottom: 1px solid rgba(0, 71, 47, 0.1);
        padding: 10px 20px 10px 35px;
        margin: 0;
        width: 100%;
        font-size: 14px;
        border-radius: 0;
        color: var(--text-color-dark);
    }

    .submenu a:first-child {
        border-radius: 8px 8px 0 0;
    }

    .submenu a:last-child {
        border-radius: 0 0 8px 8px;
    }

    .submenu a:hover {
        background: var(--hover-color);
    }

    .dropdown > a::after {
        content: " \25BC";
        display: inline-block;
        margin-left: 5px;
        position: static;
        font-size: 12px;
    }

    .dropdown:hover > a::after {
        transform: rotate(180deg);
    }

    main {
        margin-left: 0;
        padding: 15px;
        margin-top: 0;
        width: 100%;
        box-sizing: border-box;
    }

    footer {
        margin-left: -50vw;
        margin-right: -50vw;
        width: 100vw;
        padding: 15px;
    }

    .banner {
        height: auto;
        min-height: 200px;
        padding: 40px 15px;
    }

    .banner h2 {
        font-size: 1.1em;
        padding: 10px;
        line-height: 1.0;
    }

    .banner-content {
        gap: 8px;
    }

    .photo-credit {
        font-size: 12px;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    nav {
        padding: 10px;
    }

    nav a {
        margin: 3px 0;
        padding: 10px 15px;
        font-size: 14px;
    }

    .submenu a {
        padding: 8px 15px 8px 30px;
        font-size: 13px;
    }

    .banner {
        min-height: 180px;
        padding: 30px 10px;
    }

    .banner h2 {
        font-size: 1.1em;
        padding: 8px;
    }

    .banner-content {
        gap: 5px;
    }
    /* Responsive design for Add to cart button */
    button.add-to-cart {
        display: inline-block;
        font-size: 14px;
        background-color: #00472f;
        color: white;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        text-decoration: none;
        font-weight: bold;
        text-align: left;
        transition: background-color 0.3s ease, transform 0.2s ease;
        margin-right: 150px;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    text-decoration: none;
}

.gallery-item .description {
    font-size: 14px;
    color: #154cda;
    margin-top: 5px;
    clear: both;
}
.gallery-size {
    font-size: 14px;
    color: #045e16;
    margin-top: 5px;
    clear: both;
    font-weight: bold;
    text-decoration: none;
}

/* Responsive design for gallery */
@media screen and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px)  {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    /* Responsive design for Add to cart button */
    button.add-to-cart {
        position: relative;
        
        font-size: 14px;
        background-color: #00472f;
        color: white;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        text-decoration: none;
        font-weight: bold;
        text-align: left;
        transition: background-color 0.3s ease, transform 0.2s ease;
        margin-right: 0px;
    }
}

/* Styles for package page */
.package-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
}

.package-card {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: white;
}

.package-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.package-card p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.package-card ul {
    list-style-type: none;
    padding-left: 0;
}

.package-card li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.package-card li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.book-button {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-top: 15px;
    width: 100%;
    max-width: 200px;
}

.book-button:hover {
    background-color: #003020;
    transform: translateY(-2px);
}

/* Media Queries for package page */
@media screen and (max-width: 1024px) {
    .package-grid {
        padding: 15px;
    }

    .package-card {
        padding: 15px;
    }

    .package-card h3 {
        font-size: 1.3em;
    }
}

@media screen and (max-width: 768px) {
    .package-grid {
        padding: 10px;
        gap: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .package-card {
        padding: 15px;
        width: 90%;
        max-width: 400px;
    }

    .package-card h3 {
        font-size: 1.2em;
    }

    .package-card p {
        font-size: 0.9em;
    }

    .book-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .package-grid {
        padding: 10px;
        gap: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .package-card {
        padding: 12px;
        width: 95%;
        max-width: 350px;
    }

    .package-card h3 {
        font-size: 1.1em;
    }

    .package-card p {
        font-size: 0.85em;
    }

    .package-card li {
        font-size: 0.85em;
    }

    .book-button {
        padding: 8px 16px;
        font-size: 13px;
        max-width: 100%;
    }
}

/* Contact page specific styles */
body.contact-page {
    background: linear-gradient(rgba(105, 211, 250, 0.5), #F5F5DC), url('../img/contact-bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.contact-page .text-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

.form-group:last-of-type {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-color-dark);
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.success-message {
    display: block;
    margin: 20px auto;
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 20px;
}

.success-message i {
    margin-right: 10px;
}

/* Media query for mobile devices*/
@media screen and (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }

    .form-group {
        width: 100%;
        margin-bottom: 10px;
    }
}
    
.contact-form button {
    background: var(--primary-color);
    color: var(--text-color-light);
    padding: 14px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 0;
    grid-column: 1 / -1;
    width: auto;
    min-width: 200px;
}

.contact-form button:hover {
    background: #003020;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 71, 47, 0.2);
}

.contact-form button:active {
    transform: translateY(0);
}

.contact-form button i {
    margin-right: 8px;
    font-size: 16px;
}

.submit-btn {
    display: inline-block;
    background-color: #00472f;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #003824;
}

#showMessage:checked ~ .contact-form {
    display: none;
}

#showMessage:checked ~ .success-message {
    display: block;
}

h2, h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

a:active,
button:active {
    transform: scale(0.98);
}

  .message {
            padding: 15px;
            margin-bottom: 20px;
            border-radius: 8px;
            display: none;
        }

        .message .success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .message .error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        /*the below is the style for Newsletter in the Contact form*/

        .demo-section {
            margin: 10px 0;
            padding: 20px;
            border-radius: 10px;
           
        }

        .demo-section h3 {
            color: #667eea;
            margin-bottom: 5px;
        }
/*the above is the style for Newsletter in the Contact form*/
button.add-to-cart {
    display:inline-block;
    font-size: 14px;
    background-color: #00472f;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    text-align: left;
    margin-top: 0px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-right: 150px;
}

/* Responsive design for notification of successful product addition to cart  */    
.notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background-color: #4caf50;
            color: white;
            padding: 15px 25px;
            border-radius: 4px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            transform: translateX(200%);
            transition: transform 0.3s ease;
        }

        .notification.show {
            transform: translateX(0);
        }
 