input {
  display: none;
}

.container {
  margin-top: 15vh;
  width: 100%;
  text-align: center;
}

h1 {
  font-weight: normal;
  font-size: 2rem;
  position: relative;
  margin: 4vh 0;
}

h1::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: rgb(118, 151, 190);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  animation: animate 4s linear infinite;
}

@keyframes animate {
  0% {
    width: 100px;
  }
  25% {
    width: 175px;
  }
  50% {
    width: 225px;
  }
  75% {
    width: 295px;
  }
  100% {
    width: 350px;
  }
}

.top-content {
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

label {
  display: inline-block;
  height: 100%;
  padding: 10px 20px;
  cursor: pointer;
  transition: color 0.5s, font-weight 0.5s, background-color 0.5s;
}

label:hover {
  color: #fff;
  background-color: rgb(118, 151, 190);
  font-weight: 500;
  transform: scale(1.05);
}

.photo-gallery {
  width: 100%;
  min-height: calc(100vh - 272px);
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  object-position: bottom;
  justify-content: center;
  column-gap: 10px;
  row-gap: 10px;
}

.pic {
  position: relative;
  max-height: 350px;
  flex-basis: 350px;
  box-shadow: 3px 3px 5px lightgrey;
  cursor: pointer;
  transition: 0.5s;
}

.pic a img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

img:hover {
  opacity: 0.5;
}

#check1:checked ~ .container .photo-gallery .pic {
  opacity: 1;
  transform: scale(1);
  position: relative;
  transition: 0.5s;
}

#check2:checked ~ .container .photo-gallery .eternit {
  opacity: 1;
  transform: scale(1);
  position: relative;
  transition: 0.5s;
}

#check2:checked ~ .container .photo-gallery .enterijer,
#check2:checked ~ .container .photo-gallery .hpl,
#check2:checked ~ .container .photo-gallery .aluograde,
#check2:checked ~ .container .photo-gallery .alubond,
#check2:checked ~ .container .photo-gallery .fundermax,
#check2:checked ~ .container .photo-gallery .inox,
#check2:checked ~ .container .photo-gallery .kamenafasada,
#check2:checked ~ .container .photo-gallery .staklenafasada,
#check2:checked ~ .container .photo-gallery .stakleneograde {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}

#check3:checked ~ .container .photo-gallery .enterijer {
  opacity: 1;
  transform: scale(1);
  position: relative;
  transition: 0.5s;
}

#check3:checked ~ .container .photo-gallery .eternit,
#check3:checked ~ .container .photo-gallery .hpl,
#check3:checked ~ .container .photo-gallery .aluograde,
#check3:checked ~ .container .photo-gallery .alubond,
#check3:checked ~ .container .photo-gallery .fundermax,
#check3:checked ~ .container .photo-gallery .inox,
#check3:checked ~ .container .photo-gallery .kamenafasada,
#check3:checked ~ .container .photo-gallery .staklenafasada,
#check3:checked ~ .container .photo-gallery .stakleneograde {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}

#check4:checked ~ .container .photo-gallery .hpl {
  opacity: 1;
  transform: scale(1);
  position: relative;
  transition: 0.5s;
}

#check4:checked ~ .container .photo-gallery .eternit,
#check4:checked ~ .container .photo-gallery .enterijer,
#check4:checked ~ .container .photo-gallery .aluograde,
#check4:checked ~ .container .photo-gallery .alubond,
#check4:checked ~ .container .photo-gallery .fundermax,
#check4:checked ~ .container .photo-gallery .inox,
#check4:checked ~ .container .photo-gallery .kamenafasada,
#check4:checked ~ .container .photo-gallery .staklenafasada,
#check4:checked ~ .container .photo-gallery .stakleneograde {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}

#check5:checked ~ .container .photo-gallery .aluograde {
  opacity: 1;
  transform: scale(1);
  position: relative;
  transition: 0.5s;
}

#check5:checked ~ .container .photo-gallery .eternit,
#check5:checked ~ .container .photo-gallery .enterijer,
#check5:checked ~ .container .photo-gallery .hpl,
#check5:checked ~ .container .photo-gallery .alubond,
#check5:checked ~ .container .photo-gallery .fundermax,
#check5:checked ~ .container .photo-gallery .inox,
#check5:checked ~ .container .photo-gallery .kamenafasada,
#check5:checked ~ .container .photo-gallery .staklenafasada,
#check5:checked ~ .container .photo-gallery .stakleneograde {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}

#check6:checked ~ .container .photo-gallery .alubond {
  opacity: 1;
  transform: scale(1);
  position: relative;
  transition: 0.5s;
}

#check6:checked ~ .container .photo-gallery .eternit,
#check6:checked ~ .container .photo-gallery .enterijer,
#check6:checked ~ .container .photo-gallery .hpl,
#check6:checked ~ .container .photo-gallery .aluograde,
#check6:checked ~ .container .photo-gallery .fundermax,
#check6:checked ~ .container .photo-gallery .inox,
#check6:checked ~ .container .photo-gallery .kamenafasada,
#check6:checked ~ .container .photo-gallery .staklenafasada,
#check6:checked ~ .container .photo-gallery .stakleneograde {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}

#check7:checked ~ .container .photo-gallery .fundermax {
  opacity: 1;
  transform: scale(1);
  position: relative;
  transition: 0.5s;
}

#check7:checked ~ .container .photo-gallery .eternit,
#check7:checked ~ .container .photo-gallery .enterijer,
#check7:checked ~ .container .photo-gallery .hpl,
#check7:checked ~ .container .photo-gallery .aluograde,
#check7:checked ~ .container .photo-gallery .alubond,
#check7:checked ~ .container .photo-gallery .inox,
#check7:checked ~ .container .photo-gallery .kamenafasada,
#check7:checked ~ .container .photo-gallery .staklenafasada,
#check7:checked ~ .container .photo-gallery .stakleneograde {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}

#check8:checked ~ .container .photo-gallery .inox {
  opacity: 1;
  transform: scale(1);
  position: relative;
  transition: 0.5s;
}

#check8:checked ~ .container .photo-gallery .eternit,
#check8:checked ~ .container .photo-gallery .enterijer,
#check8:checked ~ .container .photo-gallery .hpl,
#check8:checked ~ .container .photo-gallery .aluograde,
#check8:checked ~ .container .photo-gallery .alubond,
#check8:checked ~ .container .photo-gallery .fundermax,
#check8:checked ~ .container .photo-gallery .kamenafasada,
#check8:checked ~ .container .photo-gallery .staklenafasada,
#check8:checked ~ .container .photo-gallery .stakleneograde {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}

#check9:checked ~ .container .photo-gallery .kamenafasada {
  opacity: 1;
  transform: scale(1);
  position: relative;
  transition: 0.5s;
}

#check9:checked ~ .container .photo-gallery .eternit,
#check9:checked ~ .container .photo-gallery .enterijer,
#check9:checked ~ .container .photo-gallery .hpl,
#check9:checked ~ .container .photo-gallery .aluograde,
#check9:checked ~ .container .photo-gallery .alubond,
#check9:checked ~ .container .photo-gallery .fundermax,
#check9:checked ~ .container .photo-gallery .inox,
#check9:checked ~ .container .photo-gallery .staklenafasada,
#check9:checked ~ .container .photo-gallery .stakleneograde {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}

#check10:checked ~ .container .photo-gallery .staklenafasada {
  opacity: 1;
  transform: scale(1);
  position: relative;
  transition: 0.5s;
}

#check10:checked ~ .container .photo-gallery .eternit,
#check10:checked ~ .container .photo-gallery .enterijer,
#check10:checked ~ .container .photo-gallery .hpl,
#check10:checked ~ .container .photo-gallery .aluograde,
#check10:checked ~ .container .photo-gallery .alubond,
#check10:checked ~ .container .photo-gallery .fundermax,
#check10:checked ~ .container .photo-gallery .inox,
#check10:checked ~ .container .photo-gallery .kamenafasada,
#check10:checked ~ .container .photo-gallery .stakleneograde {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}

#check11:checked ~ .container .photo-gallery .stakleneograde {
  opacity: 1;
  transform: scale(1);
  position: relative;
  transition: 0.5s;
}

#check11:checked ~ .container .photo-gallery .eternit,
#check11:checked ~ .container .photo-gallery .enterijer,
#check11:checked ~ .container .photo-gallery .hpl,
#check11:checked ~ .container .photo-gallery .aluograde,
#check11:checked ~ .container .photo-gallery .alubond,
#check11:checked ~ .container .photo-gallery .fundermax,
#check11:checked ~ .container .photo-gallery .inox,
#check11:checked ~ .container .photo-gallery .kamenafasada,
#check11:checked ~ .container .photo-gallery .staklenafasada {
  opacity: 0;
  transform: scale(0);
  position: absolute;
  transition: 0s;
}

footer {
  display: flex;
  justify-content: center;
  justify-content: center;
  align-items: center;
  background-color: #f0efef;
  position: relative;
  height: 100%;
  margin-top: 10px;
  box-shadow: 10px 0px 10px rgba(0, 0, 0, 0.3);
}

footer .leftcol {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer .leftcol img {
  width: 200px;
}

footer .midcol {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer .midcol img {
  width: 100px;
  display: none;
}

footer .midcol a {
  text-decoration: none;
  color: #333;
  padding: 5px;
}

footer .midcol a:hover {
  font-weight: 700;
}

footer .rightcol {
  line-height: 2em;
  width: 30%;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
}

#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: rgb(218, 164, 92);
  color: white;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  rotate: 45deg;
  border: 2px solid black;
}

#myBtn:hover {
  background-color: rgba(218, 164, 92, 0.8);
}

.inner {
  border: 2px solid black;
  border-radius: 4px;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.inner img {
  rotate: -45deg;
  width: 30px;
}

@media (max-width: 991px) {
  footer .leftcol img {
    width: 150px;
    padding: 10px;
  }

  footer .midcol {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.5em;
    padding: 20px;
    z-index: 20;
  }

  footer .midcol a {
    text-decoration: none;
    color: #333;
  }

  footer .rightcol {
    line-height: 1.5em;
  }
}

@media only screen and (max-width: 767px) {
  footer .leftcol {
    display: none;
  }
  footer .midcol,
  footer .rightcol {
    width: 100%;
  }

  footer .midcol img {
    width: 100px;
    display: block;
  }
}
