@import url('https://fonts.googleapis.com/css?family=Exo:400,700|Calligraffitti|Mr+Dafoe&display=swap');

@font-face {
    font-family: ComicSpans;
    src: url(comic_spans.otf);
}

body {
	font-family: 'Exo', sans-serif;
    color: #ffffff;
	margin: 0;
	min-height: 100vh;
	background-color: #191919;
}

main {
    font-size: 18px;
    overflow: auto;
    text-align: center;
    margin: 0;
	display: block;
	min-height: 100vh;
}

section {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	margin-top: 50px;
	margin-bottom: 200px;
}

section .content {
	max-width: 60vw;
}

s {
	line-height: 1em;
	position: relative;
  }

s::after {
	border-bottom: 0.3em solid rgb(48, 0, 0);
	content: "";
	left: 0;
	margin-top: calc(0.3em / 2 * -1);
	position: absolute;
	right: 0;
	top: 50%;
  }

.title {
	margin: 50px;
}

h1, h2 {
	padding: 0;
	margin: 10px 0 10px 0;
}

h1 {
	font-size: 3rem;
	color:#f89c4d;
	text-shadow: 0px 4px 3px rgba(0,0,0,0.4),0px 8px 13px rgba(0,0,0,0.1),0px 18px 23px rgba(0,0,0,0.1);
}

footer {
    background:#191919;
    text-align: center;
    font-family: inherit;
    padding: 20px 0 20px 0;
}

a {
	color:#f89c4d;
	text-decoration: none;
}

.instructions-components {
	width: 30rem;
}

.instructions-icon1 {
	width: 10rem;
	margin: 20px;
}

.instructions-icon2 {
	height: 6rem;
	margin: 20px;
}

.instructions-icon3 {
	height: 8rem;
	margin: 20px;
}

.instructions-icon4 {
	width: 12rem;
	margin: 20px;
}

a:hover {
	text-decoration: dotted underline;
}

.components {
	margin: 0 auto;
}

.components .resistor {
	height: 1em;
	vertical-align: middle;
}

.front1 {
	z-index: 1;
}

.front2 {
	z-index: 2;
}

.row {
	width: 100%;
	min-height: 90vh;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	position: relative;
}

.teams img {
	width: 125px;
}

.teams .team {
	margin: 15px;
	display: inline-block;
}

/* FANCY SEPARATORS */
.svg-separator {
	display: block;
	background: 0 0;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	z-index: 9;
	-webkit-transform: translateY(-100%) translateY(2px);
	transform: translateY(-100%) translateY(2px);
	width: 100%;
}
.svg-separator .bottom {
	top: auto;
	bottom: 0;
}
.forest {
	transform: translateY(-100%) translateY(2px) scale(1,1);
	transform-origin: top;
}
.waves {
	transform: translateY(-100%) translateY(2px) scale(1,1);
	transform-origin: top;
}

.triangles {
	transform: translateY(-100%) translateY(2px) scale(1,1);
	transform-origin: top;
}
  
.black {
	background-color: #1e1e1e;
}

.black2 {
	background-color: #191919;
}

.red {
	background-color:rgb(166, 22, 60);
}

/* HEADER GLITCH ANIMATION */
.header-bill {
	margin: 0 auto;
	position: relative;
	width: 300px;
	height: 300px;
	background: url(../bill_pcb_front.png);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center; 
}

.header-bill:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 300px;
	height: 300px;
	background: url(../bill_pcb_front.png);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center; 
	opacity: .5;
	mix-blend-mode: hard-light;
}

.header-bill:hover:before {
	animation: animate .2s linear infinite;
}

@keyframes animate { 
	0% {
		transform: translate(0, 5px);
		-webkit-filter: hue-rotate(90deg);
  		filter: hue-rotate(90deg);
	}
	10%	{
		transform: translate(0, 5px);
		-webkit-filter: hue-rotate(180deg);
  		filter: hue-rotate(180deg);
	}
	20%	{
		transform: translate(5px, 0);
		-webkit-filter: hue-rotate(180deg);
  		filter: hue-rotate(180deg);
	}
	30%	{
		transform: translate(5px, 0);
		-webkit-filter: hue-rotate(180deg);
  		filter: hue-rotate(180deg);
	}
	40%	{
		transform: translate(5px, 0);
		-webkit-filter: hue-rotate(180deg);
  		filter: hue-rotate(180deg);
	}
	50%	{
		transform: translate(-5px, 0px);
		-webkit-filter: hue-rotate(180deg);
  		filter: hue-rotate(180deg);
	}
	60%	{
		transform: translate(5px, 0px);
		-webkit-filter: hue-rotate(90deg);
  		filter: hue-rotate(90deg);
	}
	70%	{
		transform: translate(5px, 0);
		-webkit-filter: hue-rotate(90deg);
  		filter: hue-rotate(90deg);
	}
	80%	{
		transform: translate(5px, 5px);
		-webkit-filter: hue-rotate(90deg);
  		filter: hue-rotate(90deg);
	}
	81%	{
		transform: translate(0, 5px);
		-webkit-filter: hue-rotate(90deg);
  		filter: hue-rotate(90deg);
	}
	100% {
		transform: translate(5px, 0px);
		-webkit-filter: hue-rotate(180deg);
  		filter: hue-rotate(180deg);
	}
}

/* ANIMATE SKY */
.sky {
	/*background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab); */
	background: linear-gradient(-45deg, rgb(45, 35, 208) 0%, rgb(137, 131, 242) 23%, rgb(43, 0, 123) 100%);
	background-size: 400% 400%;
	animation: animateSky 15s ease infinite;
}

@keyframes animateSky {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

/* ANIMATE BACKGROUND SHAPES */
.shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shapes div { 
    position: absolute;
    display: block;
    list-style: none; 
    background: none;
    animation: animateShapes 25s linear infinite;
    bottom: -150px;
	
	width: 0px;
	height: 0px;
	border-style: solid;
	border-color: transparent transparent rgba(255, 255, 255, 0.2) transparent;
	border-width: 0 30px 52.0px 30px;
}

.shapes .tri1 {
	left: 25%;
	border-width: 0 50px calc(1.732 * 50px) 50px;
    animation-delay: 0s;
}


.shapes .tri2 {
    left: 10%;
    border-width: 0 30px calc(1.732 * 30px) 30px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.shapes .tri3 {
    left: 70%;
    border-width: 0 30px calc(1.732 * 30px) 30px;
    animation-delay: 4s;
}

.shapes .tri4 {
    left: 40%;
    border-width: 0 50px calc(1.732 * 50px) 50px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.shapes .tri5 {
    left: 65%;
    border-width: 0 20px calc(1.732 * 20px) 20px;
    animation-delay: 0s;
}

.shapes .tri6 {
    left: 75%;
    border-width: 0 50px calc(1.732 * 50px) 50px;
    animation-delay: 3s;
}

.shapes .tri7 {
    left: 35%;
    border-width: 0 80px calc(1.732 * 80px) 80px;
    animation-delay: 7s;
}

.shapes .tri8 {
    left: 50%;
    border-width: 0 25px calc(1.732 * 25px) 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.shapes .tri9 {
    left: 20%;
    border-width: 0 15px calc(1.732 * 15px) 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.shapes .tri10 {
    left: 85%;
    border-width: 0 100px calc(1.732 * 100px) 100px;
    animation-delay: 0s;
    animation-duration: 16s;
}

@keyframes animateShapes {

    0%{
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100%{
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

/* SECRET RULES */
.rules {
	background: #191919;
}

.rules main {
	width: 90vw;
	margin: 10px auto;
}

.wheel {
	width: 30%;
}

.keys {
	margin: 35px 0 35px 0;
	display: flex;
	flex-direction: row;
}

.keys .key {
	flex-grow: 1;
}

.key-mini {
	width: 16px;
}

.keys .key input {
	background:#222121;
	border: none;
	border-radius: 4px;
	color:rgb(233, 233, 233);
	padding: 10px 20px;
	margin: 5px;
	font-family: inherit;
	font-size: 0.8em;
	letter-spacing: 3px;
	width: 70%;
}

.keys .key label {
	display: block;
}

.keys .key label img {
	width: 32px;
	display: block;
	margin: 5px auto;
}

.key-group {
	display: flex;
	flex-direction: row;
	width: 100%;
}

.submit-keys {
	display: block;
	border: none;
	border-radius: 4px;
	padding: 10px 40px;
	background:#222121;
	color:#fff;
	font-family: inherit;
	text-transform: uppercase;
	letter-spacing: 4px;
	margin: 30px auto 30px auto;
}

.submit-keys:hover {
	cursor: pointer;
	background: #2b2b2b;
}

#secret-rules {
    /*'Mr Dafoe', cursive;*/
	font-family: 'Calligraffitti', cursive;
	margin: 50px 0 50px 0;
	column-count: 2;
}

#secret-rules h2 {
	margin: 0;
}

.grecaptcha-badge {
	z-index: 200;
}

/* RESPONSIVE VIDEO */
.video-container {
	width: 60%;
	margin: 0 auto;
}

.video {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}
.video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* RESPONSIVE OVERRIDES */
@media only screen and (max-width: 768px), (min-device-width: 768px) and (max-device-width: 1024px) {

	h1 {
		font-size: 2.2rem;
	}

	h2 {
		font-size: 1.5rem;
	}

	.keys {
		flex-direction: column;
	}

	.keys .key {
		width: 95%;
	}

	#secret-rules {
		column-count: 1;
	}

	.wheel {
		width: 90%;
	}

	.title {
		margin: 10px 0 10px 0;
	}

	.title h1 {
		font-size: 3rem;
	}

	.title h2 {
		font-size: 2rem;
	}

	section .content {
		max-width: 90vw;
	}

	.video-container {
		width: 100%;
	}

	.instructions-components {
		width: 90%;
	}

	.instructions-icon1, .instructions-icon4  {
		width: 90%;
		height: auto;
	}

	.instructions-icon2, .instructions-icon3  {
		width: 25%;
		height: auto;
	}

	.keys .key input {
		width: 90%;
	}
}