:root {
    --bg: #ffffff;
    --text: #111111;
    --muted: #666666;
    --accent: #b6b6b6;
    --accent-dark: #ff8a94;
}

.dark {
    --bg: #111111;
    --text: #eaeaea;
    --muted: #9a9a9a;
    --accent: #b6b6b6;
    --accent-dark: #ff8a94;
}

@font-face {
    font-family:'inter';
    src: url(font/Inter-VariableFont_slnt\,wght.ttf)
}


body {
    margin: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: arial;
    font-size: 12px;
    font-weight: 700;
    background: var(--bg);
    color: var(--text);
}

.main {
    position: relative;
    padding: 0.75rem;
    max-width: 400px;
    width: 50%;
    min-width: 329px;
    display: flex;
    gap: 12px;
}

/* tabs */
.tabs {
    position: absolute;
    top: -10px;
    right: 12px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.dot {
    width: 20px;
    height: 20px;
    border-radius: 100%;
    background: var(--accent);
    border: none;
    cursor: pointer;
    position: relative;
}

.dot.active::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #fff;
    animation: pop 0.25s ease-out;
}

@keyframes pop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.tooltip {
    position: absolute;
    top: -22px;
    right: 0;
    background: #c7c7c7;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    opacity: 0;
    transform: translateY(4px);
    transition: 0.2s;
    pointer-events: none;
}

/* image */
.icon {
    width: 150px;
    height: auto;
}

/* text */
.text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.avi {
    color: var(--accent);
    margin: 0;
    font-size: 2.5rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    display: inline-block; /* REQUIRED */
}


.content-wrap {
    position: relative;
    top:-40px;
}

::selection {
    color: white;
    -webkit-text-stroke: 1px var(--accent);
    text-shadow:
        1px 1px 0 var(--accent),
        -1px -1px 0 var(--accent),
        1px -1px 0 var(--accent),
        -1px 1px 0 var(--accent);
    background: transparent;
}

.content {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

/* show the targeted section */
.content:target {
    opacity: 1;
    pointer-events: auto;
}

/* default state when there is NO hash */
.content-wrap:not(:has(.content:target)) #about {
    opacity: 1;
    pointer-events: auto;
}


.subtitle {
    margin: 0;
    font-size: 18px;
}

.time {
    align-self: flex-start;
    font-size: 9px;
    margin-top: 6px;
    color: var(--muted);
}

/* mobile */
@media (max-width: 500px) {
    .main {
        flex-direction: column;
        max-width: 20px;
        width: 30%;
        min-width: 200px;
    }

    .icon {
        width: 100%;
    }

    .content {
        top:40px;
    }

    .time {
        top:345px;
        position:absolute;
    }
}

.theme-toggle {
    width: 20px;
    height: 20px;
    border-radius: 100%;
    background: var(--accent);
    color:#fff;
    border: none;
    cursor: pointer;
    position: relative;
    padding:0 4px;
    display:grid;
    place-items:center;
}

.theme-toggle span {
    display:inline-block;
    transition:transform 1s ease;
}

.theme-toggle:hover span {
    transform: rotate(360deg);
}

* {
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.interests {
    max-height:45px;
    overflow-y:scroll;
}

p {
    margin-top:5px;
}

a:hover:not(.dot),
a:focus-visible {
    background: linear-gradient(
        90deg,
        #ffb2c8,
        #ffcdb4,
        #ffecb4,
        #c0ffb4,
        #b4e0ff,
        #beb4ff
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent; /* IMPORTANT */
    color: transparent;
    animation: pink-flow 1s linear infinite;
}


@keyframes pink-flow {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 200% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    a.active {
        animation: none;
        background-position: 50% 50%;
    }
}
