@font-face {
  font-family: 'Roboto';
  src: url('fonts/subset-Roboto-Regular.woff2') format('woff2'),
       url('fonts/subset-Roboto-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
    font-family: 'Play';
    src: url('fonts/Play-Bold.woff2') format('woff2'),
        url('fonts/Play-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/*css reset*/
* {
    margin: 0;
    padding: 0;
    text-decoration: none;
  }

  html, body {
    width: 100%;
    overflow-x: hidden;
}

.no-scroll
{
    overflow: hidden;
    height: 100vh;
}

 html
  {
    scroll-behavior: smooth;
  }
  
  body{
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
    background-color: #333333;
    color: #FFFFFF;
  }
  

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #AD3C9B;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 12;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.5);
  transition: 0.3s;
}
  

/*header start*/
  
header {
    align-items: center;
    background: linear-gradient(to right, #AD3C9B 35%, #00A39A 65%);
    padding: 10px 20px;
}

h1
{
    font-size:1.25rem;
}

.menu-header
{
  width: 90%;
  margin-left: 5%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.prvek
{
  flex: 1;
}
.prvek:nth-child(1)
{
  text-align: left;
}

.prvek:nth-child(2)
{
  text-align: center;
}

.prvek:nth-child(3)
{
  text-align: right;
}

.logo-header
{
  font-size: 2rem;
  font-family: 'Play', sans-serif;
  color:#FFFFFF;

}


/*menu*/

.logo-menu
{
  font-size: 2.25rem;
  font-family: 'Play', sans-serif;
  color: #818181;

}

.logo-menu:hover
{
     transition: 0.3s;
    background: linear-gradient(to right, #AD3C9B  35%, #00A39A  65%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.overlay {
    height: 0;
    width: 100%;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-x: hidden;
    transition: 0.3s;
}

.overlay-content {
    position: relative;
    top: 35%;
    width: 100%;
    text-align: center;
}

.overlay a {
    padding: 8px;
    font-size: 1.5rem;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.overlay #aktualni-stranka
{
    font-weight:bold;
    color: #ffffff;
}

.overlay a.ruzova:hover, .overlay a.ruzova:focus {
    color:  #AD3C9B;
}

.overlay a.modra:hover, .overlay a.modra:focus {
    color:  #00A39A;
}

.overlay .closebtn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
}

.menu-icon {
    font-size: 2.5rem;
    cursor: pointer;
}

/*header end*/


/*gallery start*/

.gallery-container {
            flex-direction: column;
            align-items: center;
            padding-left:5%;
            padding-right:5%;
            padding-top:1rem;
            padding-bottom:1rem;
            column-count: 1;
            column-gap: 10px;
            width: 90%;
        }

.photo {
            display: inline-block;
            width: 100%;
            margin-bottom: 5px;
        }

        .photo img {
            width: 100%;
            height: auto;
            display: block;
        }
        
        .photo img:hover {
            cursor:pointer;
        }
        
.modal {
  display: none; 
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 11;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.modal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  max-height: 90%;
  gap: 15px;
}

.modal-content {
  width: calc(100vw - 10px); 
  max-width: calc(100vw - 10px);
  max-height: 75vh; 
  object-fit: contain;
  box-shadow: 0 0 15px rgba(0,0,0,0.8);
border-radius: 5px;
}


#modal-caption {
  color: white;
  font-size: 1rem;
}

.modal-controls {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 5px;
}

.modal-prev, .modal-next {
  cursor: pointer;
  color: white;
  font-size: 2rem;
  padding: 8px 16px;
  border-radius: 0.75rem;
  transition: 0.3s;
}

.modal-prev:hover, .modal-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
}

/*gallery end*/
        

/*footer start*/

footer {
  position: static;
 box-shadow: 0 -10px 5px #00A39A;
}

#footer-logo-posun
{
    margin-top:1rem;
}
.logo
{
  font-size: 2rem;
  font-family: 'Play', sans-serif;
  color:#FFFFFF;

}

.logo:hover
{
    transition:0.3s;
   background: linear-gradient(to right, #AD3C9B  35%, #00A39A  65%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}



.footer-bottom p {
  line-height: 28px;
  font-size: 1rem;
}

.socials {
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 1rem 0 1rem 0;
}

.socials li {
  margin: 0 5px;
}

.socials li img {
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 1px;
  width: 3rem;
}

.socials li img:hover {
  border: 2px solid #FFFFFF;
  cursor: pointer;
  transition: 0.3s;
}

li a {
  text-decoration: none;
  color: white;
}

.footer-menu {
  margin-bottom: 20px;
}

.footer-menu ul {
  display: flex;
  justify-content: center;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-menu ul li {
  display: block;
}

.footer-menu ul li a
{
  color: #ffffff;
  font-size: 1.125rem;
  border: 1.5px;
  border-radius: 0.75rem;
  padding: 0.25rem 0.5rem 0.25rem  0.5rem;
}

.footer-menu ul li a.modry:hover {
  color: #ffffff;
  background: #00A39A;
  border: none;
  transition: 0.3s;
}

.footer-menu ul li a.ruzovy:hover {
  color: #ffffff;
  background: #AD3C9B;
  border: none;
  transition: 0.3s;
}

.footer-bottom {
  text-align: center;
  background: #000000;
}

/*footer end*/

 @media screen and (min-width: 474px) {
            .gallery-container {
                column-count: 2;
            }

.modal-content {
    max-height: 80vh;
  }
            
.footer-menu ul 
  {
    flex-direction: row;
    gap: 0.5rem;
  }
            
 }
            
@media screen and (min-width: 822px) {
            .gallery-container {
                column-count: 3;
            }
            
            .modal-content {
    max-height: 85vh;
  }
  
  .modal-content {
    max-height: 85vh;
    max-width: 90%;
  }
  
  .modal-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px; 
    margin-top: 0;
  }

         
        }
            
            @media screen and (min-width:1282px)
            {
                
                .modal-content {
    max-height: 90vh;
  }
            }