/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif; /* Modern font */
    margin: 0;
    padding: 0;
    background-color: #6A5ACD; /* Navy Blue */
    color: #003366; /* Light text */
    display: flex;
    justify-content: flex-start; /* Align items to top to prevent overflow */
    align-items: center;
    height: 100vh;
    overflow-y: auto; /* Allow scrolling if necessary */
    flex-direction: column;
    animation: fadeInBackground 2s ease-in-out; /* Fade-in background effect */
    padding-top: 60px; /* Prevent content from going below the menu */
}

/* Menu Styles */
.menu {
    background-color: #222;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: fixed; /* Fix the menu at the top */
    top: 0;
    left: 0;
    z-index: 100; /* Ensure menu stays on top */
    width: 100%;
    /* Ensure menu remains visible and does not get pushed down */
}

.menu-item {
    color: #6A5ACD;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
    margin: 0 10px;
}

.menu-item:hover {
    background-color: #B8860B;
    transform: scale(1.1); /* Enlarge on hover */
    cursor: pointer;
}

/* Content Styles */
.content {
    padding: 40px;
    text-align: center;
    width: 90%;
    max-width: 1000px;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInContent 1.5s ease-in-out; /* Fade-in animation for content */
    margin-top: 60px; /* Space for the fixed menu */
}

/* Fade-in content animation */
@keyframes fadeInContent {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Headings and Text Styles */
h1 {
    font-size: 3em;
    color: #f8f9fa;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif; /* Bold and modern font for headings */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* Body Text */
p {
    font-size: 1.2em;
    color: #dcdcdc;
    line-height: 1.6;
}

/* Button Styles */
.button {
    padding: 12px 25px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Media Queries for Responsiveness */

/* Small devices (phones in portrait mode) */
@media (max-width: 576px) {
    .menu-item {
        padding: 12px 15px;
        font-size: 14px;
    }

    .content {
        padding: 20px;
        width: 90%;
        max-width: 100%;
    }

    h1 {
        font-size: 2.5em;
    }
}

/* Medium devices (tablets and phones in landscape mode) */
@media (max-width: 768px) {
    .menu-item {
        padding: 12px 18px;
        font-size: 15px;
    }

    .content {
        padding: 30px;
        width: 85%;
    }

    h1 {
        font-size: 2.8em;
    }
}

/* Large devices (desktops) */
@media (min-width: 1024px) {
    .menu-item {
        padding: 16px 25px;
        font-size: 18px;
    }

    .content {
        padding: 40px;
    }

    h1 {
        font-size: 3.5em;
    }
}

/* Responsive image styling */
.images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.responsive-img {
    width: 100%;
    max-width: 500px;  /* Max width of image to prevent too large sizes */
    height: auto;      /* Maintains the aspect ratio */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.apartment-btn {
    padding: 10px 20px;
    margin: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.apartment-btn:hover {
    background-color: #0056b3;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1060;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 5px;
    right: 15px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Modal Heading Styles */
.modal-content h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

/* Modal Paragraph Styles */
.modal-content p {
    font-size: 16px;
    line-height: 1.5;
    color: #666;
}

.modal-content p br {
    margin-bottom: 10px; /* Add space for line breaks */
}

/* Style for the image gallery container */
.image-gallery {
    display: flex;
    flex-direction: column; /* Stack images vertically */
    align-items: center; /* Center the images horizontally */
    gap: 20px; /* Add space between the images */
    padding: 20px; /* Add some padding around the container */
}

/* Style for the individual images */
.image-gallery img {
    width: 100%; /* Make images responsive to the container width */
    max-width: 600px; /* Set a maximum width to prevent them from getting too large */
    border-radius: 8px; /* Optional: Round the corners of the images */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
}

/* Optional: Hover effect to make the images stand out */
.image-gallery img:hover {
    transform: scale(1.05); /* Slightly scale the image on hover */
    transition: transform 0.3s ease-in-out; /* Smooth transition effect */
}

/* Footer Container Styling */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Styling */
footer {
    background-color: #333;  /* Dark background */
    color: #fff;  /* White text */
    padding: 10px 0;  /* Vertical padding */
    position: fixed;  /* Position at the bottom */
    bottom: 0;
    left: 0;
    width: 100%;  /* Full width */
    text-align: center;  /* Centered text */
    font-size: 12px;  /* Smaller text size */
    opacity: 0;  /* Start with invisible */
    animation: fadeIn 2s ease-out forwards;  /* Fade-in animation */
}

/* Fade-in Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;  /* Invisible at the start */
        transform: translateY(20px);  /* Slightly lower position */
    }
    100% {
        opacity: 1;  /* Fully visible */
        transform: translateY(0);  /* Normal position */
    }
}

/* Footer Links Styling */
footer a {
    color: #fff;
    text-decoration: none;
    padding: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* Optional: Add some space to the bottom of the page content */
body {
    padding-bottom: 60px; /* Height of the footer */
}
