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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.container {
    max-width: 600px;
    width: 90%;
    text-align: center;
}

.container.wide {
    max-width: 95%;
    width: 95%;
}


.game-screen {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: slideIn 0.5s ease-out;
}

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

.hidden {
    display: none !important;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    line-height: 1.4;
}

p {
    font-size: 1.2em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.start-btn, .reveal-btn, .restart-btn {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 20px 10px;
}

.start-btn:hover, .reveal-btn:hover, .restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4aa, #00b4d8);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.question-counter {
    font-size: 1em;
    margin-bottom: 30px;
    opacity: 0.8;
}

.question-container {
    margin-bottom: 30px;
}

.answers {
    display: grid;
    gap: 15px;
    margin-top: 30px;
}

.answer-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    text-align: left;
}

.answer-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(5px);
}

.answer-btn.correct {
    background: rgba(40, 167, 69, 0.3);
    border-color: #28a745;
    animation: pulse 0.6s ease;
}

.answer-btn.incorrect {
    background: rgba(220, 53, 69, 0.3);
    border-color: #dc3545;
    animation: shake 0.6s ease;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.score {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 20px;
}

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

.score-display {
    font-size: 2em;
    margin: 30px 0;
    color: #ffd700;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.reveal-container {
    margin: 40px 0;
}

.reveal-text {
    font-size: 1.3em;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

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

.big-news {
    margin-top: 40px;
    animation: bounceIn 1s ease;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.baby-announcement {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    border-radius: 25px;
    padding: 40px;
    color: #333;
    box-shadow: 0 15px 35px rgba(255, 154, 158, 0.3);
}

.baby-text {
    font-size: 3em;
    color: #e91e63;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    animation: rainbow 3s ease-in-out infinite;
}

@keyframes rainbow {
    0%, 100% { color: #e91e63; }
    16% { color: #f44336; }
    32% { color: #ff9800; }
    48% { color: #4caf50; }
    64% { color: #2196f3; }
    80% { color: #9c27b0; }
}

.baby-details p {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #555;
}

.celebration {
    font-size: 2.5em;
    margin-top: 30px;
    animation: bounce 2s infinite;
}

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

/* Name Collection Styles */
.name-input-group {
    margin-bottom: 30px;
    text-align: left;
}

.name-input-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: white;
}

.name-input-group input[type="text"],
input[type="text"],
input#full-name,
input#direct-full-name {
    width: 100% !important;
    padding: 15px 20px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 15px !important;
    font-size: 1.2em !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    font-family: 'Arial', sans-serif !important;
}

.name-input-group input[type="text"]::placeholder,
input[type="text"]::placeholder,
input#full-name::placeholder,
input#direct-full-name::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.name-input-group input[type="text"]:focus,
input[type="text"]:focus,
input#full-name:focus,
input#direct-full-name:focus {
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2) !important;
}

.continue-btn,
button[type="submit"],
button.continue-btn {
    background: linear-gradient(45deg, #ff6b6b, #ffa500) !important;
    border: none !important;
    padding: 15px 30px !important;
    font-size: 1.2em !important;
    color: white !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
    margin-top: 20px !important;
    width: 100% !important;
    font-family: 'Arial', sans-serif !important;
    box-sizing: border-box !important;
}

.continue-btn:hover,
button[type="submit"]:hover,
button.continue-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.continue-btn:disabled,
button[type="submit"]:disabled,
button.continue-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Gender Game Styles */
.gender-game {
    margin-top: 40px;
    animation: slideIn 0.5s ease-out;
}

.game-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    color: #333;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.game-container h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.guess-section {
    margin-bottom: 30px;
    text-align: center;
}

.guess-section h3 {
    margin-bottom: 20px;
    color: #555;
}

.balloon-game {
    text-align: center;
    margin: 30px 0;
}

.balloon-game h3 {
    color: #555;
    margin-bottom: 25px;
}

.balloons-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 300px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.balloon {
    font-size: 3em;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    user-select: none;
}

.balloon:hover {
    transform: scale(1.1);
    animation: wobble 0.3s ease;
}

.balloon.blue {
    color: #4A90E2;
}

.balloon.pink {
    color: #E91E63;
}

.balloon.popped {
    opacity: 0.3;
    transform: scale(0.5);
    cursor: default;
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg) scale(1.1); }
    25% { transform: rotate(-5deg) scale(1.1); }
    75% { transform: rotate(5deg) scale(1.1); }
}

.balloon-instruction {
    font-size: 1.1em;
    color: #666;
}

.game-result {
    text-align: center;
    margin-top: 30px;
}

.result-content {
    background: linear-gradient(135deg, #4A90E2, #63B3ED);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
}

.result-content h2 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.guess-feedback {
    font-size: 1.4em;
    margin-bottom: 20px;
    font-weight: bold;
    padding: 15px 20px;
    border-radius: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.guess-feedback.correct {
    background: rgba(40, 167, 69, 0.9);
    color: white;
    border: 2px solid #28a745;
}

.guess-feedback.incorrect {
    background: rgba(255, 193, 7, 0.9);
    color: #333;
    border: 2px solid #ffc107;
}

.boy-celebration {
    margin: 25px 0;
}

.boy-emojis {
    font-size: 2em;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

.result-display {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

.result-display p {
    margin: 10px 0;
    font-size: 1.2em;
}

/* Gender Reveal Styles */
.gender-reveal-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.gender-text {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: #555;
}

.gender-btn {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 10px;
}

.gender-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gender-form {
    margin-top: 40px;
    animation: slideIn 0.5s ease-out;
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    color: #333;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
}

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

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.1em;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.gender-options {
    text-align: center;
    margin: 25px 0;
}

.gender-options p {
    margin-bottom: 20px;
    font-weight: bold;
    color: #555;
}

.gender-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 25px;
}

.gender-choice {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 3px solid #ddd;
    color: #555;
    padding: 20px 30px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2em;
    font-weight: bold;
    min-width: 120px;
}

.gender-choice:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gender-choice.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.submit-guess {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    width: 100%;
}

.submit-guess:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

.submit-guess:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.thank-you {
    animation: bounceIn 1s ease;
}

.thank-you-content {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 20px;
    padding: 40px;
    color: white;
    text-align: center;
}

.thank-you-content h2 {
    color: white;
    margin-bottom: 20px;
}

/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
    #final-screen .game-screen {
        height: auto;
        min-height: 500px;
    }

    .final-layout {
        height: auto;
        min-height: 500px;
        gap: 40px;
        padding: 30px;
    }

    .baby-text {
        font-size: 3.5em;
    }

    .score-display {
        font-size: 3em;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .game-screen {
        padding: 20px;
    }

    #final-screen .game-screen {
        height: auto;
        min-height: 400px;
    }

    h1 {
        font-size: 2em;
    }

    .baby-text {
        font-size: 2.2em;
    }

    .answer-btn {
        padding: 12px 15px;
        font-size: 1em;
    }

    .form-container {
        padding: 20px;
    }

    .gender-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .gender-choice {
        min-width: auto;
        width: 100%;
    }

    .final-layout {
        flex-direction: column;
        gap: 20px;
        height: auto;
        min-height: 400px;
        padding: 20px;
    }

    .score-section {
        order: 2;
        min-height: auto;
    }

    .announcement-section {
        order: 1;
    }

    .baby-announcement {
        padding: 40px 30px;
        min-height: 300px;
    }

    .score-display {
        font-size: 2.5em;
    }
}