
@font-face {
    font-family: Alegreya;
    src: url(fonts/Alegreya-Regular.ttf);
}

:root {
    --color-dark: #181818;
    --color-light: #EEE;
    --color-primary: #FF4C4C;
    --color-secondary: #73c936;
}

html {
    font-size: 20px;
    scroll-behavior: smooth;
}

body {
    width: 480px;
    margin: auto;
    position: relative;
    background: var(--color-dark);
    color: var(--color-light);
    font-family: Alegreya;
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

small {
    font-size: 0.75rem;
}

h1 {
    color: var(--color-light);
    font-size: 3rem;
    margin-bottom: 0.8rem;
}

h2 {
    color: var(--color-light);
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

h3 {
    color: var(--color-light);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1.5rem;
}

ul {
    margin-bottom: 1.5rem;
    list-style-type: none;
}

li::before {
    content: "";
    position: absolute;
    width: 0.4rem;
    height: 0.4rem;
    background-color: var(--color-primary);
    top: 0.4rem;
    left: -1.2rem;
    transition: all 0.2s;
}

li {
    position: relative;
    margin-bottom: 0.2rem;

}

li.tooltip {
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}

li.tooltip::after {
content: "";
margin-left: 0.5rem;
color: #888;
font-size: 0.75rem;
opacity: 0;
transition: opacity 0.3s ease;
}

li.tooltip:hover::after {
content: attr(tooltip-text);
opacity: 1;
}

a:link {
    color: var(--color-light);
    text-decoration: underline;
    text-decoration-thickness: 0.15rem;
    text-decoration-color: var(--color-primary);
    transition: text-decoration-color 0.1s;
    text-underline-offset: 0.15rem;
}

a:visited {
    color: #EEE;
    text-decoration: underline;
    text-decoration-thickness: 0.15rem;
    text-decoration-color: var(--color-primary);
    transition: text-decoration-color 0.1s;
    text-underline-offset: 0.15rem;
}

a:hover {
    color: var(--color-light);
    text-decoration: underline;
    text-decoration-thickness: 0.15rem;
    text-decoration-color: var(--color-light);
    transition: text-decoration-color 0.1s;
    text-underline-offset: 0.15rem;
}

a:active {
    color: var(--color-light);
    text-decoration: underline;
    text-decoration-thickness: 0.15rem;
    text-decoration-color: var(--color-secondary);
    transition: text-decoration-color 0.1s;
    text-underline-offset: 0.15rem;
}

h1 a:link {
    text-decoration-thickness: 0.3rem;
    text-underline-offset: 0.3rem;
}

h2 a:link {
    text-decoration-thickness: 0.2rem;
    text-underline-offset: 0.2rem;
}

@keyframes flyInFromAbove {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    50% {
        transform: translateY(-100px);
        opacity: 0.0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    border: none;
    position: absolute;
    background: var(--color-primary);
    width: 3rem;
    height: 3rem;
    left: -4.2rem;
    top: 0.4rem;
    border-radius: 0%;
    transition: all 0.2s ease;
    animation: flyInFromAbove 1s ease-out;
}

li:hover::before,
.logo:hover,
body:has(.logo:hover) li::before {
    border-radius: 50%;
}

li:has(a:active)::before,
.logo:active,
body:has(.logo:active) li::before {
    background: var(--color-secondary);
    border-radius: 0%;
    transform: translateY(0) rotate(45deg);
}

body:has(.logo:active) a:link,
body:has(.logo:active) a:visited {
    text-decoration-color: var(--color-secondary);
}

.note-container {
  position: relative;
}
.note {
    position: absolute;
    display: block;
    z-index: -1;
    left: 100px;
    bottom: 0%;
    transform: rotate(10deg);
    pointer-events: none;
    width: 160px;
    height: auto;
}

#footer{
    color: #727272;
}

@media screen and (max-width: 700px) {
    html {
        font-size: 16px;
    }
    body {
        width: auto;
        margin-left: 4.5rem;
        margin-right: 1rem;
    }
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.2rem;
    }
    .logo {
        left: -3.5rem;
        top: 0.2rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}
