@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap');

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

body {
  font-family: 'Noto Sans', sans-serif;
  background: #000 url('abandoned_wall.png') center/cover fixed;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100vw;
  min-height: 100vh;
}

.page-title {
  width: 100%;
  padding: 2rem;
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  color: #ff0000;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: rgba(0, 0, 0, 0.8);
  text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
  font-family: 'Noto Sans', sans-serif;
}

.carousel-container {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  animation: scroll 60s linear infinite;
  padding: 2rem;
  align-items: center;
  height: 100%;
}

.mural-card {
  flex-shrink: 0;
  width: 400px;
  height: 500px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
  position: relative;
}

.mural-card:hover {
  transform: scale(1.05);
}

.mural-image {
  width: 100%;
  height: 380px;
  object-fit: contain;
  background: #f5f5f5;
}

.mural-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 40px;
  height: 40px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  z-index: 10;
}

.mural-info {
  padding: 1rem;
  background: #fff;
}

.mural-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #000;
}

.mural-location {
  font-size: 0.9rem;
  color: #666;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-400px * 14 - 2rem * 14));
  }
}

.generator-container {
  width: 100%;
  padding: 3rem 2rem;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.generator-title {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}

.generator-input-group {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 600px;
}

.generator-input {
  flex: 1;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid #fff;
  background: #000;
  color: #fff;
  border-radius: 4px;
  font-family: 'Noto Sans', sans-serif;
}

.generator-input::placeholder {
  color: #666;
}

.generator-input:focus {
  outline: none;
  border-color: #fff;
}

.generator-btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Noto Sans', sans-serif;
  transition: transform 0.2s ease;
}

.generator-btn:hover {
  transform: scale(1.05);
}

.generator-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: scale(1);
}

.generated-result {
  width: 100%;
  max-width: 600px;
  min-height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.generated-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.loading-text {
  color: #fff;
  font-size: 1.1rem;
}

.message-explanation {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
}

.explanation-label {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.explanation-textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid #fff;
  background: #000;
  color: #fff;
  border-radius: 4px;
  font-family: 'Noto Sans', sans-serif;
  resize: vertical;
  min-height: 200px;
}

.explanation-textarea::placeholder {
  color: #666;
}

.explanation-textarea:focus {
  outline: none;
  border-color: #fff;
}

.user-gallery-container {
  width: 100%;
  padding: 3rem 2rem;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.user-gallery-title {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}

.user-gallery {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.user-gallery-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.user-gallery-item:hover {
  transform: scale(1.02);
}

.user-gallery-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.user-gallery-info {
  padding: 1rem;
  background: #fff;
}

.user-gallery-prompt {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #000;
}

.user-gallery-message {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  font-style: normal;
}

.user-gallery-message em {
  color: #999;
  font-style: italic;
}

.user-gallery-time {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
}

.print-download-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Noto Sans', sans-serif;
  transition: all 0.2s ease;
}

.print-download-btn:hover {
  background: #fff;
  color: #000;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 1.8rem;
    padding: 1.5rem 1rem;
    letter-spacing: 1px;
  }
  
  .mural-card {
    width: 280px;
    height: 380px;
  }
  
  .mural-image {
    height: 280px;
    object-fit: contain;
    background: #f5f5f5;
  }
  
  .carousel-track {
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .generator-container {
    padding: 2rem 1rem;
  }
  
  .generator-title {
    font-size: 1.5rem;
  }
  
  .generator-input-group {
    flex-direction: column;
  }
  
  .user-gallery {
    grid-template-columns: 1fr;
  }
  
  .user-gallery-image {
    height: 300px;
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-280px * 14 - 1.5rem * 14));
    }
  }
}