/* Main Prototype Styles */
body {
    background-color: #f0f2f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.prototype-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Screen Navigation Styles */
.screens-nav {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.list-group-item.active {
    background-color: #6c5ce7;
    border-color: #6c5ce7;
}

/* Main Content Area */
.main-content {
    min-height: 700px;
}

/* Screen Container Styles */
.screen-container {
    display: none;
}

.screen-container.active {
    display: block;
}

/* Phone Frame Styles */
.phone-frame {
    width: 375px;
    height: 667px;
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    padding: 15px;
    position: relative;
    overflow: hidden;
    border: 8px solid #333;
}

.phone-content {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 15px;
    overflow-y: auto;
    padding: 15px;
    position: relative;
}

/* Screen Description Styles */
.screen-description {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Splash Screen Styles */
.splash-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: linear-gradient(135deg, #3a1c71, #d76d77, #ffaf7b);
    border-radius: 15px;
    color: white;
}

.app-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.rocket-logo {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Onboarding Styles */
.onboarding-slider {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.onboarding-slide {
    display: none;
}

.onboarding-slide.active {
    display: block;
}

.onboarding-controls {
    margin-top: 20px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background-color: #6c5ce7;
}

.start-button {
    background-color: #6c5ce7;
    border-color: #6c5ce7;
}

/* User Info Form Styles */
.user-info-form {
    padding: 10px;
}

.gender-selection {
    gap: 10px;
}

.gender-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gender-label i {
    font-size: 2rem;
    margin-bottom: 8px;
}

.form-check-input:checked ~ .gender-label {
    border-color: #6c5ce7;
    background-color: #f0ebff;
}

.continue-btn {
    background-color: #6c5ce7;
    border-color: #6c5ce7;
}

/* Theme Selection Styles */
.theme-selection-container {
    text-align: center;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.theme-card {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.theme-card.available:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.theme-card.available {
    border: 2px solid #6c5ce7;
}

.theme-card.locked {
    opacity: 0.7;
    cursor: not-allowed;
}

.theme-image {
    position: relative;
    margin-bottom: 10px;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.lock-overlay i {
    font-size: 2rem;
    color: white;
}

/* Story Generation Styles */
.generation-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.rocket-animation {
    animation: rocket-move 4s infinite;
}

@keyframes rocket-move {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(10px) rotate(-5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.fun-facts {
    background-color: #f0ebff;
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid #6c5ce7;
}

/* Story Reading Styles */
.story-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.audio-controls {
    display: flex;
    gap: 5px;
}

.story-text {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.story-progress {
    margin-top: auto;
}

/* Interactive Choice Styles */
.choice-container {
    margin: 20px 0;
}

.btn-choice {
    background-color: #f0ebff;
    border: 2px solid #6c5ce7;
    color: #333;
    font-size: 1.1rem;
    padding: 12px;
    text-align: left;
    transition: all 0.3s ease;
}

.btn-choice:hover {
    background-color: #6c5ce7;
    color: white;
}

/* Story Completion Styles */
.completion-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.achievement-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.facts-learned {
    text-align: left;
}

.coming-soon-badge {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .phone-frame {
        width: 320px;
        height: 568px;
    }
    
    .theme-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .screens-nav {
        margin-bottom: 20px;
    }
}
