/* Global Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100%;
}
/* */

/* Camera Image Container */
.image-container {
    display: flex;
    justify-content: center;
    max-width: 100%;
    flex-wrap: wrap;
}

.image-container img {
    max-width: 33%;
    max-height: auto;
    object-fit: cover;
    cursor: pointer;
}

@media (max-width: 768px) {
    .image-container {
        flex-direction: column;
        align-items: center;
    }

    .image-container img {
        max-width: 100%;
        margin-bottom: 1px;
    }
}


/* */

/* Wrapper styling */
.main-wrapper {
    margin-left: 20%;
    margin-right: 20%;
    padding: 0; /* Ensures no extra padding initially */
    box-sizing: border-box; /* Ensures width/margin/padding is calculated correctly */
    flex: 1;
}

/* Main content styling (optional) */
main {
    padding: 20px; /* Add internal padding to the content area */
    background-color: #fff; /* Example background color */
    border-radius: 10px; /* Optional: Add rounded corners for better aesthetics */
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .main-wrapper {
        margin-left: 5px;
        margin-right: 5px;
    }
}
/* */

/* Header Wrapper (Full Width Background with Centered Content) */
.header-wrapper {
    background-color: #112855; /* Full width background color */
    width: 100%; /* Ensures the wrapper takes up the full width of the viewport */
    display: flex; /* Use flexbox to center content */
    justify-content: center; /* Horizontally center the content */
    padding: 0; /* Remove any extra padding around the wrapper */
    position: relative;
}

/* Header (Centered Content with Fixed Max Width) */
.header {
    color: white;
    display: flex;
    flex-direction: column; /* Stack logo and navigation vertically */
    justify-content: center;
    padding: 1rem 2rem; /* Adds some space around the content */
    position: relative;
    max-width: 1200px; /* Constrain the width of the header content */
    width: 100%; /* Allow the header to take up full width within its container */
}

.header img {
    margin-left: 70px;
    margin-bottom: 1rem; /* Adds space between the logo and the navigation */
    width: 300px; /* Example logo size */
    height: auto;
}
/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .header img {
        margin-left: 0px;
        margin-right: 0px;
    }
}
/* General Navigation Bar Styles */
nav {
    margin: 10px auto;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    position: relative;
    max-width: 1200px; /* Ensure the nav also matches the header width */
}

/* Navigation Links */
nav ul {
    display: flex; /* Display links in a horizontal line by default */
    padding: 0;
    margin: 0;
    list-style: none;
}

nav ul li {
    margin-right: 1rem;
}

/* General Style for Nav Links */
nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    transition: color 0.3s, transform 0.3s, box-shadow 0.3s, background-color 0.3s, text-decoration-color 0.3s, text-underline-offset 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

/* Hover Effect for Nav Links */
nav ul li a:hover {
    color: #ecf0f1;
    transform: translateY(-3px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: #ecf0f1;
}

/* Dropdown Menu */
nav .dropdown {
    position: relative;
}

nav .dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #2c3e50;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border-radius: 4px;
}

nav .dropdown-menu li {
    padding: 1rem 2rem;
}

nav .dropdown-menu a {
    padding: 0.5rem 1rem;
    display: block;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

nav .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Show dropdown on hover */
nav .dropdown:hover .dropdown-menu {
    display: block;
}

/* Menu Toggle Button (Mobile) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background-color:#f9f9f9;
}

/* Mobile Dropdown Style */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #2c3e50;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: auto;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        z-index: 9999;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    nav ul li {
        text-align: center;
        padding: 1rem 0;
    }

    nav .dropdown-menu {
        position: static;
        box-shadow: none;
        display: block;
        width: 100%;
    }
}

/* */

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #2c3e50;
    color: white;
    margin-top: 2rem;
    max-width: 100%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    
}

/* */

/* Icon box styling */
.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    max-width: 220px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.icon-box img {
    width: 618x;
    height: 240px; /* Fix the height typo */
    border-radius: 8px; /* Optional: Rounded corners for the images */
    object-fit: cover; /* Ensures the image fits well within the box */
    margin-bottom: 0.5rem;
}

.icon-box span {
    font-size: 1rem;
    color: #34495e;
    font-weight: bold;
    max-width: 100%;
}

/* Hover effect for icon boxes */
.icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}
/* */

/* Modal Overlay Style */
.modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.7); 
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

/* Modal Content Style */
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center; 
    position: relative;
}

.modal-content input {
    max-width: 80%;
}

/* Close Button Style */
.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

/* Close button hover effect */
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Optional: Style for the form inputs */
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Button Style */
button.primary-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button.primary-btn:hover {
    background-color: #45a049;
}
/* */

/* Images on front page */
.icon-div {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap; /* Allows cards to wrap on smaller screens */
    gap: 20px; /* Spacing between data cards */
    padding: 10px; /* Optional: Add some padding around the container */
    box-sizing: border-box; /* Ensures padding is included in width */
}

/* Individual Data Card */
.data-card {
    flex: 1 1 calc(25% - 20px); /* Adjust to 25% width minus gap */
    max-width: 300px; /* Optional: Set a max width for larger screens */
    min-width: 150px; /* Optional: Prevent cards from shrinking too small */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #ccc; /* Optional: Add a border for card outline */
    border-radius: 10px; /* Optional: Add rounded corners */
    padding: 15px;
    background-color: #f9f9f9; /* Optional: Background color for cards */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
    transition: transform 0.2s, box-shadow 0.2s; /* Add hover effects */
}

/* Card Hover Effects */
.data-card:hover {
    transform: translateY(-5px); /* Slightly lifts the card on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Enhances shadow on hover */
}

/* Images in the Cards */
.data-card img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px; /* Space between the image and text */
}

/* Text in the Cards */
.data-card span {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}
/* */