/* General body and header styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color: #003366; /* Dark blue */
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Allows the content to wrap on smaller screens */
}

header h1 {
    color: white;
    margin: 0;
    font-size: 1.7em;
    flex: 2; /* Ensures the heading takes available space */
}

.logo {
    flex: 0 1 auto; /* Allows logos to shrink */
}

.logo img {
    height: auto;
    max-height: 80px; /* Adjust the max height according to your preference */
}

nav {
    background-color: #292727;
    color: white;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Allows the content to wrap on smaller screens */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Allows the items to wrap on smaller screens */
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    line-height: 40px; /* Ensures vertical alignment within the nav bar */
}

main {
    padding: 20px;
}

.intro {
    background-color: #e9ecef;
    padding: 20px;
    margin-bottom: 20px;
}

.rectangle {
    background-color: #f8f9fa;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; /* Center text horizontally */
}

.red-border {
    border: 2px solid red;
    width: 100%;
    margin: 0 auto;
    text-align: center; /* Center text horizontally */
    font-size: 1.2em;
    padding: 2px;
}

.partition {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    text-align: center; /* Center text horizontally */
}

.partition-box {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 10px;
    flex: 1 1 45%; /* Allows the boxes to be responsive */
    text-align: center; /* Center text horizontally */
}

.partition-box img {
    width: 20%;
    height: 20%;
    display: block;
    margin: 0 auto 10px auto;
}

/* Styles for button row and buttons */
/* Styles for button group and buttons */
/* Styles for button group and buttons */
/* Updated .button-row styles */
/* Flexbox for buttons */
/* Parent container: Ensure both boxes are aligned on the same line */
.button-row {
    display: flex;
    justify-content: space-between; /* Space between annotation and analysis boxes */
    align-items: flex-start;
    flex-wrap: nowrap; /* Prevent wrapping */
}

/* Annotations and Analysis boxes */
.annotation-box {
    flex: 0 1 60%; /* Increase space for annotations (60% width) */
    margin: 10px;
    text-align: center; /* Center text horizontally */
}

.analysis-box {
    flex: 0 1 35%; /* Decrease space for analysis (35% width) */
    margin: 10px;
    text-align: center; /* Center text horizontally */
}

/* Flexbox for buttons inside each box */
.button-group {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping of buttons within the box */
    justify-content: center;
}

/* Styling for buttons */
.button-group button {
    width: 100px; /* Button width */
    height: 100px; /* Button height */
    margin: 5px;
    display: flex;
    flex-direction: column; /* Stack image and text vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0px;
    background-color: #fff; /* Optional: Add background color */
    border: 1px solid #ddd; /* Optional: Add border */
    text-decoration: none;
}

.button-group img {
    max-width: 100px; /* Reduced size for image */
    max-height: 100px;
    margin-bottom: 5px; /* Adds space between the image and the text */
}

.button-group p {
    margin: 0;
    padding: 0;
    font-size: 12px; /* Adjust font size */
    color: #333;
    text-align: center;
    width: 100%;
    font-weight: bold;
    text-decoration: 
}




.labels {
    display: flex;
    justify-content: space-between;
    padding: 5px;
    text-align: center; /* Center text horizontally */
}

.label {
    text-align: center; /* Center text horizontally */
    flex: 1;
}

.annotation {
    padding-right: 10px;
}

.analysis {
    padding-left: 10px;
}

/* Info section styles */
.info-section {
    padding: 20px;
    text-align: center; /* Center text horizontally */
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.rectangle.red-border.big {
    width: 100%;
    border: 2px solid red;
    margin: 10px 0; /* Margin to add spacing between boxes */
    text-align: center; /* Center text horizontally */
}

.rectangle.red-border.small {
    width: 100%;
    border: 2px solid rgb(8, 8, 8);
    margin: 10px 0; /* Margin to add spacing between boxes */
    text-align: center; /* Center text horizontally */
}

/* Additional styles for Community Curation page */
.curation {
    padding: 20px;
    background-color: #f9f9f9;
    margin: 20px 0;
    border: 1px solid #ddd;
    text-align: center; /* Center text horizontally */
}

.submission-form {
    max-width: 100%;
    margin: 0 auto;
}

.submission-form label {
    display: block;
    margin: 10px 0 5px;
}

.submission-form input, 
.submission-form select, 
.submission-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.submission-form input[type="submit"] {
    background-color: #003366;
    color: white;
    border: none;
    cursor: pointer;
    padding: 15px;
    font-size: 16px;
    border-radius: 5px;
}

.submission-form input[type="submit"]:hover {
    background-color: #002244;
}

.contact-content {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    margin: 20px 0;
}

.contact-person {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.contact-photo {
    width: 100px; /* Adjust the size as needed */
    height: 100px; /* Ensure it maintains a square ratio */
    margin-right: 20px; /* Space between the photo and the info */
    border-radius: 50%; /* Makes the image round */
}

.contact-info {
    flex: 1; /* Allows the contact info to take up the remaining space */
    text-align: left; /* Align text to the left */
}

.contact-person h2 {
    margin-top: 0;
}

.contact-person p {
    margin: 5px 0;
}

.footer {
    background-color: #003366;
    color: #fff;
    padding: 10px;
    text-align: center;
    width: 100%;
    position: relative;
    bottom: 0;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .button-group button {
        width: 80px; /* Adjusted width for smaller screens */
        height: 80px; /* Adjusted height for smaller screens */
    }

    .partition-box {
        padding: 20px;
    }

    .rectangle.red-border.big,
    .rectangle.red-border.small {
        font-size: 1em;
    }
}

@media (max-width: 576px) {
    .header, .nav ul, .button-row {
        flex-direction: column;
        align-items: center;
    }

    .nav ul li {
        margin: 5px 0;
    }

    .button-group button {
        width: 60px; /* Further adjusted width for smaller screens */
        height: 60px; /* Further adjusted height for smaller screens */
    }

    .partition-box {
        padding: 10px;
    }
}
