/* CSS V15 sezione */

/* IMAGE MODAL */
#myImg {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#myImg:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  /* height: 150px; */
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
/* The Close Button */




a.indimg {
    display: block;
    width: 30%;
    height: auto;
    float: left;
    /* margin-right: 20px; */
}

a.indimg img {
    width: 100%;
}

a.indtex {
    left: 15px;
    width: 70%;
    display: block;
    float: right;
    position: relative;
	padding-right: 20px;
}



/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}



/* PROGRESS BAR */

.progress {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  background-color: #f1f1f1;
  left: 0;
}


.progress-container {
  width: 100%;
  height: 3px;
  background: #ccc;
}

.progress-bar {
  height: 4px;
  width: 0%;
  background-color: yellow;
}

#myBar {
    -webkit-transition: width 100ms ease;
    -o-transition: width 100ms ease;
    transition: width 100ms ease;
}

/* Immagine a tutto schermo */
.overlay-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 1;
}

/* Contenuto del testo sovrapposto */
.overlay-content {
  text-align: center;
  z-index: 2;
  height: 80vh;
 width: 80vw;
}

.overlay-libro {
	font-size: 1.5rem;
    margin-bottom: 30px;
    top: 0;
    position: relative;
    text-align: left;
	text-shadow: 2px 2px 9px black;
}

.overlay-big-title {
	font-size: 3rem;
    font-weight: bold;
    /* text-transform: capitalize; */
    /* width: 80vw; */
    text-align: left;
    top: 10vh;
    position: relative;
	text-shadow: 2px 2px 9px black;
}
/* Schermata iniziale sovrapposta iniziale delle sezioni */



/* Colore indice sezioni sezioni */
.chapter-list li {
  padding: 15px;
  margin: 10px 0;
  border-radius: 5px;
  color: #000; /* Colore del testo (contrasto sul background) */
  font-weight: bold;
  text-align: center;
  list-style: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.chapter-list li a {
  text-decoration: none;
  color: inherit;
}
/* Colore indice sezioni sezioni */


/* Colore CAPTION image */

.imgcap {
    display: flex;
    position: relative;
    margin: 0;
}

.imgcap img {
    display: block;
    position: relative;
}

.copy {
    margin: 0px;
}


.img-caption {
  visibility: hidden;
  	color: white;
    display: block;
    position: absolute;
    background-color: chocolate;
    z-index: 100;
    width: 60%;
    height: 30%;
    max-height: 50%;
    bottom: 0;
    padding: 8px;
    right: 0;
    /* height: 50%; */
    box-shadow: 0px 8px 10px 0px rgba(0,0,0,0.55);
    top: 100%;
    overflow-y: scroll;
	border-bottom: 10px solid chocolate;
	border-top: 10px solid chocolate;
}

.img-caption.active {
  visibility: visible;
}

/* Colore CAPTION image */

/* Colore CAPTION text */

.textcap {
    display: flex;
    position: relative;
    margin: 0;
}

.textcap img {
    display: block;
    position: relative;
}

.copy, .cap-text {
    margin: 0px;
}


.text-caption {
  visibility: hidden;
	color: white;
    display: block;
    position: absolute;
    background-color: chocolate;
    z-index: 100;
    width: 60%;
    height: 30%;
    max-height: 50%;
    bottom: 0;
    padding: 8px;
    right: 0;
    /* height: 50%; */
    box-shadow: 0px 8px 10px 0px rgba(0,0,0,0.55);
    top: 100%;
    overflow-y: scroll;
	border-bottom: 10px solid chocolate;
	border-top: 10px solid chocolate;
}

.text-caption.active {
  visibility: visible;
}

/* Colore CAPTION text */

/* SCROLL text*/

.scroll-text {
	background-color: #379dbf;
    color: white;
    padding: 10px;
    height: 150px;
    overflow-y: scroll;
}

/* SCROLL text*/




@media screen and (orientation:landscape) {
.close {
  position: absolute;
  z-index: 1000;
}
.modal-content {
    width: 100%;
    margin: 0;
    padding: 0;
    top: 0;
    position: absolute;
}
.modal-content {
    max-width: 100%;
}
}



