* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    text-align: center;
    padding: 40px;
}

.magic-text {
    font-size: 2.8rem;
    margin-bottom: 10px;
    animation: glow 2s infinite alternate;
}

.ancestor-text {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 40px;
}

.photos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.person {
    text-decoration: none;
    color: white;
    text-align: center;
    transition: transform 0.3s ease;
}

.person img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.person span {
    display: block;
    margin-top: 10px;
    font-weight: 500;
}

.person:hover {
    transform: translateY(-8px) scale(1.05);
}

.main img {
    width: 180px;
    height: 180px;
    border: 4px solid #00eaff;
}

.ancestor-text a {
    color: #00eaff;
    text-decoration: none;
    position: relative;
}

.ancestor-text a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #00eaff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ancestor-text a:hover::after {
    transform: scaleX(1);
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #00eaff;
    }
    to {
        text-shadow: 0 0 25px #00eaff;
    }
}

@media (max-width: 900px) {
    .photos {
        gap: 25px;
    }

    .main img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 600px) {
    .magic-text {
        font-size: 2rem;
    }

    .ancestor-text {
        font-size: 0.9rem;
    }

    .photos {
        flex-direction: column;
        gap: 30px;
    }

    .person img {
        width: 120px;
        height: 120px;
    }

    .main img {
        width: 160px;
        height: 160px;
    }
}

.person {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
