:root {
    --primary-color: #000;
    --secondary-color: #d0c9c0;
    --accent-color: #ef7c8e;
    --text-color: #000;
    --light-color: #f1f1f2;
    --parchment-color: #f5e8c9;
    --border-color: #d9d9d9;
}

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

body {
    font-family: "DM Sand";
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: auto;
}

header{
  padding: 10px 20px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header i{
  font-size: 28px;
  color: #3f319f;
}

.menu-opciones{
  background: #fff;
  padding: 15px 20px;
  text-align: center;
  width: 90%;
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  border: 2px solid #3f319f;
  height: 250px;
  z-index: 10;
  display: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.item-menu{
  padding: 15px 20px;
}

.item-menu a{
  color: #000;
  text-decoration: none;
  font-size: 18px;
}

.item-menu a:hover{
  color: #3f319f;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 10px;
    text-align: left;
}

.generator-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 8px;
    transition: all 0.3s ease;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 15px;
}

label {
    font-weight: bold;
    font-size: 1.1rem;
    color: black;
}

textarea, input, select{
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    transition: border 0.3s;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

textarea:focus, input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.btn-primary, .btn-secondary {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #5a7561;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #c0b9b0;
    transform: translateY(-2px);
}

.result-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 30px;
}

.loader {
    border: 5px solid var(--secondary-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.story-image img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.parchment {
    background-color: var(--parchment-color);
    padding: 10px;
    border-radius: 5px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #d9c7a7;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.parchment.visible {
    opacity: 1;
    transform: translateY(0);
}

/* .parchment::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(227, 200, 160, 0.2),
        rgba(227, 200, 160, 0.1) 50%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.1)
    );
    pointer-events: none;
} */

#story-content h1 {
    color: var(--primary-color);
    text-align: left;
    margin-bottom: 20px;
    font-size: 2rem;
    line-height: normal;
}

#story-content h3 {
    color: var(--accent-color);
    margin: 15px 0 10px;
    font-size: 1.3rem;
}

#story-content p {
    margin-bottom: 15px;
    color: #000;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .options-container {
        grid-template-columns: 1fr;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-secondary {
        background: var(--primary-color);
        color: #fff;
        border-radius: 50px;
    }
}

/* FAQ Section */
.faq-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 15px 20px;
    background: #fff;
}

.faq-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2rem;
}

.faq-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    text-align: left;
    border: none;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "DM Sans";
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question i {
    transition: transform 0.3s;
    font-size: 1rem;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f9f9f9;
}

.faq-answer p {
    padding: 20px;
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

/* Add Bootstrap Icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css");