@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Roboto:wght@700&display=swap');

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    margin: 0;
    touch-action: manipulation;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif; /* Overall app font */
    background-color: #f4f5f6;
    font-size: 14px;
    color: #666666;
    overflow: hidden; /* Prevent scrollbars */
}

.container {
    background: url('bgg.jpg') no-repeat center center/cover; /* Changed to bgg.jpg and cover */
    height: 100vh;
    width: 100vw; /* Ensure it covers full width */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: relative;
}

.app-title {
   

    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 3em;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    z-index: 10; /* Ensure title is above everything */
}

.illustration {
    width: 40%; /* Adjust as needed */
    margin-top: 5%;
    margin-left: 5%;
    max-width: 600px;
    height: auto;
    animation: fadeInIllustration 1.5s ease-out forwards;
    z-index: 2; /* Ensure illustration is below card but above background */
}

.card {
    margin-top: 1.5%;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 450px; /* Increased width to accommodate new buttons */
    max-width: 90%; /* Max width for responsiveness */
    display: flex;
    flex-direction: column;
    align-items: center;
margin-right: 8%;
    /* Positioning for cards */
    position: absolute;
    right: 5%; /* Position to the right of the screen */
    top: 50%;
    transform: translateY(-50%);

    /* Transition for visibility (opacity changes smoothly, z-index changes instantly at end/start) */
    /* Default transition for all cards */
    transition: opacity 0.6s ease-in-out, z-index 0.001s linear;
}

.card.hidden {
    opacity: 0;
    pointer-events: none; /* Disable interactions when hidden */
    z-index: -1; /* Send to back when hidden */
    /* z-index changes *after* the opacity transition is complete */
    transition: opacity 0.6s ease-in-out, z-index 0.001s 0.6s linear;
}

.card.visible {
    opacity: 1;
    pointer-events: auto; /* Enable interactions when visible */
    z-index: 5; /* Bring to front when visible */
    /* z-index changes *at the start* of the opacity transition (effectively instantly) */
    transition: opacity 0.6s ease-in-out, z-index 0.001s linear;
}

.card-title {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 700;
}

.or-separator {
    margin: 25px 0; /* Increased margin for better spacing */
    color: #777;
    font-size: 1.1em;
}

/* === BUTTON BASE (New Button Styling) === */
.button {
    position: relative;
    padding: 0;
    width: 280px; /* Adjusted width */
    height: 80px;
    border: 4px solid #007BFF;
    background-color: #007BFF;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    margin: 15px 0; /* Added margin for spacing between buttons */

    box-shadow:
        -6px -6px 15px #ffffff,
        -6px -6px 30px #ffffff,
        6px 6px 15px rgba(0, 0, 0, 0.2),
        6px 6px 30px rgba(0, 0, 0, 0.1);
}

.button:hover {
    background-color: #ffffff;
}

.button:active {
    box-shadow: none;
}

.button:active .button__content {
    box-shadow: none;
}

.button:active .button__text,
.button:active .button__icon {
    transform: translate3d(0, 0, 0);
}

/* === BUTTON CONTENT === */
.button__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    padding: 0 20px;

    box-shadow:
        inset 0px -6px 0px #dddddd,
        0px -6px 0px #f4f5f6;

    transition: 0.15s ease-in-out;
}

/* === ICON === */
.button__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate3d(0px, -4px, 0px);
    transition: 0.15s ease-in-out;
}
.button__icon svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
    transition: 0.15s ease-in-out;
}
.button:hover .button__icon svg {
    fill: #007BFF;
}

/* === TEXT === */
.button__text {
    font-family: "Roboto", sans-serif; /* Specific font for button text */
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: #ffffff;
    transform: translate3d(0px, -4px, 0px);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    transition: 0.15s ease-in-out;
}
.button:hover .button__text {
    color: #007BFF;
    text-shadow: none;
}


/* Animations */
@keyframes fadeInIllustration {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}