/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

@font-face {
  font-family: PixelOperator;
  font-weight: bold;
  src: url("./PixelOperatorMono8-Bold.ttf");
}
@font-face {
  font-family: PixelOperator;
  font-weight: normal;
  src: url("./PixelOperatorMono8.ttf");
}
button,
details > summary {
  cursor: pointer;
}

b,
strong {
  font-weight: bolder;
}

i,
em {
  font-style: italic;
}

:root {
  background-color: #ffffff;
  background-image: url("./bg.png");
  color: #312129;
  color-scheme: dark;
  font-family: PixelOperator;
  font-size: 16px;
  font-weight: normal;
}

a {
  color: blue;
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
}
a:active {
  color: red;
}

::selection {
  background: #312129;
  color: #fff4c4;
}

* {
  box-sizing: border-box;
  image-rendering: pixelated;
}

.pic_choices .info_1 {
  content: url("./info1.png");
  margin-right: 20px;
}

#log .info_1 {
  content: url("./info1_small.png");
  margin-left: 10px;
}

.pic_choices .info_2 {
  content: url("./info2.png");
  margin-right: 20px;
}

#log .info_2 {
  content: url("./info2_small.png");
  margin-left: 10px;
}

.pic_choices .info_3 {
  content: url("./info3.png");
  margin-right: 20px;
}

#log .info_3 {
  content: url("./info3_small.png");
  margin-left: 10px;
}

.pic_choices .log1_1 {
  content: url("./log1_1.png");
  margin-right: 20px;
}

#log .log1_1 {
  content: url("./log1_1_small.png");
  margin-left: 10px;
}

.pic_choices .log1_2 {
  content: url("./log1_2.png");
  margin-right: 20px;
}

#log .log1_2 {
  content: url("./log1_2_small.png");
  margin-left: 10px;
}

.pic_choices .log1_3 {
  content: url("./log1_3.png");
  margin-right: 20px;
}

#log .log1_3 {
  content: url("./log1_3_small.png");
  margin-left: 10px;
}

.pic_choices .log2_1 {
  content: url("./log2_1.png");
  margin-right: 20px;
}

#log .log2_1 {
  content: url("./log2_1_small.png");
  margin-left: 10px;
}

.pic_choices .log2_2 {
  content: url("./log2_2.png");
  margin-right: 20px;
}

#log .log2_2 {
  content: url("./log2_2_small.png");
  margin-left: 10px;
}

.pic_choices .log2_3 {
  content: url("./log2_3.png");
  margin-right: 20px;
}

#log .log2_3 {
  content: url("./log2_3_small.png");
  margin-left: 10px;
}

.pic_choices .log3_1 {
  content: url("./log3_1.png");
  margin-right: 20px;
}

#log .log3_1 {
  content: url("./log3_1_small.png");
  margin-left: 10px;
}

.pic_choices .log3_2 {
  content: url("./log3_2.png");
  margin-right: 20px;
}

#log .log3_2 {
  content: url("./log3_2_small.png");
  margin-left: 10px;
}

.pic_choices .log3_3 {
  content: url("./log3_3.png");
  margin-right: 20px;
}

#log .log3_3 {
  content: url("./log3_3_small.png");
  margin-left: 10px;
}

.pic_choices .log4_1 {
  content: url("./log4_1.png");
  margin-right: 20px;
}

#log .log4_1 {
  content: url("./log4_1_small.png");
  margin-left: 10px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) rgba(0, 0, 0, 0.1);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}
*::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.52);
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
*::-webkit-scrollbar-corner {
  background: rgba(0, 0, 0, 0.1);
}

@keyframes progress {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: 180vw;
  }
}
html,
body {
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
}

body {
  min-width: 100%;
  contain: paint;
}

progress {
  position: relative;
  width: 90%;
  height: 2rem;
  margin: 5%;
  margin-top: 45vh;
  appearance: none;
  background-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
  border-radius: 0.5rem;
  border: none;
  overflow: hidden;
  appearance: none;
}
progress::-webkit-progress-bar {
  background-color: transparent;
}
progress::-webkit-progress-value, progress::-moz-progress-bar {
  background-color: #000;
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 75%);
  background-size: 200% 100%;
  animation: progress 1s linear infinite;
}

progress + main {
  display: none;
}

noscript {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  width: 100%;
  min-height: 100vh;
  padding: 1rem;
  display: grid;
  grid-gap: 0.5rem;
  align-items: center;
  background-color: #ffffff;
  background-image: url(./sky.jpeg);
}

#overlay,
#dither {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#overlay {
  mix-blend-mode: color-burn;
}

#dither {
  mix-blend-mode: difference;
}

iframe {
  box-sizing: border-box;
  border: 5px ridge #c0c0c0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  flex: auto;
}
iframe::selection {
  background: transparent;
}

.spectacles {
  grid-area: spec;
}

@keyframes game {
  from {
    width: 0;
    height: 0;
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes gameout {
  from {
    opacity: 1;
  }
  to {
    width: 0;
    height: 0;
    opacity: 0;
  }
}
.game {
  animation: game 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
  grid-area: spec;
  margin: auto;
  width: calc(100% - 4rem);
  height: calc(100% - 4rem);
  border-style: solid;
  border-width: 2px;
  background: rgb(255, 255, 0);
  contain: paint;
}

.game.over {
  animation: gameout 0.5s cubic-bezier(0.075, 0.82, 0.165, 1) forwards;
  pointer-events: none;
}

.music {
  grid-area: music;
}

.sfx {
  grid-area: sfx;
}

#img1 {
  grid-area: img1;
  pointer-events: none;
  background-color: blue;
}

#img2 {
  grid-area: img2;
  pointer-events: none;
}

#img3 {
  grid-area: img3;
  pointer-events: none;
}

#img4 {
  grid-area: img4;
  pointer-events: none;
}

.log {
  grid-area: log;
}

.floater {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transition: top 0.5s ease-out, left 0.5s ease-out, width 0.5s ease-out, height 0.5s ease-out, opacity 0.2s ease-out;
  opacity: 1;
}
.floater:hover {
  opacity: 0.5;
}
.floater.hidden {
  top: 50% !important;
  left: 50% !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.sfx_text {
  display: none;
}

main {
  grid-template-areas: "spec spec spec spec img2" "spec spec spec spec music" "spec spec spec spec music" "spec spec spec spec sfx" "log log img_room img_connect img1";
  grid-template-columns: 5rem 1fr 512px 100px 256px;
  grid-template-rows: 208px 1fr 3rem 1rem 256px;
}

/* maybe some day

@media screen and (min-width: 500px) {
	main {
		padding: 0.25rem;
		grid-template-areas:
			"spec spec spec spec img2"
			"spec spec spec spec music"
			"spec spec spec spec music"
			"spec spec spec spec sfx"
			"log log img_room img_connect img1";
		grid-template-columns: 5rem 1fr 1fr 100px 256px;
		grid-template-rows: 208px 1fr 3rem 1rem 256px;
	}

	iframe {
		border-width: 1px;
	}

	.game {
		width: calc(100% - 0.5rem);
		border-radius: 0.25rem;
		border-width: 1px;
	}

	.floater {
		opacity: 0.5;
		pointer-events: none;
	}
}
*/