:root {
    font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    font-weight: 400;
    color-scheme: light dark;
    color: #ffffffde;
    background-color: #242424;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

body,
html,
#root {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%
}

a {
    font-weight: 500;
    color: #646cff;
    text-decoration: inherit
}

a:hover {
    color: #535bf2
}

body {
    margin: 0;
    display: flex;
    place-items: center;
    min-width: 320px;
    min-height: 100vh
}

h1 {
    font-size: 3.2em;
    line-height: 1.1
}

button {
    border-radius: 8px;
    border: 1px solid transparent;
    padding: .6em 1.2em;
    font-size: 1em;
    font-weight: 500;
    font-family: inherit;
    background-color: #1a1a1a;
    cursor: pointer;
    transition: border-color .25s
}

button:hover {
    border-color: #646cff
}

button:focus,
button:focus-visible {
    outline: 4px auto -webkit-focus-ring-color
}

@media (prefers-color-scheme: light) {
    :root {
        color: #213547;
        background-color: #fff
    }

    a:hover {
        color: #747bff
    }

    button {
        background-color: #f9f9f9
    }
}

#tooltip {
    position: absolute;
    background: #000000b3;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    display: none;
    transition: opacity .3s ease
}

#infoBox {
    position: absolute;
    background: #fff;
    color: #222;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px #0003;
    transition: opacity .5s ease, transform .3s ease;
    transform: scale(.95);
    opacity: 0;
    display: none;
    z-index: 1000;
    max-width: 300px
}

#infoBoxClose {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    color: #333
}

#infoBoxClose:hover {
    color: red;
    transform: scale(1.1);
    transition: all .2s ease
}

.fullscreen {
    width: 100vw;
    height: 100vh
}

.close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer
}

/* 🌗 Темний режим */
@media (prefers-color-scheme: dark) {
    #infoBox {
        background: #1e1e1e;
        color: #eee;
        box-shadow: 0 4px 12px #0006;
    }
}