@import url("https://use.typekit.net/jya6mdt.css");

/*
Customization specific to Quixe interpreter page elements
*/

/* This hides the interpreter credit on the player page itself, but Quixe is credited inside the game's version and credits command and on the homepage for the game */
.interpretercredit
{
	display: none;
}

.BufferWindow
{
	padding: 6px 35px 6px 35px !important;
}

/* Responsive breakpoints optimizing for sizes approximately near a target #gameport width of 768px */
/* Common screen resolutions are: 768px, 1024px, 1280px, 1440px, 1920px */

@media screen and (max-width: 768px) {
  #gameport {
    right: 0% !important;
	  left: 0% !important;
  }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  #gameport {
    right: 6% !important;
	  left: 6% !important;
  }
}
@media screen and (min-width: 1024px) and (max-width: 1280px) {
  #gameport {
    right: 16% !important;
	  left: 16% !important;
  }
}
@media screen and (min-width: 1280px) and (max-width: 1440px) {
  #gameport {
    right: 21.5% !important;
	  left: 21.5% !important;
  }
}
@media screen and (min-width: 1440px) and (max-width: 1920px) {
  #gameport {
    right: 26.5% !important;
	  left: 26.5% !important;
  }
}

#gameport
{
	bottom: 0px;
  top: 0px;
  margin: 0px;
	line-height: 1.4;
	position: absolute;
}

/*
Side-wide styles and color theming
(Palette inspired by "Fruit" wallpaper design by William Morris)
*/

@media (prefers-color-scheme: light) {
  #main-content {
    background: #f1f5f9;
    color: #000;
  }
  #gradient-spacer
  {
    background-image: linear-gradient(to bottom, rgba(255, 0, 0, 0) 25%, #f1f5f9);
  }
  a
  {
    color: #003180;
  }
  a:hover
  {
    color: #0042ac;
  }
  a:active
  {
    color: #1f62ce;
  }
  pre {
    background-color: #fff;
  }
  /* Quixe player */
  #gameport {
    background: #f1f5f9 !important;
    color: #000 !important;
  }
  .WindowFrame
  {
    background: #f1f5f9 !important;
  }
  .GridWindow
  {
    color: #fff !important;
    background: #2d3949 !important;
  }
  .Style_input, .LineInput
  {
    color: #000 !important;
  }
  .MorePrompt
  {
    color: #fff !important;
    background: #2d3949 !important;
  }
}

@media (prefers-color-scheme: dark) {
  #main-content {
    background: #2d3949;
    color: #fff;
  }
  #gradient-spacer
  {
    background-image: linear-gradient(to bottom, rgba(255, 0, 0, 0) 25%, #2d3949);
  }
  a
  {
    color: #d9e6fd;
  }
  a:hover
  {
    color: #cbddfd;
  }
  a:active
  {
    color: #b8d1ff;
  }
  pre
  {
    background-color: #171d25;
  }
  /* Quixe player */
  #gameport {
    background: #2d3949 !important;
    color: #fff !important;
  }
  .WindowFrame
  {
    color: #fff !important;
    background: #2d3949 !important;
  }
  .GridWindow
  {
    color: #f1f5f9 !important;
    background: #171d25 !important;
  }
  .Style_input, .LineInput
  {
    color: #fff !important;
  }
  .MorePrompt
  {
    color: #f1f5f9 !important;
    background: #171d25 !important;
  }
}

body
{
  font-family: Georgia, serif;
  font-size: 100%;
  -webkit-text-size-adjust: none;
  background-image: url("images/fruit.jpg");
  background-attachment: fixed;
  background-size: 50% auto;
  background-color: #868ba1;
  height: 100vh;
  padding: 0;
  margin: 0;
}

h1, h2
{
  font-family: "p22-morris-troy", sans-serif;
  font-weight: 400;
  font-style: normal; 
}

li
{
  padding: .5em;
}

hr
{
  margin: 24px 0;
  color: #969a8c;
}

#center-column
{
  width: 80%;
  max-width: 768px;
  margin: 0 auto;
  padding: 0;
}

#gradient-spacer
{
  width: 100%;
  height: 100px;
  margin-top: -75px;
}

#main-content
{
  line-height: 1.4;
  margin: 0;
  padding: 33px;
}

.card
{
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #969a8c;
}

.center
{
  text-align: center;
}

.button
{
  padding: .5rem 1rem;
  border-radius: .3rem;
  font-size: 20px;
  color: #fff;
  background-color: #495769;
  border: 1px solid transparent;
  width: fit-content;
  text-align: center;
  vertical-align: middle;
  display: inline-block;
}

a.button 
{
  text-decoration: none;
  color: #fff;
}

a:hover.button
{
  color: #fff;
}

.small
{
  font-size: 16px;
}

.button:hover
{
  background-color: #637183;
}

.button:active
{
  background-color: #969a8c;
}

.large-text
{
  font-size: 18px;
}

.small-text
{
  font-size: 12px;
}

pre {
  width: fit-content;
  padding: 8px;
}

/* Used for ouroboros symbol */
.hr
{
  width: 120px;
  height: auto;
  padding: 10px 0;
}

/* Grid used for commands page */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10px 0;
}

.grid > span {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid #969a8c;
}

/* Flex box used for historical references page */

.flex-box {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
}

.flex-column {
  flex: 45%;
  max-width: 45%;
  padding-top: 16px;
  padding-right: 2.5%;
  padding-left: 2.5%;
  padding-bottom: 16px;
  align-content: center;
}

.flex-img {
  width: 100%;
}