:root {
    --color-primary: #FF8C66;
    --color-secondary: #FFB399;
    --color-accent: #FF704D;
    --color-light: #FFF2E6;
    --color-dark: #5E3A00;
    --color-text: #4D3319;
    --color-highlight: #FF9966;
    --color-success: #66CC99;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-light);
    color: var(--color-text);
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

#main-nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

#main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    flex-wrap: wrap;
}

#main-nav li {
    margin: 0 1rem;
}

#main-nav a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

#main-nav a:hover, #main-nav a.active {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.welcome-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.welcome-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.welcome-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.welcome-text {
    flex: 2;
    min-width: 300px;
    padding: 0 2rem;
}

.welcome-text h2 {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.story-section {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.story-section h2 {
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.story-image {
    text-align: center;
    margin: 2rem 0;
}

.story-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    border: 5px solid var(--color-secondary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.story-image img:hover {
    transform: scale(1.02);
}

.audio-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.audio-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.play-btn {
    background-color: var(--color-primary);
    color: white;
}

.pause-btn {
    background-color: var(--color-accent);
    color: white;
}

.audio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.audio-btn:active {
    transform: translateY(0);
}

.story-text {
    padding: 0 1rem;
}

.story-text p {
    margin-bottom: 1rem;
    text-align: justify;
}

.character {
    font-weight: bold;
    color: var(--color-accent);
}

.moral {
    font-style: italic;
    color: var(--color-primary);
    margin-top: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--color-secondary);
}

.evaluation-section {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.evaluation-section h2 {
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 1rem;
}

.evaluation-section p {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.evaluation-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: bold;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.rating-options {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    color: var(--color-accent);
}

.radio-custom {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked + .radio-custom {
    border-color: var(--color-primary);
}

input[type="radio"]:checked + .radio-custom::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background-color: var(--color-primary);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s;
}

textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 140, 102, 0.2);
}

.submit-btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem auto 0;
}

.submit-btn:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.confirmation-message {
    text-align: center;
    padding: 2rem;
    background-color: rgba(102, 204, 153, 0.1);
    border-radius: 10px;
    margin-top: 2rem;
    border: 2px dashed var(--color-success);
}

.confirmation-message i {
    font-size: 3rem;
    color: var(--color-success);
    margin-bottom: 1rem;
}

.confirmation-message h3 {
    color: var(--color-success);
    margin-bottom: 0.5rem;
}

.return-btn {
    background-color: var(--color-secondary);
    color: var(--color-dark);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.return-btn:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

footer {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .welcome-section {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-text {
        padding: 1rem 0;
    }
    
    #main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    #main-nav li {
        margin: 0.5rem 0;
    }
    
    .rating-options {
        flex-direction: column;
        gap: 0.8rem;
    }
}