/* Impostazioni base */

html, body 
{ 
  margin:0; 
  padding:0; 
  overflow:hidden; 
  background:#111; 
  color: #fff;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90dvh;
  display: flex;
  flex-direction: column;
  
  /*background-attachment: scroll;*/
  background-size: cover;
  /*background-image: url("/img/home.jpg");*/
  background-repeat: no-repeat;

  background-attachment: fixed; /* fissa lo sfondo anche durante lo scroll */
  background-position: center;
  background-repeat: no-repeat;
  overflow-y: auto;             /* permette lo scroll verticale */
}

body, input, textarea, select, button
{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;  
  font-size: 1.3em;
  background-color: #111111;
  color: white;
  appearance: none;
  -webkit-appearance: none;
}

button {
  all: unset;              /* nuclear option */
  box-sizing: border-box;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: #fff;
  text-decoration: none;

  opacity: 0.9;
}

a:hover {
  opacity: 1;
}

/* Main Layout - Flat */
.flat_container {
  position: absolute;
  width: 90vw;
  height: 90vh;
  left: 5vw;
  top: 5vh;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.flat {
  overflow: auto;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  
  padding: 2em;
  background-color:rgba(0,0,0,0.7);
}

/* Generic shared styles */

.box {
  background-color: rgba(0,0,0,0.3);
  margin: 1em;
  padding: 1em;

  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

.tiles {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.tiles > * 
{
  text-align: center;
    
  /*
  display: flex;
  flex-direction: row;
  */
    
  padding: 1em;
  margin: 1em;
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  /*box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);*/
  box-shadow: 0px 0px 2em black;
  border-radius: 1em;
  border:1px solid magenta;
  background-color: rgba(0,0,0,0.5);
}

#map {
  left: 0px;
  width:80vw;
  height:50vh;
}

/* Pulsanti/link */
.btn,
button {
  display: inline-block;
  text-align: center;
  margin: 0.5em;
  padding: 0.5em 3em;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;              
  letter-spacing: 0;

  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);

  transition: background 0.2s ease, transform 0.1s ease;
}

.btn:hover, button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.15);
}

.message_single
{
  font-size:3em;
  
  opacity: 0.6;
}

#homeButton {
  position: fixed;
  top: 12px;
  right: 12px;

  border: none;
  background: transparent;
  cursor: pointer;

  color: #39ff14; /* verde fosforescente */
  font-size: 3em;

  /* glow */
  text-shadow:
    0 0 6px  rgba(57,255,20,0.9),
    0 0 12px rgba(57,255,20,0.8),
    0 0 24px rgba(57,255,20,0.6);

  transition: opacity 1s;  
}

#homeButton img {
  filter:
    brightness(1.2)
    saturate(6)
    drop-shadow(0 0 6px rgba(57,255,20,0.9))
    drop-shadow(0 0 14px rgba(57,255,20,0.7));
}


#homeButton img {
  width: 90px;
}

#adminButton {
  position: absolute;
  top: 12px;
  right: 82px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

#topButton:hover {
  background: rgba(255, 255, 255, 0.4);
}

#livenowbanner {
  position: fixed;
  top: 12px;
  left: -40px;
  transform: rotate(-45deg);
  background: linear-gradient(90deg, #ff0066, #ffcc00);
  color: #fff;
  font-weight: 700;
  padding: 6px 50px;
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  letter-spacing: 1px;
}

/* Scrollbar stile cyberpunk blu su dark theme */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #000; /* sfondo nero pieno */
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #007bff, #00b4ff);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 140, 255, 0.7);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #33ccff, #3399ff);
  box-shadow: 0 0 16px rgba(51, 204, 255, 0.9);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #00b4ff #000;
}


/* Mobile friendly */
@media (max-width: 600px) {
  .btn {
    
    padding: 0.9rem;
  }

  #topButton {
    
    padding: 8px 12px;
  }
}



input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 0 0px 1000px #000 inset !important;
  transition: background-color 9999s ease-in-out 0s;
}