@font-face {
    font-family: Titillium Web;
    src: url("../webfonts/TitilliumWeb-Regular.ttf");
}
body {
	font-family: 'Titillium Web', sans-serif;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: 0;
	user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
	min-height: 200px;
}
.fly {
	position: fixed;
	padding: 50px;
}
.fly-body {
	position: fixed;
	width: 30px;
	height: 30px;
	background: rgba(255, 255, 255, 0.4);
	margin: -10px -15px;
}
.fly-wing {
	width: 20px;
	height: 20px;
	background: rgba(255, 255, 255, 0.4);
	position: absolute;
}
.fly-wing-left {
	left: -20px;
	top: -5px;
}
.fly-wing-right {
	right: -20px;
	top: -5px;
}
.pop {
	position: fixed;
	transform: translate(-50%, -50%);
    opacity: 1;
    z-index: 100;
    font-size: 18px;
    color: #fff;
}
#timer-container {
    position: absolute;
    left: 50%;
    margin-left: -100px;
    bottom: 15%;
    margin-bottom: -25px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    min-width: 200px;
}
#timer-text {
	font-size: 12px;
}
#timer {
	font-size: 60px;
    line-height: 45px;
}
#points {
    position: absolute;
    left: 50%;
    margin-left: -150px;
    top: 25%;
    font-size: 100px;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    min-width: 300px;
}
#game {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
	background: linear-gradient(to bottom, #312154 0%, #0fb38c 100%);
}
#menu {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to bottom, #312154 0%, #0fb38c 100%);
}
#menu-logo {
    position: absolute;
    left: 50%;
    margin-left: -150px;
    top: 5%;
    font-size: 60px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    min-width: 300px;
    letter-spacing: 6px;
}
.start-game-button {
    position: absolute;
    left: 50%;
    margin-left: -150px;
    top: 65%;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    min-width: 300px;
    transition: 0.3s;
}
.start-game-button:hover {
	color: rgba(255, 255, 255, 0.5);
}
.start-game-button-initial {
	color: rgba(255, 255, 255, 0.6);
	top: 30%;
}
.start-game-button-initial:hover {
	color: rgba(255, 255, 255, 0.8);
}
#intro-text {
    position: absolute;
    left: 50%;
    margin-left: -150px;
    top: 42%;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    min-width: 300px;
    line-height: 25px;
}
#intro-text p {
    margin: 0 0 12px 0;
}
#game-over-text {
	position: absolute;
    left: 50%;
    margin-left: -150px;
    top: 10%;
    font-size: 50px;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    min-width: 300px;
}
#high-score {
    position: absolute;
    left: 50%;
    margin-left: -150px;
    top: 95%;
    margin-top: -25px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    min-width: 300px;
}
#new-high-score-text {
	position: absolute;
    left: 50%;
    margin-left: -150px;
    top: 25%;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    min-width: 300px;
   	animation-duration: 0.5s;
	animation-fill-mode: both;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	animation-name: bounce;
}
#submit-score {
	position: absolute;
    left: 50%;
    margin-left: -150px;
    top: 60%;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    min-width: 300px;
}
#submit-field-name {
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    font-size: 20px;
    text-align: center;
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.5);
}
#submit-score button {
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.2);
    border: 0;
    padding: 9px;
    margin: 0;
    vertical-align: middle;
}
#submit-field-name::placeholder {
    color: rgba(255, 255, 255, 0.2);
}
#score-submitted {
	position: absolute;
    left: 50%;
    margin-left: -150px;
    top: 60%;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    min-width: 300px;
}
.killer-fly .fly-body, .killer-fly .fly-wing {
	background: rgba(255, 99, 71, 0.8);
}
.bonus-fly .fly-body, .bonus-fly .fly-wing {
	background: rgba(255, 255, 0, 0.7);
}
@keyframes bounce { 
  0%, 100% {transform: translateY(0);}
  50% {transform: translateY(5px);}
}

@keyframes sway {
    0%, 100%{ transform: rotate(-8deg);}
    50%{ transform: rotate(6deg); }
}
.fly-wing { 
	animation-duration: 0.3s;
	animation-fill-mode: both;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	animation-name: bounce;
}
.fly-menu {
	position: relative;
	display: inline-block;
}
.equals-number {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100px;
	height: 100px;
	font-size: 50px;
}
.fly-equals-row {
	display: flex;
    justify-content: center;
    align-items: center;
    margin: -20px 0;
}
#back-to-menu {
    position: absolute;
    left: 50%;
    margin-left: -100px;
    bottom: 15%;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    min-width: 200px;
    transition: 0.3s;
}
#back-to-menu:hover {
    color: rgba(255, 255, 255, 0.5);
}
.particle {
    position: fixed;
    opacity: 1;
    z-index: 100;
    width: 10px;
    height: 10px;
    background-color: #fff;
}

#show-settings, #hide-settings {
    position: absolute;
    left: 50%;
    margin-left: -150px;
    bottom: 5%;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    min-width: 300px;
    transition: 0.3s;
}
#show-settings:hover, #hide-settings:hover {
    color: rgba(255, 255, 255, 0.5);
}
#settings {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, #312154 0%, #0fb38c 100%);
    display: flex;
    justify-content: center;
}
#settings-box {
    width: 300px;
    margin-top: 50px;
    color: rgba(255, 255, 255, 0.4);
}
#settings-box .setting-name {
    padding: 10px;
}
#settings-box .enabled, #settings-box .disabled {
    padding: 10px;
    transition: 0.3s;
}
#settings-box .enabled:hover, #settings-box .disabled:hover {
    padding: 10px;
    color: rgba(255, 255, 255, 0.6);
}
.setting-value {
    float: right;
}
.setting {
    margin: 12px 0;
}

@media only screen and (max-height: 450px) {
    #intro-text {
        display: none;
    }
}