/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 3px;
    padding: 3px;
    line-height: 1.6;
    color: #2a2a2a;
}

/* Header */
header {
    background: #3647a8;
    color: rgb(255, 255, 255);
    text-shadow: #666;
    text-overflow: clip;
    padding: 10px 0;
    text-align: center;
}

header h1 {
    margin: 1rem;
    font-size: 2.5rem;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

header nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Improved visibility */
}

/* Hero Section */
.hero {
    background: url('images/boat-207129.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.hero h3 {
    color: #ffef62;
    font-size: 1.5rem;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* General Section Styles */
section {
    padding: 2rem 1rem;
    background: linear-gradient(to bottom, #d0f0fd, #87ceeb);
    color: #003366;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

/* About, Menu, Contact, Order */
#about,
#menu,
#contact,
#order {
    padding: 2rem;
    text-align: center;
}

/* Gallery Section */
#gallery {
    background: linear-gradient(to right, #a7e4ff, #70d6ff);
    padding: 2rem 1rem;
    text-align: center;
}

#gallery h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    justify-items: center;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.1);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Menu Section */
#menu {
    background: url('images/newbackgroundImgMenu.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: white;
}

.menu-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.menu-column {
    width: 300px;
    margin: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.8);
}

h3 {
    font-size: 1.5rem;
    color: #333;
    margin-top: 1.5rem;
}

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

li {
    font-size: 1rem;
    color: #666;
    margin: 0.5rem 0;
}

/* Order Form */
.order-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.order-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* Consistent Input Styles */
input, select, textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    margin: 5px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.order-form button {
    background: #2a628f;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero h3 {
        font-size: 1.2rem;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .menu-container {
        flex-direction: column;
        align-items: center;
    }

    .menu-column {
        width: 90%;
        margin: 1rem 0;
    }

    .order-form {
        padding: 1rem;
    }

    .order-form input,
    .order-form select,
    .order-form textarea {
        padding: 1rem;
    }

    #menu {
        background-image: url('images/mobilebackgroundImg.jpg');
        background-size: cover;
    }

    header nav a {
        font-size: 1.5rem;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8); /* Stronger contrast for mobile */
    }
}

@media (max-width: 480px) {
    header {
        background: url('images/seaMobileBackgroundForHomePg.jpg') no-repeat center center;
        background-size: cover;
    }

    header nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    header nav a {
        font-size: 1.1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero h3 {
        font-size: 1rem;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }

    .menu-container {
        flex-direction: column;
    }
}

/* Footer Styles */
footer {
    background: #3675a8;
    color: white;
    text-align: center;
    padding: 1rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 1rem;
    margin-top: 1.5rem;
}

footer p {
    margin: 0;
}