body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: linear-gradient(90deg, #001a33, #003366);
    color: #f1c40f;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0;
    text-align: center;
}

.logo img {
    max-width: 200px;
    height: auto;
    margin-right: 1rem;
}

header h1 {
    font-size: 2rem;
    flex-grow: 1;
}

nav {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #f1c40f;
    text-decoration: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: #f1c40f;
    color: #001a33;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #001a33;
}

main {
    padding: 2rem;
    flex: 1;
    padding-bottom: 100px; /* Add padding to the bottom to create space for the footer */
}

.content-box {
    margin: 0 auto;
    max-width: 800px;
    padding: 10px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.content-box:hover {
    box-shadow: 0 0 15px #001a33; /* Shadow color matches the header */
}

.gallery-box {
    margin: 20px auto;
    max-width: 1200px;
    padding: 10px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.gallery a {
    flex: 1 1 calc(33.333% - 20px);
    margin: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
}

footer {
    background: linear-gradient(90deg, #001a33, #003366); /* Gradient from dark navy blue to a slightly lighter blue */
    color: #f1c40f; /* Gold text color */
    text-align: center;
    padding: 1rem 0;
    position: relative;
    width: 100%;
    bottom: 0;
}

footer p {
    margin: 0;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    main {
        padding: 1rem;
    }

    .gallery a {
        flex: 1 1 calc(50% - 20px); /* Two columns for smaller screens */
    }
}

@media (max-width: 480px) {
    .gallery a {
        flex: 1 1 100%; /* Single column for very small screens */
    }
}
