﻿body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #BFCBCE;
    background-blend-mode: darken;
    background-image: url('/img/parallaxBG.png');
    background-size: 120em; /* Makes sure the image covers the whole screen */
    background-repeat: no-repeat; /* Prevents tiling */
    background-position: center; /* Keeps the image centered */
    background-attachment: fixed; /* Keeps image fixed as you scroll */
    text-align: center;
}

h1 {
    margin-top: 30px;
    font-size: 28px;
}

.container {
    padding: 20px;
    max-width: 500px;
    margin: auto;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

h2 {
    margin-bottom: 20px;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

button {
    padding: 15px;
    font-size: 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.3s ease;
}

    button:active {
        transform: scale(0.97);
    }

.boy {
    background-color: #4da6ff;
    color: white;
}

.girl {
    background-color: #ff66b3;
    color: white;
}

button:disabled {
    opacity: 0.6;
    cursor: default;
}

.result {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

    .result.show {
        opacity: 1;
        transform: translateY(0);
    }

@media (min-width: 600px) {
    .btn-group {
        flex-direction: row;
    }

    button {
        flex: 1;
    }
}

.ultrasound {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.final-reveal {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom right, #ff99cc, #ffe6f2);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    z-index: 1000;
}

    .final-reveal.show {
        opacity: 1;
        pointer-events: auto;
    }

.final-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.final-content p {
    font-size: 20px;
}

.final-image {
    width: 85%;
    max-width: 350px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.6s ease;
}

.final-reveal.show .final-image {
    transform: scale(1);
    opacity: 1;
}

