body{
    background-color: rgba(247,245,238,0.75);
    font-family: Roboto, sans-serif;
    margin:0 auto;
}


/*SOCIALS*/

.socials{
  position: fixed;
  top:-0.55vw;
  z-index: 25;
  text-align: left;
  width:20vw;
}

.socials li{
  display: inline-block;
}

.socials li a{
  display: inline-block;
  font-size: clamp(1em, 1.7vw, 1.5em);
  color: #006f33;
  padding: 0.5vw 2vw;
}

.socials li a:hover{
  color: #bacf1a;
}

.socials li a:target{
  color: #006f33;
}


/*HLAVNE MENU*/

.fa-bars{
  font-size: 2em;
  color: #006f33;
  float: left;
  line-height: 80px;
  margin-left: 30px;
  cursor: pointer;
  display: none;
}

#check {
  display: none;
}

nav{
    width:100%;
    position: fixed;
    top:0;
    z-index:20;
    background:#e0d7c3;
}

ul{
    padding: 1.7vw;
    list-style: none;
    text-align: right;
    margin:0;
}

a{
    text-decoration: none;
}

nav ul li{
    display: inline-block;
    font-size: clamp(1em, 1.7vw, 1.5em);
    font-weight: 600;
    margin:0;
}

ul li:last-child{
    margin-right: 5.4%;
}

.menuobject a{
    color: #006f33;
    padding:1.7vw 1.5vw;
    --c: #006f33; /* the color */
    background: 
      linear-gradient(90deg,#004D40 50%,var(--c) 0) calc(100% - var(--_p,0%))/200% 100%,
      linear-gradient(var(--c) 0 0) 0% 100%/var(--_p,0%) 100% no-repeat;
    -webkit-background-clip: text,padding-box;
            background-clip: text,padding-box;
    transition: 0.5s;
  }
  .menuobject a:hover{
    --_p: 100%;
    color:#e0d7c3;
  }
  .menuobject a:target{
    --_p: 100%;
    color:#e0d7c3;
  }


/*TITULKA STRANKY*/




  .main_img{
    margin:0 auto;
    height: 40vw;
    background:#e0d7c3;
    background: url("../img/cut_aloe.jpg") no-repeat;
    background-size: contain;
    background-position-x: 4.95vw;
    width:100%;
    position:relative;
    box-shadow: #333 0px 15px 37px -7px;
  }

  .main_info{
    text-align: center;
    color:#333;
    background-color: rgba(224,215,195,1);
    width:38.75vw;
    height:20vw;
    position:relative;
    left:55.2vw;
    top:12vw;
    border-radius: 2vw;
    box-shadow: #8a9a5b 10px 10px 25px -10px;
  }

  .main_info h1{
    font-size: clamp(2em, 3vw, 4em);
    margin:0;
    padding-top: 5.5vw;
  }

  .main_info h2{
    font-size: clamp(1em, 2vw, 2em);
    margin:0;
    padding: 2.5vw 0 5.5vw;
  }

  /*CONTENT*/

  .content{
    display: grid;
    margin:0 auto;
    width:90%;
    background-color: #8a9a5b ;
    height: 32vw;
  }

.content:nth-of-type(4),
.content:nth-of-type(6){
    background-color: #f7f5ee;
  }

/*Roller*/
  main .content:nth-of-type(2){
    grid-template-columns: 1fr 1fr;
  }

  main .content:nth-of-type(2) img{
    height: 100%;
    width: 100%;
    object-fit: contain;
  }

  .name{
    position: relative;
    text-align: center;
  }


  .content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
  }
  
  .name img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
  }
  
  .name_exp {
    position: absolute;
    text-align: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    line-height: 4vw;
    color: white;
    margin: 0;
    box-sizing: border-box;
    font-size: clamp(1em, 2vw, 2em);
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.75s ease;
    z-index: 10;
    pointer-events: none;
  }

  .name_exp strong{
     font-size: clamp(2em, 3vw, 4em);
     text-transform: uppercase;
     letter-spacing: 0.05em;
  }
  
  .name:hover .name_exp {
    opacity: 1;
    transform: translateX(0);
    pointer-events: none;
  }

  .name_exp p{
    margin:0;
    height:100%;
    padding-top: 3.3em;
    background-color: #bacf1a;
    opacity: 0.85;
    font-weight: 900;
  }

  .name:nth-child(1) .name_exp{
    background: url("../img/arabic.png") no-repeat;
    background-size: contain;
    background-size: 300%;
    background-position: center;
    color:#333;
    margin-left: 44.5vw;
  }

  .name:nth-child(2) .name_exp{
    background: url("../img/greek.png") no-repeat;
    background-size: contain;
    background-size: 300%;
    background-position: center;
    color:#bacf1a;
    margin-left: -44.5vw;
  }

  .name:nth-child(2) .name_exp p{
    background-color: #333;
  }

  .nadpis{
    text-align: center;
    margin: 3vw auto;
    font-size: clamp(2em, 3vw, 4em);
  }

  /*CONTENT - Timeline*/

  .wrap{
    width:100%;
    height:38vw;
    box-shadow: #333 0px 0px 37px 0px;
  }

  .wrap .content{
    width:100%;
  }

  #timeline {
    display: flex;
    background-color: #e0d7c3;
    height:100%;
  }

  .timeline-item {
    transform: translate3d(0, 0, 0);
    position: relative;
    width: 35%;
    height: 40vw;

    color: #333;
    overflow: hidden;
    transition: width 0.5s ease;
    
    &:before, &:after {
      transform: translate3d(0, 0, 0);
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
    }
  
    /*&:after {
      background: transparentize(red, 0.15);
      opacity: 1;
      transition: opacity 0.5s ease;
    }*/
  
    &:before {
      background: linear-gradient(to bottom, rgba(186,207,26,0) 0%,rgba(186,207,26,0.5) 75%);
      z-index: 1;
      opacity: 0;
      transform: translate3d(0, 0, 0) translateY(50%);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }
  
    &:hover {
      width: 57% !important;
      
      &:after {
        opacity: 0;
      }
  
      &:before {
        opacity: 1;
        transform: translate3d(0, 0, 0) translateY(0);
        transition: opacity 1s ease, transform 1s ease 0.25s;
      }

      .timeline-content {
        opacity: 1;
        top:50%;
        transform: translateY(0);
        transition: all 0.75s ease 0.5s;
      }
  
      .timeline-bg {
        opacity: 0.3;
        transform: translateY(0);
        transition: all 0s ease 0s;
      }
    }
  }
  
  .timeline-content {
    transform: translate3d(0, 0, 0) translateY(25px);
    position: relative;
    z-index: 1;
    text-align: center;
    top: 50%;
    opacity: 0;
    
    h1{
      text-transform: uppercase;
      color: #333;
      font-size: 1.44rem;
      font-weight: normal;
      margin: 0;
    }

    ul{
      line-height: 2em;
      padding-top: 0.5em; 
    }
    p{
      line-height: 2em; 
    }
  }
  
  .timeline-year {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    border-top: 1px solid #f7f5ee;
    border-bottom: 1px solid #f7f5ee;
    margin-bottom: 1vw;
    font-weight: 700;
    
    p {
      font-size: 1.728rem;
      margin:1.1rem;
    }
    ul {
      font-size: 1.728rem;
      margin:1.1rem;
    }
  }
  
  .timeline-bg {
    transform: translate3d(0, 0, 0);
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0;
    background-size: cover;
    background-position: center center;
    transition: filter 0.5s ease;
    filter: grayscale(100%);
  }

  .about{
    text-align: left;
    list-style: circle;
  }
  .about li{
    margin-left: 1em;
    padding-left: 1em;
  }
  .about ul{
    list-style: square;
    text-align:left;
    margin: 0;
    margin-left:0em;
    padding:0;
  }

.egypt{
  background: url(../img/egypt.jpg) no-repeat;
  background-size: cover;
  background-position: 47%;
  opacity:0.1;
}
.greece{
  background: url(../img/Dioscurides.jpg) no-repeat;
  opacity:0.1;
}
.sailors{
  background: url(../img/columbus.jpg) no-repeat;
  opacity:0.1;
}

  /*Náš BLOG*/
.finish{
    display: inherit;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #333;
    padding-bottom: 4vw;
    height: 40vw;
}

.finish a{
    display: inline-block;
    margin: 0 auto;
    font-size: clamp(2em, 2.5vw, 3em);
    font-weight: 600;
    text-transform: uppercase;
    width: 50%;
    background-color: #e0d7c3;
    padding: 0.2em;
    border-radius: 1em;
}

.finish a{
  text-decoration: none;
  color:#333;
  width:75%;
  padding:1em;
}

.finish a:hover{
  background: #bacf1a;
  color:#333;
}

.finish p{
  line-height: 2em;
  font-size: clamp(1.5em, 1.2vw, 2.5em);
  width:95%;
  margin: 4vw auto;
}

.finish article{
  text-transform: uppercase;
  font-weight: 600;
  margin: 1em auto 0.2em;
  width:60%;
  text-align: center;
}

.finish ul{
  text-transform: none;
  font-weight: 400;
  list-style: circle;
  padding:0;
  margin:0 auto;
  text-align: left;
  line-height: 2em;
}

.finish >ul{
  max-width:50%;
  padding-top: 1vw;
  margin: 0 auto;
  font-size: clamp(0.75em, 1vw, 2em);
}

.dot li{
  margin-left: 3em;
  list-style: square;
}

/*Cookie banner*/
#cookie-banner {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: #f7f5ee;
      color: #333;
      padding: 1rem;
      border-top: 1px solid #ccc;
      font-size: 14px;
      z-index: 9999;
      display: none;
      box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
      text-align: center;
    }
    #cookie-banner p {
      margin: 0 0 0.5rem 0;
    }
    #cookie-banner label {
      display: block;
      margin: 0.3rem 0 0.3rem 20%;
      text-align: left;
    }
    #cookie-banner button {
      margin: 0.4rem 0.4rem 0 0;
      padding: 0.4rem 1rem;
      font-size: 14px;
      cursor: pointer;
    }

#cookie-banner button{
  text-align: center;
  color:#333;
  background-color: rgba(224,215,195,1);
  display: inline-block;
  position: relative;
  border-radius: 2vw;
  font-size: clamp(0.8em, 1vw, 2em);
  padding: 1vw 3vw 1vw 3vw;
  font-weight: 600;
}

#cookie-banner button:hover{
  color:white;
  background-color: #004D40;
  box-shadow: #004d40 10px 10px 25px -10px;

}



/*Footer*/

footer{
  margin-bottom: 95px;
}

footer p{
  width:95%;
  margin:0 auto;
  text-align: center;
  font-size: clamp(0.8em, 0.7vw, 0.9em);
  font-weight: 600;
  color: #888;
}


/*RESPONSIVE*/

@media screen and (max-width:1300px){
  .timeline-item:hover{
    .timeline-content {
      opacity: 1;
      top:30%;
      transform: translateY(0);
      transition: all 0.75s ease 0.5s;
    }
    .timeline-year {
      opacity: 1;
      top:15%;
      transition: all 1s;
    }
}
}

@media screen and (max-width:1100px){
  .timeline-item:hover{
    .timeline-content {
      opacity: 1;
      top:20%;
      transform: translateY(0);
      transition: all 0.75s ease 0.5s;
    }
    .timeline-year {
      opacity: 1;
      top:8%;
      transition: all 1s;
    }
}
.finish p br{
  display: none;
}

.finish p{
  line-height: 2em;
  font-size: clamp(1.1em, 1.2vw, 2.5em);
  margin:2vw auto;
}

.finish >ul{
  max-width: 60%;
  margin: 0 auto;
}

.egypt{
  background: url(../img/egypt.jpg) no-repeat;
  background-size: cover;
  background-position: center;
  opacity:0.1;
}
.greece{
  background: url(../img/Dioscurides.jpg) no-repeat;
  background-size: cover;
  background-position: center;
  opacity:0.1;
}
.sailors{
  background: url(../img/columbus.jpg) no-repeat;
  background-size: cover;
  background-position: center;
  opacity:0.1;
}
.finish a{
    font-size: clamp(1.5em, 2vw, 3em);
}

.socials{
  width:20vw;
}

 .content{
  height:40vw;
 }

}

@media screen and (max-width:960px){
  .timeline-item:hover{
    .timeline-content {
      opacity: 1;
      top:12%;
      transform: translateY(0);
      transition: all 0.75s ease 0.5s;
    }
    .timeline-year {
      opacity: 0;
      border: none;
      top:8%;
      transition: all 1s;
    }
}

}

@media screen and (max-width:900px){
  .timeline-item:hover{
      width: 90% !important;
}

}

@media screen and (max-width:860px){
  .timeline-item:hover{
      width: 100% !important;
}

}

@media screen and (max-width:830px){
  .wrap{
    display: none;
  }
  .nadpis{
    display: none;
  }
}

@media screen and (max-width:790px){
  .finish{
    height: 100vw;
    max-height:40vh;
    font-size:0.8em;
  }

  .socials{
    width:25%;
  }
}


@media screen and (max-width:700px){
  .content{
    width:100%
  }
  .main_img{
    background-size: cover;
    background-position-x: 0vw;
    background-position: center;
    height: 60vw;
  }
  .main_info{
    height:100%;
    top:0;
    border-radius: 0;
    padding: 0 1em;
  }
  .main_info h1{
    padding-top: 60%;
  }

  .socials{
    width:100%;
    height:60px;
    bottom:0;
    top:initial;
    font-size: 3em;
    background-color: #e0d7c3;
    margin:0 auto;
    padding:0.3em 0;
    text-align: center;
  }

  .socials li{
    width:30%;
    text-align: center
  }

  ul li:last-child{
    margin:0;
  }

  .menu{
    font-size: 1.2em;
    margin:0 auto;
    padding: 0.6em;
    text-align: center;
  }

  .menuobject a{
    padding-left: 1em;
    padding-right: 1em;
  }

  .name:nth-child(1) .name_exp{
    margin-left: 50vw;
  }
  .name:nth-child(2) .name_exp{
    margin-left: -50vw;
  }
  .name_exp{
    line-height: 1.9em;
  }
  .finish{
    max-height: 50vh;
  }

}

@media screen and (max-width:640px){
  .fa-bars{
  display: block;
}
  .menu {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #bacf1a;
    top: 80px;
    left: -110%;
    text-align: center;
    transition: all .5s;
    padding:0;
  }
  .menu li {
    display: block;
    line-height: 30px;
  }
  .menu li a {
    font-size: 2.55em;
    display: inline-block;
    padding: 0.7em 0;
    width:100%
  }

    #check:checked~ul {
    left: 0;
  }
  .menuobject:last-child{
    margin-right: 0;
  }
}


@media screen and (max-width:600px){
  .finish{
    max-height: 55vh;
  }
}

@media screen and (max-width:550px){
  .dot{
    display:none;
  }

  .socials li{
    width:25%;
  }

  .name_exp p{
    padding-top: 1em;
  }

}

@media screen and (max-width:480px){
  .finish article{
    width:90%;
  }
}

@media screen and (max-width:450px){
  .name_exp{
    display: none;
  }
}