@font-face {
    font-family: NightmareMaker;
    src: url(fonts/NightmareMaker.ttf)
}

@font-face {
    font-family: Mulish;
    src: url(fonts/Mulish-VariableFont_wght.ttf)
}

@font-face {
    font-family: Dorblue;
    src: url(../../res/fonts/Dorblue.ttf)
}

body,
html {
    height: 100%;
    width: 100%;
    position: static;
    overflow-x: hidden;
    margin: 0
}

.darkTheme {
    --bg: #252525, #3e3e3e, #565656;
    --big-text: #d3d3d3;
    --name-shadow: #d3d3dc30;
    --bg-messages: transparent;
    --messages-shadow: 0.5vmin 0.2vmin;
    --main-inputs: #0000000d;
}

body {
    --bg: #1F6521, #53900F, #D6CE15;
    --big-text: lightgray;
    --name-shadow: #00000030;
    --bg-messages: #d3d3d3;
    --messages-shadow: 3vmin 2vmin;
    --main-inputs: #d3d3d377;
    --url-color: #33aaff;
    --visited-url-color: #22bbbb;
    --hover-url-color: #aaffff;
    background: linear-gradient(45deg, var(--bg));
    background-size: 200% 200%;
    animation: gradient 20s ease infinite;
    top: 0;
    left: 0;
    position: absolute;
    font-family: Mulish;
    line-height: 1.5vh;
    font-size: 2vmax;
    color: #d3d3d3
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
    margin-top: 20px;
    margin-bottom: 10px
}

button {
    cursor: pointer;
    font: inherit
}

a {
    color: var(--url-color);
    transition: .5s;
    text-decoration: none
}

a:visited {
    color: var(--visited-url-color)
}

a:hover {
    color: var(--hover-url-color);
    text-decoration: underline var(--hover-url-color)
}

#animated-messages {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    z-index: -1000
}

.light {
    position: absolute;
    border-radius: 3vmin 3vmin 10% 3vmin;
    height: 2vh;
    width: 20vw;
    background: var(--bg-messages);
    box-shadow: #d3d3d3 0 0 var(--messages-shadow);
    opacity: 0;
    top: 100vh;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: -1
}

#main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh
}

#header {
    min-height: 20vh;
    display: flex;
    justify-content: center;
    font-family: Mulish
}

#name {
    font-family: Dorblue;
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--big-text);
    font-size: 6vmax;
    z-index: -1;
    text-shadow: .1em .1em .2em var(--name-shadow);
}

#getId {
    display: grid;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    text-align: center;
    box-sizing: border-box
}

#startChat {
    display: grid;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    text-align: center;
    box-sizing: border-box;
    top: 2.5%;
    position: relative;
    width: 21vmax
}

.startButton {
    margin-top: .5vmax;
    height: 3.5vmax
}

.inp {
    position: relative;
    margin: auto;
    width: 100%;
    border-radius: .7vmax;
    overflow: hidden;
    font-family: Mulish
}

.inp #label {
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
    position: absolute;
    top: 26%;
    left: 3%;
    font-size: .9em;
    color: rgb(255 40 40);
    font-weight: 500;
    transform-origin: 0 0;
    transform: translate3d(0, 0, 0);
    transition: all .2s ease;
    pointer-events: none;
    font-family: Mulish
}

#label:empty:before {
    content: 'ID чата (необязательно)';
    color: #ffffffde
}

.inp .focus-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left
}

.inp input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    border: 0;
    font-family: inherit;
    padding: 6% 3% 0 4%;
    font-size: 1.05em;
    font-weight: 400;
    background: #00000054;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .3);
    color: #fff;
    transition: all .15s ease;
    font-family: Mulish
}

.inp input:hover {
    transition: all .3s ease;
    box-shadow: inset 0 -2px 0 #d3d3d3
}

.inp input:not(:placeholder-shown)+#label:empty {
    color: rgb(255 255 255 / 50%)
}

.inp input:not(:placeholder-shown)+#label {
    transform: translate3d(0, -35%, 0) scale(.6)
}

.inp input:focus {
    background: var(--main-inputs);
    outline: 0;
    box-shadow: inset 0 -2px 0 #d3d3d3
}

.inp input:focus+#label:empty {
    color: #d3d3d3
}

.inp input:focus+#label {
    -webkit-text-stroke: .04px #000;
    transform: translate3d(0, -35%, 0) scale(.6)
}

.inp input:focus+#label+.focus-bg {
    transform: scaleX(1);
    transition: all .1s ease
}

.mainButtons {
    word-break: keep-all;
    background: #00000054;
    border-radius: .7vmax;
    font-size: .9em;
    color: #ffffffde;
    font-weight: 500;
    transform-origin: 0 0;
    transform: translate3d(0, 0, 0);
    transition: all .2s ease;
    border: 0;
    box-shadow: inset 0 -1px 0 rgb(0 0 0 / 30%);
    font-family: Mulish
}

.mainButtons img {
    height: 1.5vmax
}

.mainButtons:hover {
    font-weight: 850;
    background: var(--main-inputs);
    box-shadow: inset 0 -2px 0 #d3d3d3
}

#bottomButtons {
    position: absolute;
    width: 98%;
    display: flex;
    justify-content: center;
    bottom: 1.5vmax
}

#switchThemeMenu button {
    opacity: 0;
    transform: translateX(100vw);
    transition: opacity .5s ease, transform .5s ease;
    padding: .5vmax
}

#switchThemeMenu button:nth-child(1) {
    transition-delay: 0s
}

#switchThemeMenu button:nth-child(2) {
    transition-delay: .1s
}

#switchThemeMenu button:nth-child(3) {
    transition-delay: .2s
}

#switchThemeMenu {
    position: absolute;
    right: 1vmax;
    bottom: 3.5vmax;
    pointer-events: bounding-box
}

.themeSelected {
    box-shadow: inset 0 -2px 0 #086bc7;
    background: #336db477;
    font-weight: 850
}

#toDescription {
    padding: 1vmax;
    border-radius: .7vmax;
    color: #fff;
    opacity: 1;
    font-family: Mulish
}

#switchTheme {
    position: absolute;
    right: 1vmin;
    padding: .5vmax;
    height: 100%
}

#switchThemeMenu:hover button {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all
}

#switchTheme:hover+#switchThemeMenu button {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all
}

#switchTheme img {
    height: 100%;
    vertical-align: middle
}

#description {
    line-height: 1;
    text-align: center;
    border-top: dashed .3vmax #d3d3d3;
    margin-bottom: 5vw
}

#description h2 {
    font-size: 3vmax
}

#description h3 {
    text-align: left;
    margin: 1vmax 2vmax;
    font-size: 2vmax
}

#description p {
    text-align: left;
    margin: 1vmax 2vmax;
    font-size: 1.7vmax
}

#description ul {
    list-style-type: none;
    margin-top: 0
}

#description summary {
    display: flex;
    flex-direction: row
}

#description summary a {
    margin: 0 2vmax;
    font-size: 1.7vmax
}

#description summary h4 {
    text-decoration: none;
    color: #d3d3d3;
    transition: .5s;
    margin: 0 2vmax;
    font-size: 1.7vmax
}

#description summary h4:hover {
    color: #fff;
    text-decoration: underline;
    cursor: pointer
}

#description details p {
    margin: 1vmax 3vmax
}

#footer {
    height: 20vh;
    min-height: 128px;
    background: rgba(55, 55, 55, .3);
    padding: 1% 0;
    font-family: Mulish;
    text-align: center
}

#footer .row {
    width: 100%;
    margin-top: 1%;
    color: #d3d3d3;
    font-size: .8em;
    line-height: 1.2;
    display: flex;
    justify-content: center;
    align-content: center
}

#footer .row ul {
    width: 100%
}

#footer .row ul li {
    display: inline-block;
    margin: 0 30px
}

#footer .row a i {
    font-size: 2em;
    margin: 0 1%
}

.row ul a {
    text-decoration: none;
    color: #d3d3d3
}

.row ul a:hover {
    color: #fff
}

@keyframes floatUp {
    0% {
        top: 100vh;
        opacity: 0
    }

    25% {
        opacity: 1
    }

    50% {
        top: 0;
        opacity: .8
    }

    75% {
        opacity: 1
    }

    100% {
        top: -100vh;
        opacity: 0
    }
}

@keyframes gradient {
    0% {
        background-position: 0 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0 50%
    }
}