/* ===================================
   Base Styles and Layout
   The Ice Cream Adventure - Main CSS
   =================================== */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFEF7;
    min-height: 100vh;
}

/* Game Container */
.game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.game-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #87CEEB 0%, #98D8C8 100%);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.game-title {
    font-size: 2em;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Progress Bar */
.progress-container {
    margin-top: 15px;
}

.progress-label {
    font-size: 0.9em;
    color: #fff;
    margin-bottom: 5px;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 25px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFE55C 0%, #FFB6C1 50%, #D2691E 100%);
    transition: width 0.5s ease;
    border-radius: 10px;
}

.progress-percentage {
    font-size: 0.85em;
    color: #fff;
    margin-top: 5px;
    font-weight: bold;
}

/* Party Status */
.party-status {
    background-color: #FFF0F5;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #FFB6C1;
}

.status-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-label {
    font-weight: bold;
    margin-right: 10px;
    color: #D2691E;
}

.status-value {
    font-size: 1.1em;
}

.status-number {
    margin-left: 10px;
    font-size: 0.9em;
    color: #666;
}

/* Encounter Card */
.encounter-container {
    flex: 1;
    margin-bottom: 20px;
}

.encounter-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border: 3px solid #87CEEB;
    min-height: 200px;
}

.encounter-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #D2691E;
    text-align: center;
}

.encounter-description {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
}

/* Choices Container */
.choices-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.choice-btn {
    background: linear-gradient(135deg, #98D8C8 0%, #87CEEB 100%);
    color: #333;
    border: 3px solid #87CEEB;
    padding: 18px 25px;
    font-size: 1.05em;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: inherit;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 60px;
    display: flex;
    align-items: center;
}

.choice-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #87CEEB 0%, #98D8C8 100%);
}

.choice-btn:active {
    transform: translateY(-1px);
}

.choice-btn:focus {
    outline: 3px solid #FFE55C;
    outline-offset: 2px;
}

/* Outcome Overlay */
.outcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.outcome-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.outcome-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid #FFB6C1;
    text-align: center;
}

.outcome-text {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #333;
}

.outcome-continue-btn {
    background: linear-gradient(135deg, #FFE55C 0%, #FFB6C1 100%);
    color: #333;
    border: 3px solid #FFB6C1;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.outcome-continue-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Start Screen */
.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #87CEEB 0%, #98D8C8 50%, #FFB6C1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.5s ease;
}

.start-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.start-card {
    background-color: #fff;
    padding: 50px;
    border-radius: 20px;
    max-width: 600px;
    margin: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.start-title {
    font-size: 2.5em;
    margin-bottom: 25px;
    color: #D2691E;
}

.start-description {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

.start-hint {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #bbb;
    font-style: italic;
}

.start-btn {
    background: linear-gradient(135deg, #FFE55C 0%, #FFB6C1 100%);
    color: #333;
    border: 4px solid #D2691E;
    padding: 20px 50px;
    font-size: 1.3em;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.start-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Achievements */
.achievements-container {
    background-color: #FFF0F5;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    border: 3px solid #FFE55C;
}

.achievements-container h3 {
    color: #D2691E;
    margin-bottom: 15px;
    text-align: center;
}

.achievements-container.hidden {
    display: none;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Restart Button */
.restart-btn {
    background: linear-gradient(135deg, #FFE55C 0%, #FFB6C1 100%);
    color: #333;
    border: 4px solid #D2691E;
    padding: 20px 50px;
    font-size: 1.3em;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.restart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
