h1, p{
  margin-bottom: 10px;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  background-color: #1D1D28;
  color: white;

  font-family: "Momo Trust Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

/* Contenitore principale in flex */
.pageContainer {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Sidebar fissa */
.spacer{
  width:15rem;
  height: auto;
}
.sideBar {
  width: 10rem;
  height: 100vh;
  padding: 5vh 2%;
  border-right: 1px solid black;
  background-image: url('/img/e.jpg');
  background-size: cover;
  position: fixed;
  top: 0;
  left: 0;
  font-family: 'Courier New', Courier, monospace;
}

#logo{
  max-width: 8rem;
}



.sideBar p {
  font-size: 10px;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.menu a:hover {
  color: #a0a0a0;
}

/* Contenuto principale */
.mainContent {
  flex: 1; /* prende tutto lo spazio rimasto */
  padding: 5vh 5%;
  margin: 3%;
  min-height: 100vh;
}

.mainContent h2{
  font-style: italic;
}

/* Barra superiore per mobile */
.secondBar{
  background-color: #1D1D28;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: none;
  align-items: center;
}


a {
  color: #9c8cff; /* Viola ispirato al tema Obsidian */
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: #b6a8ff; /* tono più chiaro al passaggio */
  border-bottom-color: rgba(182, 168, 255, 0.7);

}

::selection {
  background-color: #9c8cff; /* viola obsidian */
  color: #1D1D28; /* testo scuro per contrasto */
}

::-moz-selection {
  background-color: #9c8cff;
  color: #1D1D28;
}

tag{
  font-size: 100px;
  font-family: "Jacquard 24", system-ui;
  font-weight: 400;
  font-style: normal;
}

@media (max-width: 768px) {
  .sideBar, .spacer{
    display:none;
  }

  .secondBar{
    background-image: url('/img/e.jpg');
    display: flex;
    justify-content:space-between;
    z-index: 1000;
  }

  .secondBar img{
    height: 50px;
  }

  .secondBar a{
    color: white;
  }

  .mainContent{
    margin-top: 10vh;
  }

  /* --- MENU MOBILE --- */
  .menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
  }

  .mobileMenu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 10vh; /* sotto la barra */
    right: 0;
    background-color: #1D1D28;
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    z-index: 999;
  }

  .mobileMenu a {
    display: block;
    padding: 0.8rem 0;
    text-decoration: none;
    color: white;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .mobileMenu a:hover {
    color: #a0a0a0;
  }

  .mobileMenu.active {
    display: flex;
  }

  .menu-toggle, img{
    padding: 20px;
}
}
