    
	
	* { box-sizing: border-box; }
    
	
html, body {
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #003268;
  color: #eee;
  font-family: sans-serif;
}
	
	#pdfView  {display: none;}
	#pdfView a, a:link, a:visited { color: white; } 
	


#bookWrapper {
  display: flex;
  flex-direction: column;
  align-items: center; /* centrování do středu stránky horizontálně */
  justify-content: flex-start; /* nahoře */
  width: 100%;
  min-height: 100vh; /* zajistí minimálně výšku viewportu */
  padding: 0;
  position: relative;
}

#bookContainer {

  padding-left: 10px;
  padding-right: 10px;
  padding-top: 10px;
  display: flex;
  justify-content: center;
  flex-direction: row;
}


#controls {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between; /* mezera mezi center a right */
  text-align: center;
  
  z-index: 100;
  
}

#controls-center {
  flex: 1; /* zabere dostupné místo */
  text-align: center;
}

#controls-right {
  display: absolute;
  padding-right: 20px;
  gap: 10px;
}




    #controls button {
      padding: 0;
      margin: 0;
	background: none;
	border: none;
	cursor: pointer;

    }
	.page {
	  position: relative;
	  width: calc(50vw - 15px); /* -10px z kraje a -5px mezera mezi stránkami */
	  
	  transform-style: preserve-3d;
	  z-index: 1;
	  flex: 0 0 auto;
	  margin-top: 10px; /* 10px od vrchu */
	}
	
    .page .side {
      position: absolute;
      width: 100%;
      
      backface-visibility: hidden;
      overflow: hidden;
	  
      
    }
    .page .front {
      z-index: 10;
	  margin-right: 0;
	  
    }
	.page .back {
	  transform: rotateY(180deg);
	  backface-visibility: hidden;
	  z-index: 5;
	  
	  margin-right: 0;
	  text-align: right;
	  
	  
	}
	#leftPage {
	  text-align: right;

	}
	#rightPage {
		text-align: left;
	}

    canvas {
      width: 100%;
      
      
    }
    .flipping {
      transition: transform 1s ease;
      box-shadow: 0 0 30px rgba(0,0,0,0.3);
	  text-aligh: right;
	}

	.flipping::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(to left, rgba(0,0,0,0.1), transparent);
	  pointer-events: none;
      mix-blend-mode: multiply;
	  
    }

    /* Ohraničení aktivních odkazů */
    .link-annotation {
      position: absolute;
      cursor: pointer;
      box-sizing: border-box;
      pointer-events: auto;
      background: transparent;
      z-index: 0;
    }
	
	.link-annotation:hover {
	  opacity: .35 !important;
	  box-shadow:3px 3px 2px #333;
	  background: #003268;
      cursor: pointer;
      box-sizing: border-box;
      pointer-events: auto;
      
      z-index: 0;
	}
	
    #nextPagePreview {
	  position: relative;
	  width: calc(50vw - 15px); /* -10px z kraje a -5px mezera mezi stránkami */
	  
	  transform-style: preserve-3d;
	  box-sizing: border-box;
	}

    .button-double-border:hover {
      background-color: #0056b3;
    }
	.right-icon {
		width: 40px; 
		height: 40px;
	}
	.control-icon {
		width: 40px; 
		height: 40px;
	}
		
    /* RESPONSIVE */
	/*
@media (max-width: 1024px) {
 
#bookWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  
  padding-top: 10px;
}

 #bookContainer {
  width: 95vw;
  
  display: flex;
  justify-content: center;
  flex-direction: row;
  }

.page {
  display: block;
  width: 100% !important;
  height: auto;
  max-width: 100vw;
}
#leftPage {
  display: none;
  
}
#rightPage {
  display: block;

}

  canvas {
    width: 100% !important;
    height: auto !important;
    max-width: 100vw;
  }

  #controls {
    position: relative;
    
    width: 100%;
    text-align: center;
    margin-top: 10px;
	background:  #283583;
   
  }
  
  #controls-right {
	position: absolute;
	display: flex;
	gap: 5px;
	top: 0;
	right: 0;
	padding-right: 10px;  
	}
	.right-icon {
		width: 20px; 
		height: 20px;
	}
	.control-icon {
		width: 30px; 
		height: 30px;
	}
}
*/