* {
    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-color: #0a0a0a;
    background-image: radial-gradient(circle at top, #1a1a1a, #000);
    color: #e0e0e0;
    padding: 1rem;
}

.card {
    width: 100%;
    max-width: 850px;
    background-color: #111;
    border: 3px solid #b30000;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(90deg, #ff1a1a, #660000);
    padding: 1.5rem;
    text-align: center;
    border-bottom: 3px solid #b30000;
}

header h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 0 10px #ff4d4d;
}

.subheading {
    font-size: 1rem;
    color: #ff9999;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background-color: #1a1a1a;
    padding: 0.8rem 0;
    border-bottom: 1px solid #330000;
}

nav button {
    background-color: #b30000;
    border: 2px solid #660000;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

nav button:hover {
    background-color: #e60000;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

.content {
    display: flex;
    flex-wrap: wrap;
    padding: 2rem;
    gap: 1rem;
    justify-content: center;
}

.sidebar {
    flex: 1 1 250px;
    background-color: #1a1a1a;
    border: 2px solid #660000;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.1);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 3px solid #b30000;
    overflow: hidden;
    background-color: #330000;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar h2 {
    color: #ff4d4d;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.sidebar p {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 0.8rem;
}

.note {
    font-style: italic;
    color: #ff8080;
}

main {
    flex: 2 1 400px;
}

main h3 {
    font-size: 1.6rem;
    color: #ff4d4d;
    margin-bottom: 0.5rem;
}

main p {
    font-size: 0.9rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.highlight {
    background-color: rgba(179, 0, 0, 0.2);
    padding: 0.6rem;
    border-left: 4px solid #ff1a1a;
    color: #ff9999;
    font-weight: 600;
}

.pictures {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 1rem;
    gap: 1rem;
}

.picture {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    background-color: #330000;
    border: 2px solid #b30000;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.picture:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

/* Popup (powiększanie zdjęć) */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.popup-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    border: 3px solid #b30000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #ff4d4d;
}
.toggle-btn {
    display: block;
    width: 100%;
    background-color: #1a1a1a;
    border: 2px solid #660000;
    color: #ff4d4d;
    font-weight: bold;
    text-align: left;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background-color: #330000;
    transform: scale(1.02);
}

.toggle-btn.open {
    background-color: #4d0000;
}

.toggle-content {
    display: none;
    background-color: #111;
    border: 2px solid #660000;
    border-radius: 10px;
    margin: 0.5rem 0 1rem 0;
    padding: 0.8rem 1rem;
    text-align: left;
    box-shadow: inset 0 0 10px rgba(255, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.toggle-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

ul {
    list-style-type: square;
    padding-left: 1.5rem;
    color: #ddd;
}
.bio-section h2 {
      font-size: 1.6rem;
      color: #ff4d4d;
      margin-bottom: 1rem;
    }

.bio-section p {
    font-size: 0.95rem;
    color: #ddd;
    margin-bottom: 1rem;
    line-height: 1.6;
}
.bio-section{
    padding: 5px;
}
.highlight {
    background-color: rgba(179, 0, 0, 0.2);
    padding: 0.6rem;
    border-left: 4px solid #ff1a1a;
    color: #ff9999;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.quote {
    font-style: italic;
    color: #ff8080;
    text-align: center;
    margin: 2rem 0;
}

strong {
    color: #ff9999;
}
@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }
    .content {
        flex-direction: column;
        align-items: center;
    }
    .sidebar {
        width: 100%;
    }
    .picture {
        width: 70px;
        height: 70px;
    }
      header h1 {
        font-size: 2rem;
      }

      .bio-section {
        padding: 1rem;
      }
}
