@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/JetBrainsMono-Regular.woff2') format('woff2'),
       url('/static/fonts/JetBrainsMono-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/JetBrainsMono-Bold.woff2') format('woff2'),
       url('/static/fonts/JetBrainsMono-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
* {
    margin: 0;
    font-family: "JetBrains Mono", monospace;
    box-sizing: border-box;
    font-size: clamp(2vh, 2vw, 3vw);
}

:root {
    color-scheme: light dark;
    --bg: light-dark(#eceff4, #2e3440);
    --bg-secondary: light-dark(#e5e9f0, #3b4252);
    --primary: light-dark(#2e3440, #eceff4);
    --secondary: light-dark(#3b4252, #e5e9f0);
}

body {
    margin: 0;
    height: 100vh;
    height: var(--vh, 100vh);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg);
    overflow: hidden;
    position: relative;
    user-select: none;       /* стандартное свойство */
    -webkit-user-select: none; /* для Safari/Chrome */
    -moz-user-select: none;    /* для Firefox */
    -ms-user-select: none;     /* для IE/Edge */
}

/* слой для ASCII-символов */
.ascii-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.char {
    position: absolute;
    color: var(--secondary);
    opacity: 0;
    animation: twinkle 3s ease-in-out forwards;
    font-size: 0.8rem;
}

@keyframes twinkle {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Контент */
.content {
    
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 25px;
    color: var(--secondary);
    font-size: clamp(2vh, 2vw, 3vw);
}

#Karrless {
    color: var(--primary);
    font-weight: bold;
    font-size: clamp(2.5vh, 2.5vw, 3.5vw);
}
