@import "fonts.css";

@keyframes tictac {
	40% {
		opacity: 0;
	}
}

:root {
	--background-alt: #211D1B;
	--background: #232526;
	--base-txt: #4D6358;
}

::-webkit-input-placeholder {
	opacity: 1 !important;
}

::-moz-placeholder {
	opacity: 1 !important;
}

body,
html {
	font-family: "Product Sans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	background-image: url('/src/rocket.webp');
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	overflow: hidden;
	margin: 0;
}

body::before {
	content: "";
	/* Required for pseudo-elements */
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	/* Semi-transparent overlay */
	z-index: -1;
	/* Place the overlay behind the content */
}

kbd {
	-webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px #577064 inset;
	-moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px #577064 inset;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px #577064 inset;
	text-shadow: 0 1px 0 #577064;
	-webkit-border-radius: 3px;
	background-color: #4D6358;
	border: 1px solid #658274;
	-moz-border-radius: 3px;
	font-family: monospace;
	display: inline-block;
	border-radius: 3px;
	padding: .1em .6em;
	line-height: 1.4;
	font-size: 11px;
	margin: 0 .1em;
	color: #ccc;
}

span#instructionsToggle {
	background-color: var(--background-alt);
	transition: .5s opacity;
	border-radius: 30px;
	position: absolute;
	font-weight: bold;
	color: #60B48A;
	padding: 10px;
	margin: 10px;
	opacity: .5;
	z-index: 1;
	left: 0px;
	top: 0px;
}

span#instructionsToggle:hover {
	cursor: pointer;
	opacity: 1;
}

span#instructions {
	background-color: var(--background-alt);
	transition: .5s opacity;
	position: absolute;
	padding: 25px;
	margin: 25px;
	color: #ccc;
	opacity: 0;
	left: 0px;
	top: 0px;
}

span#instructions div table tr td:first-child {
	padding-right: 25px;
	text-align: center;
}

div#blackout {
	transition: .4s opacity;
	background-color: #000;
	pointer-events: none;
	position: absolute;
	height: 100vh;
	width: 100vw;
	z-index: 2;
	opacity: 0;
	margin: 0;
}

span#escape {
	transition: .4s opacity;
	pointer-events: none;
	position: absolute;
	text-align: center;
	font-weight: bold;
	font-size: 70px;
	color: #60B48A;
	z-index: 10;
	width: 100%;
	top: 40px;
	/* top: 130px; */
	opacity: 0;
}

div#grid {
	margin-left: -570px;
	margin-top: -190px;
	position: fixed;
	width: 1140px;
	height: 380px;
	left: 50%;
	top: 40%;
}

div#grid table {
	font-family: 'Cascadia Code', 'Courier New', Courier, monospace;
	border-collapse: separate;
	border-spacing: 25px;
	font-size: 12px;
}

div#grid table tr td {
	height: 150px;
	width: 250px;
}

div#grid table tr td a {
	text-shadow: 0px 0px 0 rgba(200, 50, 50, .5), 0px 0px 0 rgba(50, 200, 150, .5);
	box-shadow: 0px 0px 0 rgba(200, 50, 50, .5), 0px 0px 0 rgba(50, 200, 150, .5);
	transition: .2s text-shadow, .2s box-shadow, .2s border-bottom;
	border-bottom: 0px solid rgba(200, 50, 50, 1);
	background-color: var(--background-alt);
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	color: var(--base-txt);
	box-sizing: border-box;
	text-decoration: none;
	position: relative;
	display: block;
	padding: 25px;
	height: 100%;
	width: 100%;
}

div#grid table tr td a p {
	margin-left: 5px;
	margin-top: 40px;
}

div#grid table tr td a img {
	-webkit-filter: drop-shadow(0px 0px 0 rgba(200, 50, 50, .3)) drop-shadow(0px 0px 0 rgba(50, 200, 150, .3));
	filter: drop-shadow(0px 0px 0 rgba(200, 50, 50, .3)) drop-shadow(0px 0px 0 rgba(50, 200, 150, .3));
	transition: .1s -webkit-filter, .1s filter;
	position: absolute;
	opacity: .3;
	right: 15px;
	z-index: 0;
	top: 15px;
}

div#grid table tr td a:focus img,
div#grid table tr td a:hover img {
	-webkit-filter: drop-shadow(3px 3px 0 rgba(200, 50, 50, 1)) drop-shadow(-3px -3px 0 rgba(50, 200, 150, 1));
	filter: drop-shadow(3px 3px 0 rgba(200, 50, 50, 1)) drop-shadow(-3px -3px 0 rgba(50, 200, 150, 1));
}

div#grid table tr td a:focus {
	border-bottom: 15px solid rgba(50, 200, 150, .3);
	background-color: #2E2926;
}

div#grid table tr td a:focus,
div#grid table tr td a:hover {
	text-shadow: 3px 3px 0 rgba(200, 50, 50, .7), -3px -3px 0 rgba(50, 200, 150, .7);
	box-shadow: 3px 3px 0 rgba(200, 50, 50, .5), -3px -3px 0 rgba(50, 200, 150, .5);
	outline: 0;
}

footer div#liveClock {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	color: var(--base-txt);
	-moz-user-select: none;
	-ms-user-select: none;
	transition: .4s color;
	letter-spacing: 15px;
	user-select: none;
	font-size: 100px;
	position: fixed;
	cursor: default;
	z-index: 6;
	/* bottom: 5%; */
	bottom: 17%;
	right: 5%;
	/* background: rgba(35, 37, 38, 0.8); */
	/* border-radius: 12px; */
}

footer div#liveClock span {
	animation: tictac 3s linear infinite;
	position: relative;
	top: -10px;
}

footer form input[type="text"] {
	transition: .3s border-color, .3s background-color, .3s border-bottom;
	background-color: var(--background);
	border-color: var(--base-txt);
	border: 0;
	/*   rip ramp   */
	border-bottom: 5px solid;
	color: var(--base-txt);
	font-family: "Product Sans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	font-size: 60px;
	position: fixed;
	display: block;
	outline: none;
	padding: 10px;
	z-index: 4;
	bottom: 5%;
	width: 90%;
	left: 4%;
}

footer form input[type="text"]:focus {
	background-color: var(--background-alt);
	border-bottom: 10px solid #60B48A;
	color: #60B48A;
	outline: none;
}

footer form input[type="text"]:focus::-webkit-input-placeholder {
	opacity: 0;
}

footer form input[type="text"]:focus::-moz-placeholder {
	opacity: 0;
}