.ui-helper-hidden-accessible {
  display: none;
}

html {
  font-family: Arial, Helvetica, Sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: white url("/assets/bkg4-349bbe9b.png");
  height: 100%;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

p {
  margin: 10px 0;
}

strong {
  font-weight: 700;
}

b {
  font-weight: 700;
}

.weak {
  color: #999;
}

h1 {
  font-family: 'Acme';
}

h2 {
  font-family: 'Acme';
}

.background {
  background: url("/assets/bkg3-d3304aa2.png");
}

#main_body {
  width: 100%;
  max-width: 1280px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px 20px rgba(0, 0, 0, 0.1);
  background: white;
}

td {
  padding: 10px 0;
}

a {
  color: #000;
  text-decoration: none;
}

.odd {
  background: aliceblue;
}

.even {
  background: #fff;
}

.links_out {
  margin: 0 auto;
  color: #888;
  overflow: hidden;
  display: flex;
  width: 100%;
  justify-content: end;
  background: #666;
  color: #eee;
  flex: none;
  font-size: 0.9em;

  div {
    padding: 15px;
  }

  a {
    color: white;
    text-decoration: none;
    font-weight: 600;

    &:hover {
      color: gold;
    }
  }
}

.no_data {
  clear: both;
  text-align: center;
  color: #333;
  margin: 20px;
  padding: 20px;
  font-family: 'Acme';

  a {
    color: #333;
    text-decoration: underline;

    &:hover {
      color: dodgerblue;
    }
  }
}

.online {
  color: var(--online-green);
  cursor: pointer;
  text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 2px;
  left: 3px;
  z-index: 1;
}

.my_turn, .view_fin {
  left: 52px;
  bottom: 3px;
  top: auto;
}

.tp, .trp, .bp, .dp, .difference, .chain {
  cursor: pointer
}

.page_title {
  margin: 8px 0;
  font-size: 2em;
}

.page_subtitle {
  font-size: 1.5em;
  margin: 5px 0;
}

.dangerous {
  font-size: 0.8em;
  color: crimson;
}

@keyframes appear-then-fade {
  100% {
    opacity: 0;
    max-height: 0;
    display: none;
  }
  0%, 90% {
    opacity:1;
    max-height: 100%;
  }
}

#flash_area {
  position: fixed;
  z-index: 100;
  top: 48px;
  width: 100%;
  max-width: 1280px;
  background: dodgerblue;
  text-align: center;
  font-size: 20px;
  color: #333;
  font-family: 'Acme';
  color: white;
  box-shadow: inset 0 0 0 1px black;
  animation: appear-then-fade 4s both;

  .inner_flash {
    padding: 15px 50px;
  }

  .flashx {
    position: absolute;
    left: 12px;
    top: 6px;
    cursor: pointer;
    font-size: 35px;

    &:hover {
      color: #444;
    }
  }
}

.game_background {
  #flash_area {
    top: 69px
  }
}

#error_explanation {
  border: 1px solid #777;
  padding: 10px;
  background: powderblue;
  font-size: 0.8em;
  margin-top: 10px;

  h2 {
    font-size: 1.7em;
    text-decoration: underline;
  }
}

.field_with_errors {
  display: inline-block;
  background: powderblue;
  padding: 5px;
  margin: 0;
}

.pagination {
  text-align: center;
  clear: both;
  font-family: 'Acme';
  padding: 10px 0;

  a, .current {
    display: inline-block;
    padding: 6px 10px 5px;
    border: 1px solid #ddd;
    border-radius: 1px;
    background: url("/assets/bkg6-3b4bd1c7.png");
  }

  a:hover {
    background: dodgerblue;
    color: white;
  }

  .current {
    background: dodgerblue;
    color: white;
  }
}

.page_info {
  font-size: 0.8em;
  text-align: center;
  padding: 5px 0 10px;
  clear: both;
}

table.main {
  margin: 20px auto;
  text-align: center;
  width: 100%;
  border: 1px solid #aaa;
  font-size: 0.8em;

  th {
    color: darkred;
    padding: 10px;
    background: #fff;
  }

  td {
    padding: 3px 8px;
  }

  a {
    &:hover {
      color: steelblue;
    }
  }

  tr:hover {
    background: #fff;
  }
}

table.admin {
  font-size: 0.7em;

  th, td {
    padding: 2px;
  }

  tr {
    border-bottom: 1px solid #aaa;
  }
}

.admin_form {
  .field {
    padding: 10px;
  }
}

.generic_page_wrap {
  height: 100%;
}

.generic_page {
  height: 100%;
  overflow: auto;
  text-align: center;
  padding: 20px 0;

  form {
    /* max-width: 600px; */
    margin: 0 20px;
  }

  .sub_nav {
    margin-bottom: 10px;
  }
}

.error_page {
  margin-top: 20px;
  padding: 30px 50px 50px;
  text-align: center;

  h2 {
    color: crimson;
    font-size: 1.5em;
  }

  .error_notes {
    color: #555;
    font-style: italic;
    font-size: 0.9em;
    em {
      text-decoration: underline;
      color: #333;
    }
    a {
      color: steelblue;
      &:hover {
        color: black;
      }
    }
  }
}

.btn_link {
  cursor: pointer;
  display:inline-block;
  vertical-align: baseline;
  background: var(--btn-primary) url("/assets/bar-c5b99f4b.png") center repeat-x;
  border: 1px solid var(--btn-border);
  color: #000;
  border-radius: 3px;
  padding: 7px 10px;
  font-size: 1.2em;
  font-family: 'Acme';

  &:hover {
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
  }

  &:active {
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.6);
  }
}

.btn_link[disabled='disabled'], .btn_link.disabled {
  color: #ccc;
  background-color: #666;
  background-image: none;
}

.btn_danger {
  background-color: var(--btn-danger);
}

.btn_success {
  background-color: var(--btn-success);
}

input[type='email'], input[type='password'], input[type='text'] {
  font-family: Arial, Helvetica, Sans-serif;
  padding: 8px 10px;
  font-size: 1em;
  border: 1px solid #999;
  border-radius: 3px;
  color: #333;
  width: 280px;
}

#spinner {
  background: rgba(0,0,0,0.7);
  height: 100%;
  width: 100%;
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;

  #actual_spinner {
    background: #111 url("/assets/spinner-7d661027.gif") center no-repeat;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    height: 150px;
    width: 150px;
    border-radius: 15px;
    position: fixed;
    top: 50%;
    left: 50%;
    margin: -75px 0 0 -75px;
  }
}

#nav_spinner {
  background: url("/assets/nav_spinner-8e09a620.gif") center no-repeat;
  height: 35px;
  width: 45px;
  display: none;
}

.ui-tooltip {
  padding: 6px 8px;
  position: absolute;
  z-index: 99999;
  max-width: 300px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  background: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.8em;
  color: #fff;
}

::-webkit-input-placeholder { color: #888 }
:-moz-placeholder           { color: #888 }
::-moz-placeholder          { color: #888 }
:-ms-input-placeholder      { color: #888 }

.no_select {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}
