@font-face {
    font-family: UndRform;
    src: url('fonts/UndRform-Italic.woff2') format('woff2'),
        url('fonts/UndRform-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --mono: monospace;
    --accent: #40a8cb;
    --accent-hover: #80dbfd;
    --text: #fdfdfd;
    --dim: #90abb5;
    --bg: #123;
    --border: #007f7f;
}

* {
    box-sizing: border-box;
}

::selection {
    background-color: var(--accent);
    color: #000;
}

::-webkit-scrollbar {
    width: 0.5em;
    height: 0.5em;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 127, 127, 0.5);
}

::-webkit-scrollbar-track {
    background-color: #000;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #007f7f;
}

html {
    height: 100%;
    background: url(/media/bg2.png) no-repeat fixed center;
    background-size: cover;
    background-repeat: repeat-y;
    background-position-y: top;
    background-position-x: center;
    color: var(--text);
    overflow-y: scroll;
    overflow-x: hidden;
}

body {
    position: relative;
    font-family: UndRform, var(--mono), sans-serif;
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.02em;
    height: 100%;
    background: url(/media/findist.png) no-repeat fixed center;
    background-size: cover;
    background-repeat: repeat-y;
    background-position-y: top;
    background-position-x: center;
    color: var(--text);
    overflow-y: scroll;
    overflow-x: hidden;
    text-shadow: 0 0 2px rgba(128, 219, 253, 0.3);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.main {
    position: absolute;
    top: 0;
    left: 40px;
    width: 750px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.85);
    border-left: 2px solid var(--border);
    border-right: 1px solid rgba(0, 127, 127, 0.2);
    box-shadow: 0 0 30px rgba(0, 127, 127, 0.1);
}

.navigate {
    border: 1px solid var(--border);
    background: rgba(0, 65, 96, 0.5);
    color: var(--text);
    font-size: 15px;
    text-align: center;
    padding: 8px;
    letter-spacing: 0.03em;
    text-transform: lowercase;
    margin-bottom: 18px;
    box-shadow: 0 0 10px rgba(0, 127, 127, 0.2);
    transition: all 0.3s ease;
}

.navigate:hover {
    background: rgba(12, 51, 72, 0.7);
    box-shadow: 0 0 15px rgba(64, 168, 203, 0.3);
}

.navigate a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s ease;
    text-shadow: 0 0 5px rgba(64, 168, 203, 0.3);
}

.navigate a:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 10px rgba(128, 219, 253, 0.6);
}

p {
    width: 740px;
    line-height: 21px;
    margin: 12px 0;
    padding: 2px 0;
    color: var(--text);
}

i {
    color: var(--dim);
}

strong {
    font-weight: 400;
    color: #00fd80;
    text-shadow: 0 0 8px rgba(0, 253, 128, 0.4);
}

b {
    font-weight: 400;
    color: var(--accent);
    text-shadow: 0 0 8px rgba(64, 168, 203, 0.4);
}

a {
    color: var(--accent);
    text-decoration: none;
    cursor: crosshair;
    transition: all 0.2s ease;
    text-shadow: 0 0 5px rgba(64, 168, 203, 0.3);
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-decoration-color: #fd8040;
    text-shadow: 0 0 10px rgba(128, 219, 253, 0.6);
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    opacity: 0.4;
    margin: 22px 0;
    box-shadow: 0 0 5px rgba(0, 127, 127, 0.2);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(64, 168, 203, 0.3));
    transition: filter 0.3s ease;
}

img:hover {
    filter: drop-shadow(0 0 15px rgba(128, 219, 253, 0.5));
}

.loading {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes blink {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 0;
    }
}

.main ul {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    line-height: 21px;
}

.main ul li::before {
    content: "🞂";
    color: #fd8040;
    margin-right: 6px;
}

button,
input {
    background-color: rgba(0, 65, 96, 0.5);
    font-family: UndRform, var(--mono), sans-serif;
    color: var(--text);
    border: 1px solid var(--border);
    cursor: crosshair;
    transition: all 0.3s ease;
}

button:hover,
input:hover {
    background-color: rgba(12, 51, 72, 0.7);
    box-shadow: 0 0 10px rgba(0, 127, 127, 0.2);
}

summary {
    font-weight: 400;
    letter-spacing: -0.02em;
    cursor: crosshair;
    color: var(--accent);
    transition: all 0.2s ease;
}

summary:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 8px rgba(128, 219, 253, 0.5);
}

blockquote {
    margin: 0;
    margin-top: -0.8em;
    margin-bottom: 0;
    padding: 0 0.8em;
    border-left: 0.2em solid rgba(0, 127, 127, 0.3);
    background: rgba(0, 0, 0, 0.25);
    position: relative;
    display: block;
}

@media (max-width: 980px) {
    .main {
        left: 0;
        width: 100%;
        border-left: none;
    }

    p {
        width: 100%;
    }
}

.glow {
    text-shadow: 0 0 10px currentColor;
}

.cyan {
    color: #40a8cb;
}

.green {
    color: #00fd80;
}

.orange {
    color: #fd8040;
}

.yellow {
    color: #fdfd00;
}

.pink {
    color: #fd80fd;
}

.tooltip {
    position: relative;
    text-align: left;
}

.tooltip .tooltiptext {
    visibility: hidden;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--text);
    text-align: left;
    padding: 8px 12px;
    border: 1px solid var(--border);
    position: absolute;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

table {
    border-collapse: separate;
    border-spacing: 0 0.2em;
    background-color: rgba(12, 51, 72, 0.3);
    width: 100%;
}

td,
th {
    padding: 8px 12px;
    text-align: left;
}

th {
    color: var(--dim);
    background-color: rgba(12, 51, 72, 0.5);
    text-transform: uppercase;
    font-weight: 400;
}

td {
    background-color: rgba(0, 0, 0, 0.3);
}

tr:hover td {
    background-color: rgba(12, 51, 72, 0.4);
}