* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url("bgdoll.jpg");
    padding: 1rem;
}

.card {
    width: 100%;
    max-width: 800px;
    background-color: #fff0f8;
    border: 5px solid #d87ce0;
    border-radius: 25px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
}

header {
    background: linear-gradient(90deg, #fbb1f0, #d9a1fc);
    padding: 1.5rem;
    border-bottom: 4px dotted #d87ce0;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #800080;
}

.subheading {
    font-size: 1rem;
    color: #a64ca6;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background-color: #f8e0f8;
    padding: 0.8rem 0;
}

nav button {
    background-color: #fbb1f0;
    border: 3px solid #d87ce0;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #800080;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

nav button:hover {
    background-color: #e799f7;
    transform: translateY(-2px);
}

.content {
    display: flex;
    flex-wrap: wrap;
    padding: 2rem;
    gap: 1rem;
    justify-content: center;
}

.sidebar {
    flex: 1 1 250px;
    background-color: #f8e0f8;
    border: 3px solid #d87ce0;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 5px dashed #d87ce0;
    overflow: hidden;
    background-color: #fbb1f0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar h2 {
    color: #800080;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.sidebar p {
    font-size: 0.85rem;
    color: #a64ca6;
    margin-bottom: 1rem;
}

main {
    flex: 2 1 400px;
    text-align: left;
}

main h3 {
    font-size: 1.6rem;
    color: #800080;
    margin-bottom: 0.5rem;
}

main p {
    font-size: 0.9rem;
    color: #a64ca6;
    margin-bottom: 1rem;
}

.highlight {
    background-color: #fcd6f5;
    padding: 0.5rem;
    border-left: 4px solid #d87ce0;
}

.pictures {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 1rem;
    gap: 0.8rem;
}

.picture {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #fbb1f0;
    border: 3px solid #d87ce0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    color: #800080;
    transition: transform 0.2s ease;
}

.picture img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.picture:hover {
    transform: scale(1.2);
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    nav button {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    .avatar {
        width: 80px;
        height: 80px;
    }
    main h3 {
        font-size: 1.3rem;
    }
    main p,
    .sidebar p {
        font-size: 0.8rem;
    }
    .picture {
        width: 60px;
        height: 60px;
        font-size: 0.7rem;
    }
    .picture img {
        width: 40px;
        height: 40px;
    }
}
/* ===== Popup (Lightbox) ===== */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(255, 192, 203, 0.5);
    border: 4px solid #d87ce0;
    animation: zoomIn 0.3s ease;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #fbb1f0;
}

/* Animacje */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0.5; }
    to { transform: scale(1); opacity: 1; }
}
