@charset "UTF-8";

* {
    margin: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #0f0f0f;
    color: #e8e8e8;
    min-height: 100vh;
}

/* -------------- */
/* Nav */
/* -------------- */

nav {
    padding: 1rem 2rem;
    border-bottom: 1px solid #222;
}

nav a {
    color: #888;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #e8e8e8;
}

/* -------------- */
/* Main */
/* -------------- */

main {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

main h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #cd6f9e, #553fa6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.demo {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #1a1a1a;
}

.demo h2 {
    font-size: 1rem;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.demo p {
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.demo p code {
    background: #1a1a1a;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #cd6f9e;
}

/* -------------- */
/* Loader */
/* -------------- */

.loader-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 180px;
}

.loader {
    border: 15px solid #272E38;
    width: 120px;
    height: 120px;
    border-bottom: 15px solid #ff00aa;
    border-radius: 50%;
    animation: spin linear 1s infinite;
}

@keyframes spin {
    0%   { rotate: 0deg; }
    100% { rotate: 360deg; }
}

/* -------------- */
/* Tooltip */
/* -------------- */

.tooltip-demo {
    color: #e8e8e8 !important;
    font-size: 1rem !important;
}

.base {
    display: inline-block;
    position: relative;
    cursor: default;
}

.base:hover .content {
    transform: translate(-50%, -110%);
    opacity: 1;
}

.content {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -60%);
    pointer-events: none;
    background-color: #00FFF1;
    color: #0C1016;
    border-radius: 0.3rem;
    padding: 0.3rem 0.6rem;
    transition: all 150ms;
    opacity: 0;
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.875rem;
}

/* -------------- */
/* Sibling-Fade */
/* -------------- */

.boxes {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.box {
    width: 3rem;
    height: 3rem;
    background-color: #00fff1;
    border-radius: 0.5rem;
    transition: opacity 150ms;
    cursor: pointer;
}

.boxes:hover > :not(:hover) {
    opacity: 0.2;
}