/* Page background */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-image: url('assets/storysub.jpeg'); /* Customize as needed */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #342E1D;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Centered container */
.story-wrapper {
  background-color: rgba(255, 255, 240, 0.96);
  backdrop-filter: blur(2px);
  border-radius: 20px;
  padding: 60px 40px;
  max-width: 700px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
}

/* Headline and intro */
.story-wrapper h1 {
  font-size: 2.5rem;
  color: #A40865; /* Beet purple */
  margin-bottom: 10px;
}

.story-wrapper p {
  font-size: 1.2rem;
  color: #3A1900;
  margin-bottom: 30px;
}

/* Form structure */
.story-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story-form label {
  font-weight: bold;
  font-size: 1rem;
  color: #404040;
  text-align: left;
}

/* Inputs and textarea */
.story-form input[type="text"],
.story-form input[type="file"],
.story-form textarea {
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background-color: #FFF6EE;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  font-size: 1rem;
  transition: box-shadow 0.3s ease;
}

.story-form textarea::placeholder {
  color: #999;
  font-style: italic;
}

.story-form input:focus,
.story-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px #FFA500; /* Carrot glow */
}

/* Checkbox agreement */
.story-form input[type="checkbox"] {
  margin-right: 10px;
  accent-color: #E45811;
}

.story-form label[for="permission"] {
  font-weight: normal;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #444;
}

/* Submit button */
.story-form button {
  padding: 14px 32px;
  background: linear-gradient(to right, #FFA500, #E45811); /* Carrot to Chili */
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Success message */
#story-success {
  background-color: #A0D468; /* Avocado green */
  color: white;
  padding: 20px;
  margin-top: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  font-size: 1rem;
}

/* Back button */
.back-buttons {
  margin-top: 40px;
}

.back-buttons a {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(to right, #A40865, #E45811); /* Beet to Chili */
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.back-buttons a:hover {
  transform: scale(1.05);
}
