/* di seguito i selettori di stile per ogni elemento di pagina*/

/*------CONTENITORE----------------------------------------------------------------------------*/
body {
    background-image: url("sfondo.png");
    background-color: rgb(255, 255, 235); /* colore sfondo nella'area non coperta dall'immagine*/
    background-size: 1600px 800px;
    background-repeat: no-repeat; /* Impedisce la ripetizione dell'immagine */
    background-attachment: fixed; /* Fa sì che lo sfondo non scorra con il contenuto */
 
    margin: 0px;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

/*---------fasce per effetto fading del testo nello scoorere fuori dalla cornice------------------------*/
#margine_top1 {
    z-index: +1;
    position: fixed;
    top: 50px;
    left: 320px;
    width:950px;
    height:30px;
    background-color: rgba(61, 133, 133, 0.8);
}
#margine_top2 {
    z-index: +1;
    position: fixed;
    top: 20px;
    left: 320px;
    width:950px;
    height:30px;
    background-color: rgba(61, 133, 133, 0.9);
}
#margine_top3 {
    z-index: +1;
    position: fixed;
    top: 0px;
    left: 320px;
    width:950px;
    height:20px;
    background-color: rgb(61, 133, 133);
}

#margine_bottom {
    z-index: +1;
    position: fixed;
    bottom: 0px;
    width: 100%;
    height: 20px;
    background-color: rgb(255, 255, 235);
}

/*---------logo in alto a sinistra nella testata-----------------------------------------------*/
#logo_sito {
    position: fixed;
    top: 30px;
    left: 40px;
}

/*--------------scritta in alto a destra nella testata----------------------------------*/
#pensiero {
    z-index: +1;
    position: fixed; 
    top: 24px;
    right: 60px;
    font-family: Courier;
    font-style: italic;
    font-size: 110%;
    font-weight: normal;
    color: #FFFFEB;
}

/*---------contenitore corpo pagina scorrevole---------------------------------------------------*/
#pagina {
    position: relative; /* permette alla pagina di avere una posizione data iniziale, ma non fissa, scrollabile*/
    top: 140px;
    margin-left: 320px; /* limite a destra del testo in caso di restringimento pagina*/
    margin-right: 30px;
    margin-bottom: 140px;
    width:800px;
    text-align: justify;
    overflow: auto; /*se testo straborda la pagina viene gestino con una scroll bar*/
}

/*---------contenitore corpo pagina fissa---------------------------------------------------*/
#pagina_fissa {
    position: relative; /* permette alla pagina di avere una posizione data iniziale, ma non fissa, scrollabile*/
    top: 140px;
    margin-left: 320px; /* limite a destra del testo in caso di restringimento pagina*/
    margin-right: 30px;
    margin-bottom: 140px;
    width:800px;
    text-align: justify;
    overflow: hidden; /*se testo straborda la pagina viene gestino con una scroll bar*/
}

/*--------indice verticale posto a sinistra----------------------------*/
#box_menu{
    position: fixed; 
    top: 200px;
    left: 20px;
}

/*righe del menu*/
.riga_menu{
    position: relative;
    display: flex;
    margin-bottom: 20px;
    opacity: 0.5; /*rende semitrasparente il menu*/
}
/*linea colorata a lato icone*/
.barra_colorata{
    position: relative;
    width:200px;
    height:40px;
}
.icona {
    position: relative;
    left: -196px;
    width: 50px; 
    height: 40px; /* Imposta un'altezza specifica */
}
.voce_menu{
    position: relative;
    left: -180px;
    margin-top: 11px;
    font-family: Courier, ;
    color: black;
    font-size: 100%;
    font-weight: normal;
}
.color_menu_1{
   background-color: #FFFFEB;
}
.color_menu_2{
    background-color: rgba(0, 255, 255, 1);
}
.color_menu_3{
    background-color: rgba(0, 255, 0, 1);
}
.color_menu_4{
    background-color: rgba(255, 255, 0, 1);
}
.color_menu_5{
    background-color: rgba(255, 177, 0, 1);
}
.color_menu_6{
    background-color: rgba(255, 0, 0, 1);
}


/*----COMANDI PAGINA AVANTI E INDIETRO-----------------*/
.box_pagina_indietro{
    position: fixed;
    top: 580px;
    left: 30px; 
    display:flex;
      color: rgb(255, 255, 235);
  font-family: Georgia, Times New Roman;
  font-size: 100%;
  font-weight: 100;
}

.box_pagina_avanti{
    position: fixed;
    top: 580px;
    left: 140px; 
    display:flex;
      color: rgb(255, 255, 235);
  font-family: Georgia, Times New Roman;
  font-size: 100%;
  font-weight: 100;
}

.voce_freccia{
  color: rgb(255, 255, 235);
  font-family: Georgia, Times New Roman;
  font-size: 100%;
  font-weight: 100;
}

/*----STILI TESTO------------------------------------------*/
h1 {
  color: black;
  font-family: Georgia, Times New Roman;
  font-size: 250%;
  font-weight: normal;
}
h2 {
  color: black;
  font-family: Georgia, Times New Roman;
  font-size: 180%;
  font-weight: normal;
}
h3 {
  color: black;
  font-family: Georgia, Times New Roman;
  font-size: 140%;
  font-weight: normal;
}

*------stile piccolo_______________________________________*/
h4 {
  color: black;
  font-family: Consolas;
  font-size: 80%;
  font-weight: normal;
}

/*------stile indovinelli_______________________________________*/
h5 {
  color: black;
  font-family: Georgia, Times New Roman;
  font-size: 120%;
  font-weight: normal;
  line-height: 1.5;
}

/*------stile poesie_______________________________________*/
h6 {
  color: black;
  font-family: Georgia, Times New Roman;
  font-size: 120%;
  font-weight: normal;
}

/*------testo normale_______________________________________*/
p {
  color: black;
  font-family: Consolas;
  font-size: 90%;
  line-height: 1.5;
}

mark{
background-color: rgb(255, 223, 127);
color: black;
}

.nascosto{
  color: rgba(255, 255, 235, 0.3);
  font-family: Consolas;
  font-size: 70%;
  line-height: 1.2;
}

/*stile scrittura formule*/
.formula {
  margin-left: 20px;
  color: black;
  font-family: Consolas;
  font-size: 90%;
  line-height: 0.6;
}

/*------STILI DEI LINK_______________________________________*/
.indice:link, .indice:visited{
  color: black;
  text-decoration: none;
  font-size: 140%;
}
.indice:hover{
  color: #185b5b;
}

.link_menu:link, .link_menu:visited{
  color: black;
  text-decoration: none;
}
.link_menu:hover{
  color: black; /* Colore dei link al passaggio del mouse */
  text-decoration: none;
  opacity: 1;  /*rende colori menu vividi*/
  font-size: 106%;
  font-weight: 700;
}

.link_frecce:link, .link_frecce:visited {
  text-decoration: none;
}
.link_frecce:hover{
  color: orange; /* Colore dei link al passaggio del mouse */
  text-decoration: none;
  font-weight: 700;
}

/*-----------------immagini presenti nel testo------------------------------*/
.figura{
    display: block; /* Converte l'immagine in un elemento a blocchi */
    margin-left: auto; /* Imposta il margine sinistro a auto */
    margin-right: auto; /* Imposta il margine destro a auto */
}

/*----------------tabelle----------------------------------------------*/
table {
margin-top: 20px;
margin-left: 200px;
margin-bottom: 20px;
}
th, td {
border: 1px solid black;
padding: 8px;
text-align: center;
font-size: 80%;
}

