body {
    font-family: 'Rubik', sans-serif;
    margin: 0;
    padding: 0;
    display: grid;   
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* Tři sloupce, kde každý může být minimálně 0 a neomezeně na fr */
   grid-template-rows: 80px 1fr; /* První řádek je 80px vysoký, druhý zaujímá zbytek výšky */
    grid-template-areas:
        "header header header"
        "main main aside";
    height:100vh;
    grid-template-columns: 3fr;
}

/* ZÁHLAVÍ */
header {                
	background-color: #3B3B3B;
	width: 100%;
	height: 80px;
  position: sticky;
  top: 0;
  z-index: 1;
  grid-column: span 3;
}

.header-inner{   
width: 90vw;
height: 60px;
padding: 0 20px;
margin: 0 auto;
text-align: left;
}


#logo-wrap{
float: left;
padding: 0;
margin: 0;
}

#logo-wrap > img {
height: 70px;
padding: 0;
}


.toolbtn {
cursor: pointer;
background: unset;
padding: 10px;
margin: 5px;
border-radius: 25px;
}

.toolbtn:hover {
background: #9AFF9A;
}

.toolkit {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(100px, 3fr));
gap: 10px;
}


/* Hlavní pracovní plocha (vlevo) */
.main-content {     
    height: 100%;                
    grid-area: main;
    background: rgb(60,60,60);
    background: radial-gradient(circle, rgba(43,43,43,1) 0%, rgba(0,0,0,1) 100%);
    grid-column: span 2;
    padding: 50px;
    overflow-y: scroll;
    box-sizing: border-box; /* Přidává padding a border k rozměrům elementu */
}


/* Úzký panel (vpravo na širších obrazovkách) */
.side-panel {
    max-width: 320px;
    grid-area: aside;
    background: white;
    padding: 50px;
    display: block; /* Výchozí stav - zobrazený na širších obrazovkách */        
    grid-column: span 1;
    overflow-y: auto; /* Scrollování obsahu, pokud je delší než viewport */
    box-sizing: border-box; /* Přidává padding a border k rozměrům elementu */
}

@media (max-width: 768px) {
    .side-panel {
        display: none; /* Skryje .side-panel na telefonech */
    }
}

#toggleButton {
    display:none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50; /* Zelená barva */
    color: #fff; /* Bílá barva ikony */
    border: none;
    border-radius: 50%; /* Kulatý tvar */
    width: 65px;
    height: 65px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2; /* Překrývá ostatní obsah */
}

.side-panel.visible {
    display: block; /* Zobrazí tlačítko, když je .side-panel viditelný */
}

@media (max-width: 768px) {
    #toggleButton {
      display: flex;
    }
    
    .side-panel.visible {
    position: fixed;
    width: 100vw;
    height: calc(100vh - 80px);
    max-width: unset;
    top: 80px; /* Změňte podle potřeby výšku nadolů */
    right: 0; /* Změňte podle potřeby vzdálenost od pravého okraje */
    background-color: #fff; /* Barva pozadí pro .side-panel */
}
}

@media (max-width: 768px) {
    .side-panel {
        display: none; /* Skryje .side-panel na telefonech */
    }
}


/*.side-panel.visible + #toggleButton {
    display: block; /* Zobrazí tlačítko, když je .side-panel viditelný */
/*}*/ 


/* Styling the main scrollbar */
::-webkit-scrollbar {
  width: 10px; /* Width of the scrollbar */
}

/* Styling the scrollbar thumb (the draggable part) */
::-webkit-scrollbar-thumb {
  background-color: #888; /* Color of the thumb */
  background-color: none; /* Color of the thumb */
  border-radius: 5px; /* Rounded corners for the thumb */
}

/* Styling the scrollbar track (the non-draggable part) */
::-webkit-scrollbar-track {
  background-color: #f1f1f1; /* Color of the track */
  background-color: transparent; /* Color of the track */
}

/* Styling the scrollbar corner (between the vertical and horizontal scrollbars) */
::-webkit-scrollbar-corner {
  background-color: #f1f1f1; /* Color of the corner */
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

b {
	font-family: jaf-bernino-sans, sans-serif;
	font-weight: 700;
	font-style: normal;
}

#image-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.image-item {
  position: relative;
  background-color: rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 20px 20px;
  box-sizing: border-box;
}

.image-item > p {
  font-size: 8pt;
  color: darkgray;
}

#send-button {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #9AFF9A; /* Změna na brandovou barvu */
  color: #000021;
  border-radius: 50px; /* Zaoblené okraje */
  border: none;
  cursor: pointer;
  font-size: 16px;
}

#send-button:hover {
  background-color: #7DFF7D; /* Změna barvy na hover */
}

progress {
  width: 100%;
}



.thumbnail-image {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 200px;
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.6);
  image-rendering: pixelated;
}

.image-details {
  padding: 20px;
  width: 100%;
}

.format-dropdown, .copies-input {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  border: 1px solid darkgray;
  color: darkgray; 
  border-radius: 50px;
  background-color: rgba(0,0,0,0);
  font-size: 14px;
  margin-bottom: 10px;
  box-sizing: border-box;
  appearance: none;
}

.format-dropdown:hover, .copies-input:hover {
  border: 1px solid #9AFF9A;
  color: #9AFF9A;
}

.format-dropdown option {
  background-color: #0f0f0f; /* Background color of options */
  color: #fff; /* Text color of options */
  font-size: 18px; /* Adjust the font size */
  padding: 12px 12px; /* Adjust the padding (top/bottom, left/right) */
}

.format-dropdown:focus, .copies-input:focus {
  outline: none;
  border: 1px solid #007bff;
}

.format-dropdown::-ms-expand, .copies-input::-ms-expand {
  display: none;
}

.copies-input::-webkit-inner-spin-button,
.copies-input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.outer-thumbnail {
  position: relative;
  margin-top: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 300px;
  padding: 20px;
}

/* loading */

.image-item.loading {
  position: relative;
}

.close-button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  outline: none;
  z-index: 0;
}

.thumbnail-placeholder {
  width: 100%;
  height: 100%;
  background-color: #ededed;
  display: flex;
  justify-content: center;
  align-items: center;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hidden {
  display: none !important;
}

#loading-container {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.progress {
  width: 100%;
  height: 20px;
  margin-bottom: 10px;
}

.progress-bar {
  background-color: #007bff;
  height: 100%;
  width: 0;
  border-radius: 8px;
}

.discount-progress-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 40px;
  background-color: lightgray;
  position: relative;        
    text-align: center;
}

.discount-progress-fill {
  height: 40px;
  width: 0;
  background-color: #4caf50;
  position: absolute;
  transition: width 0.3s ease-in-out;
}

#progress-text {
    font-size: 9pt;
    z-index: 0;
    
    width: 100%;
}

/* NÁKUPNÍ KOŠÍK */

/* CSS pro umístění vpravo pod ikonkou nákupního košíku */
/* CSS s použitím CSS anchor pro umístění vpravo pod ikonkou */
#cart-summary {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); /* Rozostření s hodnotou 5px */
    color: #333;
    max-width: 500px;
    min-width: 300px;
    max-height: 80vh; 
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 1.4;
    padding: 0 20px 10px 20px;
    box-sizing: border-box;
    display: none;
    position: absolute;
    top: 80px;
    right: 0px;
    z-index: 999;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Horizontální offset, vertikální offset, rozmazání, barva stínu */
}

#prejit-do-kosiku {
    width: 100%;
    text-align: center;
}


#prejit-do-kosiku > a {
    text-align: center;
    background-color: #9AFF9A;
    border: none;
    color: #3B3B3B;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 20px;
    cursor: pointer;
}

#cart-icon {
  position: relative;
}

#cart-summary h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

#cart-items {
    list-style-type: none;
    padding: 0;
}

#cart-items li {
    font-size: 16px;
    padding: 15px 0;   
    border-bottom: 1px solid #ccc;
}

#cart-items li:last-child {
    border-bottom: none;
}

#cart-total {
    font-weight: bold;
    font-size: 18px;
    margin-top: 10px;
}

.remove-item {
float: right;
      color:  #000;
      fill: currentColor;
      line-height: 12pt;
      height: 11pt;
      width: 1em;   
}

.remove-item:hover {
  color: #f00; /* Změna barvy textu při najetí myší */
}            
     
.remove-item:hover {
  color: #f00; /* Změna barvy textu při najetí myší */
}

.cart-close {
      float: right;
      color:  #000;
      fill: currentColor;
      line-height: 12pt;
      height: 11pt;
      width: 1em;   
}

.cart-close:hover {
      color:  #999;
}


#cart-triangle{
float: right;
line-height: 80px;
padding-left: 5px;
color: white;
}

legend {
	display: block;
	width: 100%;
	font-size: 16pt;
	font-weight: 600;
	border-bottom: 1px solid #707070;
	margin-bottom: 20px;
	padding-top: 30px;
	color: #1C1C1C;
}