/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    background-color: #c1bcad;
    color: #473b2e;
    background-image: url('https://www.transparenttextures.com/patterns/concrete-wall.png'); /* Free subtle texture */
    background-size: 200px 200px; /* Controls texture scale */
}

/* Fonts */
.libre-baskerville-regular {
    font-family: "Libre Baskerville", serif;
    font-weight: 400;
}

.libre-baskerville-bold {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
}

.libre-baskerville-regular-italic {
    font-family: "Libre Baskerville", serif;
    font-weight: 400;
    font-style: italic;
}

/* Thumbnail Gallery */
.image-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px auto;
}

.thumbnail {
    background-color: #ded9ca;
    border: 1px solid #868162;
    border-radius: 3px;
    padding: 1px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.thumbnail img {
    width: 25px;
    height: 25px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* Lightbox */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed; /* Ensure it stays above all content */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it stays above other elements */
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    z-index: 1010; /* Ensure it’s above the background */
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* Card Container */
.card {
    display: flex;
    flex-wrap: wrap; /* Allows content to wrap if needed */
    justify-content: flex-start; /* Align icon and content to the left */
    align-items: center; /* Vertically center-align icon and text */
    background: linear-gradient(to bottom, #ded9ca, #e7e2d4);
    border: 1px solid #868162;
    border-radius: 8px;
    padding: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    margin: 10px auto; /* Centers the card horizontally */
}

/* Icon */
.icon {
    width: 100px; /* Adjust size as needed */
    height: 100px;
    border-radius: 50%; /* Makes it circular */
    object-fit: cover; /* Ensures the image scales properly */
    margin-right: 15px; /* Adds spacing if it's next to text */
    padding: 3px; /* Adds space between image and border */
    background-color: #ded9ca; /* Background color inside the circle */
    border: 1px solid #868162; /* Subtle border color */
    flex-shrink: 0; /* Prevents shrinking if used in a flex container */
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column; /* Stack the header and blurb */
    justify-content: flex-start;
    flex: 1; /* Let the content fill available space */
    min-width: 0; /* Prevent overflow issues */
}

.header {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #55513b;
    text-align: left;
    position: relative;
    margin-bottom: 10px;
    padding-bottom: 3px;
    max-width: fit-content;

    /* Subtle Drop Shadow */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.header::after {
    content: "";
    display: block;
    width: 140%;
    height: 1px;
    background: linear-gradient(to right, #868162, #55513b); /* Subtle gradient */
    position: absolute;
    bottom: 0;
    left: 0;
}

.blurb {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.9rem;
    color: #473b2e;
    line-height: 1.4;
}

/* Links */
.links {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    width: 100%; /* Ensure it spans the card width */
    margin-top: 10px; /* Consistent spacing */
    position: relative; /* Isolate it from floating or overlapping */
    clear: both; /* Ensure it clears the expandable content */
}

.link-button {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    font-weight: bold;
    font-style: italic;
    color: #868162;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.3s ease, font-style 0.3s ease, transform 0.3s ease;
}

.link-button:hover {
    text-decoration: none;
    font-style: normal;
    color: #55513b;
    transform: translateY(-2px);
}

.link-button.active {
    text-decoration: none;
    font-style: normal;
    color: #55513b;
    transform: translateY(-2px);
}

/* Expandable Content */
.expandable-content {
    width: 90%; /* Matches the card’s width */
    max-width: 500px; /* Keep consistent with the card's max-width */
    margin: 0 auto; /* Center it horizontally */
    box-sizing: border-box; /* Include padding/border in width */
}


.expandable {
    display: none; /* Hidden by default */
    padding: 10px 15px; /* Same padding as the card */
    background: #e7e2d4; /* Match the card background */
    border: 1px solid #868162;
    border-radius: 8px; /* Match the card border radius */
    color: #473b2e;
    width: 100%; /* Ensure it spans the full width of the parent */
    box-sizing: border-box; /* Include padding in width calculations */
}

.expandable.active {
    display: block; /* Show when active */
    max-height: 200px; /* Smooth transition effect */
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.expandable a {
    color: #55513b; /* Replace with your desired color */
    text-decoration: none; /* Optional: remove underline */
}

.expandable a:hover {
    color: #868162; /* Replace with a hover color for extra flair */
    text-decoration: none; /* Optional: add underline on hover */
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-family: 'Libre Baskerville', serif;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background-color: #ded9ca;
    color: #55513b;
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid #868162;
    border-radius: 4px;
    padding: 8px 10px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Center Content */
.center-content {
    text-align: center;
    margin: 0 auto;
}

.icon-name{
font-size: 2rem;
color: #fff;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .header {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .header::after {
        width: 110%;
        left: -5%;
    }

    .blurb {
        font-size: 0.8rem;
    }

    .links button {
        font-size: 0.9rem;
    }
}