.wrap-app {
  max-width: 700px;
  margin: 50px auto;
  padding: 30px 20px;
  text-align: center;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.1);
}
header {
  margin-bottom: 30px;
}

header h1 {
  font-size: 2rem;
  color: #2c3e50;
}

header p {
  font-size: 1rem;
  color: #7f8c8d;
}

.input-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

#themeInput {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 2px solid #7e7e7e3b;
  border-radius: 10px;
  outline: none;
}

#themeInput:focus {
  border-color: #015196;
}

#generateButton {
  background: #015196;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#generateButton:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}

#generateButton:hover:not(:disabled) {
  background: #015196;
}

.result-box {
  margin-top: 30px;
  text-align: left;
}

.result-box.hidden {
  display: none;
}

.result-box h2 {
  margin-bottom: 20px;
  color: #2c3e50;
}

#imageGallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.image-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.image-item img:hover {
  transform: scale(1.1);
}

.download-button {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #015196;
  color: #fff;
  padding: 5px 10px;
  font-size: 0.9rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.download-button:hover {
  background: #0a73cfd3;
}

span {
  font-size: 14px;
  font-style: italic;
  color: #ff3a3a;
}
