/* ================= animationz ================= */
@keyframes bgAnimation{
    0% {background-color: #12282f;}
    100% {background-image: url(bg.jpg);}
}

/* ================= SCROLLABLE INNER ================= */
#scroll {
  overflow-y: scroll;   /* solo verticale */
  overflow-x: hidden;
  padding-right: 0.5em; /* spazio per scrollbar */
}

.fixed {
  height: 600px;        /* altezza fissa, cambia a tuo piacimento */
  overflow-y: auto;     /* scrollbar verticale se il contenuto supera l'altezza */
  overflow-x: hidden;   /* niente scrollbar orizzontale */
  box-sizing: border-box; /* include padding nella dimensione */
  padding: 0.5em;       /* opzionale, spazio interno */
}
/* Scrollbar personalizzata */
#scroll::-webkit-scrollbar {
  width: 16px;
}

#scroll::-webkit-scrollbar-track {
  background-color: #1a1a1a;
}

#scroll::-webkit-scrollbar-thumb {
  background-color: #cccccc;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 0 white, inset -1px -1px 0 0 #868a8e;
}

#scroll::-webkit-scrollbar-thumb:hover {
  background-color: #dc4f8a;
}

#scroll::-webkit-scrollbar-corner {
  background-color: #cccccc;
}

/* ================= FAKE WINDOWS SOUND PLAYER ================= */

#glenplayer02 {
  display: flex;
  align-items: center;
  background: #C2C2C2;
  padding: 0.2em;
  border: 3px inset;
  margin: 0.5em auto;
  width: fit-content;
}

#glenplayer02 a {
  text-decoration: none;
}

.music-controls {
  cursor: pointer;
  font-family: 'music';
  font-size: 18px;
  user-select: none;
}

.playy, .pausee {
  font-family: 'music';
  font-size: 1.1em;
  color: #F38BC8;
  -webkit-text-stroke: 0.5px #000;
}

.pausee {
  display: none;
}

.sonata {
  margin-left: 0.4em;
  font-family: Pixelated MS Sans Serif;
  font-size: 0.75em;
  color: #000;
}

.labeltext {
  margin-left: 0.5em;
  font-size: 14px;
}

.music-btn#next {
  margin-left: 0.5em;
  font-size: 1.2em;
  cursor: pointer;       /* <-- questo fa diventare cliccabile */
  user-select: none;
  transition: transform 0.1s ease, color 0.1s ease;
}

.music-btn#next:hover {
  transform: scale(1.2);
  color: #dc4f8a;
}

/* ================= BASE ================= */

body {
  background-image: url(bg.jpg);
  background-size: 10rem, 10rem;
  background-attachment: fixed;
  color: #c8e9ba;
  font-family: monospace;
  font-size: 1em;
  animation-name: bgAnimation; 
  animation-duration: 10s;
}


center {
  text-align: center;
}

a {
  color: #dc4f8a;
  text-decoration: none;
}

a:hover {
  color: #d9f13f;
}

/* ================= WRAPPERS ================= */

.wrapper {
  width: 1150px;
  margin: 0 auto;
  margin-top: -10px;
  margin-bottom: -10px;
  background-color: none;
}

.wrapper-2 {
  position: relative;
  background-color: none;
}

/* ================= HEADER & FOOTER ================= */

.header,
.footer {
  height: 200px;
  overflow: hidden;
}
/*nel fooder mettere cosini carini*/
.footer {
  height: 50px;
}

/* ================= TITLE ================= */
/*aggiungere animazione a rxtten e rotten*/
.title {
  padding: 15px 10px 10px 20px;
  background: #7e71c8e0;
  color: rgba(79, 238, 227, 0.814); 
  box-shadow: inset 0 -2px #3c5832;
  text-align: center;
}

.title h1,
.title h2,
.title h3 {
  margin: 0;
  padding: 0;
}

/* ================= TOP LINKS ================= */

.links {
  padding: 5px 0;
  background: #00000094;
  text-align: center;
}

.link {
  display: inline-block;
  font-weight: bold;
  font-size: 1.1em;
  padding: 5px 10px;
}

.link a {
  color: white;
}

/* ================= COLUMNS ================= */

.main,
.sidebar-right {
  display: inline-block;
}

.sidebar-left,
.sidebar-right {
  width: 200px;
  position: absolute;
  top: 0;
}

.sidebar-left {
  margin-left: 10px;
}

.main {
  margin-left: 220px;
  width: 710px;
}

.sidebar-right {
  margin-left: 10px;
  margin-right: 10px;
}


/* ================= FAKE WINDOW BOX ================= */

.box {
  margin: 10px 0 15px 0;
  background: #000000af;
  color: #ffffff;
  border: 1px solid #7e71c8e0;
  border-radius: 5px;
  box-shadow: 2px 2px #3c5832;
  overflow: hidden;
}

.sidebar-left .box .inner {
    color: #97e68c;
}

.sidebar-left .box > h1,
.sidebar-left .box > h2,
.sidebar-left .box > h3 {
  background:  #7e71c8; /* arancione per esempio */
  color: black;        /* colore testo */
  border: 1px solid #7e71c8e0;
}

/* Fake title bar inside boxes */
.box > h1,
.box > h2,
.box > h3 {
  background: rgba(79, 238, 227, 0.814);
  color: white;
  margin: 0;
  padding: 6px 8px;
  font-size: 0.95em;
  position: relative;
}

/* Fake window buttons */
.box > h1::after,
.box > h2::after,
.box > h3::after {
  content: "▢ ✕";
  position: absolute;
  right: 8px;
  top: 4px;
  font-size: 0.75em;
}

/* ================= INNER ================= */

.inner {
  padding: 10px;
}

.box img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ================= RESPONSIVE (ORIGINAL, UNTOUCHED) ================= */

@media (max-width:1180px) {
  .wrapper {
    width: calc(440px + 50vw);
  }
  .main {
    width: 50vw;
  }
}

@media (max-width:910px) {
  .wrapper {
    width: calc(360px + 52vw);
  }
  .sidebar-left,
  .sidebar-right {
    width: 160px;
  }
  .main {
    margin-left: 180px;
    width: 52vw;
  }
}

@media (orientation:portrait) {
  .wrapper {
    width: 96vw;
    margin: 0 auto;
  }

  .wrapper-2 {
    width: 94vw;
    margin: 0 auto;
  }

  .sidebar-left,
  .main,
  .sidebar-right {
    position: relative;
    width: 92vw;
    margin: 0.25rem 1vw;
  }

  .sidebar-left,
  .sidebar-right {
    font-size: 0.95em;
  }
}
