@font-face {
  font-family: 'Silkscreen';
  src: url('../fonts/slkscr.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Silkscreen';
  src: url('../fonts/slkscrb.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Silkscreen', sans-serif !important;
  /* mantiene i pixel nitidi ovunque */
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
}

/* STILE PER LA VERSIONE DESKTOP*/

/*  sfondo e cursore */
html, body {
  height: 100%;
  background-color: #0d0221; /* blu notte */
  color: #00f9ff;           /* ciano neon */
  margin-left: 220px; /*sposto a destra il body se no viene coperto dalla sidebar*/
}

/* iperlink e bottoni */
a, button{
  color: #ff00ff; /* fucsia */
  text-decoration: none;
  background: transparent;
  border: none;
}
header{
  text-align: center;
  margin-left: 220px; /*sposto a destra il body se no viene coperto dalla sidebar*/
}
/* effetto selezione testo anni figo */
::selection {
  background: #ff00ff;
  color: #000;
}

/* sidebar*/ 
.sidebar{
  height: 100%;       /* Tutta l'altezza della pagina */
  width: 200px;       /* Larghezza della barra */
  position: fixed;    /* La blocca sullo schermo */
  top: 0;
  left: 0;
  background-color: #f4f4f4; /* Colore di sfondo */
}
.sidebar a:hover {
  background-color: #ddd; /* effetto al passaggio del mouse */
}
/* stile del pulsante hamburger (nascosto su desktop) */
.hamburger-menu {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.hamburger-menu span {
  width: 30px;
  height: 4px;
  background-color: #333;
  border-radius: 2px;
}

/* STILE PER LA VERSIONE MOBILE*/

@media screen and (max-width: 768px) {
  .hamburger-menu {
    display: flex; /* mostra il tasto hamburger */
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -250px; /* nasconde il menu fuori dallo schermo a sinistra */
    width: 250px;
    height: 100%;
    background-color: #333;
    transition: 0.3s; /* rende l'apertura fluida */
  }

  /* classe che viene aggiunta con js per mostrare il menu */
  .sidebar.active {
    left: 0;
  }

  body { 
  margin-left: 0; 
  }
}
