/* Make content area fill the entire browser window */
html,
.fullscreen {

  height: 100%;
  min-height: 100%;
  overflow: hidden;

  width: 100%;

  margin: 0;
  padding: 0;
  font-size: 62.5%;
}



body {

  /*font-family: 'RobotoRegular', 'Droid Sans', sans-serif;*/
  font-size: 12rem;

  min-width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  margin: 0;
}




/* Center the content in the browser window */
.container {

  margin: auto;
  font-size: 1.3rem;
}



/*------------------------------------------------------ COMUNI ----------------------------------*/


#header {
  flex: 0 0 auto;

  display: flex;
  justify-content: space-between;
  width: 100%;
}

#header .titolo {

  flex-grow: 5;

  text-align: center;
  margin: 2px;
  font-size: 1.5rem;
  font-weight: bold;
}




#center {

  flex: 1 1 auto;
  overflow-y: auto;

  position: relative;
  z-index: 1;

  width: 100%;
  min-height: 40%
}




#footer {

  position: relative;
  z-index: 2;

  flex: 0 1 auto;

  width: 100%;
}




#button_bar {
  display: flex;
  justify-content: flex-end;
}



#button_bar img {
  width: 40px;
  height: 40px;
  border: 2px solid lightgray;
  border-radius: 4px;
}



#timer {

  font-family: Courier New, Courier, Lucida Sans Typewriter, Lucida Typewriter, monospace;
  font-weight: bold;
  font-size: 1.6rem;

  text-align: center;

  background-color: lightgray;
  border: 2px solid black;
  border-radius: 3px;
  padding: 0 2px 0 2px;
  margin: 1px;

  align-self: center;
}




#linguette {

  position: absolute;
  top: -43px;
  right: 0;
  width: auto;
  height: 35px;
  margin: 0;
  padding: 0;
  z-index: 10;

  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
}


#lin_fumetto {
  order: 1;
  margin: 1px 5px 1px 1px;
}

#lin_userbar {
  order: 2;
  margin: 1px 5px 1px 1px;
}

#lin_chat_log {
  order: 3;
  margin: 1px 5px 1px 1px;
}




#linguette .linguetta {

  width: 30px;
  height: 30px;
  padding: 4px 4px;

  background-color: white;
  border: 1px solid lightgray;
  border-radius: 3px;
  cursor: pointer;
}


#linguette .attiva {
  border: 1px solid gray !important;
}


#linguette .non_letti {
  outline: 2px solid darkorange;
  animation: pulsate 0.6s ease-out infinite;
  /* Imposta l'animazione per il lampeggiamento */

}


@keyframes pulsate {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}




/*-----------------------------------------------------------------------------*/

/* la nuova icona per aprire il dialog della nuova chat */

#chat_icon {

  position: relative;
  width: 50px;
  height: 50px;
  background-image: url('/cacciaAlTesoro/images/fumetto.png');
  background-position: 0 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}



/* il chat dialog */

.dl_chat {

  border: 1px solid gray;
  width: 90%;

  display: flex;
  flex-direction: column;
}

.dl_chat .testo {

  border: 1px solid gray;

  margin: 10px;
  padding: 2px;
}


.dl_chat label {
  display: inline-block;
}


.dl_chat .destinatari {

  display: inline-block;
  margin: 10px;
  padding: 2px;
}

.dl_chat .bt_send,
.dl_chat .bt_close {

  border: 1px solid gray;

  margin: 10px;
  padding: 5px;
}




/*-----------------------------------------------------------------------------*/


#chat {

  position: relative;
  border-top: 1px solid lightgray;
  width: 100%;
  height: auto;

}

#chat .frase {

  padding: 2px;
  margin: 2px;
  font-size: 1.4rem;
  border-top: 1px solid lightgray
}


#chat .frase .ora {

  font-size: 0.8em;
  font-weight: normal;
  padding: 2px;
}

#chat .frase .from {

  font-weight: normal;
  padding: 2px;
}

#chat .frase .from:after {

  content: " > ";
  position: relative;
}

#chat .frase .dest {

  font-weight: normal;
  padding: 2px;
}

#chat .frase .testo {

  display: block;
  background-color: rgb(228, 228, 228);
  font-weight: bold;
  padding: 2px;
  margin-left: 10px;
}


#chat .frase .image {

  width: 20px;
  height: 20px;
  padding: 2px;
}

#chat .frase .mini {

  width: 18px;
  height: 18px;
  padding: 5px;
}







#user_bar {

  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}


/* dispositivi mobili con width < 800px dispongono gli elementi della status bar in colomma */
@media (max-width: 800px) {
  #user_bar {
    flex-direction: column;
  }
}


/* ----------------------- sezioni userbar -----------*/

#wallet {
  position: relative;
  border-top: 1px solid lightgray;
  padding: 14px 2px 1px 2px;

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;

}


#wallet .testo {
  position: absolute;
  top: 0;
  left: 0;
  padding: 2px;

  font-size: 1.2rem;
  font-weight: bold;
}


#tools {
  position: relative;

  flex-grow: 5;
  border-top: 1px solid lightgray;
  padding: 14px 2px 1px 2px;

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

#tools .testo {

  position: absolute;
  top: 0;
  left: 0;
  padding: 2px;

  font-size: 1.2rem;
  font-weight: bold;
}


#hints {
  position: relative;
  border-top: 1px solid lightgray;
  padding: 14px 2px 1px 2px;

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

#hints .testo {

  position: absolute;
  top: 0;
  left: 0;
  padding: 2px;

  font-size: 1.2rem;
  font-weight: bold;
}


/*-------------------------- oggetti in bag ---------------------*/


.oggetto_bag {

  position: relative;
  /* serve per div figlie */
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
}


.oggetto_bag .moneta {

  width: 20px;
  height: 20px;
}

/*

.tool_bag {

  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;*

  background-repeat: no-repeat;
  background-size: 45px 45px;
}


.tool_bag .moneta {

  width: 20px;
  height: 20px;
}


.coin_bag {

  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;

  background-repeat: no-repeat;
  background-size: 45px 45px;
}

.hint_bag {

  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;

  background-repeat: no-repeat;
  background-size: 45px 45px;
}

.hint_bag .moneta {

  width: 20px;
  height: 20px;
}
*/


.in_uso {
  border: 2px solid red !important;
  background-color: white;
}

/*
.disabilitato {
  opacity:0.25;
  cursor:not-allowed;
}
*/



/*-------------------------- oggetti in mappa ---------------------*/

/* comuni agli oggetti mappa*/
.mapobj {

  position: absolute;
/*  border-radius: 25%;
  background-color: white;
  box-shadow: 2px 2px lightgray; */
}


/* classi specializzate per tipi oggetto
.coin_map {

 }


.hint_map {

}


.tool_map {

}


.trouble_map {

}

*/


/*------------------------ messaggio -----------------------*/



.dl_messaggio {


  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;

  height: 95%;
  width: 95%;

  font-size: 1.8rem;
  background-color: ivory;
}



.dl_messaggio .titolo {

  flex: 1 1 auto;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;

  font-size: 2rem;
  font-weight: bold;
  text-align: center;
}


.dl_messaggio .testo {

  flex: 2 1 auto;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;

  font-size: 2rem;
  font-weight: bold;
  text-align: center;
}


.dl_messaggio .image {

  height: 10vmin;
  max-width: 95%;
  object-fit: contain;

  flex: 5 1 auto;

  margin: 0 auto;
  padding: 2%;

}

.dl_messaggio .bottoni {

  flex: 1 1 auto;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  align-content: center;
}


.dl_messaggio .bottone_no {

  font-size: 1.6rem;

  background-color: white;
  border-radius: 10px;
  padding: 5px 10px;
  margin: 2px;
}

.dl_messaggio .bottone_si {

  font-size: 1.6rem;

  background-color: white;
  border-radius: 10px;
  padding: 5px 10px;
  margin: 2px;
}




/*------------------------ notifica -----------------------*/


.dl_notifica {

  position: absolute;
  top: 50px;

  font-size: 1.2rem;
  border: 1px solid lightgray;
  border-radius: 2px;
  width: 96%;
  background-color: white;

  padding: 0;
  margin: 0 auto;

  z-index: 300
}

.dl_notifica .titolo {

  font-weight: bold;
  padding: 0;
  margin: 2px;
}

.dl_notifica p {

  padding: 0;
  margin: 2px;
  text-align: center;
}


.dl_notifica .image {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  margin: 2px;
  float: left;
}

.dl_notifica .mini {

  width: 18px;
  height: 18px;
  padding-left: 5px;
  float: right;
}









/*------------------------------------------- MAPPA --------------------------------------------------------------*/


.map {

  height: 100%;
  width: 100%;
}

.player {

  /* border:2px solid white; */
  position: absolute;
  border-radius: 10px;
}




#_center_button {

  position: absolute;
  left: 5px;
  bottom: 5px;

  width: 30px;
  height: 30px;
  z-index: 210;

  background-image: url('/cacciaAlTesoro/images/centerButton.png');
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}



#_simulation_button {

  position: absolute;
  left: 35px;
  bottom: 5px;

  width: 30px;
  height: 30px;
  z-index: 210;

  background-image: url('/cacciaAlTesoro/images/gps.png');
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}


#_bottoni_zoom {

  position: absolute;
  left: 5px;
  top: 5px;
  display: flex;
  flex-direction: column;

  padding: 0;
  margin: 0;
  z-index: 210;
}

#_button_zoomin {

  width: 30px;
  height: 30px;

  background-image: url('/cacciaAlTesoro/images/zoomIn.png');
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

#_button_zoomout {

  width: 30px;
  height: 30px;

  background-image: url('/cacciaAlTesoro/images/zoomOut.png');
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}



#_cielo {

  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  opacity: 0.6;
  background-color: black;
}




/* classi usate dai vari tool, trouble, hint ecc. Dovrebbero essere caricate dinamicamente dalle classi che le usano */



.radar {

  position: absolute;
  width: 40px;
  height: 40px;
  top: -20px;
  left: -20px;
  border-radius: 20px;
  opacity: 0.6;
  border-style: solid;
  border-width: 1px;
}




.sticker {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.9;
  background-size: 100% 100%;
  z-index: 30;
}


.bandana {
  position: absolute;
  width: 135%;
  height: 100%;
  top: -8%;
  left: -30%;
  opacity: 1;
  background-size: 100% 100%;
  z-index: 25;
}



/*---------------------- roba del quiz -----------------*/

.domanda {

  text-align: center;
  font-size: 2.0rem;
  font-weight: bold;

  width: 90%;
  margin: 5%;
}

.domanda img {
  width: 60%;
  margin: 0 auto;
}

.domanda ul {
  text-align: center;
  padding-left: 0;
}

.domanda li {

  list-style-type: none;

  /*
  border: 1px solid gray;
  background-color: #E0E0E0;
  border-radius: 5px;*/

  background-color: transparent;
  background-image: url('/cacciaAlTesoro/temi/pirati/biglietto2.png');
  background-position: 0 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  
  
  padding: 15px;
  margin: 4px 4px 15px 4px;
}


/*--------------------- roba dell' enigma impiccato -------------------*/

.lettera {

  font-size: 2.0rem;
  border: 0;
  width: 18px;
  padding: 0;
  margin: 0;
}



.dl_lettera {

  font-size: 1.4rem;
  border: 0;
  border-radius: 10px;
  width: 85%;
  background-color: ivory;
}

.dl_lettera .titolo {

  font-weight: bold;
}

.dl_lettera p {

  padding: 10px;
  text-align: center;
}


.dl_lettera .image {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  margin: 0 5px 0 5px;
  float: left;
}


.dl_lettera select {

  margin: 0 45% 10px 45%;
  font-size: 30px;
}


.dl_lettera .bottone_no {

  position: absolute;
  bottom: 5px;
  left: 5px;
  background-color: white;
  border-radius: 10px;
  padding: 5px 10px 5px 10px;
}

.dl_lettera .bottone_si {

  position: absolute;
  bottom: 5px;
  right: 5px;
  background-color: white;
  border-radius: 10px;
  padding: 5px 10px 5px 10px;
}



.progressBar {

  background-image: "url(/cacciaAlTesoro/images/teschietto.png)" !important;
}

/*------------------------------------------------- prova svg ---------------*/

.svg-layer  {
  z-index:999999;
}


.svg-layer path:hover {
  opacity: 0.4;
}