/**
 * Copyright (c) 2012-2018, Andy Janata
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, are permitted
 * provided that the following conditions are met:
 * 
 * * Redistributions of source code must retain the above copyright notice, this list of conditions
 *   and the following disclaimer.
 * * Redistributions in binary form must reproduce the above copyright notice, this list of
 *   conditions and the following disclaimer in the documentation and/or other materials provided
 *   with the distribution.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
 * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

/* ============================================
   The-Circle.xyz Theme - Dark + Neon Green #09ff03
   ============================================ */

:root {
  --circle-bg: #070a0f;
  --circle-panel: rgba(255,255,255,0.06);
  --circle-panel2: rgba(255,255,255,0.04);
  --circle-border: rgba(255,255,255,0.12);
  --circle-text: rgba(255,255,255,0.92);
  --circle-muted: rgba(255,255,255,0.68);
  --circle-accent: #09ff03;
  --circle-accent-soft: rgba(9,255,3,0.14);
  --circle-glow: rgba(9,255,3,0.25);
}

#gamebody {
  overflow: hidden;
}

body {
  min-height: 640px;
  background: var(--circle-bg);
  color: var(--circle-text);
  font-size: 12px;
  margin: 0;
  background: radial-gradient(900px 500px at 15% 10%, rgba(9,255,3,0.12), transparent 62%),
              linear-gradient(var(--circle-bg), var(--circle-bg));
  background-attachment: fixed;
  font-family: ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
}

.card, #game_list {
  font-family: "helvetica neue", helvetica, Arial, sans-serif;
}

h2,h3,h4 {
  margin: 0 0 .25em;
  color: var(--circle-text);
}

#menubar {
  background: var(--circle-panel);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--circle-border);
  color: var(--circle-text);
  height: 25px;
  padding: .5em;
}

#menubar_left {
  float: left;
}

#menubar_right {
  float: right;
}

#nickbox {
  border: 1px solid var(--circle-border);
  background: var(--circle-panel2);
  display: block;
  padding: 5px;
  border-radius: 12px;
}

#canvas {
  height: 533px;
  overflow: none;
  position: relative;
  width: 100%;
}

#main {
  height: 506px;
  padding: .5em;
}

#welcome {
  padding: 1em;
  max-width: 1200px;
  margin: 0 auto;
}

#game_list {
  height: 100%;
  width: 100%;
  overflow: auto;
}

.gamelist_lobby {
  background: var(--circle-panel);
  backdrop-filter: blur(4px);
  border-radius: 22px;
  width: 575px;
  height: 175px;
  float: left;
  border: 1px solid var(--circle-border);
  margin: 4px;
  transition: all 0.2s ease;
}

.gamelist_lobby:hover {
  border-color: var(--circle-accent);
  box-shadow: 0 0 12px var(--circle-glow);
}

.gamelist_lobby_left {
  width: 77%;
  height: 100%;
  padding: .5em 1.5%;
  float: left;
}

.gamelist_lobby_right {
  width: 20%;
  height: 100%;
  float: right;
}

.gamelist_lobby_join {
  width: 100%;
  height: 75%;
  border: 1px solid var(--circle-border);
  background: var(--circle-panel2);
  color: var(--circle-text);
  border-radius: 12px;
  text-transform: uppercase;
  font-weight: 700;
  white-space: normal;
  transition: all 0.2s ease;
}

.gamelist_lobby_join:hover {
  background: var(--circle-accent-soft);
  border-color: var(--circle-accent);
  color: var(--circle-accent);
}

.gamelist_lobby_spectate {
  width: 100%;
  height: 25%;
  border: 1px solid var(--circle-border);
  background: var(--circle-panel2);
  color: var(--circle-text);
  border-radius: 12px;
  text-transform: uppercase;
  font-weight: 700;
  transition: all 0.2s ease;
}

.gamelist_lobby_spectate:hover {
  background: var(--circle-accent-soft);
  border-color: var(--circle-accent);
  color: var(--circle-accent);
}

.gamelist_lobby_status {
  float: right;
  font-weight: 700;
}

.gamelist_lobby_status_joinable {
  color: var(--circle-accent);
}

.gamelist_lobby_status_unjoinable {
  color: var(--circle-muted);
}

#bottom {
  width: 100%;
  height: 215px;
  position: absolute;
  top: 543px;
  min-height: 100px;
}

#info_area {
  width: 250px;
  height: 100%;
  position: absolute;
  bottom: 0px;
  min-height: 100px;
  border: 1px solid var(--circle-border);
  background: var(--circle-panel2);
  border-radius: 12px;
}

#tabs {
  min-height: 100px;
  width: 50%;
  height: 100%;
  border: 0px;
  position: absolute;
  bottom: 0px;
  right: 14px;
}

#tabs .ui-widget {
  font-height: 16px !important;
}

.tab-button {
  font-size: 14px !important;
  color: var(--circle-text) !important;
}

.cardset_filter_list {
  display: inline-block;
  width: 33%;
}

.cardset_filter_list select {
  height: 150px;
  width: 100%;
  background: var(--circle-panel);
  color: var(--circle-text);
  border: 1px solid var(--circle-border);
  border-radius: 8px;
}

.cardset_filter_list span {
  font-weight: bold;
  color: var(--circle-text);
}

.cardset_filter_list .buttons {
  text-align: center;
}

.log {
  width: 100%;
  height: 260px !important;
  border-style: none solid solid none;
  border-color: var(--circle-border);
  border-width: 1px;
  position: absolute;
  bottom: 40px !important;
  right: -5px;
  overflow-y: auto !important;
  min-height: 43px;
  font-size: 16px;
  font-family: serif;
  background: var(--circle-panel2);
  color: var(--circle-text);
}

#tab-preferences input[type='button'] {
  float: right;
}

#tab-preferences, #tab-gamelist-filters {
  overflow-y: auto;
}

.chat {
  border: 1px solid var(--circle-border);
  background: var(--circle-panel);
  color: var(--circle-text);
  left: px;
  bottom: 0px;
  height: 25px;
  position: absolute;
  padding: 0px;
  width: calc(100% - 80px) !important;
  font-family: serif;
  font-size: 12pt;
  border-radius: 8px;
}

.chat_submit {
  width: 50px;
  height: 30px;
  position: absolute;
  right: -1px;
  bottom: -1px;
  margin: 0px;
  padding: 0px;
  font-size: 14px;
  background: var(--circle-panel);
  border: 1px solid var(--circle-border);
  color: var(--circle-text);
  border-radius: 8px;
  cursor: pointer;
}

.chat_submit:hover {
  background: var(--circle-accent-soft);
  border-color: var(--circle-accent);
  color: var(--circle-accent);
}

span.error {
  color: #ff4444;
}

span.debug, span.admin {
  color: var(--circle-accent);
}

.card {
  position: relative;
  width: 200px;
  height: 200px;
  border: 1px solid var(--circle-border);
  padding: 15px;
  font-size: 15pt;
  float: left;
  border-radius: 18px;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
  transition: all 0.2s ease;
}

.blackcard {
  background: var(--circle-panel2);
  color: var(--circle-text);
  border-left: 5px solid var(--circle-accent) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.whitecard {
  background: var(--circle-panel);
  color: var(--circle-text);
  backdrop-filter: blur(8px);
}

.whitecard:hover {
  transform: translateY(-4px);
  border-color: var(--circle-accent);
  box-shadow: 0 0 18px rgba(9,255,3,0.2);
}

.whitecard, .gamelist_lobby {
  background-image: none;
}

.cah {
  position: absolute;
  bottom: 0px;
  left: 0px;
  margin: 15px;
}

.hide {
  display: none;
}

.game {
  height: 100%;
  width: 100%;
  position: relative;
}

.your_hand {
  position: absolute;
  bottom: 10px;
  right: 5px;
  color: var(--circle-accent);
  font-weight: bold;
}

.game_hand {
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  height: 30%;
}

.game_hand_filter {
  height: 100%;
  position: relative;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
  text-align: center;
}

.game_hand_filter_text {
  position: absolute;
  top: 50%;
  font-size: 300%;
  margin-top: -30px;
  background: var(--circle-panel);
  color: var(--circle-text);
  padding: .25em;
  border-radius: 12px;
}

.game_hand_cards {
  position: absolute;
  bottom: 0px;
  height: 100%;
  width: 99%;
  padding-left: 2px;
  min-width: 750px;
}

.game_hand_cards .card {
  cursor: pointer;
}

.game_top {
  padding: 5px;
}

.game_menu_bar {
  float: right;
}

.game_message {
  font-size: 150%;
  font-weight: bold;
  color: var(--circle-accent);
}

.game_black_card_wrapper {
  width: 232px;
  float: left;
}

.game_black_card {
  width: 232px;
  height: 232px;
  margin-top: 15px;
}

.confirm_card {
  float: left;
  margin-top: 10px;
  width: 100%;
  z-index: 500;
  background: var(--circle-accent-soft);
  border: 1px solid var(--circle-accent);
  color: var(--circle-accent);
  border-radius: 100px;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.confirm_card:hover {
  background: var(--circle-accent);
  color: var(--circle-bg);
  box-shadow: 0 0 12px var(--circle-glow);
}

.game_left_side {
  float: left;
  width: 232px;
  padding-left: 10px;
  padding-top: 10px;
}

.game_right_side, .game_options {
  position: absolute;
  left: 246px;
  width: 1000px;
}

.game_options {
  background: var(--circle-panel);
  backdrop-filter: blur(8px);
  z-index: 500;
  border-radius: 18px;
  padding: 15px;
  border: 1px solid var(--circle-border);
}

.game_right_side_box {
  height: 60%;
  margin: 10px;
}

.game_right_side_cards {
  margin-top: 15px;
  min-width: 600px;
  cursor: pointer;
  z-index: 200;
}

.game_right_side_cards .card_holder, .game_white_cards_binder {
  z-index: 200;
}

.game_white_cards_binder {
  border: 3px solid var(--circle-border);
  display: inline-block;
  margin-right: 4px;
  margin-bottom: 4px;
  border-radius: 18px;
  transition: all 0.2s ease;
}

.game_white_cards_binder:hover {
  border-color: var(--circle-accent);
}

.card_holder {
  float: left;
  position: relative;
  overflow-x: visible !important;
  overflow-y: visible !important;
  margin-right: 2px;
  z-index: 1;
}

.game_white_cards_binder .card_holder {
  margin-right: 0px;
}

.scoreboard {
  width: 250px;
  height: 100%;
  position: absolute;
  overflow-y: scroll;
  background: var(--circle-panel2);
  border-radius: 12px;
}

.scorecard {
  background: var(--circle-panel);
  height: 36px;
  padding: .25em .5em;
  border-bottom: 1px solid var(--circle-border);
  font-size: 11pt;
  color: var(--circle-text);
}

.scorecard:nth-child(even) {
  background: var(--circle-panel2);
}

.scorecard_status {
  float: right;
  margin-right: 5px;
  color: var(--circle-accent);
}

.clear {
  clear: both;
}

.selected {
  color: var(--circle-bg) !important;
  background: var(--circle-accent) !important;
}

.logo {
  position: absolute;
  width: 250px;
  height: 32px;
  bottom: 15px;
  left: 15px;
}

.logo_element {
  top: 2px;
  position: absolute;
  width: 22px;
  height: 22px;
}

.blackcard .logo_element {
  border: 1px solid var(--circle-border);
}

.logo_1 {
  left: 2px;
}

.blackcard .logo_1 {
  background: var(--circle-accent);
}

.whitecard .logo_1 {
  background: var(--circle-accent);
}

.logo_2 {
  left: 10px;
}

.blackcard .logo_2 {
  background: var(--circle-muted);
}

.whitecard .logo_2 {
  background: var(--circle-muted);
}

.logo_3 {
  left: 16px;
  top: 5px;
}

.blackcard .logo_3 {
  background: var(--circle-accent);
  color: var(--circle-bg);
}

.whitecard .logo_3 {
  background: var(--circle-accent);
  color: var(--circle-bg);
}

.watermark_container {
  font-size: 5pt;
  text-align: center;
}

.logo_text {
  position: absolute;
  font-size: 8pt;
  font-weight: bold;
  left: 45px;
  bottom: 4px;
  color: var(--circle-accent);
}

.card_metadata {
  position: absolute;
  right: 15px;
  bottom: 15px;
}

.draw, .pick {
  float: right;
  clear: both;
  font-weight: bold;
  font-size: 12pt;
  color: var(--circle-accent);
}

.card_number {
  width: 20px;
  height: 20px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -o-border-radius: 10px;
  border-radius: 10px;
}

.blackcard .card_number {
  background: var(--circle-accent);
  display: inline-block;
  color: var(--circle-bg);
  text-align: center;
}

.previous_round {
  z-index: 50;
  border: 3px solid var(--circle-accent);
  width: 60%;
  height: 60%;
  position: absolute;
  top: 20%;
  left: 20%;
  padding: 5px;
  background: var(--circle-panel);
  backdrop-filter: blur(12px);
  border-radius: 24px;
}

.previous_round_close {
  position: absolute;
  right: 0px;
  background: var(--circle-accent-soft);
  border: 1px solid var(--circle-accent);
  color: var(--circle-accent);
  border-radius: 50px;
  cursor: pointer;
}

.card_set_label {
  margin-right: 15px;
  color: var(--circle-text);
}

.scorecard_score, .scorecard_player {
  font-weight: 700;
  color: var(--circle-accent);
}

.checkbox {
  margin-right: 4px;
  white-space: nowrap;
}

.checkbox input {
  vertical-align: middle;
}

.checkbox span {
  vertical-align: middle;
  color: var(--circle-text);
}

.nowrap {
  white-space: nowrap;
}

.cardnum {
  position: absolute;
  right: 10px;
  bottom: 19px;
  font-size: 8pt;
}

dfn {
  border-bottom: 1px dotted var(--circle-accent);
  cursor: help;
}

.gamelink {
  cursor: pointer;
  text-decoration: underline;
  color: var(--circle-accent);
}

.gamelink:hover {
  text-shadow: 0 0 4px var(--circle-glow);
}

.imagecard {
  height: 100%;
  width: 100%;
}

.card_text {
  word-wrap: break-word;
  overflow: hidden;
}

a {
  color: var(--circle-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--circle-text);
  text-shadow: 0 0 4px var(--circle-glow);
}

input, select, textarea {
  background: var(--circle-panel);
  border: 1px solid var(--circle-border);
  color: var(--circle-text);
  border-radius: 8px;
  padding: 4px 8px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--circle-accent);
  box-shadow: 0 0 0 3px var(--circle-glow);
}

input[type="button"], input[type="submit"] {
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="button"]:hover, input[type="submit"]:hover {
  background: var(--circle-accent-soft);
  border-color: var(--circle-accent);
  color: var(--circle-accent);
}

.ui-widget-content {
  background: var(--circle-panel);
  color: var(--circle-text);
  border: 1px solid var(--circle-border);
}

.ui-widget-header {
  background: var(--circle-panel2);
  color: var(--circle-accent);
  border: 1px solid var(--circle-border);
}
