.maincontainer{
  position: relative;
  width: 100%;
  height: 80px;
}

.thecard{
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: all 0.5s ease;
  cursor: pointer;
}
/*
.thecard:hover{
  transform: rotateY(180deg);
}   */

//.hitcounter {display: none;}

//.slova {display: none;}

.front{
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  text-transform: uppercase;
  /*background-image: url("/codenames.png");*/

  color: #333;
}

.correct{
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: green;
  color: #333;
  transform: rotateY(180deg);
}

u { cursor: pointer; }

.blue{
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: Blue;
  color: #333;
  transform: rotateY(180deg);
  text-transform: uppercase;
}

.red{
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: Crimson;
  color: #333;
  transform: rotateY(180deg);
}

.civil{
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: BlanchedAlmond;
  color: #333;
  transform: rotateY(180deg);
}

.assassin{
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: black;
  color: white !important;
  transform: rotateY(180deg);
  text-transform: uppercase;
}

.wrong{
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: Crimson;
  color: #555;
  transform: rotateY(180deg);
}

/* CSS for webserver example */

.page {
    min-height: 200px;
    min-width: 100px;
}

.bgcolor1 {
    background-color: #bcd3f8;
}

.header_left {
    width: 30px;
}

.footer_outer {
    position: absolute;
    z-index: -1;
    bottom: 2px;
    margin-bottom: 2px;
    width: 99%;
    text-align: center;
}

table.blueTable {

  background-color: #EEEEEE;
  width: 800px;
  height: 400px;
  text-align: center;
  border-collapse: collapse;
}
table.blueTable td, table.blueTable th {
  border: 1px solid #AAAAAA;
}
table.blueTable tbody td {
  background-image: url("../img2/codenames.png");
  background-repeat: no-repeat;

  font-size: 22px;
}
table.blueTable tfoot td {
  font-size: 14px;
}
table.blueTable tfoot .links {
  text-align: right;
}
table.blueTable tfoot .links a{
  display: inline-block;
  background: #1C6EA4;
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 5px;
}

.grad {
    background: linear-gradient(to top left, #3399ff 0%, #ffffff 100%);
}

.grad2 {
    background: linear-gradient(to top, #3399ff 0%, #ffffff 100%);
}

body {
    background-image: url("../img/background2.jpg");
    background-repeat: repeat;

    /*background-color: #ffeda6;*/
}

#loading {
    background: url('../img/spinner.gif') no-repeat center center;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 9999999;
}

#tah {
    font-size: 16px;
}

.hint_tab, .hint_tab tr, #simi, #simi tr, #last-hint-table th  {
  background-color:white;
  border-style:solid;
  border-width: 2px;
  border-color: black;

}

.yellow_but {
  width: 80px;
  height: 20px;
  background-color: #f4bf42;
  font-size: 20px;
  border-style:solid;
  border-width: 2px;
  border-color: black;
  cursor: pointer;
  padding: 5px;
}

.yellow_but:hover{
  background-color: #f49841;
}

.yellow_but:active {
  background-color: #f25e41;
}

#wrong_hint {
  margin-top: 10px;
  width: 400px;
}

#blueLeft, #redLeft {
  background: white;
  border-style:solid;
  border-width: 2px;
  border-color: black;

}

#menu a, #menu u {
  font-size: 20px;
  padding: 5px;
}

input[type=text] {
  width: 200px;
  padding: 5px 10px;
  //margin: 4px 0;
  box-sizing: border-box;
  font-size: 20px;
}

select {
  width: 65px;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  background-color: #f1f1f1;
  font-size: 20px;
}

.bystander_arrow_computer {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 15px 30px 15px;
  border-color: transparent transparent #999900 transparent;
  float: right;
  margin-top: 20px;
  margin-right: 15px;
}

.bystander_arrow_human {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 30px 15px 0 15px;
  border-color: #999900 transparent transparent transparent;
  float: left;
  margin-top: 20px;
  margin-left: 15px;
}

.bystander_arrow_computer_default {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 15px 30px 15px;
  border-color: transparent transparent #999900 transparent;
  margin: 5px;
  position: relative;
  top: -30px;
}

.bystander_arrow_human_default {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 30px 15px 0 15px;
  border-color: #999900 transparent transparent transparent;
  margin: 5px;
  position: relative;
  top: 30px;
}

.turn_tokens {
  font-size: 25px;
  height: 50px;
  padding: 15px;
}

.green{
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: #10ad0a;
  color: #333;
  transform: rotateY(180deg);
  text-transform: uppercase;
}

.default-back{
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  color: #333;
  transform: rotateY(180deg);
  text-transform: uppercase;

}

#init_form {
  border: 2px solid black;
  border-radius: 4px;
  background-color: white;
  align-content: left;
  width: 400px;
  font-size: 20px;
  padding: 15px;
  margin-top: 100px;
}

#radio_form {
  text-align: left;
  padding-left: 20px;
}

.index_ref {
  font-size: 25px;
  color: black;
  width: 200px;
  height: 100px;
  text-decoration: none;
  border-style: solid;
  border-width: 3px;
  background-color: #e8da3f;
  margin: 30px;
  padding: 5px;
  padding-top: 30px;
  text-align: center;
}

.index_ref:hover{
  background-color: #e8a73f;
}

.ref_strip{
  color: black;
  text-decoration: none;
  font-size: 25px;
}
/*Taken from https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_modal*/
/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.menu_button {
  display: inline-block;
  width: 320px;
  padding-top: 30px;
  padding-bottom: 50px;
  font-size: 30px;
  margin: 10px;
}

.menu_text {
  font-size: 26px;
  padding: 20px;
}
