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

body {
  font-family: "Courier Prime", monospace;
  background: linear-gradient(135deg, #6b7c6e 0%, #5a6b5d 25%, #4a5a4d 50%, #3d4a40 75%, #2f3a32 100%);
  background-attachment: fixed;
  min-height: 100vh;
  padding: 20px;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Header Notice */
.header-notice {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  max-width: 250px;
}

.notice-title {
  font-size: 12px;
  font-weight: bold;
  color: #666;
  margin-bottom: 8px;
}

.notice-text {
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}

/* Share Button */
.share-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 10;
  font-family: "Courier Prime", monospace;
}

/* Drag Instructions */
.drag-instructions {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(219, 234, 254, 0.9);
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #93c5fd;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #1e40af;
}

/* Main Title */
.main-title {
  text-align: center;
  padding: 80px 0 40px;
}

.main-title h1 {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

/* Section Cards */
.section-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(107, 124, 110, 0.2);
}

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

.section-header h2 {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.section-header p {
  color: #666;
  margin-bottom: 15px;
}

.read-btn,
.add-photos-btn {
  background: #fce7f3;
  border: 1px solid #f9a8d4;
  color: #be185d;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-family: "Courier Prime", monospace;
  font-size: 14px;
}

.read-btn:hover,
.add-photos-btn:hover {
  background: #fbcfe8;
}

/* Section Content */
.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Photo Section */
.photo-section {
  text-align: center;
}

.polaroid {
  position: relative;
  display: inline-block;
  background: white;
  padding: 15px;
  padding-bottom: 50px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.05);
}

.polaroid img {
  width: 180px;
  height: 240px;
  object-fit: cover;
  border-radius: 5px;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.polaroid:hover .photo-overlay {
  opacity: 1;
}

.photo-overlay button {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Courier Prime", monospace;
}

.photo-caption {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}

.main-message {
  background: #f0fdf4;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
  margin-top: 20px;
  text-align: left;
}

.main-message p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #374151;
}

.signature {
  text-align: right;
  color: #059669;
  font-weight: bold;
}

/* Music Section */
.music-section {
  background: #f9fafb;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.music-section h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.spotify-player {
  margin-bottom: 20px;
}

.custom-player {
  text-align: center;
}

.song-info {
  margin-bottom: 15px;
}

.song-title {
  font-weight: bold;
  color: #374151;
  margin-bottom: 5px;
}

.song-artist {
  font-size: 12px;
  color: #6b7280;
}

.player-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.player-controls button {
  background: #059669;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.player-controls button:hover {
  background: #047857;
}

/* Stickers Section */
.stickers-section {
  text-align: center;
}

.stickers-section h3 {
  margin-bottom: 20px;
  color: #374151;
}

.stickers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.sticker {
  width: 50px;
  height: 50px;
  background: white;
  border: 2px solid #f9a8d4;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: grab;
  transition: all 0.3s ease;
  transform: rotate(-3deg);
}

.sticker:nth-child(even) {
  transform: rotate(3deg);
}

.sticker:hover {
  transform: rotate(0deg) scale(1.1);
  background: #fce7f3;
}

.sticker:active {
  cursor: grabbing;
  transform: scale(0.95);
}

.sticker-instructions {
  background: #fef3c7;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #fbbf24;
}

.sticker-instructions p {
  font-size: 12px;
  margin-bottom: 5px;
  color: #92400e;
}

/* Love Grid */
.love-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.love-box {
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: rotate(-1deg);
  text-align: center;
}

.love-box:nth-child(even) {
  transform: rotate(1deg);
}

.love-box:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.love-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.love-message {
  font-size: 14px;
  color: #374151;
  line-height: 1.4;
}

/* Memories Grid */
.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
}

.memory-polaroid {
  background: white;
  padding: 15px;
  padding-bottom: 50px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
  transform: rotate(-2deg);
  max-width: 280px;
}

.memory-polaroid:nth-child(even) {
  transform: rotate(2deg);
}

.memory-polaroid:hover {
  transform: rotate(0deg) scale(1.05);
}

.memory-polaroid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

.memory-caption {
  margin-top: 10px;
  font-weight: bold;
  color: #374151;
  font-size: 14px;
}

.memory-date {
  font-size: 12px;
  color: #6b7280;
  margin-top: 5px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0;
  color: white;
}

.footer p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-emojis {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 24px;
}

.footer-emojis span {
  transition: transform 0.3s ease;
}

.footer-emojis span:hover {
  transform: scale(1.2) rotate(10deg);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  max-width: 600px;
  margin: 50px auto;
  border-radius: 15px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  color: #374151;
}

.modal-header button {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Courier Prime", monospace;
}

.modal-body {
  padding: 30px;
  text-align: center;
}

.modal-body img {
  max-width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

#modal-caption {
  font-size: 1.2rem;
  font-weight: bold;
  color: #374151;
  margin-bottom: 10px;
}

#modal-date {
  color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
  .section-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .main-title h1 {
    font-size: 2rem;
  }

  .header-notice {
    position: static;
    margin-bottom: 20px;
  }

  .share-btn {
    position: static;
    display: block;
    margin: 0 auto 20px;
  }

  .drag-instructions {
    position: static;
    margin-bottom: 20px;
    transform: none;
  }
}

/* Dropped stickers */
.dropped-sticker {
  position: absolute;
  font-size: 24px;
  cursor: pointer;
  z-index: 100;
  transition: transform 0.3s ease;
  pointer-events: auto;
}

.dropped-sticker:hover {
  transform: scale(1.2);
}

/* Customization Button */
.customize-btn {
  position: fixed;
  top: 20px;
  right: 100px;
  background: #059669;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-family: "Courier Prime", monospace;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.customize-btn:hover {
  background: #047857;
  transform: translateY(-2px);
}

/* Customization Panel */
.customization-panel {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  padding: 20px;
  overflow-y: auto;
}

.panel-content {
  background: white;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.panel-header h2 {
  color: #374151;
  margin: 0;
}

.panel-header button {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Courier Prime", monospace;
}

.panel-tabs {
  display: flex;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
  flex: 1;
  padding: 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Courier Prime", monospace;
  color: #6b7280;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: white;
  color: #059669;
  border-bottom: 2px solid #059669;
}

.tab-btn:hover {
  background: #e5e7eb;
}

.panel-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #374151;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-family: "Courier Prime", monospace;
  font-size: 14px;
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: #6b7280;
  font-size: 12px;
}

.love-message-item,
.sticker-item,
.song-item {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  background: #f9fafb;
  border-radius: 5px;
}

.love-message-item input,
.sticker-item input,
.song-item input {
  margin-bottom: 0;
}

.love-message-item .icon-input {
  width: 60px;
  text-align: center;
}

.love-message-item .message-input {
  flex: 1;
}

.sticker-item input {
  width: 60px;
  text-align: center;
  font-size: 18px;
}

.song-item .title-input {
  flex: 2;
}

.song-item .artist-input {
  flex: 2;
}

.song-item .duration-input {
  flex: 1;
}

.add-btn {
  background: #059669;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Courier Prime", monospace;
}

.add-btn:hover {
  background: #047857;
}

.panel-footer {
  padding: 20px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.save-btn {
  background: #059669;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Courier Prime", monospace;
  font-weight: bold;
}

.save-btn:hover {
  background: #047857;
}

.reset-btn {
  background: #6b7280;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Courier Prime", monospace;
}

.reset-btn:hover {
  background: #4b5563;
}

/* Responsive */
@media (max-width: 768px) {
  .customize-btn {
    right: 20px;
    top: 70px;
  }

  .panel-tabs {
    flex-wrap: wrap;
  }

  .tab-btn {
    flex: 1 1 50%;
  }
}
