@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,700|Quattrocento:700');

body {
    /* font-family: 'Open Sans', sans-serif; */
    /* font-family: 'Verdana', sans-serif; */
    font-family: 'Georgia', serif;
    background: white;
    overflow: hidden;
}

@media screen and (prefers-reduced-motion: no-preference) {
    body.switched {
        transition: color 0.6s, background-color 0.6s;
    }
}

.writing {
    font-family: cursive;
}

/************ computer text ****************/
.computer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}


/************ Tooltips *************/
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: max-content; 
  background-color: #fff;
  color: #000;
  text-align: center;
  border-radius: 6px;
  border-style: solid;
  padding: 5px 5px;
  border-width: 1px;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
  bottom: 110%;
  left: 0%;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

/************ blinking computer text ****************/
.computerblink {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    animation: blinker 1.5s linear infinite;
}
@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.head1 {
    font-family: "Quattrocento", Georgia, 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    font-size: 30pt;
    /* margin-bottom: 10px; */
    font-weight: bold;
}
.head2 {
    text-align: center;
    font-family: "Quattrocento", Georgia, 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    font-size: 14pt;
    font-family: sans-serif;
    font-weight: bold;
}
.centered {
    text-align: center;
}

h1,
h2 {
    text-align: center;
    font-family: "Quattrocento", Georgia, 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 30pt;
    margin-bottom: 10px;
}

h2 {
    font-size: 14pt;
    font-style: italic;
    font-family: sans-serif;
    /* font-weight: lighter; */
    color: #888;
}

.listheader {
    text-align: left;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    color: black;
    margin-top: 6px;
    margin-bottom: 6px;
}

.header {
    padding-top: 3em;
    padding-bottom: 3em;
}

.item_selected {
    background: #d0cece;
}

/*
  Built-in class:
    # author: Name
*/
.byline {
    font-style: italic;
}

@media screen and (prefers-reduced-motion: no-preference) {
    .written-in-ink {
        transition: color 0.6s, background 0.6s;
    }
}

/* 
  Enables <iframe> support work on itch.io when using mobile iOS
*/
.row {
    display:grid;
    grid-template-columns: 20.0% 50.0% 30.0%;
    justify-content: left;
    text-align: left;
    /* margin: 8px; */
    column-gap: 20px;
}

.outerContainer {
    position: absolute;
    display: block;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    overflow: scroll;
    overflow-x: hidden;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    /* margin-top: 24px; */
    /*
    background-size: cover;
    background-repeat: no-repeat;
    */

    background-size: 100% auto;
    background-repeat: no-repeat;
    background-color: #444;
    background-position: top;
}

.sidebar {
    display: block;
    width: 90%;
    height: fit-content;
    margin-top: 6px;
    padding-left: 15px;
    padding-right: 15px;
    background: white;
    border: solid #404040;
    border-width: 5px 5px 5px 5px;
    /* border-radius: 98% 2% 98% 2% / 2% 98% 2% 98%;*/
    border-radius: 200px 12px 200px 12px / 12px 200px 12px 200px;
}

.imagesidebar {
    display: block;
    height: fit-content;
    margin-top: 6px;
    width: 85%;
}

.container {
    display: block;
    width: 95%;
    height: fit-content;
    margin-top: 6px;
    padding-left: 15px;
    padding-right: 15px;
    background: white;
    border: solid #404040;
    border-width: 5px 5px 5px 5px;
    /* border-radius: 98% 2% 98% 2% / 2% 98% 2% 98%; */
    border-radius: 200px 12px 200px 12px / 12px 200px 12px 200px;
}

@media screen and (prefers-reduced-motion: no-preference) {
    .switched .container {
        transition: background-color 0.6s;
    }
}

p {
    font-size: 13pt;
    color: #111;
    line-height: 1.7em;
    /* font-weight: lighter; */
}
.codetext {
    font-size: 20pt;
    text-align: center;
}

a {
    font-weight: 700;
    color: #b97c2c;
    font-family: sans-serif;
    text-decoration: none;
}

.unclickable {
    font-weight: 700;
    color: #4f3411;
    font-family: sans-serif;
    text-decoration: none;
    cursor: not-allowed;
}

a:hover {
    color: black;
}

@media screen and (prefers-reduced-motion: no-preference) {
    a {
        transition: color 0.6s;
    }

    a:hover {
        transition: color 0.1s;
    }
}

strong {
    color: black;
    font-weight: bold;
}

img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.container .hide {
    opacity: 0.0;
}

.container .invisible {
    display: none;
}

.container>* {
    opacity: 1.0;
}

@media screen and (prefers-reduced-motion: no-preference) {
    .container>* {
        transition: opacity 1.0s;
    }
}

/*
  Class applied to all choices
  (Will always appear inside <p> element by default.)
*/
.choice {
    text-align: center;
    line-height: 1.7em;
}

/* 
  Class applied to first choice
*/
:not(.choice)+.choice {
    padding-top: 1em;
}

/*
  Class applied to choice links
*/
.choice a, .choice span {
    font-size: 15pt;
}

/* 
  Built-in class:
    The End # CLASS: end
*/
.end {
    text-align: center;
    font-weight: bold;
    color: black;
    padding-top: 20px;
    padding-bottom: 20px;
}

#controls {
    z-index: 4;
    text-align: center;
    padding-bottom: 6px;
    /*
    font-size: 9pt;
    position: fixed;
    right: 14px;
    background: white;
    */
    top: 4px;
    user-select: none;
}

@media screen and (prefers-reduced-motion: no-preference) {
    #controls {
        transition: color 0.6s, background 0.6s;
    }
}

#controls [disabled] {
    color: #ccc;
}

@media screen and (max-width: 980px) {
    #controls {
        z-index: 2;
        padding-top: 24px;
        top: 0;
        left: 0;
        right: 0;
    }
}

/* 
  Dark Theme (Added in Inky 0.10.0)
    # theme: dark
*/

body.dark {
    background: black;
    color: white;
}

.dark h2 {
    color: #666;
}

.dark .container {
    background: black;
}

.dark .written-in-ink {
    background: black;
}

.dark a {
    color: #cc8f1a;
}
.dark .unclickable{
    color: #c4af87;
    cursor:not-allowed;
}

.dark a:hover {
    color: white;
}

@media screen and (prefers-reduced-motion: no-preference) {
    .dark a {
        transition: color 0.6s;
    }
}

.dark strong {
    color: white;
}

.dark #controls [disabled] {
    color: #444;
}

.dark .end {
    color: white;
}

.dark #controls {
    background: black;
}



/****************** Attribution table ******************/
table.attr {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

table.attr td,
table.attr th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

table.attr tr:nth-child(even) {
    background-color: #dddddd;
}

/****************** Attribution image ******************/
table.devs {
    font-family: arial, sans-serif;
    border-collapse: separate;
    border-spacing: 2;
    width: 100%;
    text-align: center; 
    font-weight: bold;
    vertical-align: middle;
    table-layout: fixed;
}

table.devs td,
table.devs th {
    border: 0;
    box-shadow: 0 0 0 2px #dddddd;
    padding: 8px;
}

table.devs>tbody>tr:first-child>td:first-child {
  border-top-left-radius: 10px;
}
table.devs>tbody>tr:first-child>td:last-child {
  border-top-right-radius: 10px;
}
table.devs>tbody>tr:last-child>td:first-child {
  border-bottom-left-radius: 10px;
}
table.devs>tbody>tr:last-child>td:last-child {
  border-bottom-right-radius: 10px;
}

/****************** For the combination box table(s) ****************/
table.combo button {
	background-color: DimGray;
	width: 100%;
	height: 100%;
	border: none;
	color: white;
	padding: 0px 0px;
	font-size: 12px;
	cursor: pointer;
}

table.combo img {
	background-color: DimGray;
	border: none;
	padding: 0px 0px;
    vertical-align: middle;
    text-align: center;
}

/* Darker background on mouse-over */
table.combo button:hover {
	background-color: LightGray;
}
table.combo-holder {
	border-spacing: 0;
    margin: 0 auto;
}
table.combo-holder td {
	padding: 0px 1px;
}
table.combo {
	color: white;
	background-color: DimGray;
    vertical-align: middle;
    text-align: center;
	border-spacing: 0;
	border-collapse: separate;
	border-radius: 6px;
	border: 1px solid black;
}
table.combo td {
	width: 2em;
	height: 2em;
}
table.combo th {
	width: 2em;
	height: 1.5em;
}

/* Apply a border to the right of all but the last column */
table.combo th:not(:last-child),
table.combo td:not(:last-child) {
	border-right: 1px solid black;
}

/* Apply a border to the bottom of all but the last row */
table.combo>thead>tr:not(:last-child)>th,
table.combo>thead>tr:not(:last-child)>td,
table.combo>tbody>tr:not(:last-child)>th,
table.combo>tbody>tr:not(:last-child)>td,
table.combo>tfoot>tr:not(:last-child)>th,
table.combo>tfoot>tr:not(:last-child)>td,
table.combo>tr:not(:last-child)>td,
table.combo>tr:not(:last-child)>th,
table.combo>thead:not(:last-child),
table.combo>tbody:not(:last-child),
table.combo>tfoot:not(:last-child) {
	border-bottom: 1px solid #505050;
}


/****************** Eliza screen ****************/
.eliza {
    padding: 4px 4px; 
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #1a2d12;
    color: #29f329;
    font-family: courier, fixed, monospace;
    /* font-weight: bold; */
    font-size: smaller;
}


/**************** Cookie Consent Banner ****************/
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    padding: 15px;
    text-align: center;
    display: none; /* Hidden by default */
    z-index: 1000;
    font-family: 'Open Sans', sans-serif;
}
.cookie-consent-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 5px;
}

/**************** simple-meter display ****************/

.simple-meter {
  box-sizing: content-box;
  height: 0.7em; /* Can be anything */
  position: relative;
  margin: 0px 0px 0px 12px; /* Just for demo spacing top,right,bottom,left */
  background: #3e3e3e;
  border-radius: 0.7em;
  padding: 2px;
  box-shadow: inset 0 -1px 1px rgba(255, 255, 255, 0.3);
}
.simple-meter > span {
  display: block;
  height: 100%;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  background-color: rgb(204, 143, 26);
  /* box-shadow: inset 0 2px 9px rgba(255, 255, 255, 0.3),
    inset 0 -2px 6px rgba(0, 0, 0, 0.4); */
  position: relative;
  overflow: hidden;
}

/*********************** popup game log ************************/
.gamelog {
    /* full window element to trap events */
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
}

.gamelog-content {
    /* content region element */
    background-color: #fefefe;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    height: 70%;
    border: solid #404040;
    border-width: 5px 5px 5px 5px;
    /* border-radius: 98% 2% 98% 2% / 2% 98% 2% 98%;*/
    border-radius: 200px 12px 200px 12px / 12px 200px 12px 200px;
}

.gamelog-header {
    text-align: left;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    color: black;
}

.gamelog-body {
    height: 90%;
    overflow: auto; /* Enable scroll if needed */
}

.gamelog-footer {
    text-align: center;
    font-size: 0.5em;
}

.gamelog-close {
    /* close button (clicking outside will also work) */
    color: #b97c2c;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.gamelog-close:hover,
.gamelog-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

