/* CSS Document */
body,h1,h2,h3,h4,h5,h6 {font-family: "Play", sans-serif;}
body, html {
  border: 0;
  background-color: white;
  height: 100%;
  color: #333;
  line-height: 1.8;
}

.bgimg-1, .bgimg-2, .bgimg-3, .bgimg-4, .bgimg-5, .bgimg-6 {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  
  filter: opacity(100%) grayscale(0%);
}

.bgimg-1 {
  background-image: url('../images/parallax1.jpg');
  min-height: 100%;
}

.bgimg-2 {
  background-image: url("../images/parallax2.jpg");
  min-height: 400px;
}

.bgimg-3 {
  background-image: url("../images/parallax3.jpg");
  min-height: 400px;
}

.bgimg-4 {
  background-image: url("../images/parallax4.jpg");
  min-height: 400px;
}

.bgimg-5 {
  background-image: url("../images/parallax5.jpg");
  min-height: 400px;
}

.bgimg-6 {
  background-image: url("../images/parallax6.jpg");
  min-height: 400px;
}

.w3-wide {letter-spacing: 10px; }
.w3-hover-opacity {cursor: pointer; }
.w3-button { color: black; }
.w3-button:hover { background-color: #eee !important; }

@media only screen and (max-device-width: 1600px) {
  .bgimg-1, .bgimg-2, .bgimg-3, .bgimg-4, .bgimg-5, .bgimg-6 {
    background-attachment: scroll;
    min-height: 400px;
  }
}

.perc-width-20 {
  width: 20%;
} 

.element-break {
  width: 100%;
  display: inline-block;
}

.cenik-kontejner {
  border-bottom:1px solid gray;
}

.accordion {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
  transition: 0.4s;
}

.active, .accordion:hover {
  background-color: greenyellow;
}

.accordion:before {
  content: '\002B';
  font-weight: bold;
  font-size: 1.3em;
  line-height: 1.3em;
  float: right;
  margin-left: 5px;
  
  animation: glow 1s ease-out infinite alternate;
  display: inline;
  color: #777;
}

.active:before {
  content: "\2212";
}

.image {
  width: 100%;
  height: auto;
  box-shadow: none;
  margin-bottom: 10px;
  padding-left: 4px;
  padding-right: 4px;
  display: block;
}

.overlay-container {
    position: relative;
    width: 100%;
}

.overlay-container img {
    width: 100%;
    height: auto;
    display: block;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    //font-size: 18px;
    text-align: center;
    width: 90%;
    max-width: 80%;
}

.panel {
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
}

.tab button:hover {
  background-color: #ddd;
}

.tab button.active {
  background-color: #ccc;
}

.tabcontent {
  display: none;
  padding: 6px 12px;
  -webkit-animation: fadeEffect 1s;
  animation: fadeEffect 1s;
}

@-webkit-keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Definice animace */
@keyframes glow {
  0% {
    text-shadow: 0 0 20px #777; /* Počáteční stav: rozostření */
    opacity: 0.1;
  }
  50% {
    text-shadow: 0 0 10px #777; /* Střední bod animace: záře */
    opacity: 0.5;
  }
  100% {
    text-shadow: 0 0 0px #777; /* Konečný stav: intenzivnější záře */
    opacity: 1;
  }
}

/* Popup overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: calc(100vh / 3); /* První třetina obrazovky */
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* Skrytý stav popup */
.popup-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Popup okno */
.popup {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    transform: translateY(-20px);
    animation: slideIn 0.6s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.popup p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
}

.popup-close {
    background: greenyellow;
    color: black;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.popup-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Ikona v popup */
.popup-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #667eea;
}
