/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

header {
    text-align: center;
    background-color: #111;
    color: white;
    padding: 0.5em;
    /* width: 100%;   solve the issue of the header part missing on the right, but then it doesn't appear centered on the mobile */
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em;
}

.photo-entry {
    width: 80%;
    margin-bottom: 2em;
    padding: 1.5em;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

.photo-entry img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.more-content {
    display: none;
    margin-top: 1em;
    text-align: left;
}

.more-content img {
    width: 48%;
    margin-right: 2%;
    margin-bottom: 1em;
}

.more-btn {
    margin-top: 1em;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.more-btn:hover {
    background-color: #555;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 1em;
    background-color: #111;
    color: white;
    /* position: relative;*/
    bottom: 0;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .photo-entry {
        width: 95%;
    }
    
    .more-content img {
        width: 100%;
    }
}

/* Modal (Pop-up) Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);  /* Semi-transparent background */
    overflow: auto;  /* Allows scrolling for large images */
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;   /* Maximum width is 90% of the viewport */
    max-height: 90%;  /* Maximum height is 90% of the viewport */
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.technical-table {
    width: 50%;                /* Full width of the container */
    border-collapse: collapse; /* Remove spacing between cells */
    margin-top: 10px;           /* Add some space above the table */
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.technical-table thead {
    background-color: #444;    /* Dark gray background for the header */
    color: white;              /* White text for the header */
}

.technical-table th, 
.technical-table td {
    padding: 8px 12px;         /* Add some padding for better readability */
    text-align: left;          /* Left-align text */
    border: 1px solid #ddd;    /* Add a light border around cells */
}


ul {
    margin: 4px 0; /* Reduce space above/below the list */
    padding-left: 16px; /* Adjust bullet indentation */
}

ul li {
    margin-bottom: 2px; /* Reduce spacing between list items */
}

ol {
    margin: 4px 0; /* Reduce space above/below the list */
    padding-left: 16px; /* Adjust bullet indentation */
}

ol li {
    margin-bottom: 2px; /* Reduce spacing between list items */
}


.technical-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9; /* Light gray background for alternate rows */
}

.technical-table tbody tr:hover {
    background-color: #f1f1f1; /* Highlight row on hover */
}


/* more css, maybe double */

.more-section {
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.more-item {
    display: flex;               /* Flexible layout for image and description */
    flex-wrap: wrap;             /* Allow items to wrap on smaller screens */
    margin-bottom: 20px;         /* Space between items */
    border: 1px solid #ddd;      /* Optional border for each item */
    padding: 10px;
    border-radius: 8px;          /* Rounded corners for the item container */
    background-color: #f9f9f9;   /* Light background color */
}

.more-photo {
    max-width: 100%;             /* Make sure the image scales properly */
    height: auto;                /* Maintain aspect ratio */
    flex: 1 1 55%;               /* Allow the image to take up 40% of the container */
    margin-right: 15px;          /* Space between image and text */
    border-radius: 8px;          /* Rounded corners for the image */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.more-description {
    flex: 1 1 40%;               /* Allow the description to take up remaining space */
}

.more-description p {
    margin: 0 0 10px;            /* Add spacing after the paragraph */
    font-size: 14px;
    line-height: 1.6;            /* Improve readability */
}

.technical-table {
    width: 100%;                /* Full width of the container */
    border-collapse: collapse; /* Remove spacing between cells */
    font-size: 14px;
    margin-top: 10px;           /* Add some space above the table */
    table-layout: fixed;        /* Ensures uniform column widths */
}

.technical-table thead {
    background-color: #444;    /* Dark gray background for the header */
    color: white;              /* White text for the header */
}

.technical-table th, 
.technical-table td {
    padding: 8px 12px;         /* Add some padding for better readability */
    text-align: left;          /* Left-align text */
    border: 1px solid #ddd;    /* Add a light border around cells */
}

.technical-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9; /* Light gray background for alternate rows */
}

.technical-table tbody tr:hover {
    background-color: #f1f1f1; /* Highlight row on hover */
}

@media (max-width: 768px) {
    .more-item {
        flex-direction: column; /* Stack items vertically on smaller screens */
        align-items: center;   /* Center the items */
    }

    .more-photo {
        margin-right: 0;       /* Remove margin on small screens */
        margin-bottom: 15px;   /* Add spacing below the image */
    }

    .more-description {
        text-align: center;    /* Center text for better readability on small screens */
    }
}



/*added last, is it added, or does it replace the previous definition */
.photo-entry {
    max-width: 1200px; /* Adjust as needed */
    margin: 0 auto; /* Centers the entire section */
    text-align: center; /* Centers the image */
}

.photo {
    display: block; /* Ensures no unwanted inline spacing */
    max-width: 100%; /* Makes the image responsive */
    height: auto; /* Maintains aspect ratio */
    margin: 0 auto 10px auto; /* Centers the image and adds spacing below */
}

p {
    margin: 10px 0;
    text-align: justify;
}

.date-img {
    text-align: center;  
}

/* cool for debugging, removes all margins and paddings */
/* in my case the there was an ugly space on the right of the header section, the box-sizing fixed it */
* {
    /* margin: 0; */
    /* padding: 0; */
    box-sizing: border-box; /* Ensures padding doesn’t affect width */
}


