/* Define the color palette */
:root {
    --sepia-background: #f2cba5;
    --dark-text: #2b2b2b;
    --light-text: #ffffff;
    --footer-background: #2b2b2b;
    --header-background: #b89b7f;
    --link-hover: #dadada;
    --side-background: rgba(0, 0, 0, 0.2);
    --alt-background: #d1ccc7;
}

/* Apply the color palette */
body {
    font-family: "Times New Roman", Times, serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, var(--side-background), var(--sepia-background), var(--side-background));
    color: var(--dark-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    max-width: 800px;
    margin: auto;
    background: var(--sepia-background);
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1;
}

/* Header styles */
header {
    background: var(--header-background);
    color: var(--dark-text);
    padding: 1rem 0;
    text-align: center;
    font-family: "Georgia", serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Align buttons to the same height as the header text */
}

/* Style for header buttons */
.header-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    background-color: var(--header-background);
    color: var(--dark-text);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.header-button:hover {
    background-color: var(--link-hover);
}

header nav {
    text-align: right;
    /* Align buttons to the right */
    margin-top: 1rem;
}

/* About section styles */
#about a {
    margin-bottom: 0;
    background: var(--header-background);
    color: var(--dark-text);
}

#about img {
    height: auto;
    max-width: 33%;
    /* Resize the image */
    display: block;
    margin-right: 1rem;
    margin-left: 0;
    margin-bottom: 0;
    float: left;
    border-radius: 10%;
    /* Align image to the left */
    margin-right: 1rem;
    /* Add spacing between image and text */
}

#about a:hover {
    background: var(--link-hover);
}

/* Projects section styles */
#projects {
    display: flex;
    justify-content: space-between;
    margin-top: 0rem;
    padding: 0rem;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, .1);
    /* Drop shadow on top edge */
    background-color: var(--sepia-background);
}

#projects .column {
    flex: 1;
    margin: 0 0rem;
    padding: 0rem;
    background: var(--sepia-background);
    border-radius: 2px;
    transition: box-shadow 0.3s ease;
    text-align: center;
    box-shadow: -2px 0px 2px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    /* Remove underline */
    color: inherit;
    /* Inherit text color */
    display: block;
    /* Ensure the entire column is clickable */
}

/* Limit the width of images in the project columns */
#projects .column img {
    max-width: auto;
    height: 150px;
}

#projects .column p {
    padding: 1rem;
}

#projects .column:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    /* Drop shadow on hover */
}

#projects .column h3 {
    margin-bottom: 1rem;
}

/* Megaphone icon styles */
.megaphone-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 150px;
    /* Adjust size as needed */
    height: auto;
    z-index: 1000;
}

/* Pop-up styles */
.popup {
    display: none;
    /* Hidden by default */
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: var(--alt-background);
    color: var(--dark-text);
    border: 1px solid var(--dark-text);
    border-radius: 8px;
    padding: 1.5rem;
    width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.popup a {
    display: block;
    margin: 0.5rem 0;
    color: var(--dark-text);
    text-decoration: none;
}

.popup a:hover {
    text-decoration: underline;
}

/* Footer styles */
footer {
    background: var(--footer-background);
    color: var(--light-text);
    position: relative;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
}

/* Story description styles */
#story-description p {
    font-style: italic;
    /* Italicize the story description text */
}

/* Add grid layout for the gallery */
#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Responsive grid */
    gap: 1.5rem;
    /* Spacing between grid items */
    padding: 1rem;
}

/* Limit the width of images in the grid */
#gallery .story-icon img {
    max-width: 100%;
    /* Ensure images do not exceed their container */
    height: 200px;
    /* Maintain aspect ratio */
    border-radius: 8px;
    /* Optional: Add rounded corners */
}

/* Style each story card in the grid */
#gallery .story-icon {
    background: white;
    /* Card background */
    border: 1px solid #ddd;
    /* Light border */
    border-radius: 8px;
    /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    overflow: hidden;
    /* Clip content to rounded corners */
    text-align: center;
    /* Center content */
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    /* Smooth hover effect */
    cursor: pointer;
    /* Indicate clickable cards */
}

#gallery .story-icon:hover {
    transform: translateY(-5px);
    /* Lift card on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    /* Stronger shadow on hover */
}

#gallery .story-icon h3 {
    margin: 0.5rem 0;
    /* Space around headline */
    font-size: 1.2rem;
    /* Adjust font size */
}

#gallery .story-icon p {
    margin: 0.5rem;
    /* Space around text */
    color: #555;
    /* Subtle text color */
    font-size: 0.9rem;
    /* Adjust font size */
}

h1 {
    padding-left: 30px;
}

/* Ark Valley logo styles */
.ark-valley-logo {
    max-width: 100px;
    /* Limit the size of the Ark Valley logo */
    height: auto;
    float: left;
    /* Wrap the logo with the body text */
    margin: 0 1rem 1rem 0;
    /* Add spacing around the logo */
}

#story-image {
    max-width: auto;
    /* Ensure the image does not exceed the container width */
    max-height: 400px;
    /* Limit the height of the story image */
    object-fit: scale-down;
    /* Maintain aspect ratio and fit within the dimensions */
    display: block;
    margin: 0 0;
    /* Center the image */
}