body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #f7f3ec;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  padding: 1rem;
}

.logo {
  width: 120px;
  border-radius: 12px;
}



#quotes-container {
  max-width: 800px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.quote-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.quote-text {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

button {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

button:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.share-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 0.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.share-menu.visible {
  display: flex;
}
.share-menu button {
  background: none;
  border: none;
  padding: 0.5rem;
  text-align: left;
  cursor: pointer;
}
.share-menu button:hover {
  background: #f0f0f0;
}

.design-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

canvas {
  margin-top: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  max-width: 600px;
}

select {
  padding: 0.4rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 1rem;
  background: #fff;
  cursor: pointer;
}

select:hover {
  border-color: #aaa;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  10%, 90% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

#backBtn {
  margin: 1rem 0;
  background: #eee;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
}
#backBtn:hover {
  background: #ddd;
}

/* --- Responsive adjustments for mobile only --- */
@media (max-width: 768px) {
  body {
    padding: 10px;
    font-size: 0.95rem;
  }

  h1, h2, h3 {
    font-size: 1.3rem;
    text-align: center;
  }

  #quotes-container {
    grid-template-columns: 1fr; /* stack quotes */
    padding: 0 10px;
  }

  .quote-card {
    width: 100% !important;
    box-sizing: border-box;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  button, input, textarea, select {
    width: 100% !important;
    font-size: 1rem;
    margin: 6px 0;
    box-sizing: border-box;
  }

  canvas {
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto;
    display: block;
  }
}


/* Secret page button style */
.secret-btn {
  background: linear-gradient(90deg, #47BBED, #6AC3EB);
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.secret-btn:hover {
  background: #2a9bdc;
  transform: translateY(-2px);
}

/* Back button */
.back-btn {
  margin-top: 2rem;
  background: #444;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}
.back-btn:hover {
  background: #666;
}


#progressContainer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

#progressWrapper {
  flex: 1;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  height: 16px;
}

#progressBar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #47BBED, #6AC3EB);
  transition: width 0.4s ease;
}


.divider {
  width: 60px;
  height: 2px;
  background: black;
  margin: 20px auto;
  border-radius: 2px;
}
