html{
    background-color: #444444;
    scroll-behavior: smooth;
    color: #fff;
   }
  *{
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
  
    h1 {
      font-family: Oswald;
      font-size: 230%; 
      font-style: normal;
      text-transform: uppercase;
      color: #fff;
  
    }
    h2{ 
      font-family: Oswald;
      font-size: 30px;
      font-style: normal;
      font-variant: normal;
    }
    p{
        padding: 3%;
      font-family: Roboto;
      font-size: 145%;
      text-align: left;
    }
    a{
      text-decoration: none;
      color: #fff;
    }
   section li{
        padding-left: 2%;
        padding: 1%;
        font-family: Roboto;
        font-size: 165%;
        text-align: left;
     }
/* pozadí */
.bg1{ 
  background-size:cover; 
  height:100vh; 
  width:100%; 
  display:table; 
  background-attachment:fixed; 
  background-image:
  linear-gradient(rgba(44, 44, 44, 0.685), rgba(44, 44, 44, 0.5)),
  url("bg/bg4.png");
  } 
.bg2{ 
  background-size:cover; 
  height:100vh; 
  width:100%; 
  display:table; 
  background-attachment:fixed; 
  background-image:
  linear-gradient(rgba(44, 44, 44, 0.685), rgba(44, 44, 44, 0.5)),
  url("bg/bg5.jpeg");
  } 
  .textarea img{
    float: right; margin: 5px;text-align: justify;width: 400px; height: 350px; object-fit: cover;
  }
  .bg2 img{
    width: 600px; height: 400px; object-fit: cover; position: relative; float: left; top: 17%; margin: 5%; margin-left: 10%;
  }
  .bg2 section{
    position: relative; 
    top: 20%; 
    margin: 2%;
    text-align: center;
  }
  .bg2 section li{
    text-align: center;
  }
  
.bg3{ 
  background-size:cover; 
  height:100vh; 
  width:100%; 
  display:table; 
  background-attachment:fixed; 
  background-image:
  linear-gradient(rgba(44, 44, 44, 0.685), rgba(44, 44, 44, 0.5)),
  url("bg/bg2.jpg");
  } 
.bg4{ 
  background-size:cover; 
  height:100vh; 
  width:100%; 
  display:table; 
  background-attachment:fixed; 
  background-image: linear-gradient(rgba(44, 44, 44, 0.685), rgba(44, 44, 44, 0.5)), url(bg/main_bg.jpg);
  } 

.bg4 img{
  position: relative;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
}

/* header */
.header{
  width: 100%;
  height: 12%;
  z-index: 5;
  text-align: center;
  background:  #444444;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  position: relative;
  position: fixed;
  top: 0;
  overflow: hidden; 
}

/* footer */
.footer{
  width: 100%;
  z-index: 5;
  text-align: center;
  background:  #444444;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  position: relative;
  bottom: 0;
  overflow: hidden; 
}

.footer p{
  font-size: 90%;
  text-align: center;
  padding: 1%;
}

.grid{  
  display: grid;
  grid-template-columns: repeat(5, 2fr);
  gap: 10px;
}
  .grid a{  
      transition: all 0.3s ease-in-out;
  }
.grid :hover{
  font-size: 45px;
  transition: all 0.3s ease-in-out;
}
  
  /* text */
.textarea{
  width: 100%;
  min-height: 200px;
  padding: 1% 10% 1% 10%;
  background-color: #444444;
}
  .textarea h1{
    text-align: left;
    padding: 3%;
  }
  
.threecollumn section{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
}

/* animated text */
/* #region */
.box1{
    display: flex;
    flex-direction: column;
    top: 45%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    text-align: center;
    min-width: 500px;
  }
  .box1 h1{
    animation: slide-down 3s
  }
  .box1 p{
    width: 100%;
    animation: slide-up 3s
  }
  @keyframes slide-down{
    0%,
    20% {
      transform: translateY(-100%);
      opacity: 0;
    }
     
    70%,
    100% {
      transform: translateY(0%);
      opacity: 1;
    
    }
  }
  
  @keyframes slide-up{
    0%,
    20% {
      transform: translateY(100%);
      opacity: 0;
    }
     
    70%,
    100% {
      transform: translateY(0);
      opacity: 1;
    
    }
  }

 

 
  /* kartičky */
   /* #region */
   .layout-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
   h5
  {
    margin:0px;
    font-size:1.4em;
    font-weight:700;
    font-family: Oswald;
    font-size: 30px;
    color: #000;
  }
  
   .property-card
   {
    margin: 10px;
     height:18em;
     width:14em;
     display:-webkit-box;
     display:-ms-flexbox;
     display:flex;
     -webkit-box-orient:vertical;
     -webkit-box-direction:normal;
     -ms-flex-direction:column;
     flex-direction:column;
     position:relative;
     -webkit-transition:all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
     -o-transition:all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
     transition:all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
     border-radius:16px;
     overflow:hidden;
     box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
   }
   /* nejde to jinak a sedim na tom uz par hodin, takze tak */
   /* #region */
    .property-image-1
   {
    background-position: center;
     height:16em;
     width:14em;
     padding:1em 2em;
     position:Absolute;
     top:0px;
     -webkit-transition:all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
     transition:all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
     -o-transition:all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
     background-image:url('bg/g1.jpg');
     background-size:cover;
     background-repeat:no-repeat;
   }
   
   .property-image-2
   {
    background-position: center;
     height:6em;
     width:14em;
     padding:1em 2em;
     position:Absolute;
     top:0px;
     -webkit-transition:all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
     transition:all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
     -o-transition:all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
     background-image:url(bg/g2.png);
     background-size:cover;
     background-repeat:no-repeat;
   }
  
   .property-image-3
   {
    background-position: center;
     height:6em;
     width:14em;
     padding:1em 2em;
     position:Absolute;
     top:0px;
     -webkit-transition:all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
     transition:all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
     -o-transition:all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
     background-image:url(bg/g3.jpg);
     background-size:cover;
     background-repeat:no-repeat;
   }
  
   .property-image-4
   {
    background-position: center;
     height:6em;
     width:14em;
     padding:1em 2em;
     position:Absolute;
     top:0px;
     -webkit-transition:all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
     transition:all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
     -o-transition:all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
     background-image:url(bg/g4.jpg);
     background-size:cover;
     background-repeat:no-repeat;
   }
  
   .property-image-5
   {
    background-position: center;
     height:6em;
     width:14em;
     padding:1em 2em;
     position:Absolute;
     top:0px;
     -webkit-transition:all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
     transition:all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
     -o-transition:all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
     background-image:url(bg/g5.jpg);
     background-size:cover;
     background-repeat:no-repeat;
   }
  /* #endregion */
  
  
   
   /* Bottom Card Section */
   .property-description p{
    font-family: Roboto;
    font-size: 17px;
    color: #000;
  }
   
   .property-description
   {
     background-color: #ffffff;
     height:12em;
     width:14em;
     position:absolute;
     bottom:0em;
     transition:all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
     padding: 0.5em 1em;
     text-align:center;
   }
   
   /*Cards Hover*/
   
   /* Bože pomoc */
   /* #region */
    .property-card:hover .property-description
    {
      height:0em;
      padding:0px 1em;
    }
    .property-card:hover .property-image-1
    {
      height:18em;
    }
    .property-card:hover .property-image-2
    {
      height:18em;
    }
    .property-card:hover .property-image-3{
      height:18em;
    }
    .property-card:hover .property-image-4
    {
      height:18em;
    }
    .property-card:hover .property-image-5
    {
      height:18em;
    }
   /* #endregion */
   
  
  /* #endregion */
  .gallery{
    margin: 5px 100px 5px 100px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 10px;
  }
  
  .gallery img {
    width: 100%;
    transition: all 0.3s ease-in-out;
  }
  
  .gallery img:hover{
    width: 102%;
    margin: -2%;
  }
  


/* menu */
/* #region */
.wrapper{
  position: fixed;
  top: 0;
  left: -100%;
  height: 100%;
  width: 100%;
  background: rgb(30, 31, 30);
  flex: 2;
  justify-content: center;
  transition: all 0.6s ease-in-out;
  z-index: 999;
  }
      #active:checked ~ .wrapper{
      left:0;
    }
  .menu-btn{
    position: absolute;
    z-index: 1000;
    left: 20px;
    top: 20px;
    height: 50px;
    width: 50px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    }
    .menu-btn span,
    .menu-btn:before,
    .menu-btn:after{
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    left: 30%;
    width: 40%;
    border-bottom: 2px solid #000;
    transition: transform .6s cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    .menu-btn:before{
      transform: translateY(-8px);
    }
    .menu-btn:after{
      transform: translateY(8px);
    }

  .close {
      z-index: 999;
      width: 100%;
      height: 100%;
      pointer-events: none;
      transition: .6s;
  }
  #active:checked + .menu-btn span {
      transform: scaleX(0);
  }
  #active:checked + .menu-btn:before {
      transform: rotate(45deg);
    border-color: #fff;
  }
  #active:checked + .menu-btn:after {
      transform: rotate(-45deg);
    border-color: #fff;
  }
.wrapper ul{
  position: absolute;
  top: 60%;
  left: 50%;
  height: 90%;
  transform: translate(-50%, -50%);
  list-style: none;
  text-align: center;
}
.wrapper ul li{
  height: 10%;
  margin: 15px 0;
}

.wrapper ul li a{
  text-decoration: none;
  font-size: 30px;
  font-family: oswald;
  font-weight: 500;
  padding: 5px 30px;
  color: #fff;
  border-radius: 50px;
  line-height: 50px;
  margin: 5px 30px;
  opacity: 0;

}
.wrapper ul li a:after{
  position: relative;
  width: 100%;
  height: 100%;
  z-index: -999;
}
.wrapper ul li a:hover{
  color: #bfdbf7;
  padding-right: 20px;
  transition: all 0.5s ease;
}
input[type="checkbox"]{
  display: none;
  }
  .content{

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -999;
    text-align: center;
    width: 100%;
    color: #202020;
  }
  .content .title{
    font-size: 40px;
    font-weight: 700;
  }
  .content p{
    font-size: 35px;
    font-weight: 600;
  }

  #active:checked ~ .wrapper ul li a{
    opacity: 1;
  }
  
/* #endregion */
  @media (max-width: 768px){
    h1{
    font-size: 140%;
  }
  p{
    font-size: 100%;
  }
  .box1 h1{
    font-size: 140%;
  }
  .box1 p{
    font-size: 90%;
  }
  .box1{
    min-width:100% ;
  }
  .gallery{
    margin: 5px 10px 5px 10px;
  }
  .grid a{
   font-size: 20px;  
  }
   .grid :hover{
    font-size: 27px;
   }
   .menu-btn{
  top: 0px;
  left: 0px;
    line-height: 5px;
    font-size: 10px;
   }

   .bg4 img{
    width: 90%;
   }
   .bg2 img{
    width: 90%;
    margin: 5%;
   }
   .bg2 section li{
 text-align: center;
 font-size: 120%;
   }
   .bg2 section h1{
    text-align: center;
   }
}