html, body {
	overflow: hidden;
	margin: 0;
	width: 100%;
	height: 100%;
}

#loading-screen {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000000;
	opacity: 1;
 	transition: 1s opacity;
}

#loading-screen.fade-out {
    opacity: 0;
}

#loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #00ffea;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}
#loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #00ffae;
    -webkit-animation: spin 3s linear infinite;
    animation: spin 3s linear infinite;
}
#loader:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: rgb(43, 255, 16);
    -webkit-animation: spin 1.5s linear infinite;
    animation: spin 1.5s linear infinite;
}

#info {
	font-family: Helvetica;
	font-size: 2vh;
	line-height: 1vh;
	position: absolute;
	bottom: 1%;
	width: 100%;
	padding: 2vh;
	box-sizing: border-box;
	text-align: right;
	color: #ffffff;
	font-variant-caps: small-caps;
	z-index: 1; /* TODO Solve this in HTML */
}

.link {
	font-size: 5vh;
	line-height: 6vh;
	font-weight: bold;
	text-decoration: none;
	opacity: 0.5;
	color: #00f7ff;
}

.link:hover {
	color: rgb(0, 255, 0);
}

.title:hover {
	color: rgb(0, 255, 0);
}

.title {
	font-family: Helvetica;
	position: absolute;
	padding-top: 4vh;
    line-height: 10vw;
    font-weight: bold;
    opacity: 0.5;
	writing-mode: vertical-rl;
	font-variant-caps: small-caps;
	font-size: 11vh;
	color: #ffffff;
	text-decoration: none;
}

/* a, button, input, select {
	pointer-events: auto;
} */

@media (max-width: 600px) {
    #info {
        font-size: 3vw;
        line-height: 5vw;
        padding: 3vw;
    }
}

#overlay {
	position: absolute;
	font-size: 16px;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background: rgba(0,0,0,0.7);
}

	#overlay button {
		background: transparent;
		border: 0;
		border: 1px solid rgb(255, 255, 255);
		border-radius: 4px;
		color: #ffffff;
		padding: 12px 18px;
		text-transform: uppercase;
		cursor: pointer;
	}

#notSupported {
	width: 50%;
	margin: auto;
	background-color: #f00;
	margin-top: 20px;
	padding: 10px;
}

#anim-controls button {
    font-family: Helvetica;
    font-variant-caps: small-caps;
    background: rgba(255,255,255,0.5);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    margin: 0 2px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

#anim-controls button:hover {
    color: rgba(255,255,255,0.7);
    background: rgb(0, 255, 0);
}

button {
  touch-action: manipulation;
}

/* Add at the end or where appropriate */
#loading-bar-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 2vh;
  background: rgba(0,0,0,0.2);
  z-index: 100;
}

#loading-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00ff00 0%, #00f7ff 100%);
  transition: width 0.3s;
}



