@font-face {
    font-family: "Balthazar";
    src: url("../fonts/Balthazar-Regular.ttf") format("woff2");
}

#capture-block {
    position: fixed;
}

.nav-div {
    display: flex;
    margin: 20px 5% -40px 5%;
    justify-content: space-between;
}

.nav-button {
    padding: 10px 20px;
    box-shadow: 0 0 7px 7px rgb(255 255 255 / 73%), inset 0 0 70px 0px #ffffff3b;
    background-color: #ffffffab;
    font-size: 20px;
    font-weight: 600;
    z-index: 1;
}

.home {
    top: 0;
    left: 0;
}

.logout {
    top: 0;
    right: 0;
}

body {
    font-family: 'Balthazar', serif;
    font-size: calc(20px + .3vw);
    color: #04b0b7;
    background-color: #000;
    animation: gradientMove 200ms ease infinite;
}

h1, h2, .page-title, button {
    text-align: center;
    color: #dd110a;
    font-family: 'copperplate gothic', serif;
}

.raw-center h2 {
    color: #04b0b7;
}

img.dark {
    border-radius: 50px;
    box-shadow: 0 0 16px -6px #fff;
    background-color: #ffffff29;
}

h1 {
    text-shadow: 0 1px 4px #bb0d0d, 0 1px 8px #000, 1px 0 8px #000, -1px 0 8px #000, 0 -1px 8px #000;
}

li {
    width: 22%;
    text-align: center;
    padding: 10px 0;
    min-width: 130px;
    hyphens: auto;
    word-break: break-word;
}

.col-1 {
    width: 100%;
}

.col-2 {
    width: 50%;
}

.col-3 {
    width: 33%;
}

.col-4 {
    width: 25%;
}

.wrapper {
    width: 90%;
    margin: 0 auto;
}

.logo-div {
    width: 50%;
    max-width: 250px;
    min-width: 120px;
    margin: 0 auto;
    margin-bottom: 10px;
}

.logo-div img {
    width: 50%;
    height: auto;
    margin: 0 auto;
}

.form {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.input {
    padding: 10px;
    margin-bottom: 15px;
    font-size: 18px;
    min-width: 250px;
    width: 60%;
}

.form input:last-of-type {
    margin-top: 15px;
}

#public-list li, #private-list li, #ip-list li, #connection-list li {
    opacity: 0;
    transition: opacity .5s ease;
}

#public-list li.appears, #private-list li.appears, #ip-list li.appears, #connection-list li.appears {
    opacity: 1
}

#connection-list {
    max-height: 0;
}

#public-list {
    position: relative;
}

#public-list::after {
    content: '';
    width: 1px;
    height: 95%;
    position: absolute;
    background-color: #b30e0861;
    right: calc(0% - 6px);
    top: -10px;
}

.main-page-title {
    margin-top: 20px;
}

.page-title {
    font-size: calc(30px + 1vw);
    text-align: center;
    font-weight: 500;
}

.main-block {
    margin-top: 20px;
    background-color: #000000e0;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 11px 5px #000;
}

.main-block.form-block {
    max-width: 500px;
    max-height: 500px;
    width: 80%;
    height: 70%;
    position: absolute;
    top: 50%;
    margin: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    min-height: 280px;
}

.main-block .separator:last-of-type {
    margin-bottom: 0;
}

.separator {
    margin-bottom: 20px;
}

.main-title {
    font-weight: 500;
    font-size: calc(30px + .4vw);
    text-align: center;
    margin-bottom: 5px;
}

.main-list {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-around;
    transition: all .6s ease;
}

.label {
    text-decoration: underline;
    display: block;
    margin-bottom: 8px;
    color: #ff9120;
    font-size: calc(20px + .7vw);
}

#maps-container {
    display: flex;
}

.raw-center {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 10px 0;
}

.raw-center.button-div {
    margin: -10px 40px 0;
    text-decoration: none;
}

.map-block {
    width: calc(44vw - 10px);
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
}

.private-map {
    justify-content: flex-start;
}

.main-button {
    padding: 5px 10px;
    background-color: #b30e08;
    border: none;
    color: #fff;
    font-size: 25px;
    font-weight: 500;
    border-radius: 2px;
    transition: background-color .3s cubic-bezier(1, 0.06, 0.57, 1.05);
    height: 45px;
}

.main-button.removed {
    opacity: 0;
    visibility: hidden;
}

.main-button:hover {
    cursor: pointer;
    background: none;
}

.error-message {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 100%;
    text-align: center;
    font-size: 16px;
}

.waiting-block {
    max-height: 150px;
    overflow: hidden;
    transition: all .6s ease;
}

.waiting-title {
    text-align: center;
}

.dots-div {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
}

.dot {
    margin: 10px 20px;
    opacity: 0;
    animation: waiting 2s infinite;
    display: block;
    height: 30px;
    width: 30px;
}

.dot img {
    width: 100%;
    height: auto;
}

.waiting-dot-2 {
    animation-delay: .4s;
}

.waiting-dot-3 {
    animation-delay: .8s;
}

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

    30% {
        opacity: 1;
    }

    90% {
        opacity: 0;
    }
}

.map-block:last-of-type {
    margin-right: 0;
    margin-left: auto;
}

.map-wrapper {
    transition: all .6s ease;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.map-wrapper.displayed {
    height: 44vw;
    max-height: 500px;
    opacity: 1;
}

.map {
    max-height: 500px;
    height: 44vw;
}

div.olControlAttribution, div.olControlScaleLine {
    font-size: 0.7em;
    bottom: 3px;
    color: #000;
}

.hidden {
    display: none;
}

.back-button {
    display: block;
    text-decoration: none;
    color: #ff9120;
    padding: 10px 20px;
}

.button-end {
    font-size: calc(15px + 1vw);
    border-radius: 10px;
    margin: 30px auto 25px;
    display: block;
    padding: 0;
}

@media screen and (max-width: 850px) {

    .nav-div {
        margin-bottom: 20px;
    }
    .nav-button {
        font-size: 17px;
    }

}

@media screen and (max-width: 629px) {

    #wrapper {
        width: 96%;
    }

    #maps-container {
        flex-direction: column;
    }

    .map-block {
        width: 100%;
    }

    .map-wrapper.displayed {
        height: 95vw;
    }

    .map {
        height: 95vw;
    }

    #public-list::after {
        background-color: unset;
    }
}

.glitch {
    position: relative;
}

.line:not(:first-child) {
    position: absolute;
    top: 0;
    text-align: center;
    width: 100%;
    text-shadow: 0 0 8px black, 0 1px 8px black, 1px 0 8px black, -1px 0 8px black, 0 -1px 8px black;
}

.line:nth-child(1) {
    -webkit-animation: clip 3000ms -300ms linear infinite, glitch1 500ms -646ms linear infinite;
    animation: clip 3000ms -300ms linear infinite, glitch1 500ms -646ms linear infinite;
}

@-webkit-keyframes glitch1 {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
        color: #be322d;
    }

    85% {
        transform: translateX(1px);
        color: #4E9A26;
    }

    90% {
        transform: translateX(-4px);
        color: #660906;
    }

    95% {
        transform: translateX(-4px);
        color: #e2201a;
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes glitch1 {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
        color: #e2201a;
    }

    85% {
        transform: translateX(1px);
        color: #4E9A26;
    }

    90% {
        transform: translateX(-4px);
        color: #660906;
    }

    95% {
        transform: translateX(-4px);
        color: #e2201a;
    }

    100% {
        transform: translateX(0);
    }
}

.line:nth-child(2) {
    -webkit-animation: clip 3000ms -600ms linear infinite, glitch2 500ms -408ms linear infinite;
    animation: clip 3000ms -600ms linear infinite, glitch2 500ms -408ms linear infinite;
}

@-webkit-keyframes glitch2 {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
        color: #e2201a;
    }

    85% {
        transform: translateX(5px);
        color: #4E9A26;
    }

    90% {
        transform: translateX(5px);
        color: #660906;
    }

    95% {
        transform: translateX(-4px);
        color: #e2201a;
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes glitch2 {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
        color: #e2201a;
    }

    85% {
        transform: translateX(5px);
        color: #4E9A26;
    }

    90% {
        transform: translateX(5px);
        color: #660906;
    }

    95% {
        transform: translateX(-4px);
        color: #e2201a;
    }

    100% {
        transform: translateX(0);
    }
}

.line:nth-child(3) {
    -webkit-animation: clip 3000ms -900ms linear infinite, glitch3 500ms -456ms linear infinite;
    animation: clip 3000ms -900ms linear infinite, glitch3 500ms -456ms linear infinite;
}

@-webkit-keyframes glitch3 {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
        color: #e2201a;
    }

    85% {
        transform: translateX(0px);
        color: #4E9A26;
    }

    90% {
        transform: translateX(-4px);
        color: #660906;
    }

    95% {
        transform: translateX(0px);
        color: #e2201a;
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes glitch3 {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
        color: #e2201a;
    }

    85% {
        transform: translateX(0px);
        color: #4E9A26;
    }

    90% {
        transform: translateX(-4px);
        color: #660906;
    }

    95% {
        transform: translateX(0px);
        color: #e2201a;
    }

    100% {
        transform: translateX(0);
    }
}

.line:nth-child(4) {
    -webkit-animation: clip 3000ms -1200ms linear infinite, glitch4 500ms -444ms linear infinite;
    animation: clip 3000ms -1200ms linear infinite, glitch4 500ms -444ms linear infinite;
}

@-webkit-keyframes glitch4 {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
        color: #e2201a;
    }

    85% {
        transform: translateX(3px);
        color: #4E9A26;
    }

    90% {
        transform: translateX(1px);
        color: #660906;
    }

    95% {
        transform: translateX(-3px);
        color: #e2201a;
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes glitch4 {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
        color: #e2201a;
    }

    85% {
        transform: translateX(3px);
        color: #4E9A26;
    }

    90% {
        transform: translateX(1px);
        color: #660906;
    }

    95% {
        transform: translateX(-3px);
        color: #e2201a;
    }

    100% {
        transform: translateX(0);
    }
}

.line:nth-child(5) {
    -webkit-animation: clip 3000ms -1500ms linear infinite, glitch5 500ms -695ms linear infinite;
    animation: clip 3000ms -1500ms linear infinite, glitch5 500ms -695ms linear infinite;
}

@-webkit-keyframes glitch5 {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
        color: #e2201a;
    }

    85% {
        transform: translateX(4px);
        color: #4E9A26;
    }

    90% {
        transform: translateX(-4px);
        color: #660906;
    }

    95% {
        transform: translateX(1px);
        color: #e2201a;
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes glitch5 {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
        color: #e2201a;
    }

    85% {
        transform: translateX(4px);
        color: #4E9A26;
    }

    90% {
        transform: translateX(-4px);
        color: #660906;
    }

    95% {
        transform: translateX(1px);
        color: #e2201a;
    }

    100% {
        transform: translateX(0);
    }
}

.line:nth-child(6) {
    -webkit-animation: clip 3000ms -1800ms linear infinite, glitch6 500ms -610ms linear infinite;
    animation: clip 3000ms -1800ms linear infinite, glitch6 500ms -610ms linear infinite;
}

@-webkit-keyframes glitch6 {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
        color: #e2201a;
    }

    85% {
        transform: translateX(-3px);
        color: #4E9A26;
    }

    90% {
        transform: translateX(-4px);
        color: #660906;
    }

    95% {
        transform: translateX(-4px);
        color: #e2201a;
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes glitch6 {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
        color: #e2201a;
    }

    85% {
        transform: translateX(-3px);
        color: #4E9A26;
    }

    90% {
        transform: translateX(-4px);
        color: #660906;
    }

    95% {
        transform: translateX(-4px);
        color: #e2201a;
    }

    100% {
        transform: translateX(0);
    }
}

.line:nth-child(7) {
    -webkit-animation: clip 3000ms -2100ms linear infinite, glitch7 500ms -62ms linear infinite;
    animation: clip 3000ms -2100ms linear infinite, glitch7 500ms -62ms linear infinite;
}

@-webkit-keyframes glitch7 {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
        color: #e2201a;
    }

    85% {
        transform: translateX(-1px);
        color: #4E9A26;
    }

    90% {
        transform: translateX(-4px);
        color: #660906;
    }

    95% {
        transform: translateX(-1px);
        color: #e2201a;
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes glitch7 {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
        color: #e2201a;
    }

    85% {
        transform: translateX(-1px);
        color: #4E9A26;
    }

    90% {
        transform: translateX(-4px);
        color: #660906;
    }

    95% {
        transform: translateX(-1px);
        color: #e2201a;
    }

    100% {
        transform: translateX(0);
    }
}

.line:nth-child(8) {
    -webkit-animation: clip 3000ms -2400ms linear infinite, glitch8 500ms -276ms linear infinite;
    animation: clip 3000ms -2400ms linear infinite, glitch8 500ms -276ms linear infinite;
}

@-webkit-keyframes glitch8 {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
        color: #e2201a;
    }

    85% {
        transform: translateX(-1px);
        color: #4E9A26;
    }

    90% {
        transform: translateX(-4px);
        color: #660906;
    }

    95% {
        transform: translateX(-4px);
        color: #e2201a;
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes glitch8 {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
        color: #e2201a;
    }

    85% {
        transform: translateX(-1px);
        color: #4E9A26;
    }

    90% {
        transform: translateX(-4px);
        color: #660906;
    }

    95% {
        transform: translateX(-4px);
        color: #e2201a;
    }

    100% {
        transform: translateX(0);
    }
}

.line:nth-child(9) {
    -webkit-animation: clip 3000ms -2700ms linear infinite, glitch9 500ms -11ms linear infinite;
    animation: clip 3000ms -2700ms linear infinite, glitch9 500ms -11ms linear infinite;
}

@-webkit-keyframes glitch9 {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
        color: #e2201a;
    }

    85% {
        transform: translateX(0px);
        color: #4E9A26;
    }

    90% {
        transform: translateX(-2px);
        color: #660906;
    }

    95% {
        transform: translateX(2px);
        color: #e2201a;
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes glitch9 {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
        color: #e2201a;
    }

    85% {
        transform: translateX(0px);
        color: #4E9A26;
    }

    90% {
        transform: translateX(-2px);
        color: #660906;
    }

    95% {
        transform: translateX(2px);
        color: #e2201a;
    }

    100% {
        transform: translateX(0);
    }
}

.line:nth-child(10) {
    -webkit-animation: clip 3000ms -3000ms linear infinite, glitch10 500ms -580ms linear infinite;
    animation: clip 3000ms -3000ms linear infinite, glitch10 500ms -580ms linear infinite;
}

@-webkit-keyframes glitch10 {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
        color: #e2201a;
    }

    85% {
        transform: translateX(-4px);
        color: #4E9A26;
    }

    90% {
        transform: translateX(-2px);
        color: #660906;
    }

    95% {
        transform: translateX(2px);
        color: #e2201a;
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes glitch10 {
    0% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(0);
        color: #e2201a;
    }

    85% {
        transform: translateX(-4px);
        color: #4E9A26;
    }

    90% {
        transform: translateX(-2px);
        color: #660906;
    }

    95% {
        transform: translateX(2px);
        color: #e2201a;
    }

    100% {
        transform: translateX(0);
    }
}

@-webkit-keyframes clip {
    0% {
        -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 120%, 0 120%);
        clip-path: polygon(0 100%, 100% 100%, 100% 120%, 0 120%);
    }

    100% {
        -webkit-clip-path: polygon(0 -20%, 100% -20%, 100% 0%, 0 0);
        clip-path: polygon(0 -20%, 100% -20%, 100% 0%, 0 0);
    }
}

@keyframes clip {
    0% {
        -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 120%, 0 120%);
        clip-path: polygon(0 100%, 100% 100%, 100% 120%, 0 120%);
    }

    100% {
        -webkit-clip-path: polygon(0 -20%, 100% -20%, 100% 0%, 0 0);
        clip-path: polygon(0 -20%, 100% -20%, 100% 0%, 0 0);
    }
}

.glitch-sub {
    position: relative;
}

@keyframes noise-anim {
    0% {
        clip: rect(26px, 9999px, 53px, 0);
    }

    5% {
        clip: rect(16px, 9999px, 70px, 0);
    }

    10% {
        clip: rect(48px, 9999px, 42px, 0);
    }

    15% {
        clip: rect(89px, 9999px, 89px, 0);
    }

    20% {
        clip: rect(56px, 9999px, 94px, 0);
    }

    25% {
        clip: rect(7px, 9999px, 8px, 0);
    }

    30% {
        clip: rect(70px, 9999px, 31px, 0);
    }

    35% {
        clip: rect(24px, 9999px, 76px, 0);
    }

    40% {
        clip: rect(6px, 9999px, 58px, 0);
    }

    45% {
        clip: rect(27px, 9999px, 93px, 0);
    }

    50% {
        clip: rect(38px, 9999px, 25px, 0);
    }

    55% {
        clip: rect(5px, 9999px, 75px, 0);
    }

    60% {
        clip: rect(53px, 9999px, 24px, 0);
    }

    65% {
        clip: rect(71px, 9999px, 56px, 0);
    }

    70% {
        clip: rect(41px, 9999px, 48px, 0);
    }

    75% {
        clip: rect(47px, 9999px, 30px, 0);
    }

    80% {
        clip: rect(52px, 9999px, 63px, 0);
    }

    85% {
        clip: rect(9px, 9999px, 46px, 0);
    }

    90% {
        clip: rect(50px, 9999px, 27px, 0);
    }

    95% {
        clip: rect(20px, 9999px, 32px, 0);
    }

    100% {
        clip: rect(64px, 9999px, 28px, 0);
    }
}

.glitch-sub::after {
    content: attr(data-text);
    position: absolute;
    left: calc(50% + 2px);
    text-shadow: -1px 0 black;
    top: 0;
    color: #b30e08;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: noise-anim 2s infinite linear alternate-reverse;
    transform: translateX(-50%);
    width: 100%;
}

.glitch-delay::after {
    animation-delay: 800ms;
}

.glitch-delay-1::after {
    animation-delay: 220ms;
}

.glitch-delay-2::after {
    animation-delay: 0;
}

.glitch-delay-3::after {
    animation-delay: 1200ms;
}

.glitch-delay-4::after {
    animation-delay: 500ms;
}

.glitch-delay-5::after {
    animation-delay: 100ms;
}

.glitch-delay-6::after {
    animation-delay: 1600ms;
}

.glitch-delay-7::after {
    animation-delay: 1400ms;
}

.glitch-delay-8::after {
    animation-delay: 900ms;
}

.glitch-delay-9::after {
    animation-delay: 1900ms;
}

.glitch-delay-10::after {
    animation-delay: 600ms;
}