body, html {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(#fdfde8, #8ed8cd);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    flex-wrap: wrap;
    gap: 20px; /* Dodano odstęp dla lepszego układu */
}

.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.family-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 40px;
}

.right-panel {
    flex: 1 1 300px; /* Uelastyczniono panel */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card {
    background-color: white;
    border-radius: 25px;
    padding: 15px 35px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

.title-card h1 {
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-align: center;
}

.info-card p {
    text-align: center;
    color: #555;
    font-size: 1em;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    border-radius: 50px;
    background-color: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.btn-create {
    padding: 20px 45px;
    font-size: 1.4em;
    font-weight: 600;
    color: #444;
}

.menu-buttons {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-menu {
    padding: 15px 20px;
    width: 100%;
    color: #555;
    font-weight: 600;
    box-sizing: border-box;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    .left-panel {
        padding-bottom: 30px;
    }
    .title-card h1 {
        font-size: 1.5em;
    }
    .btn-create {
        padding: 15px 35px;
        font-size: 1.2em;
    }
}
.popup-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999;
}

.popup-box {
    background-color: white;
    padding: 20px 30px;
    border-radius: 12px;
    max-width: 300px;
    width: 80%;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 24px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
}

.popup-close:hover {
    color: #000;
}
