/* Roboto Mono served from this site (licence: fonts/LICENSE.txt), so visitors do not contact Google. Latin subset only. */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/roboto-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  color: #ccc;
  background-color: #222;
  font-family: 'Roboto Mono', monospace;
  overflow: auto;
}
a {
  color: darkgray;
  text-decoration: none;
}
a:visited {
  color: darkgray;
  text-decoration: none;
}
a:hover {
  color: darkgray;
  text-decoration: underline;
}
p {
  padding-left: 8px;
  padding-right: 8px;
}

.games {
  display: block;
  height: 100%;
  width: 100%;
}

/* One full-window section: at least as tall as the window (dvh follows the
   mobile address bar where supported), the block centred inside it; when the
   block is taller than the window the section grows and the page scrolls.
   The bottom padding keeps the content clear of the fixed footer (.copy,
   up to two lines on narrow screens). */
.game {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  margin: 0 auto;
  padding: 16px 8px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

#retrocastle {
  background-image: url(img/castlebg.jpg);
}

.game_block {
  margin: 0;
  padding: 10px;
  width: 90%;
  text-align: center;
  background-color: rgba(0,0,0,0.65);
  border-radius: 10px;
  color:#fff;
  font-size: clamp(13px, 0.6rem + 1.2vw, 24px);
  line-height: 1.5;
}
.game_title {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px;
  text-align: center;
  white-space: nowrap;
  color:#fff;
  font-size: clamp(18px, 0.5rem + 3.5vw, 48px);
}
.game_video {
  width: 100%;
  border-radius: 10px;
}

.text_center {
  text-align: center;
}
.button_play {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: clamp(20px, 0.75rem + 3vw, 45px);
}
.animate {
  -webkit-transition-duration: 0.4s;
  -moz-transition-duration: 0.4s;
  transition-duration: 0.4s;
  -webkit-transition-timing-function: ease;
  -moz-transition-timing-function: ease;
  transition-timing-function: ease;
}
.color_green {
  background-color: #4caf50;
  color: #fff;
  border: 2px solid #46a04a;
}
.color_green:hover {
  background-color: #3e8e41;
  color: #ffffe6;
  border: 2px solid #4caf50;
}

.copy {
  box-sizing: border-box;
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 5px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  background-color: rgba(0,0,0,0.5);
}

/* Video and text: stacked on narrow screens, side by side (40 % / 60 %,
   text centred vertically next to the video) from 768 px and on short
   landscape screens (phones turned sideways). */
.row {
  display: flex;
  flex-direction: column;
}
[class*="col-"] {
  min-width: 0;
  margin-bottom: 5px;
}

@media only screen and (min-width: 768px), only screen and (orientation: landscape) and (max-height: 500px) {
  .row {
    flex-direction: row;
    align-items: center;
  }
  .col-1 {flex: 0 0 40%;}
  .col-2 {flex: 1 1 60%;}
}
@media only screen and (min-width: 768px) {
  .game {padding: 48px 16px;}
}
