body {
    font-family: nasalization, xirod, Verdana, Arial, Helvetica, sans-serif;
    font-style: normal;
    font-size: 30px;    
    background: rgb(0,0,0) url(images/mars2.jpg) no-repeat top center;
    background-attachment: fixed;
    background-size: cover;
    height: 100%;
   /* overflow-y: hidden; */
}

html {
    //height: 100%;
}

#main {
  position: absolute;
  left: 50%;
  width: 100px;
  border: 0px solid red;
}

#content {
  color: rgb(150,150,150);
  border: 3px solid rgb(90,90,90);
  text-align: justify;
  background-color: rgba(0,0,0,0.7);
  padding: 20px 30px 30px 30px;
  border-radius: 20px;
  box-shadow: 0px 0px 15px rgb(100,100,150);
}

.shadow
{
  text-shadow: 0px 0px 2px rgb(0,0,0);
}

#spacer
{
  width: 750px;
  position: absolute;
  left: -393px;
  top: 30px;
  padding: 0 0 30px 0;
}

@font-face {
  font-family: xirod;
  src: url(images/xirod.ttf);
  /*src: url(images/nasalization-rg.otf);*/
  font-weight: bold;
}

@font-face {    
  font-family: nasalization;
  src: url(images/nasalization-rg.otf);
  font-weight: bold;
}

#logo {
  font-family: xirod;
  color: rgb(209,88,71);
  background-color: transparent;
  font-size: 78.5px;
  font-weight: bolder;
  padding-bottom: 0.3em;
}

h1 {
  font-family: xirod;
}

#user_messages
{
  position: fixed;

  top: 35%;
  right: 35%;

  width: 30%;
  height: 30%;
  min-height: 7em;
  font-size: 30px;
  padding: 20px;
  border: 3px solid black;
  border-radius: 15px;

  box-shadow: 0px 0px 100px 30px rgb(0,0,0);

  color: black;
  margin: 0 0 1px 0;
  text-align: center;
  vertical-align: middle;
}

div.message_3  /* Debug */
{
  background: rgb(50,150,200);
  font-size: 15px;
  color: white;
}

div.message_0  /* Fail */
{
  background: rgb(250,100,100);
}

div.message_1  /* OK */
{
  background: rgb(50,240,50);
}

div.message_2 /* No effect */
{
  background: rgb(230,220,50);
}

div.task_form
{
    margin: 0 0 0.5em 0;
}

video
{
  display: block;
}

input.edit
{  
  color: white;    
  padding: 0.1em 0.1em 0.1em 0.3em;
  vertical-align: top;
  margin: 0 0.2em 0 0;
  width: 8.85em;
}

input.colored
{                        
  margin: 0em 0.5em 0.5em 0;  
  padding: 0.2em 0.5em 0.2em 0.5em;
  vertical-align: top;
  width: 12em;
}

input.password
{    
  color: white;
  padding: 0.1em 0.1em 0.1em 0.3em;
  vertical-align: top;
  margin: 0 0.2em 0 0;
  width: 11em;
}

input.edit, input.colored, input.password
{
  font-size: 40px;
  font-family: xirod, Verdana, Arial, Helvetica, sans-serif;
  background-color: black;
  border-radius: 5px;
  border: 3px solid rgb(90,90,90);
}

input.maxwidth
{
  width: 90%;
}

div.message
{
  border-width: 3px;
  border-style: solid;
  border-radius: 5px;
  padding: 0.3em;
  text-align: left;
  margin-bottom: 0.5em;
  width: fit-content(100%) !important;
}

div.message.type1
{
  border-color: red;
  background: rgb(100,0,0);  
}

input.button, input.edit, button
{
  font-size: 50px;
  font-family: xirod, Verdana, Arial, Helvetica, sans-serif;
  border-radius: 5px;
  border: 3px solid rgb(90,90,90);
  margin: 0em 0.5em 0.5em 0;
  padding: 0.2em 0.5em 0.2em 0.5em;
  background-color: rgb(30,30,30);
  vertical-align: top;
  color: rgb(120,120,120);
  cursor: pointer;
}

button.mission_last
{
  margin: 0em 0em 0.5em 0;
}

div.border
{
  border: 3px solid rgb(90,90,90);
  margin: 0 0 1em 0;
}

div.map_border
{
    border: 3px solid rgb(90,90,90);
    margin: 0; /*0.5em 0 0.5em 0;*/
    padding: 0;
}

div.task_id
{
    width: 180px;
    height: 180px;
    border: 3px solid rgb(90,90,90);
    background-color: rgb(20,20,20);
    text-align: center;
    vertical-align: middle;
    line-height: 180px;
    font-size: 80px;
    font-family: xirod;
    float: left;
    margin: 0 0 20px 0;
}

div.thumb
{
    float: left;
    border: 3px solid rgb(90,90,90);
    margin: 0 10px 20px 10px;
}

input.right
{
    float: right;
    margin-right: 0;
}

img.thumb
{    
    width: 180px;
    height: 180px;            
    cursor: pointer;
    float: left;    
}

.expo_map_small
{
    background-color: white;
    border: 3px solid rgb(90,90,90);
    padding: 5px;
    cursor: pointer;
    height: 170px;
    float: left;
    margin: 0 0 20px 0;
}

.expo_map
{
    background-color: white;    
    cursor: pointer;
    display: block;
}

p 
{
  margin-top: 0;
}

button.mission
{
  font-family: xirod;
  width: 3.0em;
  padding: 0;
}

button:hover
{
  border-color: rgb(204,204,204);
}                        

img.icon
{
  padding: 0.2em 0 0 0;
  margin: 0;
  max-width: 120px;
  max-height: 100px;
}

img.bigicon
{
  padding: 0.2em 0 0 0;
  margin: 0;
  max-width: 180px;
  max-height: 150px;
}

img.ilustration
{
  border: 3px solid rgb(90,90,90);
  width: 100%;
  display: block;
}

button.room
{
  font-family: xirod;
  min-width: 3em;
  min-height: 2em;
  /*margin-bottom: 1em;*/
  padding: 0;
  background-color: rgb(51,51,102);
  color: rgb(255,204,255);
}

/*
button.room
{  
  width: 100%;
  margin-bottom: 1em;
  background-color: rgb(51,51,102);
  border-color: rgb(204,153,255);
  color: rgb(255,204,255);
}
*/

input.occupied
{      
  font-family: xirod;
  min-width: 2.42em;
  margin-bottom: 1em;
  background-color: rgb(51,51,51);
  border-color: rgb(160,160,160);
  color: rgb(200,200,200);
}

input.roomfinished
{      
  font-family: xirod;
  min-width: 2.42em;
  margin-bottom: 1em;  
  background-color: rgb(60,120,60);
  border-color: rgb(60,180,60);
  color: rgb(200,255,200);
}

button.finished
{
  color: rgb(255,255,255);
}

button.red
{
  background-color: rgba(143,22,5,0.4);  /*154,33,16*/
}

@keyframes pulse_red {
  0%, 100% {
    background-color: rgba(143,22,5,0.3);
  }
  50% {
    background-color: rgba(143,22,5,0.9);
  }
}

@keyframes pulse_blue {
  0%, 100% {
    background-color: rgba(16,33,154,0.3);
  }
  50% {
    background-color: rgba(16,33,154,0.9);
  }
}

@keyframes pulse_yellow {
  0%, 100% {
    background-color: rgba(200,117,0,0.3);
  }
  50% {
    background-color: rgba(200,117,0,0.9);
  }
}

@keyframes pulse_purple {
  0%, 100% {
    background-color: rgba(113,62,164,0.3);
  }
  50% {
    background-color: rgba(113,62,164,0.9);
  }
}

button.room.red
{
    animation: pulse_red 4s infinite;
}

button.room.blue
{
    animation: pulse_blue 4s infinite;
}

button.room.yellow
{
    animation: pulse_yellow 4s infinite;
}

button.room.purple
{
    animation: pulse_purple 4s infinite;
}

button.room.red.finished, button.room.blue.finished, button.room.yellow.finished, button.room.purple.finished
{
    animation: none;
}

button.red:hover
{
  background-color: rgb(209,88,71);
}

button.red.finished
{
  background-color: rgb(209,88,71);
}

button.red.finished:hover
{
  background-color: rgb(241,120,103);
}


button.blue
{
  background-color: rgba(16,33,154,0.4);
}

button.blue:hover
{
  background-color: rgb(71,88,209);
}

button.blue.finished
{
  background-color: rgb(71,88,209);
}

button.blue.finished:hover
{
  background-color: rgb(103,120,241);
}


button.yellow
{
  background-color: rgba(200,117,0,0.4);
}

button.yellow:hover
{
  background-color: rgb(255,193,29);
}

button.yellow.finished
{
  background-color: rgb(255,193,29);
}

button.yellow.finished:hover
{
  background-color: rgb(255,255,51);
}

#team_scores, #time_messages
{
    position: absolute;
    left: -100px;
    top: 0;
    height: 95%;
}

#my_hints
{
    position: absolute;
    right: -100px;
    top: 0;
    height: 95%;
}

div.points
{
    padding: 2px 7px 2px 7px;
    color: black;    
    border-top: 3px solid rgb(90,90,90);
    border-left: 3px solid rgb(90,90,90);
    border-bottom: 3px solid rgb(90,90,90);
    border-right: 0px solid transparent;
    border-radius: 20px 0 0 20px;
    width: 62px;
    position: -webkit-sticky;
    position: sticky;
    margin-left: 22px;
    left: 30px;    
    background-color: rgba(50,50,50,0.99);
    text-align: right;
    cursor: pointer;
}

div.mypoints
{
    padding: 8px 14px 8px 13px;
    color: white;     
    border-top: 3px solid rgb(190,190,190);
    border-left: 3px solid rgb(190,190,190);
    border-bottom: 3px solid rgb(190,190,190);
    border-right: 0px solid transparent;
    border-radius: 20px 0 0 20px;
    width: 70px;
    position: -webkit-sticky;
    position: sticky;
    left: -200px;
    background-color: rgba(255,50,50,0.7);
    box-shadow: -5px 0px 15px rgb(100,100,150);
    text-align: right;
    font-size: 120%;
    cursor: pointer;  
    margin: 0 0 100px 0;  
    z-index: 100;
}

div.hints
{
    padding: 15px 7px 5px 7px;
    color: black;
    border-top: 3px solid rgb(90,90,90);
    border-right: 3px solid rgb(90,90,90);
    border-bottom: 3px solid rgb(90,90,90);
    border-left: 0px solid transparent;
    border-radius: 0 40px 40px 0;
    width: 65px;
    height: 50px;
    position: -webkit-sticky;
    position: sticky;
    margin-right: 20px;
    right: 30px;
    background-color: rgba(50,50,50,0.99);
    text-align: right;
    cursor: pointer;
}

div.selected_hints
{
    padding: 26px 14px 8px 13px;
    color: white;
    border-top: 3px solid rgb(190,190,190);
    border-right: 3px solid rgb(190,190,190);
    border-bottom: 3px solid rgb(190,190,190);
    border-left: 0px solid transparent;
    border-radius: 0 40px 40px 0;
    width: 70px;
    height: 70px;
    position: -webkit-sticky;
    position: sticky;
    right: -200px;
    background-color: rgba(255,50,50,0.7);
    box-shadow: -5px 0px 15px rgb(100,100,150);
    text-align: right;
    font-size: 120%;
    cursor: pointer;
    margin: 0 0 100px 0;
    z-index: 100;
}

div.mypoints:hover
{
    color: black;
}

div.points:hover
{
    color: white;
}

#teams_score_ancor, #hints_table_ancor, #time_messages_ancor
{
    position: fixed;
    left: 50%;
    top: 50%;
}

div.hint_table
{
    background-color: rgb(120,120,120);
    border: 10px solid white;
    border-radius: 20px;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    left: -300px;
    width: 500px;
    text-align:center;
    color: white;
    padding: 1em;
}

#teams_score_table
{
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    left: -300px;
    width: 600px;        
    border: 3px solid rgb(90,90,90);
    border-radius: 10px;
    font-size: 110%;
    padding: 5px;
    color: white;
    z-index: 100;
    background-color: grey;
    box-shadow: 0px 0px 50px rgb(0,0,0);
    cursor: pointer;
}

#teams_score_table table tr:hover
{
    color: black;
}

button.purple
{
  background-color: rgba(113,62,164,0.4);
}

button.purple:hover
{
  background-color: rgb(156,105,207);
}

button.purple.finished
{
  background-color: rgb(156,105,207);
}

button.purple.finished:hover
{
  background-color: rgb(204,153,255);
}           


input.button:hover, input.edit:hover
{
  background-color: rgb(62,176,45);
  border-color: rgb(240, 203, 198);
  color: rgb(240, 203, 198);
}

input.room:hover /*, button.room:hover*/
{
  background-color: rgb(204,153,255);
  border-color: rgb(255,204,255);
  color: rgb(255,255,255)
}

button.occupied:hover
{    
  background-color: rgb(60,60,60);
  border-color: rgb(180,180,180);
  color: rgb(230,230,230);
}

input.finished
{
  background-color: rgb(60,120,60);
  border-color: rgb(60,180,60);
  color: rgb(200,255,200);
}

input.finished:hover
{
  background-color: rgb(60,180,60);
  border-color: rgb(80,220,80);
}

input.roomfinished:hover
{      
  font-family: xirod;
  min-width: 2.42em;
  margin-bottom: 1em;  
  background-color: rgb(60,180,60);
  border-color: rgb(80,220,80);
  color: rgb(200,255,200);
}

input button.task_name
{
  font-size: 30px;
}

input.answer1
{
    color: green;
}

input.answer0
{
    color: red;
}

#clock_box
{
    position: fixed;
    top: 30px;
    left: 10px;
    font-size: 40px;
    color: #00a0e6;
    font-weight: bolder;
    height: 200px;
}

@media only screen and (max-width: 1024px) {
  #clock_box {
    position: absolute;
    float: right;
    top: 30px;
    font-size: 40px;
    color: #00a0e6;
    font-weight: bolder;
    height: 100px;
  }
  
  #spacer
  {
    width: 750px;
    position: absolute;
    right: 10px;
    top: 30px;
    padding: 0 0 30px 0;
    border: 0px solid red;
  }
  
  .svg_clock
  {
      transform: scale(0.5);
  }
}

#level_box
{
    position: fixed;
    top: 120px;
    right: 30px;
}

button.description
{
  min-width: 70px;
  float: left;
  font-size: 35px;
}

button.game_description
{
  font-size: 35px;
}

button.answer
{
  width: 70px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50px 50px;
  background-image: url('images/answer_tick2.png');
}

button.get_hint
{
  width: 70px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 34px 50px;
  background-image: url('images/hint.png');
}

button.choose_level
{
  width: 300px;
  height: 80px;
  border: 3px solid rgb(90,90,90);
  padding: 10px 0px 10px 0px;
  margin: 15px;
  border-radius: 20px 0px 20px 0px;
  box-shadow: 0px 0px 15px rgb(100,100,150);
}

button.logout
{
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 30px;
  height: 30px;
  border: 3px solid rgb(0,0,0);
  padding: 10px 0px 10px 0px;
  margin: 15px;
  border-radius: 0px;
  box-shadow: 0px 0px 15px rgb(30,30,30);
  background-color: rgb(0,0,0);
}

button.fullscreen
{
  position: fixed;
  right: 40px;
  bottom: 20px;
  width: 30px;
  height: 30px;
  border: 3px solid rgb(0,0,0);
  padding: 10px 0px 10px 0px;
  margin: 15px;
  border-radius: 0px;
  box-shadow: 0px 0px 15px rgb(30,30,30);
  background-color: rgb(0,0,0);
}

button.lockdown
{
  position: fixed;
  left: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  border: 3px solid rgb(0,0,0);
  padding: 10px 0px 10px 0px;
  margin: 15px;
  border-radius: 0px;
  box-shadow: 0px 0px 15px rgb(30,30,30);
  background-color: rgb(0,0,0);
}

button.logout:hover
{
  background-color: rgb(20,20,20);
}

button.get_hint_disabled, button.get_hint_disabled:hover
{
  width: 70px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 34px 50px;
  background-image: url('images/hint_disabled.png');
  background-color: rgb(230,230,230);
  border-color: rgb(200,200,200);
}

button:hover
{
  background-color: rgb(150,150,150);
  cursor: pointer;
}

button:disabled:hover
{
  background-color: rgb(20,20,20);
  cursor: auto;
}

.maxwidth
{
    width: 100%;
}

.hidden
{
    visibility: hidden;
}

.newgame
{
    padding-left: 0.4em;
    padding-right: 0.4em;
    margin-right: 0.4em !important;
}

.floatleft
{
    float: left;
}

.floatright
{
    float: right;
}

span.task_name
{
    font-size: 35px;
    float: left;
    margin: 0.3em 0.5em 0 0.5em;
}

div.task_form
{
    clear: both;
    min-height: 64px;
}

div.task_done
{
    clear: both;
    height: 64px;
    margin: 0 0 0.5em 0;
}

div.login_form input
{
    margin: 0.2em 0 0.3em 0;
}

div.login_form input.edit
{
    padding: 0.1em 0 0.1em 20px;
    width: 658px;
}

div.choose_game_form button
{
    margin: 0.2em 0 0.2em 0;
}

.invisible
{
    display:none;
}

div.bottom_click
{
    position: relative;
    bottom: -2em;
}

strong, #countdown, #gamecountdown
{
    color: white;
    font-weight: bold;
}

#countdown
{
    font-size: 400%;
}

#gamecountdown
{
    font-size: 120%;
}

button.logout
{
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 30px;
    height: 30px;
    border: 3px solid rgb(0,0,0);
    padding: 10px 0px 10px 0px;
    margin: 15px;
    border-radius: 0px;
    box-shadow: 0px 0px 15px rgb(30,30,30);
    background-color: rgb(0,0,0);
}

button.failed
{
    background-color: black;
}

button.failed:hover
{
    background-color: rgb(50,50,50);
}

table
{
  border: 3px solid grey;
  width: 100%;
}

td, th
{
  border: 3px solid grey;
  margin: 0;
  padding: 3px;
  text-align: center;
}


td
{
  background-color: rgba(0,0,0,0.5);
}

th
{
  background-color: rgb(80,80,80);
}

#team_name
{
  position: fixed;
  right: 20px;
  top: 35px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

#formation
{
  position: fixed;
  right: 20px;
  bottom: 35px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.red_input
{
    color: red;
}

.red_input:hover, .red_input:focus
{
    background-color: rgb(60,0,0);
}

.blue_input
{
    color: blue;
}

.blue_input:hover, .blue_input:focus
{
    background-color: rgb(0,0,60);
}

.yellow_input
{
    color: yellow;
}

.yellow_input:hover, .yellow_input:focus
{
    background-color: rgb(60,60,0);
}

.purple_input
{
    color: purple;
}

.purple_input:hover, .purple_input:focus
{
    background-color: rgb(40,0,40);
}
