body, html {
	background: #000;
	margin: 0;
	padding: 0;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	font-family: sans-serif;
}
.hid {
	display: none;
}
.sprite {
	border: dotted 1px #aaa;
}
#dev {
	position: fixed; left: 0; top: 0;
	z-index: 100;
	margin-top: 1px;
	padding: 0.8em;
}
#dbg {
	color: #000;
	font-family: "courier";
	font-size: 14px;
	opacity: 0.8;
	filter: alpha(opacity = 80);
	background-color: #fff;
	padding: 0.5em;
}
#fail {
	position: fixed; left: 0; top: 0;
	z-index: 101;
	opacity: 0.8;
	padding: 1em;
	color: red;
	font-size: 150%;
	font-weight: bold;
	border: solid 20px red;
	display: none;
	background-color: white;
}
#game {
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	xxbackground: url("bg.jpg");
	background-color: gray;
}
.glub {
	font-family: "helvetica";
	font-weight: bold;
	font-size: 80%;
	color: blue;
}
#text {
	color: #fff;
}
.font {
	display: inline-block;
}
#playfield {
	position: fixed;
	top: 0;
	left: 0;
	left: 0;
	margin: 0;
	cursor: crosshair;
	width: 100%;
	height: 100%;
	padding: 0;
	z-index: 4;
}
#menu, #store {
	position: fixed;
	top: 15%;
	left: 20%;
	xtransform: translate3d(-50%, -50%, 0);
	color: #fff;
	text-shadow: 2px 4px 10px rgba(0,0,0,.8);
	text-align: center;

	width: 60%;
    height: 70%;
	margin: auto;
	xpadding: 0;
	z-index: 5;
	background: rgba(23,25,39,.85);
	border: 12px solid rgba(34,84,99,.08);
	border-radius: 5px;
	xpadding: 15px;
	xheight: 100%;
	xmax-height: 500px;
	xmax-width: 500px;
}

#menu {
	grid-template-columns: 1fr;
	grid-column-gap: 15px;
}

#menu > div {
	display: flex;
	flex-flow: column;
}

/* Menu Container Styles */
.menu-container {
	display: flex;
	flex-direction: column;
	xgap: 15px;
	padding: 0px;
	height: 100%;
	min-height: 100%;
	overflow-y: auto;
	box-sizing: border-box;
}

.menu-resume-section {
	margin-bottom: 20px;
}

.menu-resume-button {
	background: linear-gradient(135deg, #34ebbd 0%, #2bc4a3 100%);
	border: none;
	color: #1a1a1a;
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(52, 235, 189, 0.3);
	width: 100%;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.menu-quit-button {
	background: linear-gradient(135deg, #f74646 0%, #e74c3c 100%);
	border: none;
	color: #1a1a1a;
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(52, 235, 189, 0.3);
	width: 100%;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}


.menu-main-section {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
	flex: 1;
}

.menu-difficulty-selector {
	xbackground: rgba(255,255,255,0.05);
	border-radius: 8px;
	padding: 15px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.menu-difficulty-title {
	margin: 0 0 15px 0;
	color: #ffffff;
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.menu-difficulty-subtitle {
    margin: 0;
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2em;
}

.menu-difficulty-buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
	fxlex: 1;
}

.menu-action-buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.menu-button {
	border: none;
	padding: 10px 16px;
	font-size: 12px;
	font-weight: 500;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.menu-button-possible {
	background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
	color: #ffffff;
}

.menu-button-cozy {
	background: linear-gradient(135deg, #46f761 0%, #3dd654 100%);
	color: #1a1a1a;
}

.menu-button-room {
	background: linear-gradient(135deg, #f7ce46 0%, #f0c040 100%);
	color: #1a1a1a;
}

.menu-button-spicy {
	background: linear-gradient(135deg, #eb8f34 0%, #e67e22 100%);
	color: #ffffff;
}

.menu-button-anti {
	background: linear-gradient(135deg, #f74646 0%, #e74c3c 100%);
	color: #ffffff;
}

.menu-button-help {
	background: linear-gradient(135deg, #fc4e03 0%, #e67e22 100%);
	color: #ffffff;
}

.menu-button-rate {
	background: linear-gradient(135deg, #d2ff96 0%, #b8e67a 100%);
	color: #1a1a1a;
}

.menu-button-upgrades {
	background: linear-gradient(135deg, #438ef7 0%, #3b7de8 100%);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.menu-upgrade-icon {
	height: 40px;
}

.menu-upgrade-text {
	font-size: 120%;
	font-weight: 500;
}

.menu-volume-section {
	xbackground: rgba(255,255,255,0.05);
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 20px;
}

.menu-volume-control {
	margin-bottom: 12px;
}

.menu-volume-control:last-child {
	margin-bottom: 0;
}

.menu-volume-label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: #ffffff;
	font-size: 12px;
	font-weight: 500;
}

.menu-volume-slider {
	width: 100%;
	height: 4px;
	border-radius: 2px;
	background: rgba(255,255,255,0.2);
	outline: none;
	-webkit-appearance: none;
}

.menu-bottom-controls {
	display: flex;
	gap: 8px;
}

.menu-bottom-button {
	flex: 1;
	padding: 8px 12px;
	font-size: 10px;
	font-weight: 500;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	border: none;
}

.menu-bottom-button-fullscreen {
	background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
	color: #ffffff;
}

.menu-bottom-button-quit {
	background: linear-gradient(135deg, #ff4133 0%, #e74c3c 100%);
	color: #ffffff;
}

.menu-button-news {
    opacity: 0.9;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
    justify-content: space-around;
    background: rgba(255,255,255,.25);
    padding: 0;
    margin-top: 2em;
}

.menu-button-news:hover {
	opacity: 1;
}
.menu-button-news img {
    height: 2.5em;
}

#store {
	flex-flow: column;
	align-items: center;
	max-height: 80%;
	height: 100%;
}

#store-container {
	max-height: 80%;
	height: 100%;
	overflow: auto;
	width: 100%;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
    margin-top: 2em;
}

.store_item {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: auto 1fr;
	text-align: left;
	background: rgba(255,255,255,.25);
	align-items: center;
	width: calc(100% - 60px);
	padding: 5px 25px;
	text-shadow: none;
	border-radius: 3px;
	max-width: 400px;
	margin: 5px auto;
}

.store_item:hover {
	opacity: 0.8;
}

.store_item.purchased { 
	opacity: .2;
}
.store_item.purchased:hover { 
	opacity: .2;
}
.store_item.not_enough { 
	opacity: .2;
}
.store_item.not_enough:hover { 
	opacity: .2;
}

.store_item_header {
	display: flex;
	align-items: center;
    color: #fafc77;
    font-size: 20px;
}

button, h3 {
	border: none;
	border-radius: 2px;
	margin: 4px 0;
	font-size: 115%;
	font-weight: bold;
}

h3 {
	text-align: right;
}

button {
	padding: 8px 16px;
	background: rgba(255,255,255,.85);
}

#menu > div {
	width: 100%;
}
h1 {
	font-size: 500%;
	text-align: center;
	color: #fff;
	z-index: 99;
	width: 100%;
	font-style: monospace;
}
#loading {
	color: rgba(255,255,255,1);
	font-size: 300%;
	text-align: center;
	z-index: 5;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate3d(-50%, -50%, 0);
	width: 100%;
	height: 100%;
	display: grid;
	grid-template-rows: 1fr auto;
	align-items: center;
}

#loading img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mode_container {
	text-align: left;
	align-items: center;
}

.mode_container button {
	width: 100%;
}

@keyframes move-twink-back {
    from {background-position:0 0;}
    to {background-position:-10000px 5000px;}
}
@-webkit-keyframes move-twink-back {
    from {background-position:0 0;}
    to {background-position:-10000px 5000px;}
}
@-moz-keyframes move-twink-back {
    from {background-position:0 0;}
    to {background-position:-10000px 5000px;}
}
@-ms-keyframes move-twink-back {
    from {background-position:0 0;}
    to {background-position:-10000px 5000px;}
}

@keyframes move-clouds-back {
    from {background-position:0 0;}
    to {background-position:10000px 0;}
}
@-webkit-keyframes move-clouds-back {
    from {background-position:0 0;}
    to {background-position:10000px 0;}
}
@-moz-keyframes move-clouds-back {
    from {background-position:0 0;}
    to {background-position:10000px 0;}
}
@-ms-keyframes move-clouds-back {
    from {background-position: 0;}
    to {background-position:10000px 0;}
}

.stars, .twinkling, .clouds {
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  width:100%;
  height:100%;
  display:block;
}

.stars {
  background:#000 url(data/stars.png) repeat top center;
}

.twinkling{
  background:transparent url(data/twinkling.png) repeat top center;
  -moz-animation:move-twink-back 200s linear infinite;
  -ms-animation:move-twink-back 200s linear infinite;
  -o-animation:move-twink-back 200s linear infinite;
  -webkit-animation:move-twink-back 200s linear infinite;
  animation:move-twink-back 200s linear infinite;
}

.volume_slider {
	display: flex;
	align-items: center;
	margin-bottom: 14px;
}

.volume_slider label { 
	padding-right: 14px;
}

#difficulty_selector {
	height: 100%;
	flex-flow: column;
	align-items: center;
}

#help_img {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate3d(-50%, -50%, 0);
	z-index: 99;
}
