* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
 
}

html {
  scroll-behavior: smooth;

}

body {
  font-family: "Raleway", sans-serif;
  overflow-x: hidden;
}


/* Header */

.bold {
  font-size: 25px;
  font-weight: 600;
  margin-top: 20px;
}

.bold-small {
  font-weight: 600;
  margin-top: 20px;
}


.price li {
  margin-top: 20px;
}

.header-img {
  position: relative;
  height: 375px;
  background-image: url("../img/background-img.jpg");
  background-size: cover;
  background-position: 0 45%;
}

.header-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  z-index: 1;
}

.header-text p {
  font-weight: 500;
  font-size: 19px;

}

.header-bg {
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 3, 27, 0.7);
}

.logo-img {
  width: 300px;
  height: 300px;
  text-align: center;
}

.logo {
  text-align: center;
}

.header-text, .nav-tool {
  animation: animate 1s linear forwards;
}

@keyframes animate 
{
  0% {
    opacity: 0;
    transform: rotateY('90deg');
    filter: blur(10px);
  }
  {
    100%
  }
  {
    opacity: 1;
    transform: rotateY(0deg);
    filter: blur()
  }
}


/* Nawigacja */
.nav {
  top: 0;
  height: 50px;
  background-color: #333;
  text-align: center;
  line-height: 50px;
  font-size: 0px;
  z-index: 10;
}

.nav-item {
  display: inline;
}

.nav-item a {
  padding: 0 50px;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 2px;
  margin: 0 auto;
  transition: color 0.3s;
}


nav li a:hover {
  color: rgb(255,185,1)
}


.burger-icon:hover {
  background-color: silver;
  border-radius: 2px;
}

.nav-tool {
  display:block;
  margin-bottom: 5%;
  
}

.wrapper {
  margin: 0 auto;
  width: 100%;
  /* Dobra technika ustawiania wrappera od 1200 do 1400 px */
  max-width: 1200px;
}

.up {
  position: sticky;
  top: 35px;
  width: 55px;
  height: 55px;
  background-color: #ffd364;
  border: black solid 5px;
  border-radius: 15px;
  margin-top: 2%;
  margin-bottom: 1%;
  margin-left: 90%;
  padding: 10px;
  text-align: right;
  z-index: 10;
}

.fa-camera {
  font-size: 50px;
}

.price {
  font-size: 15px;
  text-align: center;
  margin-top: 10px;
}

.wrapper h3 {
  text-align: center;
  text-transform: uppercase;
  font-size: 36px;
  
}

.building-tool-nav {
  background: rgb(255,255,255);
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,185,1,1) 100%);
  border-radius: 20px;
  height: 100px;
  width: 100%;
  margin-top: 5%;
  margin-bottom: 20px;
  transition: background-color, box-shadow, 0.5s;
}

.building-tool-nav:hover {
  box-shadow: 0 0 50px gold;
}

.building-tool-nav h2 {
  position: relative;
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%);
}

.building-tool-nav img {
  height: 40px;
  width: 40px;
  position: absolute;
  margin-left: 10px;
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%);
}

.garden-tool-nav {
  background: rgb(255,185,1);
  background: linear-gradient(90deg, rgba(255,185,1,1) 0%, rgba(255,255,255,1) 100%);
  border-radius: 20px;
  height: 100px;
  margin-bottom: 20px;
  transition: background-color, box-shadow, 0.5s;
}

.garden-tool-nav img {
  height: 40px;
  width: 40px;
  position: absolute;
  margin-left: 10px;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
}

.garden-tool-nav:hover {
   box-shadow: 0 0 50px rgb(14, 118, 28);
}

.garden-tool-nav h2 {
  position: relative;
  top: 50%;
  left: 25%;
  padding: 5%;
  transform: translate(-50%, -50%);
}

.electronic-tool-nav {
  background: rgb(255,255,255);
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,185,1,1) 100%);
  border-radius: 20px;
  height: 100px;
  margin-bottom: 20px;
  transition: background-color, box-shadow, 0.5s;
}

.electronic-tool-nav:hover {
    box-shadow: 0 0 50px rgb(57, 45, 189);
}

.electronic-tool-nav h2 {
  position: relative;
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%);
}


.nav-tool a {
  text-decoration: none;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  color: #333;
  transition: color 0.3s;
}


.tool {
  background-color: rgba(12, 9, 9, 0.342);
  height: 200px;
  margin: 40px 0;
  /* Zdjęcie przyklejone do strony */
  background-attachment: fixed;
  border-radius: 25px;
  /* wyśrodkowanie obrazu */
  /* Cień wyciekał poza element dlatego trzeba ukryć to co wycieka - po to jest właściwość overflow: hidden; */
  overflow: hidden;
;
}

.tool-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.building {
  background: rgb(218,218,218);
  background: linear-gradient(284deg, rgba(255,255,255,1) 0%, rgba(255,185,1,1) 0%, rgba(255,255,255,1) 70%);
}

.garden {
  background: rgb(218,218,218);
background: linear-gradient(284deg, rgba(97,203,134,1) 0%, rgba(255,255,255,1) 70%);
}

.electric {
  background: rgb(218,218,218);
  background: linear-gradient(284deg, rgba(96,85,212,1) 0%, rgba(255,255,255,1) 70%);
}

iframe {
  width: 600px;
  height: 450px;
  margin-bottom: 5%;
}

.tool-image img {
  position: absolute;
  border-radius: 20px;
  width: 20%;
  left: 2%;
  top: 10%;
  height: 75%;
}

.tool-info {
  position: relative;
  width: 75%;
  height: 100%;
  margin-left: 25%;
  text-align: center;
  
}

.wrapper h3 {
  margin-top: 50px;
}

.tool-description {
  position: relative;
  top: 20%;
  left: 60%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  
}

.font-weight {
  font-weight: 600;
  word-wrap: break-word;
}

* main */

main {
  margin: 50px auto;
  width: 1200px;
}

main h2 {
  margin-bottom: 30px;
  text-transform: uppercase;
  text-align: center;
}

.about-us-box {
  position: relative;
  height: 300px;
  margin: 40px 0;
  /* Zdjęcie przyklejone do strony */
  background-attachment: fixed;
  /* wyśrodkowanie obrazu */
  background-position: center;
  border-radius: 50px;
  /* Cień wyciekał poza element dlatego trzeba ukryć to co wycieka - po to jest właściwość overflow: hidden; */
  overflow: hidden;
  background-size: cover;
}

.top {
  background-image: url("../img/top-big.jpg");
}

.middle {
  background-image: url("../img/middle-big.jpg");
}

.bottom {
  background-image: url("../img/bottom-big.jpg");
}

.about-us-text {
  position: absolute;
  bottom: 20px;
  padding: 20px 40px;
  text-align: center;
  color: #fff;
}



.about-us-text h3 {
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 25px;
}

.about-us-bg {
  position: absolute;
  bottom: 0;
  height: 45%;
  width: 100%;
  background-color: rgb(0,0,0,.8);
}

/* FOOTER */

footer {
  height: 80px;
  line-height: 60px;
  background-color: #333;
  color: #dddd;
  text-align: center;
  font-size: 20px;
}

.icon-box {
  margin-left: 20px;
}


.font-small {
  font-size: 10px;
}

.font-big {
  font-weight: 550;
}

.font-big .color {
  color: #ffb901;
}

/* phone */

.contact-info {
  margin-top: 30px;
  margin-bottom: 30px;
  font-size: 30px;
  text-align: center;
}

.contact-h1 {
  font-size: 36px;
  text-decoration: underline;
}

.contact-info .fa-envelope {
  margin-right: 15px;
  margin-bottom: 30px;
}

.contact-info .fa-phone {
  margin-right: 15px;
}

main h1 {
  text-align: center;
  margin-top: 10px;
}


@media (max-width: 650px) {
  
body {
  overflow-x:hidden;  
}

.contact-info {
  font-size: 25px;
}

.contact-h1 {
  font-size: 25px;
}

.about-us-bg {
    position: absolute;
    bottom: 0;
    height: 100%;
    width: 100%;
    background-color: rgb(0,0,0,.8);
}

.header-text p {
  font-size: 15px;
}

  .burger-icon {
    display: none;
  }
  .electronic-tool-nav h2, .garden-tool-nav h2, .building-tool-nav h2 {
    position: relative;
    top: 50%;
    left: 50%;
    padding: 5%;
    transform: translate(-50%, -50%);
  }
  .up {
    position: sticky;
    top: 35px;
    width: 50px;
    height: 50px;
    background: rgb(218,170,44);
    border: 3px #000000 solid;
    border-radius: 15px;
    margin-top: 1%;
    margin-left: 85%;
    padding: 10px;
    text-align: right;
    z-index: 10;
  }
  .nav-item a {
    padding: 0 11px;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 10px;
    letter-spacing: 2px;
    margin: 0 auto;
    transition: color 0.3s;
  }
  
  .icon-box {
    display: none;
  }
  .tool-image img {
    position: absolute;
    border-radius: 20px;
    width: 37%;
    left: 2%;
    top: 10%;
    height: 75%;
  }
.tool-description {
  position: relative;
  top: 30%;
  left: 68%;
  transform: translate(-50%, -50%);
  word-wrap: break-word;
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  
  
}

.font-small {
  font-size: 7px;
}

.top {
  background-image: url("../img/top-small.jpg");
}

.middle {
  background-image: url("../img/middle-small.jpg");
}

iframe {
  width: 350px;
  height: 150px;
  margin-bottom: 5%;
}

}