@import url('https://fonts.googleapis.com/css2?family=Goudy+Old+Style&family=EB+Garamond&display=swap');

body {
    font-family: 'Goudy Old Style', 'EB Garamond', serif; /* Renaissance-style fonts */
    color: black; /* Set primary font color to black */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: #fff; /* White background */
    position: relative;
}

body::after {
    content: "";
    background: url('doraemon.jpg.jpg') center center / cover no-repeat;
    opacity: 0.2; /* Adjust the opacity to make it lightly visible */
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: fixed;
    z-index: -1;
}

.header-content {
    text-align: center;
    max-width: 800px; /* Adjust the width as needed */
    margin: 0 auto; /* Center the header content */
}

.header-text h1:last-of-type {
    white-space: nowrap; /* Prevent the text from wrapping */
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icons a {
    color: #000; /* Black font color for social media icons */
    text-decoration: none;
    font-size: 3em; /* Double the size of the current icons */
}

header, nav {
    background: #EEF7FF; /* Light brown */
    color: #000; /* Black font color */
}

header {
    padding: 20px 0;
    border-bottom: 5px solid #fff; /* White border */
}

nav {
    padding: 10px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center; /* Center the navigation items */
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #000; /* Black font color for navigation links */
    text-decoration: none;
    font-size: 1.1em;
}

nav ul li a:hover {
    text-decoration: underline;
}

section {
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.9); /* White background with slight transparency */
    border: 1px solid #fff; /* White border */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 1.8em;
    border-bottom: 2px solid #444c56; /* Darker border for section headings */
    padding-bottom: 10px;
    font-family: 'EB Garamond', serif;
}

section p, section ul {
    font-size: 1.1em;
    text-align: justify;
    font-family: 'Goudy Old Style', serif;
}

section ul {
    list-style-type: square;
    padding-left: 20px;
}

section img {
    max-width: 100%;
    height: auto;
    border: 1px solid #fff; /* White border */
    margin: 10px 0;
}

footer {
    padding-top: 50px; /* Adjust as needed to create enough space for the footnote */
    background-color: #f8f9fa; /* Light background color for the footer */
    text-align: center;
}

.about-container {
    display: flex;
}

.left-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.right-section {
    flex: 1;
}

.portrait {
    width: 350px; /* Adjust the width as needed */
    height: 350px; /* Adjust the height to match the width */
    object-fit: cover; /* Ensures the image covers the entire container */
}

.description {
    margin-top: 20px;
    color: black; /* Change to black color */
}

.description p {
    margin-bottom: 20px;
    font-family: 'Goudy Old Style', serif;
}

.description a {
    color: #61afef; /* Light blue links */
}

.my-world-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adjust gap as needed */
    justify-content: center; /* Center the images horizontally */
    margin-top: 20px;
}

.image {
    position: relative;
}

.image-description {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  font-size: 18px;
}

.image-container {
    position: relative;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #fff;
    margin: 10px 0;
}

.image-container .description {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
}

.image:nth-child(odd) {
    flex-basis: 100%; /* Make odd-indexed images take full width */
}

@media (min-width: 768px) {
    .image {
        max-width: calc(50% - 10px); /* Limiting images to half width with gap of 20px */
    }

    .image:nth-child(odd) {
        flex-basis: 100%; /* Make odd-indexed images take full width */
    }

    .image:nth-child(2n) {
        flex-basis: calc(50% - 10px); /* Make even-indexed images take half width */
    }
}

@media (min-width: 992px) {
    .image:nth-child(odd) {
        flex-basis: calc(33.33% - 10px); /* Make odd-indexed images take one-third width */
    }

    .image:nth-child(2n) {
        flex-basis: calc(33.33% - 10px); /* Make even-indexed images take one-third width */
    }
}

@media (min-width: 1200px) {
    .image:nth-child(odd) {
        flex-basis: calc(25% - 10px); /* Make odd-indexed images take one-fourth width */
    }

    .image:nth-child(2n) {
        flex-basis: calc(25% - 10px); /* Make even-indexed images take one-fourth width */
    }
}

#news {
    /* No max-width specified */
    margin: auto;
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: scroll; /* Enable vertical scrolling */
    max-height: 300px; /* Limiting the height */
    position: relative;
}

.news-item {
    display: flex;
    gap: 20px;
}

.news-date {
    flex: 0 0 30%; /* Left column width */
}

.news-description {
    flex: 1; /* Right column width */
}

.scroll-bar {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 100%;
    background-color: #f1f1f1; /* Light gray background */
    border-radius: 5px;
}

.scroll-bar:hover {
    background-color: #ddd; /* Darker gray on hover */
}

.scroll-bar::after {
    content: "";
    display: block;
    background-color: #888; /* Gray scroll handle */
    border-radius: 5px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

/* === Snapshot section === */
#snapshot {
    margin: 3rem auto;
    max-width: 960px;
}
.snapshot-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.snapshot-img img {
    width: 320px;
    max-width: 100%;
    border-radius: 8px;
}
.snapshot-text {
    flex: 1;
    min-width: 260px;
}
.shadow {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.more-link a {
    font-weight: 700;
}
