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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffe4e1 0%, #ffd6d1 50%, #ffc8c1 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    overflow: hidden;
    animation: fadeIn 0.5s ease-in;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, #ffe4e1 0%, #ffd6d1 100%);
    color: #333;
    padding: 30px;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 20px;
    background: #ffe4e1;
    border: 2px solid #ffd6d1;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s;
}

.back-button:hover {
    background: #ffd6d1;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(255, 228, 225, 0.5);
}

/* Main Content */
main {
    padding: 40px;
}

/* Home Page Game Selection */
.game-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.game-card h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.game-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.play-button {
    display: inline-block;
    background: #ffe4e1;
    color: #333;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #ffd6d1;
    transition: transform 0.3s, box-shadow 0.3s;
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 228, 225, 0.6);
    background: #ffd6d1;
}

/* Game Area */
.game-area {
    max-width: 600px;
    margin: 0 auto;
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.info-item {
    text-align: center;
}

.label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.value {
    display: block;
    color: #d4a5a5;
    font-size: 1.8rem;
    font-weight: bold;
}

.game-content {
    text-align: center;
}

/* Word Scramble Specific */
.scrambled-word {
    font-size: 3rem;
    font-weight: bold;
    color: #d4a5a5;
    letter-spacing: 8px;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.hint {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.input-area input {
    flex: 1;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: border-color 0.3s;
}

.input-area input:focus {
    outline: none;
    border-color: #ffe4e1;
}

/* Emoji Guess Specific */
.emoji-display {
    font-size: 8rem;
    margin: 30px 0;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.question {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 30px;
}

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

.option-button {
    padding: 15px;
    font-size: 1.1rem;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.option-button:hover:not(:disabled) {
    background: #ffe4e1;
    color: #333;
    border-color: #ffe4e1;
    transform: scale(1.05);
}

.option-button:disabled {
    cursor: not-allowed;
}

.option-button.correct {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.option-button.incorrect {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Buttons */
.game-button {
    background: #ffe4e1;
    color: #333;
    border: 2px solid #ffd6d1;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 228, 225, 0.6);
    background: #ffd6d1;
}

.secondary-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.secondary-button:hover {
    background: #5a6268;
}

.game-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Feedback */
.feedback {
    min-height: 30px;
    padding: 15px;
    margin: 20px 0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.6;
    white-space: pre-line;
    text-align: left;
}

.feedback.success {
    background: #d4edda;
    color: #155724;
}

.feedback.error {
    background: #f8d7da;
    color: #721c24;
}

.feedback.info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Footer */
footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .game-selection {
        grid-template-columns: 1fr;
    }
    
    .scrambled-word {
        font-size: 2rem;
        letter-spacing: 5px;
    }
    
    .emoji-display {
        font-size: 5rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .input-area {
        flex-direction: column;
    }
    
    .game-controls {
        flex-direction: column;
    }
    
    main {
        padding: 20px;
    }
}

/* Couple Edition Game Styles */
.couple-names {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.name-input-group {
    margin-bottom: 15px;
}

.name-input-group label {
    display: block;
    color: #333;
    font-weight: bold;
    margin-bottom: 5px;
}

.name-input-group input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.name-input-group input:focus {
    outline: none;
    border-color: #ff6b9d;
}

.partner-score {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #d4a5a5;
}

.question-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.question-number {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
}

.choice-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.choice-button {
    padding: 25px 20px;
    font-size: 1.2rem;
    background: white;
    border: 3px solid #ffe4e1;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
    font-weight: bold;
}

.choice-button:hover:not(:disabled) {
    background: #ffe4e1;
    color: #333;
    transform: scale(1.05);
}

.choice-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.choice-button.selected {
    background: #ffe4e1;
    color: #333;
    animation: pulse 0.5s;
}

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

.choice-label {
    display: block;
}

.results-screen {
    text-align: center;
    padding: 30px;
}

.results-screen h2 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.final-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.final-score-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.final-name {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.final-score {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: #d4a5a5;
    margin-bottom: 5px;
}

.score-label {
    display: block;
    color: #666;
    font-size: 1rem;
}

/* Poll Counter Styles */
.poll-counter {
    margin: 30px 0;
    text-align: left;
}

.poll-counter h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.poll-list {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.poll-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #ffe4e1;
}

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

.poll-question {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    flex: 1;
}

.poll-answer {
    color: #d4a5a5;
    font-size: 1.1rem;
    font-weight: bold;
    margin-left: 20px;
}

@media (max-width: 768px) {
    .choice-buttons {
        grid-template-columns: 1fr;
    }
    
    .final-scores {
        grid-template-columns: 1fr;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .poll-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .poll-answer {
        margin-left: 0;
    }
}

/* Mad Libs Styles */
.mad-libs-form {
    max-width: 600px;
    margin: 0 auto;
}

.mad-libs-form h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1rem;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #ffe4e1;
    background: #fff;
}

.input-group input::placeholder {
    color: #999;
    font-style: italic;
}

.story-display {
    max-width: 700px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in;
}

.story-display h3 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.story-text {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.story-text p {
    margin-bottom: 20px;
}

.story-text p:last-child {
    margin-bottom: 0;
}

.story-text strong {
    color: #d4a5a5;
    font-weight: bold;
    font-size: 1.15rem;
}

@media (max-width: 768px) {
    .story-text {
        padding: 20px;
        font-size: 1rem;
    }
    
    .mad-libs-form h3,
    .story-display h3 {
        font-size: 1.3rem;
    }
}

/* Photo Scavenger Hunt Styles */
.scavenger-progress {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.progress-text {
    text-align: center;
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #ffe4e1 0%, #ffd6d1 100%);
    width: 0%;
    transition: width 0.5s ease-in-out;
    border-radius: 10px;
}

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

.scavenger-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scavenger-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s;
    border-left: 4px solid #ffe4e1;
}

.scavenger-item.completed {
    background: #e8f5e9;
    border-left-color: #4caf50;
    opacity: 0.8;
}

.scavenger-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    min-width: 60px;
    text-align: center;
}

.scavenger-content {
    flex: 1;
}

.scavenger-description {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.5;
}

.scavenger-checkbox {
    margin-left: 20px;
}

.scavenger-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-label {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #ffe4e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.scavenger-item.completed .checkbox-label {
    background: #4caf50;
    border-color: #4caf50;
}

.checkmark {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.checkbox-label:hover {
    transform: scale(1.1);
}

.scavenger-actions {
    margin-top: 30px;
    text-align: center;
}

@media (max-width: 768px) {
    .scavenger-item {
        flex-direction: column;
        text-align: center;
    }
    
    .scavenger-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .scavenger-checkbox {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .scavenger-description {
        font-size: 1rem;
    }
}

/* Gallery Section Styles */
.gallery-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #ffe4e1;
}

.gallery-section h3 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
}

.gallery-instructions {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.gallery-actions {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #ffe4e1;
}

.gallery-info p {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.gallery-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-info li {
    color: #666;
    font-size: 1rem;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.gallery-info li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #d4a5a5;
    font-weight: bold;
}

@media (max-width: 768px) {
    .gallery-section h3 {
        font-size: 1.5rem;
    }
    
    .gallery-instructions {
        font-size: 1rem;
    }
    
    .gallery-info {
        padding: 20px;
    }
}
