* {
  font-family: 'Courier New', Courier, monospace;

}

body {
  background-color: #000000e7;
  z-index: 0;
  background-image: url("background.jpg");


}
.control button {
  font-size: 20px;
  background-color: hsla(0, 0%, 0%, 0.50);
  color: white;
  cursor: pointer;
}
.control button:hover {
  background-color: rgba(255, 255, 255, 0.5);
  transition: 0.5s;

}


.main-menu {

  margin-top: 12.5%;

}

#list {

  display: block;

}

#slist,
.control {

  display: none;

}


/* index menu */
#cmyk {}

#wave {

  z-index: -1;
  height: 50%;
  top: 0;
  right: 0;
  position: absolute;

}

.logo img {

  width: 175%;
  height: 175%;

  right: 50%;
}

.tekst p {
  width: 100%;
  text-align: center;
  font-size: 40px;
  color: white;
  text-shadow: 2px 2px black;

}

h2 {
  color: yellow;
  margin: 0 auto;
  text-align: center;
}

.up-menu {
  visibility: hidden;

}

.logo {
  width: 20%;
}

.indexnav {
  overflow: hidden;

}

.indexnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 0px;
  text-decoration: none;
  font-size: 17px;
  width: 15%;
  border-radius: 10px;
  margin-right: 5%;
  margin-left: 5%;
}


.indexnav a:hover {
  background-color: #ddd;
  color: black;
}

.indexnav a.active {
  background-color: #04AA6D;
  color: white;
}

.indexnav .icon {
  display: none;
  transition: .5s;
}

/* gallery menu responsive */
.top-content {
  overflow: hidden;
  background-color: black;
}

.top-content a.active {
  background-color: #04AA6D;
  color: white;
}

.top-content a:hover {
  background-color: #ddd;
  color: black;
}

.icon {
  display: none;
  transition: .5s;
}


/* gallery */
input {
  display: none;

}

.container {
  width: 100%;
  text-align: center;
}

h1 {
  font-weight: normal;
  font-size: 35px;
  position: relative;
  margin: 40px 0;
  color: white;
}

h3 {
  height: 100%;
  color: rgb(255, 255, 255);
  line-height: 60px;
  padding: 0 50px;


}


#zew {
  color: cyan;

}

#poj {
  color: magenta;
}

#poli {
  color: yellow;
}

#gad {
  color: rgb(255, 255, 255);
}

#zew:hover {
  background-color: cyan;
  color: black;
}

#poj:hover {
  background-color: magenta;
  color: black;
}

#poli:hover {
  background-color: yellow;
  color: black;
}

#gad:hover {
  background-color: rgb(255, 255, 255);
  color: black;
}

.photo-gallery {
  width: 90%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
  margin-top: 20px;
}


.rek img:hover {
  transform: scale(1.06);

  transition: .5s;
}

.rek img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  transition: .5s;
}


#check1:checked~.container .photo-gallery .rek {
  opacity: 1;
  transform: scale(1);
  position: relative;
  transition: .5s;
}

#check1:checked~.container .photo-gallery .zew {
  opacity: 1;
  transform: scale(1);
  position: relative;
  transition: .5s;
}

#check1:checked~.container .photo-gallery .poj,
#check1:checked~.container .photo-gallery .gad,
#check1:checked~.container .photo-gallery .poli {
  transform: scale(0);
  opacity: 0;
  position: absolute;
  transition: 0s;
}

#check2:checked~.container .photo-gallery .poj {
  transform: scale(1);
  opacity: 1;
  position: relative;
  transition: .5s;
}

#check2:checked~.container .photo-gallery .poli,
#check2:checked~.container .photo-gallery .gad,
#check2:checked~.container .photo-gallery .zew {
  transform: scale(0);
  opacity: 0;
  position: absolute;
  transition: 0s;
}

#check3:checked~.container .photo-gallery .poli {
  transform: scale(1);
  opacity: 1;
  position: relative;
  transition: .5s;
}

#check3:checked~.container .photo-gallery .poj,
#check3:checked~.container .photo-gallery .gad,
#check3:checked~.container .photo-gallery .zew {
  transform: scale(0);
  opacity: 0;
  position: absolute;
  transition: 0s;
}

#check4:checked~.container .photo-gallery .gad {
  transform: scale(1);
  opacity: 1;
  position: relative;
  transition: .5s;
}

#check4:checked~.container .photo-gallery .poj,
#check4:checked~.container .photo-gallery .poli,
#check4:checked~.container .photo-gallery .zew {
  transform: scale(0);
  opacity: 0;
  position: absolute;
  transition: 0s;
}

/* Navigation menu */

#firma-in {
  color: black;
  background-color: Cyan;

}

#kontakt-in {
  color: black;
  background-color: magenta;
}

#realizacje-in {
  color: black;
  background-color: yellow;
}

#uslugi-in {

  background-color: black;
}

/* grid div  */
.center {
  width: 90%;
  overflow: hidden;
  margin: 20px auto;
  padding: 20px;
  text-align: center;
  color: white;
  font-size: 20px;
  line-height: 5px;
}

.center-firm {
  width: 70%;
  overflow: hidden;
  padding: 20px;
  justify-content: left;
  color: white;
  font-size: 20px;
  background-color: hsla(0, 0%, 0%, 0.50);

}

.center-firm p {
  margin: 15px auto;
}


.wrapper {
  width: 90%;
  overflow: hidden;

  margin: 20px auto;
  padding: 20px;

}

.wrapper ul {
  padding: 0px;
  margin: 0px;


}

.wrapper ul li {
  float: left;
  list-style: none;
  width: 50%;

  height: 300px;




  box-sizing: border-box;
}


.wrapper ul li .bottom {
  width: 100%;
  height: 50px;
  line-height: 65px;
  background: blue;
  text-align: center;
  color: white;
  font-size: 20px;

}

.wrapper ul li .bottom p {

  font-size: 16px;

  text-align: justify;
  line-height: 15px;
  margin: 5px 20px;

}

/* div cosmetics */
.wrapper ul #rek-zew {
  float: left;
  list-style: none;
  width: 50%;
  background: rgb(0, 255, 255, .25);
  height: 300px;



  box-sizing: border-box;
}

.wrapper ul #poli {
  float: left;
  list-style: none;
  width: 50%;
  background: rgb(255, 0, 255, .25);
  height: 300px;




  box-sizing: border-box;
}

.wrapper ul #rek-poj {
  float: left;
  list-style: none;
  width: 50%;
  background: rgb(255, 255, 0, .25);
  height: 300px;




  box-sizing: border-box;
}

.wrapper ul #gad-rek {
  float: left;
  list-style: none;
  width: 50%;
  background: rgb(0, 0, 0, .5);
  height: 300px;




  box-sizing: border-box;
}

.wrapper ul li #head-rek-zew {
  border-radius: 20px;
  width: 90%;
  margin: 20px auto;
  background: rgb(0, 255, 255, .125);
  font-size: 34px;
  font-family: 'Courier New', Courier, monospace;
  border: 2px solid;
  box-shadow: 0 5px 15px 0 cyan inset, 0 5px 15px 0 cyan, 0 5px 15px 0 cyan inset, 0 5px 15px 0 cyan;


}

.wrapper ul li #head-poli {
  border-radius: 20px;
  width: 90%;
  margin: 20px auto;
  background: rgb(255, 0, 255, .25);
  font-size: 34px;
  font-family: 'Courier New', Courier, monospace;
  border: 2px solid;
  box-shadow: 0 5px 15px 0 magenta inset, 0 5px 15px 0 magenta, 0 5px 15px 0 magenta inset, 0 5px 15px 0 magenta;
  margin-bottom: 20px;


}

.wrapper ul li #head-rek-poj {
  border-radius: 20px;
  width: 90%;
  margin: 20px auto;
  background: rgb(255, 255, 0, .25);
  font-size: 34px;
  font-family: 'Courier New', Courier, monospace;
  border: 2px solid;
  box-shadow: 0 5px 15px 0 yellow inset, 0 5px 15px 0 yellow, 0 5px 15px 0 yellow inset, 0 5px 15px 0 yellow;


}

.wrapper ul li #head-gad-rek {
  border-radius: 20px;
  width: 90%;
  margin: 20px auto;
  background: rgb(0, 0, 0, 0.25);
  font-size: 34px;
  font-family: 'Courier New', Courier, monospace;
  border: 2px solid;
  box-shadow: 0 5px 15px 0 black inset, 0 5px 15px 0 black, 0 5px 15px 0 black inset, 0 5px 15px 0 black;


}

/* Menu styles*/
.topnav {
  overflow: hidden;
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: #04AA6D;
  color: white;
}

.topnav .icon {
  display: none;
  transition: .5s;
}

/* gallery menu responsive */
.top-content {
  overflow: hidden;
  background-color: hsla(0, 0%, 0%, 0.75);
}

.top-content a.active {
  background-color: #04AA6D;
  color: white;
}

.top-content a:hover {
  background-color: #ddd;
  color: black;
}

.icon {
  display: none;
  transition: .5s;
}



@media screen and (max-width: 600px) {
  .wrapper ul li .bottom p {

    font-size: 16px;
  
    text-align: justify;
    line-height: 13px;
    margin: 5px 20px;
  
  }


  .topnav a:not(:first-child) {
    display: none;
  }
  .head{

    font-size: 14px;

  }

  #banner {

    margin-top: 10%;

  }

  .topnav a.icon {
    float: right;
    display: block;

  }

  .indexnav a:not(:first-child) {
    display: none;
  }

  .indexnav a.icon {
    float: right;
    display: block;
    margin: 0;
  }


}

@media screen and (max-width: 600px) {
  .topnav.responsive {
    position: relative;

  }

  .center-firm {

    margin: 15px auto;

  }

  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;

  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }

  .indexnav.responsive {
    position: relative;
  }

  .indexnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
    width: 25%;

  }

  .indexnav.responsive a {
    float: none;
    display: block;
  }

  .indexnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 0px;
    text-decoration: none;
    font-size: 17px;
    width: 25%;
    border-radius: 0px;
    margin-left: 0px;
  }

  .indexbd {
    margin: 0 auto;
  }

  .up-menu {
    visibility: visible;
    scale: 1;
  }

  .up-menu .topnav {

    margin-top: 2%;
    margin-left: 2%;
    margin-right: 2%;
  }

  #firma-in {

    display: block;

  }

  #uslugi-in {

    width: 100%;
  }

  #realizacje-in {

    width: 100%;
  }

  #kontakt-in {

    width: 100%;
  }

  .down-menu {
    visibility: hidden;
    scale: 0;

  }

  .topnav {

    background-color: hsla(0, 0%, 0%, 0.75);

  }

  #wave {
    visibility: hidden;
  }

  .logo img {

    width: 500%;

  }

  #firma-in {

    width: 75%;

  }

  .indexnav a {

    margin-right: 0px;

  }
  .control button {
    font-size: 16px;
    background-color: hsla(0, 0%, 0%, 0.50);
    color: white;
    cursor: pointer;
  }
}


/* H3 responsive */
@media screen and (max-width: 1920px) {
  h3 {

    font-size: 18px;

  }
}

@media screen and (max-width: 979px) {
  h3 {

    font-size: 12px;

    transition: .5s;
  }

  .control {

    visibility: visible;

  }

  #slist {

    display: block;

  }

  #list {

    display: none;

  }

  .control {
    display: block;
    margin-top: 5%;
  }

}





/* Label responsive */
@media screen and (max-width: 1920px) {
  label {
    display: inline-block;
    height: 100%;
    padding: 0 10px;
    margin: 0;
    line-height: 60px;
    font-size: 18px;

    cursor: pointer;
    transition: .5s;
  }
 

}

@media screen and (max-width: 979px) {
  label {
    display: inline-block;
    height: 100%;
    padding: 0 5px;
    margin: 0;
    line-height: 60px;
    font-size: 12px;

    cursor: pointer;
    transition: .5s;
    width: 100%;

  }
  .head {

    font-weight: bolder;
    font-size: 16px;
  
  }

  .photo-gallery {
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    margin-top: 20px;
  }



  .wrapper ul li #head-rek-zew {
    border-radius: 20px;
    width: 90%;
    margin: 10px auto;
    background: rgb(0, 255, 255, .125);
    font-size: 14px;
    font-family: 'Courier New', Courier, monospace;
    border: 2px solid;
    box-shadow: 0 5px 15px 0 cyan inset, 0 5px 15px 0 cyan, 0 5px 15px 0 cyan inset, 0 5px 15px 0 cyan;


  }

  .wrapper ul li #head-poli {
    border-radius: 20px;
    width: 90%;
    ;
    margin: 10px auto;
    background: rgb(255, 0, 255, .25);
    font-size: 14px;
    font-family: 'Courier New', Courier, monospace;
    border: 2px solid;
    box-shadow: 0 5px 15px 0 magenta inset, 0 5px 15px 0 magenta, 0 5px 15px 0 magenta inset, 0 5px 15px 0 magenta;
    transition: .5s;


  }

  .wrapper ul li #head-rek-poj {
    border-radius: 20px;
    width: 90%;
    margin: 10px auto;
    background: rgb(255, 255, 0, .25);
    font-size: 14px;
    font-family: 'Courier New', Courier, monospace;
    border: 2px solid;
    box-shadow: 0 5px 15px 0 yellow inset, 0 5px 15px 0 yellow, 0 5px 15px 0 yellow inset, 0 5px 15px 0 yellow;


  }

  .wrapper ul li #head-gad-rek {
    border-radius: 20px;
    width: 90%;
    margin: 10px auto;
    background: rgb(0, 0, 0, 0.25);
    font-size: 14px;
    font-family: 'Courier New', Courier, monospace;
    border: 2px solid;
    box-shadow: 0 5px 15px 0 black inset, 0 5px 15px 0 black, 0 5px 15px 0 black inset, 0 5px 15px 0 black;


  }

  .wrapper ul #rek-zew {
    float: left;
    list-style: none;
    width: 100%;
    background: rgb(0, 255, 255, .25);
    height: 400px;



    box-sizing: border-box;
  }

  .wrapper ul #poli {
    float: left;
    list-style: none;
    width: 100%;
    background: rgb(255, 0, 255, .25);
    height: 400px;




    box-sizing: border-box;
  }

  .wrapper ul #rek-poj {
    float: left;
    list-style: none;
    width: 100%;
    background: rgb(255, 255, 0, .25);
    height: 400px;




    box-sizing: border-box;
  }

  .wrapper ul #gad-rek {
    float: left;
    list-style: none;
    width: 100%;
    background: rgb(0, 0, 0, .5);
    height: 400px;




    box-sizing: border-box;
  }

  .wrapper .center p {
    font-size: 12px;
    line-height: 120%;
  }

  .wrapper .center-firm p {
    font-size: 14px;
  }

  .center-firm {
    width: 80%;
  }

  #wave {

    height: 45%;

  }
 
}


@media screen and (max-width: 920px) and (min-height: 1000px) {

  #wave {

    height: 30%;

  }


}

@media screen and (max-width: 920px) and (max-height: 450px) {

  #wave {

    height: 90%;

  }


}


#firma {
  background-color: black;
}


#uslugi {
  background-color: black;
}

#realizacje {
  background-color: black;
}

#kontakt {
  background-color: black;
}

#firma:hover {
  background-color: cyan;
  transition: .5s;
  cursor: pointer;
  color: white;
}

#uslugi:hover {
  background-color: white;
  transition: .5s;
  cursor: pointer;
  color: black;
}

#realizacje:hover {
  background-color: yellow;
  transition: .5s;
  cursor: pointer;
  color: white;
}

#kontakt:hover {
  background-color: magenta;
  transition: .5s;
  cursor: pointer;
  color: white;
}

/* index hover menu */
#firma-in:hover {
  background-color: black;
  transition: .5s;
  cursor: pointer;
  color: white;
}

#uslugi-in:hover {
  background-color: white;
  transition: .5s;
  cursor: pointer;
  color: black;
}

#realizacje-in:hover {
  background-color: black;
  transition: .5s;
  cursor: pointer;
  color: white;
}

#kontakt-in:hover {
  background-color: black;
  transition: .5s;
  cursor: pointer;
  color: white;
}

li p {

  text-transform: uppercase;

}

.counter {

  font-size: 20px;
  font-weight: bolder;
  color: white;

}

