@charset "utf-8";
html {
  background-color: rgb(0, 0, 0);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-image: -webkit-linear-gradient(315deg, rgb(0, 0, 0), rgb(0, 0, 0));
  background-image: -moz-linear-gradient(315deg, rgb(0, 0, 0), rgb(0, 0, 0));
  background-image: -o-linear-gradient(315deg, rgb(0, 0, 0), rgb(0, 0, 0));
  background-image: linear-gradient(135deg, rgb(0, 0, 0), rgb(0, 0, 0));
  margin: 0;
  padding: 0;
  font-family: arial, serif;
  overflow: auto;
  text-align: left;
  direction: ltr;
  width: 100%;
  height: 100%;
  text-rendering: optimizeSpeed;
}

body {
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  border: none;
  margin: 0;
  padding: 0;
}

div.menubar,
div#GameBoy > div#gfx,
div.window > div.button_rack,
ul.menu {
  -webkit-text-size-adjust: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

div.window {
  visibility: visible;
  display: none;
  position: absolute;
  overflow: hidden;
  margin: 0;
  padding: 10px 0 0 0;
  top: 0;
  left: 0;
  color: rgb(0, 0, 0);
  font-size: 16px;
  -webkit-border-radius: 10px 10px 3px 3px;
  border-radius: 10px 10px 3px 3px;
  -webkit-box-shadow: 5px 5px 10px rgb(30, 30, 30);
  box-shadow: 5px 5px 10px rgb(30, 30, 30);
  background-color: rgb(200, 200, 200);
  z-index: 2;
  opacity: 1;
}

div#GameBoy {
  min-height: 288px;
  min-width: 320px;
}

div#input_select,
div#save_importer {
  min-height: 100px;
  min-width: 200px;
}

div#instructions {
  min-height: 300px;
  min-width: 400px;
}

div.menubar {
  max-height: 28px;
  min-width: 250px; /*Fail safe for poopy browsers.*/
  display: block;
  overflow: hidden;
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid rgb(150, 150, 150);
  border-right-style: none;
  border-bottom: 1px solid rgb(50, 50, 50);
  border-left-style: none;
  text-overflow: ellipsis;
  margin: 0;
  padding: 0 0 0 3px;
  text-align: left;
  background-color: rgb(210, 210, 210);
  background-repeat: repeat-x;
  background-attachment: scroll;
  background-image: -webkit-linear-gradient(
    top,
    rgb(150, 150, 150),
    rgb(220, 220, 220),
    rgb(180, 180, 180)
  );
  background-image: -moz-linear-gradient(
    top,
    rgb(150, 150, 150),
    rgb(220, 220, 220),
    rgb(180, 180, 180)
  );
  background-image: -o-linear-gradient(
    top,
    rgb(150, 150, 150),
    rgb(220, 220, 220),
    rgb(180, 180, 180)
  );
  background-image: linear-gradient(
    top,
    rgb(150, 150, 150),
    rgb(220, 220, 220),
    rgb(180, 180, 180)
  );
}

div.menubar > span {
  cursor: pointer;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  background-color: transparent;
  padding: 2px 5px;
  margin: 3px 3px 3px 0;
  display: inline-block;
}

div.menubar > span:hover {
  -webkit-box-shadow: 2px 2px 1px rgb(30, 30, 30);
  box-shadow: 2px 2px 1px rgb(30, 30, 30);
  background-color: rgb(160, 160, 160);
  background-repeat: repeat-x;
  background-attachment: scroll;
  background-image: -webkit-linear-gradient(
    top,
    rgb(160, 160, 160),
    rgb(190, 190, 190),
    rgb(160, 160, 160)
  );
  background-image: -moz-linear-gradient(
    top,
    rgb(160, 160, 160),
    rgb(190, 190, 190),
    rgb(160, 160, 160)
  );
  background-image: -o-linear-gradient(
    top,
    rgb(160, 160, 160),
    rgb(190, 190, 190),
    rgb(160, 160, 160)
  );
  background-image: linear-gradient(
    top,
    rgb(160, 160, 160),
    rgb(190, 190, 190),
    rgb(160, 160, 160)
  );
}

div.menubar > span:active {
  -webkit-box-shadow: inset 2px 2px 1px rgb(30, 30, 30);
  box-shadow: inset 2px 2px 1px rgb(30, 30, 30);
  background-color: rgb(220, 220, 220);
  background-repeat: repeat-x;
  background-attachment: scroll;
  background-image: -webkit-linear-gradient(
    top,
    rgb(190, 190, 190),
    rgb(160, 160, 160),
    rgb(190, 190, 190)
  );
  background-image: -moz-linear-gradient(
    top,
    rgb(190, 190, 190),
    rgb(160, 160, 160),
    rgb(190, 190, 190)
  );
  background-image: -o-linear-gradient(
    top,
    rgb(190, 190, 190),
    rgb(160, 160, 160),
    rgb(190, 190, 190)
  );
  background-image: linear-gradient(
    top,
    rgb(190, 190, 190),
    rgb(160, 160, 160),
    rgb(190, 190, 190)
  );
}

div#gfx {
  height: auto;
  width: auto;
  margin: 0;
  padding: 0;
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  top: 43px;
  background-color: rgb(200, 200, 200);
}

body > div#fullscreenContainer {
  position: fixed;
  height: 100%;
  width: 100%;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgb(0, 0, 0);
  display: none;
  z-index: 100;
}

body > div#fullscreenContainer > canvas#fullscreen.maximum {
    position: static;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body > div#fullscreenContainer > canvas#fullscreen.minimum {
    position: absolute;
    height: 144px;
    width: 160px;
    top: 50%;
    left: 50%;
    margin: -72px 0 0 -80px;
    padding: 0;
}

div#GameBoy > div#gfx > canvas {
  position: absolute;
  z-index: 5;
  visibility: hidden;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(255, 255, 255);
}

div#GameBoy > div#gfx > span#title {
  position: absolute;
  top: 30%;
  left: 15%;
  font-size: 64px;
  color: rgb(220, 220, 150);
  text-shadow: 3px 3px 5px rgb(50, 50, 50);
  font-style: italic;
  z-index: 1;
  padding: 0 5px 0 0;
}

div#GameBoy > div#gfx > span#port_title {
  position: absolute;
  top: 45%;
  left: 55%;
  font-size: 32px;
  color: rgb(180, 70, 70);
  text-shadow: 2px 2px 4px rgb(80, 80, 80);
  font-style: italic;
  font-weight: bold;
  z-index: 2;
  padding: 0 5px 0 0;
}

div#about {
  max-width: 400px;
  max-height: 350px;
  min-width: 400px;
  min-height: 350px;
}

div#terminal {
  min-height: 100px;
  min-width: 310px;
}

div#terminal,
div#about,
div#settings,
div#local_storage_listing,
div#freeze_listing {
  height: 350px;
  width: 400px;
}

div#settings {
  height: 410px;
}

div#local_storage_popup {
  height: 250px;
  width: 300px;
}

div#local_storage_listing,
div#freeze_listing {
  min-width: 400px;
  min-height: 350px;
}

div.storageList {
  position: absolute;
  top: 10px;
  left: 3px;
  right: 4px;
  overflow: auto;
  text-align: left;
  bottom: 50px;
  background-color: rgb(140, 140, 140);
  -webkit-border-radius: 3px;
  border-radius: 3px;
  -webkit-box-shadow: inset 3px 3px 2px 1px rgb(110, 110, 110);
  box-shadow: inset 3px 3px 2px 1px rgb(110, 110, 110);
  padding: 3px;
}

div#storageListingMasterContainer {
  top: 40px !important;
}

div#download_all_storage {
  position: absolute;
  height: 20px;
  left: 3px;
  top: 10px;
  right: 4px;
  text-align: center;
  font-weight: bold;
  background-color: rgb(140, 140, 140);
  -webkit-border-radius: 3px;
  border-radius: 3px;
  -webkit-box-shadow: inset 3px 3px 2px 1px rgb(110, 110, 110);
  box-shadow: inset 3px 3px 2px 1px rgb(110, 110, 110);
  padding: 3px;
}

div.storageList a,
div#download_all_storage a {
  color: rgb(210, 210, 210);
}

div#terminal > div#terminal_output {
  background-color: rgb(0, 0, 0);
  margin: 0;
  font-family: monotype, serif;
  font-size: 12px;
  bottom: 50px;
  padding: 10px;
  top: 10px;
  right: 3px;
  left: 3px;
  position: absolute;
  cursor: crosshair;
  overflow: auto;
  text-align: left;
}

div#terminal > div#terminal_output > span.white {
  color: rgb(255, 255, 255);
}

div#terminal > div#terminal_output > span.white:before {
  content: "<DEBUG> ";
  font-weight: bold;
}

div#terminal > div#terminal_output > span.yellow {
  color: rgb(255, 255, 0);
}

div#terminal > div#terminal_output > span.yellow:before {
  content: "<WARNING> ";
  font-weight: bold;
}

div#terminal > div#terminal_output > span.red {
  color: rgb(0, 0, 255);
}

div#terminal > div#terminal_output > span.red:before {
  content: "<ERROR> ";
  font-weight: bold;
}

div#about > div#about_message,
div#instructions > div#keycodes {
  position: absolute;
  top: 10px;
  left: 3px;
  bottom: 50px;
  right: 3px;
  background-color: rgb(230, 230, 230);
  border: 5px groove rgb(50, 50, 50);
  padding: 5px;
  overflow: auto;
}

div#about > div#about_message > h1 {
  font-size: 20px;
  color: rgb(80, 60, 20);
}

div#settings > div#toggle_settings {
  position: absolute;
  top: 10px;
  left: 3px;
  right: 3px;
  bottom: 50px;
}

div#settings > div#toggle_settings > div.setting {
  text-align: left;
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0 0 3px 0;
  border: none;
}

div#settings > div#toggle_settings > div.setting:hover {
  border-bottom: 1px dashed rgb(70, 70, 70);
}

div#settings > div#toggle_settings > div.setting input {
  float: right;
}

div.window > div.button_rack {
  background-color: transparent;
  margin: 0;
  padding: 0;
  position: absolute;
  height: 44px;
  bottom: 3px;
  right: 3px;
  left: 3px;
  text-align: center;
}

div.window > div.button_rack > button {
  cursor: pointer;
  padding: 0;
  margin: 0;
  height: 44px;
  width: 150px;
  text-align: center;
  font-size: 14px;
  position: relative;
}

div.window > div.button_rack > button.left {
  float: left;
}

div.window > div.button_rack > button.right {
  float: right;
}

div.window > div.button_rack > button.center {
  width: 100%;
}

ul.menu {
  position: absolute;
  display: none;
  list-style: none inside;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  top: 0;
  left: 0;
  z-index: 3;
  background-color: rgb(200, 200, 200);
  background-repeat: repeat-x;
  background-attachment: scroll;
  background-image: -webkit-linear-gradient(
    left,
    rgb(200, 200, 200),
    rgb(240, 240, 240)
  );
  background-image: -moz-linear-gradient(
    left,
    rgb(200, 200, 200),
    rgb(240, 240, 240)
  );
  background-image: -o-linear-gradient(
    left,
    rgb(200, 200, 200),
    rgb(240, 240, 240)
  );
  background-image: linear-gradient(
    left,
    rgb(200, 200, 200),
    rgb(240, 240, 240)
  );
  -webkit-border-radius: 3px;
  border-radius: 3px;
  -webkit-box-shadow: 5px 5px 10px rgb(30, 30, 30);
  box-shadow: 5px 5px 10px rgb(30, 30, 30);
  border: 1px solid rgb(100, 100, 100);
  border-right: 2px rgb(50, 50, 50);
  border-bottom: 2px rgb(50, 50, 50);
  overflow: visible;
}

ul.menu:hover {
  display: inline-block;
  top: 0;
  left: 0;
}

ul.menu > li {
  display: block;
  position: relative;
  margin: 0 0 -1px 0; /*Firefox DOM mouseover bug*/
  padding: 2px 5px 2px 15px;
  color: rgb(0, 0, 0);
  background-color: transparent;
  width: 200px;
  height: auto;
  border: none;
  overflow: visible;
  text-overflow: ellipsis;
}

ul.menu > li:hover {
  background-color: rgb(255, 255, 200);
  background-color: rgba(255, 255, 200, 0.3);
}

ul.menu > li:hover > ul.menu {
  left: 220px;
  top: 0;
  display: inline-block;
}
