:root{
    --yellow-main: #f8b101;
    --yellow-main-visibility: #f8b20173;
    --yellow-light: #f8b20131;
    --black--main: #2b2a28;
    --black--main-visibility: #2b2a281e;
    --black--main-visibility-darker: #2b2a282e;
    --black-visibility: #50505081;
    --black-visibility-darker:#40404081;
    --white-main: rgb(245, 245, 245);
    --main-font: 'Poppins', sans-serif;
}
html{
  scroll-behavior: smooth;
}
body{
    margin: 0;
    padding: 0;
}
h1{
  font-family: var(--main-font);
  margin: 0;
  padding: 40px 0px 0px 20px;
  color: var(--black--main);
  text-shadow: 2px 1px 3px rgba(0,0,0,0.6);
  font-size: 4rem;
}
h2{
  font-family: 'Nunito', sans-serif;
  color: var(--yellow-main);
  font-weight: 800;
  font-size: 20px;
  line-height: 30px;
  /* border-bottom: 1px solid black; */
  text-shadow: 2px 1px 3px rgba(0,0,0,0.5);
  margin: 0;
  margin-bottom: 10px;
  text-align: left;
  /* text-shadow: rgb(0, 0, 0) 1px 0px 0px, rgb(0, 0, 0) 0.540302px 0.841471px 0px, rgb(0, 0, 0) -0.416147px 0.909297px 0px, rgb(0, 0, 0) -0.989992px 0.14112px 0px, rgb(0, 0, 0) -0.653644px -0.756802px 0px, rgb(0, 0, 0) 0.283662px -0.958924px 0px, rgb(0, 0, 0) 0.96017px -0.279415px 0px; */
}
p{
  font-family: 'Nunito', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-align: left;
  margin: 0px;
  margin-bottom: 4px;
  letter-spacing: 2px;
}
/*MENU*/
.menuu{
    width: 100%;
    display: grid;
    grid-template-columns: 3fr 2fr;
    position: fixed;
    height: 70px;
    background-color: rgba(0, 0, 0, 0.058);
    z-index: 20;
}
label{
  display: none;
}
.links{
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  
}
.links a {
  text-decoration: none;
  color: var(--yellow-main);
  font-family: var(--main-font);
  text-shadow: rgb(43, 42, 40) 1px 0px 0px, rgb(43, 42, 40) 0.540302px 0.841471px 0px, rgb(43, 42, 40) -0.416147px 0.909297px 0px, rgb(43, 42, 40) -0.989992px 0.14112px 0px, rgb(43, 42, 40) -0.653644px -0.756802px 0px, rgb(43, 42, 40) 0.283662px -0.958924px 0px, rgb(43, 42, 40) 0.96017px -0.279415px 0px;
}
.links a:hover {
  border-bottom: 1px solid var(--yellow-main);
  transition: all 1s ease-in-out;
}  
.logo{
   margin-left: 10px;
   margin-top: 5px;
}
.text{
  max-width: 300px;
  text-align: center;
}
.text p{
  line-height: 20px;
}

.home{
    background-image: url(/img/IMG_20231004_200532.jpg);
    background-position: center;
    background-size: cover;
    height: 100vh;
    width: 100%;
    position: relative;
}
.services{
  /* width: 20vw; */
  height: auto;
  background-color: var(--yellow-main);
  top: 25%;
  position: absolute;
}
.services h1{
  color: var(--black--main);
  text-align: center;
  padding-top: 10px;
  font-size: 1.9rem;
}
.services ul{
  font-family: var(--main-font);
  font-weight: bold;
  line-height: 16px;
  font-size: 18px;
  text-transform: uppercase;
  padding-left: 0;
  padding-right: 15px;
  
}
.services ul li{
  margin-top: 30px;
  margin-left: 10px;
  text-shadow: 2px 1px 3px rgba(0,0,0,0.5);
  list-style-type: none;
  animation: textmove forwards ease-in-out;
}
.services ul li:last-child{
  padding-bottom: 25px;
}
.services .anmdel1{
  animation-duration: 2s;
}
.services .anmdel2{
  animation-duration: 3s;
}
.services .anmdel3{
  animation-duration: 4s;
}
.anmdel4{
  animation-delay: 4s;
}


.mechanizace{
  height: auto;
  width: 100%;
  background-color: var(--black--main);
}
.mechanizace h1{
  text-align: center;
  padding: 50px;
  color: var(--yellow-main);
}
.stroje{
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 80%;
  height: 300px;
  background-color: var(--black-visibility);
  margin: 0 auto;
  align-items: center;
}
.strojecont{
  height: 300px;
}
.stroje2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 80%;
  height: 300px;
  background-color: var(--black-visibility-darker);
  margin: 0 auto;
  align-items: center;
}
.stroj{
  height: 200px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}
.stroj .photo{
  box-shadow: 5px 5px 18px -5px rgba(0,0,0,0.75);
  height: 200px;
  animation: imgmove 1.5s ease-in-out;
}
.stroj .photo:hover{
  transform: scale(1.1);
  transition: all 0.5s ease-in-out;
}
.imgmove{
  animation: imgmove 1.5s ease-in-out;
}
.stroj .text{
  width: 228px;
  animation: imgmove 1.5s ease-in-out;
  color: white;
}
/*AFTERSAVE*/
.auta{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  padding-top: 100px;
  
}
.daf{
  height: 500px;
  width: 400px;
  background-color: rgba(0, 0, 0, 0.047);
  display: flex;
  flex-direction: column;
  align-items: center;

}
.daf .photo{
  box-shadow: 5px 5px 18px -5px rgba(0,0,0,0.75);
  height: 200px;
  margin-top: -40px;
}
.volvo{
  height: 500px;
  width: 400px;
  background-color: rgba(0, 0, 0, 0.047);
  display: flex;
  flex-direction: row;
  align-items: center;

}
.volvo .photo{
  box-shadow: 5px 5px 18px -5px rgba(0,0,0,0.75);
  height: 200px;
  margin-top: -40px;
}
.tatra{
  height: 500px;
  width: 400px;
  background-color: rgba(0, 0, 0, 0.047);
  display: flex;
  flex-direction: column;
  align-items: center;

}
.tatra .photo{
  box-shadow: 5px 5px 18px -5px rgba(0,0,0,0.75);
  height: 200px;
  margin-top: -40px;
}
svg{
  color: var(--yellow-main);
}
/*REFERENCE*/
.reference{
  width: 100%;
  background-color: var(--black--main);
  margin: 0 auto;
  /* background-image: url(/img/IMG_20231004_200532.jpg); */
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
.reference h1{
  text-align: center;
    padding: 50px;
    color: var(--yellow-main);
}
.conty{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  padding-bottom: 100px;
  
}
.box1,
.box2,
.box3{
  width: 80%;
  height: 300px;
  background-color: #50505081;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-sizing: content-box;
}
.box1 .text,
.box2 .text,
.box3 .text{
  padding-left: 70px;
  width: 50%;
  max-width: fit-content;
}
.box1 h2,
.box2 h2,
.box3 h2{
  padding-bottom: 20px;
}
.box1 .photo,
.box2 .photo,
.box3 .photo{
  width: 50%;
}
.box2{
  justify-content: flex-start;
}
.box1 p,
.box2 p,
.box3 p{
  color: rgb(255, 255, 255);
  font-size: 13px;
  line-height: 18px;
  font-weight: bold;
}
.box1{
  /* border-top: 3px solid var(--yellow-main); */
  border-left: 3px solid var(--yellow-main);
  /* border-right: 3px solid var(--yellow-main); */
}
.box2{
  /* border-left: 3px solid var(--yellow-main); */
  border-right: 3px solid var(--yellow-main);
}
.box3{
  border-left: 3px solid var(--yellow-main);
}
/* KONTAKTY */
.kontcont{
  width: 80%;
  height: 500px;
  background-color: var(--white-main);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 3px solid var(--yellow-main) ;
}
.kontcentr{
  display: flex;
  justify-content: center;
  
}

.kontakt{
  background-color: var(--black--main);
  display: flex;
  flex-direction: row;
  justify-content: center;
  
}
.cont{
  display: flex;
  width: 80%;
  flex-direction: column;
  /* background-color: var(--black-visibility-darker); */
  padding-bottom: 30px;
}
.cont h1{
  text-align: center;
  padding: 50px;
  color: var(--yellow-main);
  display: flex;
  justify-content: center;
}
.contacts{
  display: grid;
  grid-template-columns: 1fr 3fr;
  align-items: center
}
.main{
  display: flex;
  flex-direction: column;
  padding-left: 50px;
}
.main h2,
.main p{
  padding-left: 13px;
  padding-bottom: 10px;
}
.main p{
  color: white;
  font-size: 13px;
    line-height: 18px;
    font-weight: bold;
}
/* .telephone::before{
  display: inline-block;
  content: "";
  width: 50px;
  height: 50px;
  background-color: var(--black--main);
  border-radius: 50px;
  margin-left: -10px;
} */
.telephone{
  /* background-color: var(--black--main); */
  height: 25px;
  display: flex;
  align-items: center;
  margin-top: 30px;
  width: 140px;
  border-radius: 5px 5px 5px 20px;
  font-family: var(--main-font);
}
.telephone svg,
.facebook svg,
.email svg{
  margin-left: -33px;
}
.telephone a,
.email a,
.facebook a{
  /* font-family: var(--main-font); */
  text-decoration: none;
  color: var(--yellow-main);
  font-size: 13px;
    line-height: 18px;
    font-weight: bold;
  padding-left: 13px;
  font-weight: bold;
}
.telephone a{
  text-align: center;
}
/* .email::before{
  display: inline-block;
  content: "";
  width: 50px;
  height: 50px;
  background-color: var(--black--main);
  border-radius: 50px;
  margin-left: -10px;
} */
.email{
  
  /* background-color: var(--black--main); */
  text-decoration: none;
  height: 25px;
  display: flex;
  align-items: center;
  margin-top: 30px;
  border-radius: 5px 5px 5px 20px;
  width: 240px;
  grid-row-start: 2;
  grid-column-start: 1;
  grid-column-end: 3;
  font-family: var(--main-font);
}

/* .facebook::before{
  display: inline-block;
  content: "";
  width: 50px;
  height: 50px;
  background-color: var(--black--main);
  border-radius: 50px;
  margin-left: -10px;
} */
.facebook{

  /* background-color: var(--black--main); */
  text-decoration: none;
  height: 25px;
  display: flex;
  align-items: center;
  width: 130px;
  border-radius: 5px 5px 5px 20px;
  grid-column-start: 1;
  grid-column-end: 3;
  font-family: var(--main-font);
}
.center{
  display: flex;
  justify-content: center;
  width: 80%;
}
.adress{
  display: flex;
  justify-content: center;
}

.adresa{
  padding-top: 15px;
}
.adresa p{
  font-weight: bolder;
  margin-left: -34px;
}
.adresa h2{
  padding-bottom: 5px;
  margin-left: -35px;

}
.centr{
  margin-left: 20px;
}
.map{
  width: 80%;
  grid-column-start: 2;
}
/* FOOTER */
footer{
}
footer .foot{
  height: 100px;
  width: 100%;
  background-color: var(--black--main);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--yellow-main);
}
.foot a{
  text-decoration: none;
  color: var(--yellow-main);
  text-transform: uppercase;
}
.onas{
  display: flex;
  justify-content: space-around;
  
  width: 80%;
  background-color: var(--black--main);
  text-align: center;
}
.onas h2{
  text-align: center;
}
.onas p{
  font-family: var(--main-font);
  padding-top: 20px;
  font-weight: bolder;
  text-align: center;
  line-height: 30px;
  color: var(--white-main);
}
.onascont{
  display: flex;
  justify-content: center;
  background-color: var(--black--main);
}
.onas svg{
  z-index: 3;
}
.onas .item1,
.onas .item2,
.onas .item3{
  max-width: 25%;
  padding-top: 60px;
  padding-bottom: 60px;
}

/*SLIDER*/
html * {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: sans-serif;
}

i {
	position: relative;
	display: block;
	width: 100%;
	height: 300px;
	overflow: hidden;
}
i::before:hover{
  cursor: pointer;
}

i:before, i:after {
	content: '⥪';
	position: absolute;
	top: 50%;
	left: 1rem;
	z-index: 2;
	width: 2rem;
	height: 2rem;
	background: var(--black--main);
	color: white;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	pointer-events: none;
}

i:after {
	content: '⥭';
	left: auto;
	right: 1rem;
}

/* I haven't found a way for IE and Edge to let me style inputs that way */
input {
	appearance: none;
	-ms-appearance: none;
	-webkit-appearance: none;
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	transform: translateX(100%);
	transition: transform ease-in-out 400ms;
	z-index: 1;
}

input:focus {
	outline: none;
}

input:after {
	content: attr(title);
	position: absolute;
	top: 1rem;
	left: 1rem;
	background-color: rgba(0,0,0,0.4);
	color: white;
	padding: .5rem;
	font-size: 1rem;
	border-radius: 5px;
}

input:not(checked):before {
	content: '';
	position: absolute;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	top: 50%;
	left: calc(-100% + 1rem);
}

input:checked:before {
	display: none;
	left: 1rem;
}

input:checked {
	transform: translateX(0);
	pointer-event: none;
	z-index: 0;
	box-shadow: -5px 10px 20px -15px rgba(0,0,0,1);
}

input:checked + input:before {
	left: -3rem;
}

input:checked + input ~ input:before {
	display: none;
}

/* MEDIA QUERRIES */

  
  @media screen and (max-width: 1500px) {
    .onas p {
      line-height: 20px;
    }
    
  }
  @media screen and (max-width: 1449px) {
    /* .mechanizace h1{
      padding-bottom: 90px;
    } */
  .stroje,
  .stroje2{
    display: flex;
    flex-direction: row;
    height: 500px;
    width: 80%;
    justify-content: space-around;
  }
  .stroj{
    display: flex;
    flex-direction: column;
    height: 400px;
    justify-content:flex-start
  }
  .stroj .text{
    margin-top: 10px;
  }
  .strojecont{
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .omg{
    display: flex;
    flex-direction: column;
  }
    
  }
  @media screen and (max-width: 1100px) {
  .box1,
  .box3{
      flex-direction: column;
      flex-wrap: nowrap;
      width: 80%;
      height: auto;
      align-items: baseline;
      border-left: none;
      border-top: 3px solid var(--yellow-main);
    }
    .box2{
      flex-direction: column-reverse;
      flex-wrap: nowrap;
      width: 80%;
      height: auto;
      align-items: baseline;
      border-left: none;
      border-top: 3px solid var(--yellow-main);
      border-right: none;
    }
  .box1 .photo,
  .box2 .photo,
  .box3 .photo{
    width: 100%;
  }
  .box1 .text,
  .box2 .text,
  .box3 .text{
    padding-top: 20px;
    padding-bottom: 20px;
    width: 100%;
    padding-left: 25px;
  }
  .onas p{
    font-size: 12px;
    line-height: 16px;
  }
  .onas .item1,
  .onas .item2,
  .onas .item3{
    
  }
  .onas{
    width: 100%;
  }
  }
  

  


@media screen and (max-width: 780px) {
  *, *:before, *:after 
  { box-sizing: border-box; }
  
  label{
    display: block;
  }
  .links{
    display: none;
  }
  .contacts{
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    justify-items: center;
  }
  .main{
    width: 100%;
    padding-left: 0;
    align-items: center;
  }
  .main p{
    padding-bottom: 20px;
  }
  .main h2{
    text-align: center;
  }
  .telephone,
  .facebook,
  .email{
    justify-content: center;
  }
  .adress{
    width: 100%;
    padding-top: 30px;
  }
   }
 
  
  label .menu {
    position: fixed;
    right: -70px;
    top: -100px;
    z-index: 100;
    width: 170px;
    height: 170px;
    /* background: var(--yellow-main); */
    /* border-radius: 50% 50% 50% 50%; */
    -webkit-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    box-shadow: 0 0 0 0 var(--black--main), 0 0 0 0 var(--black--main);
    cursor: pointer;
    
  }
  
  label .hamburger {
    position: absolute;
    top: 135px;
    left: 50px;
    width: 30px;
    height: 2px;
    background: black;
    display: block;
    -webkit-transform-origin: center;
    transform-origin: center;
    -webkit-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
  }
  
  label .hamburger:after, label .hamburger:before {
    -webkit-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    background: black;
  }
  
  label .hamburger:before { top: -10px; }
  
  label .hamburger:after { bottom: -10px; }
  
  label input { display: none; }
  
  label input:checked + .menu {
    box-shadow: 0 0 0 100vw var(--black--main), 0 0 0 100vh var(--black--main);
    border-radius: 0;
    background-color: var(--black--main);
  
    
  }
  
  label input:checked + .menu .hamburger {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    background-color: var(--yellow-main);
    
  }
  
  label input:checked + .menu .hamburger:after {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
    bottom: 0;
    background-color: var(--yellow-main);
    
  }
  
  label input:checked + .menu .hamburger:before {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
    top: 0;
    background-color: var(--yellow-main);
    
  }
  
  label input:checked + .menu + ul { opacity: 1; }
  
  label ul {
    z-index: 200;
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    opacity: 0;
    -webkit-transition: .25s 0s ease-in-out;
    transition: .25s 0s ease-in-out;
    list-style-type: none;
  }
  
  label a {
    margin-bottom: 1em;
    display: block;
    color: var(--yellow-main);
    text-decoration: none;
    
    
  }
  
  
  @media screen and (max-width: 680px) {
    .stroje,
    .stroje2{
      flex-direction: column;
      height: auto;
      padding-top: 30px;
    }
    .onas{
      flex-direction: column;
      align-items: center;
    }
    .onas .item1,
    .onas .item2,
    .onas .item3{
      padding: 0;
      padding-top: 30px;
      max-width: 50%;
    }
    .onas .item3{
      padding-bottom: 30px;
    }
  }
  
  
  @media screen and (max-width: 600px) {
    .mechanizace h1{
      font-size: 2.5rem;
    }
    .reference h1{
      font-size: 2.5rem;
    }
    
    .cont{
      width: 100%;
      padding-bottom: 0;
    }
    .map{
      width: 100%;
    }
    
  }
  @media screen and (max-width: 450px) {
    .box1 .text,
    .box2 .text,
    .box3 .text{
      padding-left: 10px;
    }
    .mechanizace h1{
      padding: 0;
      padding-top: 50px;
      padding-bottom: 50px;
    }
    .main{
      justify-items: flex-start;
      width: 100%;
    }
    .foot a{
      font-size: 13px;
    }
   
  }
  @keyframes background {
    0%{

    }
    100%{
        background-color: var(--yellow-main);
        color: black;
    }
    
  }
  @keyframes imgmove {
    0%{
      transform: translateX(-50px);
    }
    50%{
      transform: translateX(20px);
    }
    100%{
      
    }
  
    
  }
  @keyframes textmove {
    0%{
      opacity: 0;
    }
    100%{
      opacity: 1;
    }
    
  }