*{
  margin: 0;
  padding:0;
  box-sizing: border-box;
}
html{
  scroll-behavior: smooth;
}
body {
  background-color: #37383c;
  color: white;
}
.about-title{
  font-size: 45px;
  margin-top: 3rem;
}
.about-him{
  font-size: 25px;
  margin-top: 10px;
  color: white;
  font-family: 'Georgia', serif;
  white-space: pre-wrap; 
  min-height: 150px;      
}
.Title{
  display: flex;                   
  justify-content: space-between; 
  align-items: center;            
  padding: 1.5rem;                
  border-bottom: 3px solid whitesmoke;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #37383c;
}
.head{
  font-size: 1.5rem;
  font-weight: bold;
}
.first-div{
  display: flex;
  margin-right: 1.5rem;
}
.menu{
  text-decoration: none;
  color: white;
  margin-left: 20px;
  font-size: 22px;
}
.titlespeak{
  font-size: 50px;         
  font-weight: 800;        
  margin-bottom: 1rem;
}
.pulse-animation{
  font-size: 30px;
}
.mainpage {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
  overflow: hidden;
}
.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.titlespeak {
  font-size: 50px;
  font-weight: 800;
  margin-bottom: 1rem;
}
.signature {
  font-size: 35px;
  font-family: "Dancing Script", cursive;
  font-weight: 400;
  font-style: normal;
}
.About{
  padding: 2rem;          
  max-width: 56rem;        
  margin-left: auto;       
  margin-right: auto;      
  text-align: center;
  padding-top: 50px;
}
.timeline{
  font-size: 2.25rem;        
  font-weight: 600;          
  text-align: center;        
  margin-bottom: 3rem;
  margin-top: 3rem;
}
.lastpage{
  padding: 2rem;            
}
.zajimavosti{
  font-size: 2.25rem;        
  font-weight: 600;          
  text-align: center;        
  margin-bottom: 2rem;
}
.distribution{
  display: grid;                      
  grid-template-columns: repeat(1, 1fr); 
  gap: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;      
  justify-content: center;
  padding: 2rem;
}
.box{
  border: 1px solid #ccc;        
  padding: 1rem;                  
  border-radius: 0.5rem;          
  transition: all 0.3s ease; 
  background-color: #8e8d8d; 
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  color: white;
  max-width: 40rem; 
  width: 100%;
}
.box:hover{
  transform: scale(1.05); 
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); 
}
.box2{
  font-size: 1.5rem;      
  font-weight: bold;      
  margin-bottom: 0.5rem;
}
.text{
  color: #cbd5e0;
}
.galerie{
  padding: 2rem;
  border-bottom: 1px solid whitesmoke;
}
.titlegalerie{
  font-size: 2.25rem;     
  font-weight: 600;       
  text-align: center;     
  margin-bottom: 2rem;
  margin-top: 2rem;
}
.third-div{
   display: grid;                         
  grid-template-columns: repeat(2, 1fr); 
  gap: 1rem;  
  display: flex;
  align-items: center;
  justify-content: center;                           
}
.img1{
  height: 250px;
  width: 750px;
  background-image: url(obrazky/churchill.jpg);
  background-size: contain;         
  background-repeat: no-repeat;     
  background-position: center;
}
.img2{ 
  height: 250px;
  width: 750px;
  background-image: url(obrazky/03177818.jpeg);
  background-size: contain;         
  background-repeat: no-repeat;     
  background-position: center;
}
.img3{
  height: 250px;
  width: 750px;
  background-image: url(obrazky/rodina.jpg); 
  background-size: contain;        
  background-repeat: no-repeat;     
  background-position: center;
  
}
.img4{
  height: 250px;
  width: 750px;
  background-image: url(obrazky/setkani.jpg); 
  background-size: contain;         
  background-repeat: no-repeat;     
  background-position: center;
}
.time{
  padding-top: 4rem;          
  padding-bottom: 2rem;       
  padding-left: 1rem;         
  padding-right: 1rem;        
}
.timeline-div{
  display: flex;                     
  align-items: flex-start;           
  justify-content: center;       
  min-width: max-content;            
  padding-left: 1rem;                
  padding-right: 1rem;               
  padding-bottom: 3rem;              
  border-bottom: 1px solid whitesmoke;  
  gap: 3rem;
}
.timelaps{
  font-size: 1.25rem;     
  font-weight: 600;       
  margin-top: 1rem;
}
.time-text{
  color: #9ca3af;          
  font-size: 0.875rem;     
  margin-top: 0.5rem;
}
.process {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 10rem;
  position: relative;
}
.year {
  background-color: #f59e0b;
  color: #000000;
  border-radius: 9999px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.year:hover {
  transform: scale(1.2);
}
.process::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 100%;
  height: 2px;
  width: 0;
  background-color: #f59e0b;
  transition: width 0.4s ease;
}
.process.active::before {
  width: 4rem;
}
.process:last-child::before{
  display: none;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  width: 100%; 
  height: 250px;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}
.gallery-item .overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 1rem;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  opacity: 0.5;
}
.gallery-item:hover .overlay-text {
  transform: translateY(0);
}
nav ul li a i {
  margin-right: 6px;
}
.home-icon {
  display: flex;
  align-items: center;
  gap: 6px;
}
.container {
  display: flex;
  gap: 2rem;
  border: 2px solid #000;
  border-radius: 15px;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
  height: 400px;
}
.image-box {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.image-placeholder1 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  width: 400px;
  height: 250px;
  background-image: url(obrazky/projev.jpg);
  background-size: contain;         
  background-repeat: no-repeat;     
  background-position: center;
  border-radius: 30px;
}
.image-placeholder2 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  width: 400px;
  height: 250px;
  background-image: url(obrazky/cesty\ a\ mise2.jpg);
  background-size: contain;         
  background-repeat: no-repeat;     
  background-position: center;
}
.image-placeholder3 {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    width: 400px;
    height: 250px;
    background-image: url(obrazky/cesty\ a\ mise.jpg);
    background-size: contain;         
    background-repeat: no-repeat;     
    background-position: center;
    border-radius: 30px;
}
.text-box {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  font-size: 18px;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}
.modal-content {
  background: url(obrazky/paper-fibers.png), #fdfaf3;
  background-blend-mode: multiply;
  color: #1c1c1c;
  font-family: 'Georgia', serif;
  margin: 10% auto;
  padding: 2rem;
  max-width: 500px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
  max-width: 900px;
  width: 90vw;
  height: 460px;
}
.close {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #444;
}
.box {
  cursor: pointer;
  transition: transform 0.2s ease;
}
.box:hover {
  transform: scale(1.02);
}
.window-text{
color: #000;
font-size: 17px;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.pulse-animation {
  animation: pulse 2.5s ease-in-out infinite;
}
@media (max-width: 767px) {
  .Title {
    align-items: flex-start;
    padding: 1rem;
  }
  .menu {
    font-size: 18px;
    margin-left: 0;
    margin-top: 0.5rem;
    margin-left: 14px;
  }
  .about-title {
    font-size: 32px;
    text-align: center;
  }
  .about-him {
    font-size: 18px;
    text-align: justify;
  }
  .mainpage {
    padding: 1rem;
    text-align: center;
  }
  .titlespeak {
    font-size: 32px;
  }
  .signature {
    font-size: 24px;
  }
  .container {
    flex-direction: column;
    height: auto;
    padding: 1rem;
  }
  .image-box, .text-box {
    width: 100%;
  }
  .image-placeholder1, .image-placeholder2, .image-placeholder3 {
    width: 100%;
    height: 325px;
    background-size: cover;
    border-radius: 15px;
  }
  .modal-content {
    height: 685px;
    width: 750px;
    max-width: 100%;
    font-size: 16px;
  }
  .window-text {
    font-size: 16px;
    line-height: 1.4;
  }
  .timeline-div {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .process {
    flex: none !important;
    width: 100% !important;
    padding: 15px !important;
    border-left: none !important; /* vypnuto */
    position: relative;
  }
  .process:not(:last-child) {
    margin-bottom: 20px !important;
  }
  .third-div {
    flex-direction: column;
    gap: 1rem;
  }
  .img1, .img2, .img3, .img4 {
    width: 100%;
    height: 180px;
  }
  .box {
    max-width: 100%;
    padding: 1rem;
  }
  .box2 {
    font-size: 1.25rem;
  }
  .pulse-animation {
    font-size: 22px;
  }
  .gallery-item:hover .overlay-text{
    margin-bottom: 70px;
    width: 300px;
    margin-left: 200px;
  }
}