/* styles.css */

body {
    font-family: 'Lora', serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fefed8; /* Light green background */
    /*background-image: url('algae.jpg'); /* Add your moss/leafy background image */
    /*background-repeat: repeat; /* Repeat the background image */
}

header {
    background-color: #3b6d3e; /* Dark green header */
    color: #fff;
    text-align: center;
    padding: 5px 0;
}

footer {
    background-color: #3b6d3e;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

main {
    padding: 40px;
    text-align: center;
    flex: 1;
}

/* Style for the figure */
.image-container {
    display: inline-block;
    position: relative;
    top : 20px;
}

/* Style for the image within the figure */
.image1 {
    width: 200px; /* Adjust the width */
    height: auto; /* Keep aspect ratio */
    /* Avoid absolute positioning for better flow */
}

/* Style for the caption */
figcaption {
    font-style: italic;
    color: #555;
    margin-top: 10px;
}

/* Adjust button container */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    /* Add a fixed height to create space for the buttons */
    height: 20px; /* Adjust as needed */
    margin-top: 0px; /* Adjust margin as needed */
}

.button {
    display: inline-block;
    padding: 20px 30px;
    background-color: hsl(115, 30%, 39%); /* Dark green button */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.1s ease;
}

/* Ensure the anchor occupies the size of the button */
.button {
    display: inline-block;
}

.button:hover {
    background-color: #3b6d3e; /* Button hover color */
}

/* Adjust footer position */
footer {
    text-align: center;
    background-color: #3b6d3e;
    color: #fff;
    padding: 10px 0;
    /* Remove absolute positioning */
    /* position: absolute; */
    /* bottom: 0; */
    width: 100%;
    /* Add some top margin instead */
    margin-top: 30px;
}

/* Style for the button with a picture */
.button-picture {
    position: fixed;
    top: 15px;
    left: 15px;
    display: inline-block;
    padding: 10px 10px;
    background-image: url('main_image/bacteria.png'); /* Replace with your image path */
    background-size: cover;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: opacity 0.3s ease;
    /*box-shadow: 0 0 10px rgba(207, 231, 165, 0.436); /* Subtle glow effect */
}

/* Hover styles for button with a picture */
.button-picture:hover {
    opacity: 0.8;
}

.figure-container {
    display: flex;
    justify-content: center; /* Center horizontally */
}

.rescaleSAT img {
    margin-top: -40px;
    margin-right: -40px;
    width: 500px; /* Adjust as needed */
    height: auto; /* Keeps aspect ratio */
}

.rescaleCA img {
    margin-top: 40px;
    width: 240px; /* Adjust as needed */
    height: auto; /* Keeps aspect ratio */
}

.rescale2 img {
    width: 400px; /* Adjust as needed */
    height: auto; /* Keeps aspect ratio */
}


figure {
    margin-right: 20px; /* Optional margin between figures */
}

.rda {
    width: 50%; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
}

.side-band {
    position: fixed;
    top: 0;
    right: 0;
    width: 200px; /* Adjust the width as needed */
    height: 100%; /* Cover the entire height of the viewport */
    background-color: #f0f0f0; /* Background color of the side band */
    padding: 20px;
}

/* CSS styles to push content away from side band */
.content {
    margin-right: 220px; /* Adjust based on side band width */
}

/* IMAGE DISPLAY in Gallery */

.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    padding: 20px;
}

.image-box img {
    width: 100%;
    height: 100%; /* Ensure that the image takes up the full height of its container */
    display: block;
    object-fit: cover; /* Ensure the image covers the entire container while maintaining aspect ratio */
}

.landscape img {
    max-width: 100%; /* Ensure landscape images don't exceed their container width */
    max-height: 100%; /* Ensure landscape images don't exceed their container height */
}

.image-box {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
    flex: 1 1 auto; /* Let the boxes grow equally */
    max-width: 500px; /* Set a maximum width for the image boxes (twice as big) */
    max-height: 475px; /* Set a maximum height for the image boxes */
}

.portrait img {
    max-width: 100%; /* Ensure portrait images don't exceed their container width */
    max-height: 100%; /* Ensure portrait images don't exceed their container height */
}

/* Paragraph in Projects*/

.centered-justified-paragraph {
    text-align: justify;
    font-family: href="https://fonts.googleapis.com/css2?family=Lora:wght@400;700&display=swap" rel="stylesheet";
    font-size: 16px;
    line-height: 1.5;
    max-width: 800px; /* Adjust the max-width as needed */
    margin: 0 auto; /* Center the paragraph */
}

/* Radio display*/

/* CSS styles for the radio image */
.radio-image {
    display: block;
    margin: 0 auto; /* Center the image horizontally */
    margin-top: 0px; /* Adjust the top margin */
    width: 100%; /* Set the width to 100% */
    max-width: 600px; /* Set a maximum width */
    height: auto; /* Maintain aspect ratio */
}

.control-button:hover {
    background-color: #3b6d3e;
}

.control-button {
    display: inline-block;
    padding: 10px 30px;
    background-color: hsl(115, 30%, 39%); /* Dark green button */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.1s ease;
    border: none;
    font-family:  'Lora', serif;
}

