
:root {
    --color-0: #000000;
    --color-1: #181f1a;
    --color-2: #511f00;
    --color-3: #a54700;
    --color-4: #474747;
    --color-5: #ff9264;
    --color-6: #c66d68;
    --color-7: #676d68;
    --color-8: #f56d00;
    --color-9: #a6aaa7;
    --color-10: #d47346;
    --color-11: #1a100b;
    --color-12: #444444;
    --color-13: #646c6c;
}

.rajdhani-light {
  font-family: "Rajdhani", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.rajdhani-regular {
  font-family: "Rajdhani", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.rajdhani-medium {
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.rajdhani-semibold {
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.rajdhani-bold {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-style: normal;
}

body {
    background-color: var(--color-0);
    color: var(--color-9);
    margin: 0;
    padding: 20px 0 0 0;
    font-family: "Rajdhani", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 22px;
}
a, a:visited {
    color: var(--color-6);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
h2 {
    margin: 40px 0 10px 0;
}

#header {
    display: flex;
    align-items: end;
    margin: 0 auto;
    position: relative;
    max-width: calc(750px - 64px);
    border-bottom: 1px solid var(--color-3);
    padding-left: 64px;
    height: 64px;
    background-image: url('/img/rick-dangerous/rick.png');
    background-repeat: no-repeat;
    background-position-y: center;
}
#header .title {
    flex: 99;
    padding-bottom: 8px;
}
#header .title a {
    font-size: 36px;
    text-decoration: none;
}

#header .title a span {
    color: var(--color-8);
}
#header .misc {
   flex: 1;
   padding: 8px;
   font-size: 20px;
   text-align: center;
}

#content {
    margin: 0 auto;
    max-width: 750px;
    position: relative;
    padding: 20px 0;
}

#footer {
    margin: 0 auto;
    max-width: 750px;
    border-top: 1px solid var(--color-3);
    padding: 8px 0 20px 0;
    position: relative;
    text-align: center;
    font-size: 12px;
    line-height: 16px;
}

div.meh {
    width: 256px;
    height: 192px;
    background-repeat: no-repeat;
    background-position: center;
    float: right;
    margin-left: 20px;
    margin-bottom: 15px;
    background-size: 300px;
}
#play {
    margin: 40px 0;
    background-color: var(--color-1);
    padding: 30px 0 10px 0;
}
#controls {
    width: 100%;
}
#controls td:nth-child(odd) {
    background-color: var(--color-2);
    width: 5%;
    text-align: center;
    font-weight: bold;
}
#controls td:nth-child(even) {
    background-color: var(--color-1);
    width: 45%;
}

div.splash {
    display: flex;
    margin: 40px 0 60px 0;
    text-align: center;
}
div.splash div {
    flex: 1;
}

#player::before {
  display: block;
  content: '';
  width: 100%;
  height: 0px;
  padding-bottom: 62.5%;
  margin: 0 auto;
}
#player {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
#xrick {
    height: 100%;
    width: 100%;
    background: var(--color-12);
    background-image: url('/img/rick-dangerous/splash.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
}
#xrick span {
  display: block;
  text-align: center;
  color: var(--color-3);
  position: absolute;
  bottom: 10%;
  width: 100%;
}
#canvas {
  display: none;
  /* the canvas *must not* have any border or padding, or mouse coords will be wrong */
  border: 0px none;
  padding: 0;
  background-color: black;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
#controls #controls1,
#controls #controls2 {
  display: flex;
}
#controls #controls1 {
  margin: 12px 0;
  justify-content: center;
}
#controls #controls1 div {
  background-color: var(--color-2);
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 32px;
  font-weight: bold;
  cursor: pointer;
}
#controls #controls1 div + div {
  margin-left: 4px;
}
#controls #controls2 {
  display: none;
  margin: 4px 0;
}
#controls #controls2 div {
  background-color: #eeeeee;
  padding-top: 42%;
}
#controls #controls2 div + div {
  margin-left: 4px;
}
#controls #control_fire {
    flex: 1 1 auto;
    background: url('/img/rick-dangerous/fire.png') no-repeat center center;
}
#controls #control_pad {
    flex: 2 1 auto;
    background: url('/img/rick-dangerous/pad.png') no-repeat center center;
}
#player_console {
  display: none;
  background: #dddddd;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 8px;
  max-width: 640px;
  margin: 24px auto;
}
