/* ================= BASE ================= */
body {
    background-color: #00ffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 100vh;
    font-family: "Courier New", monospace;
    margin: 0;
}

/* ================= CARD ================= */
.card {
    width: 350px;
    height: 200px;
    background: linear-gradient(135deg, #ffcc00, #ff6600);
    border: 3px solid #0000ff;
    box-shadow: 5px 5px 0 #ff00ff;
    padding: 20px;
    color: #000;
    position: relative;
    z-index: 2;
    overflow-y: auto; /* Scrollbar bei Bedarf */
}

/* Name and title */
.card h1 {
    font-size: 24px;
    margin: 0;
    color: #000080;
    text-shadow: 1px 1px #fff;
}

.card h2 {
    font-size: 16px;
    margin: 5px 0 15px;
    color: #ff0000;
}

.card h3 {
    font-size: 16px;
    margin: 10px 0 20px;
    color: #ff0000;
    
}


/* Text in card */
.card p{
    font-size: 14px;
    margin: 8px 0;
    max-width: 230px;
    line-height: 1.3;
}

/* Decorative 90s box */
.card::after {
    content: "";
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border: 3px dashed #00ff00;
    transform: rotate(15deg);
}

/* Scrollbar styling */
.card::-webkit-scrollbar {
    width: 8px;
}
.card::-webkit-scrollbar-track {
    background: #ffcc00;
}
.card::-webkit-scrollbar-thumb {
    background: #0000ff;
    border: 1px solid #000;
}

/* Links */
.invisible-link {
    color: inherit;
    text-decoration: none;
}
.invisible-link:hover {
    text-decoration: underline;
}

/* Info rows (Email, Phone, Website, Bio, Kunst) */
.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin: 3px 0;
}

/* ================= PORTRAIT ================= */
.portrait {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 70px;
    height: 90px;
    border: 3px solid #0000ff;
    background: #ffffff;
    padding: 3px;
    box-shadow: 2px 2px 0 #ff00ff;
    z-index: 3;
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= BLINKING IMAGE ================= */
.blink-img {
    position: absolute;
    pointer-events: none; /* Keine Klicks blockieren */
    z-index: 1; /* Unterhalb der Karte */
    opacity: 0;
    transition: opacity 0.3s;
    max-width: 90vw;
    height: auto;
}


/* ================= MOBILE ================= */
@media (max-width: 600px) {
    body {
        align-items: flex-start;   /* Karte etwas höher */
        padding: 40px 15px 20px 15px; /* Oben größer, Seiten kleiner */
    }

    .card {
        width: 100%;
        max-width: 320px;  /* passt sich kleinerem Display an */
        margin-top: 20px;  /* Abstand vom oberen Rand */
    }

    .card h1 {
        font-size: 20px;
    }

    .card h2 {
        font-size: 14px;
    }

    .card p {
        font-size: 12px;
        max-width: 100%;
    }

    .info-row {
        font-size: 12px;
    }

    .portrait {
        width: 60px;
        height: 80px;
        top: 15px;
        right: 15px;
    }
}
