html,
body,
#root {
    min-height: 100%;
}

body {
    margin: 0;
}

.nearpeer-loading-screen {
    min-height: 100vh;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

.nearpeer-loading-screen--screen {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20000;
    background: #4611a9;
}

.nearpeer-loading-screen__stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.nearpeer-loading-screen__loader {
    width: 100px;
    height: 100px;
    display: block;
    overflow: visible;
    flex: 0 0 auto;
}

.nearpeer-loading-screen__loader-arc {
    animation: nearpeerLoadingScreenSpin 900ms linear infinite;
    transform-box: view-box;
    transform-origin: 50px 50px;
}

.nearpeer-loading-screen__text {
    color: inherit;
    text-align: center;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateX(8px);
}

@keyframes nearpeerLoadingScreenSpin {
    from {
        transform: rotate(-90deg);
    }

    to {
        transform: rotate(270deg);
    }
}
