:root {
    --bg: #1b1e28;
    --fg: #a6accd;
    --accent: #5de4c7;
    --accent-hover: #89ddff;
    --tooltip-bg: #303340;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family:
        system-ui,
        -apple-system,
        sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    text-align: center;
}

.pfp {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    object-fit: cover; /* */
    margin-bottom: 1rem;
}

h1 {
    color: #e4f0fb;
    margin: 0;
    font-size: 2rem;
}

a {
    text-decoration: none;
}

.rand {
    color: #737aa2;
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    min-height: 1.5em;
}

.socials {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 350px;
}

.social-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-btn:hover {
    background: var(--accent);
    color: var(--bg);
}

.social-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #565a6e; 
    color: #565a6e;
}

.social-btn:disabled:hover {
    background: transparent;
    color: #565a6e;
}

/* hide the tooltip for disabled buttons */
/*.social-btn:disabled .tooltip {
    display: none;
}*/

.tooltip {
    visibility: hidden;
    background-color: var(--tooltip-bg);
    color: var(--fg);
    text-align: center;
    padding: 5px 10px;
    border-radius: 6px;
    position: absolute;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.85rem;
    opacity: 0;
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--tooltip-bg) transparent transparent transparent;
}

.social-btn:hover .tooltip {
    visibility: visible;
    opacity: 1;
    bottom: 125%;
}
