* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  color: #8b2332;
  font-size: 32px;
  font-weight: bold;
  text-decoration: underline;
  text-decoration-color: #8b2332;
  text-decoration-thickness: 2px;
}

.content {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.left-section {
  flex: 1;
}

.input-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.input-section label {
  font-size: 14px;
  color: #000;
  font-weight: normal;
}

.input-section input[type="number"] {
  width: 60px;
  padding: 5px;
  border: 3px solid #ffb800;
  font-size: 16px;
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px;
  border: 4px solid #ffb800;
  background-color: white;
}

.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid #000;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery img:hover {
  transform: scale(1.05);
}

.right-section {
  width: 300px;
}

.description-panel {
  border: 2px solid #999;
  padding: 15px;
  background-color: #e8f0f8;
  min-height: 200px;
}

.description-panel .label {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
  font-weight: normal;
}

.description-panel .image-name {
  font-size: 14px;
  color: #4a90e2;
  margin-bottom: 15px;
  font-weight: normal;
}

.description-panel .image-description {
  font-size: 14px;
  color: #4a90e2;
  line-height: 1.5;
}

footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  position: relative;
}

footer a {
  color: #4a90e2;
  text-decoration: underline;
  font-size: 14px;
}

footer .arrow {
  color: #ff8c00;
  font-size: 20px;
  margin-left: 5px;
}

@media (max-width: 768px) {
  .content {
    flex-direction: column;
  }

  .right-section {
    width: 100%;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}
