/* apply to the whole page */
body {
  touch-action: manipulation;
}

:root {
    --white: #ffffff;
    --bg: #222225;
    --pink: #FF6984;
    --pink_opacity: rgba(255, 105, 132, 0.3);
    --orange: #FE9C41;
    --orange_opacity: rgba(254, 156, 65, 0.3);
    --yellow: #F3EC18;
    --yellow_opacity: rgba(243, 236, 24, 0.3);
    --green: #41D47C;
    --green_opacity: rgba(65, 212, 124, 0.3);
    --light_blue: #00B9CE;
    --light_blue_opacity: rgba(0, 185, 206, 0.3);
    --blue: #2B5FE6;
    --blue_opacity: rgba(43, 95, 230, 0.3);
    --purple: #AF42F1;
    --purple_opacity: rgba(175, 66, 241, 0.3);
    --ease_transition: cubic-bezier(0.2, 1, 0.3, 1);
    --after-content: "Click";

    /* spacing scale (multiples of 4px) */
    --space-1: 4px;
    --space-2: 8px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* font sizes */
    --text-sm: 14px;
    --text-base: 16px;
    --text-md: 18px;
    --text-lg: 24px;
    --text-xl: 30px;
    --text-2xl: 36px;
    --text-3xl: 50px;

    /* secondary text (descriptions, skill lists) */
    --muted-opacity: 0.7;

    /* height of the fixed header bar (smaller on phones, see responsive.css) */
    --header-height: 72px;
}

body {
    align-items: center;
    overflow: scroll;
    justify-content: flex-start;
    background-color: var(--bg);

    margin: 0;
    background-color: var(--bg);
    color: var(--white);
    font-family: "IBM Plex Sans", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;

    -webkit-user-select: none;
    /* Chrome, Safari and Opera */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE/Edge */
    user-select: none;
    /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */

    overflow-x: hidden;
}

/* buttons and links take all their looks from their own classes */
:where(button) {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    text-align: inherit;
}

:where(a) {
    color: inherit;
    text-decoration: none;
}

/* keep the custom cursor over links and buttons (browsers show a hand on links) */
:where(a, button) {
    cursor: inherit;
}

:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 4px;
}

/* the custom mouse follower replaces the cursor when there is a mouse */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }
}

/* mouse css */

.mouse_follower {
    height: 80px;
    width: 80px;
    position: fixed;
    margin: -40px 0 0 -40px;
    z-index: 10;
    pointer-events: none;
}

.mouse_follower::after {
    content: var(--after-content);
    position: absolute;
    font-family: "Pixelify Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    transform: translateY(-50%);
    top: 50%;
    text-align: center;
    pointer-events: none;

    text-shadow: -1px -1px 0 var(--bg),
        1px -1px 0 var(--bg),
        -1px 1px 0 var(--bg),
        1px 1px 0 var(--bg)
}

.mouse_follower_border {
    content: "";
    height: 80px;
    width: 80px;
    position: fixed;
    border: 1px var(--white) solid;
    transform: translate(-50%, -50%);
    transition: top 0.2s ease-out, left 0.2s ease-out;
}

.mouse_follower_square {
    content: "";
    height: 16px;
    width: 16px;
    position: absolute;
    background-color: var(--white);
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    z-index: 10;
    transition: width 0.2s ease-out, height 0.2s ease-out;
}

.mouse_follower_square.clickable {
    height: 40px;
    width: 40px;
}