:root {
    --title: #3368DB;
    --background1: #023;
    --background2: #032;
    --button1: #056;
    --button2: #065;
    --buttonBorder: #0a0;
}

@keyframes pageBackground {
    0%   {background-color: var(--background1);}
    50%  {background-color: var(--background2);}
    100% {background-color: var(--background1);}
}
@keyframes buttonBackground {
    0%   {background-color: var(--button1); color: var(--background1)}
    50%  {background-color: var(--button2); color: var(--background2);}
    100% {background-color: var(--button1); color: var(--background1)}
}  

body {
    background-color: var(--background1);
    animation-name: pageBackground;
    animation-duration: 60s;
    animation-iteration-count: infinite;
    margin: 0px;
    padding: 0px;
    font-family: monospace;
    user-select: none;
    overflow: hidden;
    transition: 100ms;
}

#titleBar {
    position: absolute;
    left: 1em;
    width: calc(100% - 2em);
    top: 1em;
    height: 4em;
}
#title {
    position: absolute;
    width: 100%;
    height: 1.6em;
    text-align: center;
    line-height: 1.6em;
    font-size: 2.5em;
    font-family: monospace;
    color: var(--title);
    z-index: -2;
}

#modeButtons {
    position: absolute;
    width: 100%;
    top: 6em;
    height: 3em;
}
.modeButton {
    background-color: var(--button1);
    display: block;
    float: left;
    margin-left: 4%;
    width: 20%;
    min-height: calc(2em - 6px);
    font-family: monospace;
    text-align: center;
    font-size: 1.5em;
    line-height: calc(2em - 6px);
    cursor: pointer;
    border-radius: 1em;
    animation-name: buttonBackground;
    animation-duration: 60s;
    animation-iteration-count: infinite;
    transition: 300ms;
    border: 3px solid #0000;
}
.modeButton:hover {
    transform: scale(1.1, 1.1);
}
.buttonBorder {
    border: 3px solid var(--buttonBorder);
}

#text1 {
    position: absolute;
    left: 0;
    top: calc(((100vh - 1em) / 2) - 0.5em);
    width: 100%;
    height: 1.5em;
    font-size: 10em;
    text-align: center;
    z-index: -2;
    color: #aa0;
}
#text2 {
    position: absolute;
    left: 0;
    top: calc(((100vh - 2em) / 2) + 1.2em);
    width: 100%;
    height: 1.5em;
    font-size: 5em;
    text-align: center;
    z-index: -2;
    color: #880;
}
#text3 {
    position: absolute;
    left: 0;
    top: calc(((100vh - 2em) / 2) + 2.2em);
    width: 100%;
    height: 1.5em;
    font-size: 5em;
    text-align: center;
    z-index: -2;
    color: #880;
}

.popupBack {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 2;
    background-color: #000c;
    display: none;
}

.popup {
    position: absolute;
    left: 5vh;
    top: 5vh;
    width: calc(100% - 10vh);
    height: 90vh;
    z-index: 3;
    background-color: #388;
    border-radius: 1em;
    display: none;
}
.popupClose {
    position: absolute;
    text-align: center;
    height: 1.5em;
    line-height: 1.5em;
    font-size: 4em;
    z-index: 3;
    background-color: #0aa;
    left: 25%;
    bottom: 0.5em;
    cursor: pointer;
    border-radius: 1.5em;
    transition: 300ms;
	width: 50%;
}
.popupClose:hover {
    transform: scale(1.1);
}

.popupTitle {
    position: absolute;
    left: 10%;
    top: 0.2em;
    width: 80%;
    text-align: center;
    height: 1.5em;
    font-size: 8em;
    z-index: 3;
    color: #020;
}

.popupAlt {
    position: absolute;
    left: 10%;
    top: 3.5em;
    width: 80%;
    text-align: center;
    height: 1.5em;
    font-size: 3em;
    z-index: 3;
    color: #020;
}

.popupClicks {
    position: absolute;
    left: 10%;
    top: 4em;
    width: 80%;
    text-align: center;
    height: 1.5em;
    font-size: 4em;
    z-index: 3;
}

#clickProtector {
    position: absolute;
    z-index: 4;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100vh;
    display: none;
}

.c {
    color: #055;
}

@media screen and (max-width: 800px) {
	body {
		font-size: 8px;
	}
    .modeButton {
        width: 80%;
        margin-left: 10%;
		margin-top: 10px;
    }
	.popupTitle {
		font-size: 6em;
	}
}

#clickCounter {
    position: absolute;
    width: 100%;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: -1;
    cursor: pointer;
	touch-action: none;
	-webkit-tap-highlight-color: transparent;
}

#circles {
	position: absolute;
	width: 100%;
	height: 100vh;
	left: 0px;
	right: 0px;
	z-index: -3;
	overflow: hidden;
}