body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
}
.search-form-wrapper {
  padding: 10px;
  background-color: #E6E6E6;
}
.container {
  max-width: 728px;
  margin: 0 auto;
  padding: 20px;
  border: none;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: #007bff;
  text-decoration: none;
}
.text-center {
  text-align: center;
}
header {
  text-align: center;
  margin-bottom: 20px;
}
.logo {
  width: 330px;
  height: 100px;
  object-fit: cover;
}
.search-bar {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  margin-top: 20px;
}
main {
  width: 100%;
}
h1, h2, h3, h4 {
  margin-top: 1.0em;
  margin-bottom: 0.5em;
}
h1 {
  font-size: 1.5em;
}
h2 {
  font-size: 1.3em;
}
h3 {
  font-size: 1.2em;
}
h4 {
  font-weight: normal;
}
.main-image-container {
  margin: 20px 0;
  border: 2px dotted #ccc;
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
}
.main-image-container figure {
  margin: 0;
}
.main-image-container img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 0px;
}
.main-image-container figcaption {
  text-align: center;
  margin-top: 10px;
  color: #555;
}
.download-button {
  display: inline-block;
  padding: 12px 30px;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  background-color: #4CAF50;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
}
.download-button:hover {
  background-color: #45a049;
}
.thumbnail-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.thumbnail-item a {
  display: block;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.thumbnail-item img {
  width: 100px;
  height: 100px;
  display: block;
  border-radius: 0;
}
.thumbnail-item a:hover {
  border-color: #007bff;
}
.image-link-wrapper {
  border: 1px solid #ccc;
  padding: 15px;
  margin: 20px 0;
}
.image-link-wrapper img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}
.image-link-wrapper .image-caption-link {
  display: block;
  text-align: center;
  margin-top: 10px;
}
.image-link-wrapper .image-caption-link:hover {
  text-decoration: underline;
}
.category-menu {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.category-menu-1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}
.category-menu-1 a {
  display: inline-block;
  padding: 5px 15px;
  font-size: 14px;
  color: #007bff;
  background-color: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 9999px;
}
.category-menu-1 a:hover {
  text-decoration: underline;
}
.category-menu-2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}
.category-menu-2 a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  color: #ffffff;
  background-color: #888888;
  border: none;
  border-radius: 8px;
  transition: background-color 0.3s;
}
.category-menu-2 a:hover {
  background-color: #666666;
  text-decoration: none;
}
.category-menu-3 {
  display: block;
}
.category-menu-3 li {
  margin: 0;
  border-bottom: 1px solid #eee;
}
.category-menu-3 a {
  display: block;
  padding: 4px 8px;
  color: #007bff;
  transition: background-color 0.3s;
}
.category-menu-3 a:hover {
  background-color: #f0f8ff;
  text-decoration: underline;
}
.category-menu-4 {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}
.category-menu-4 a {
  display: inline-block;
  padding: 5px 15px;
  font-size: 14px;
  color: #007bff;
  background-color: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 9999px;
}
.category-menu-4 a:hover {
  text-decoration: underline;
}
footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ccc;
}
footer ul {
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
footer a {
  color: #333;
}
footer a:hover {
  text-decoration: underline;
}