/*
  Theme Name: New Theme 2023
  Author: Anna Kharytontseva
  Version: 1.0
*/

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Lato', sans-serif;
}
body, ul, li, p, a {
  margin: 0;
  padding: 0;
}
ul, li {
  list-style: none;
}
a {
  text-decoration: none;
  color: white;
}
:root {
  --dark-grey-color: rgb(50, 49, 49, 0.8);
  --box-shadow: 0 0 5px 0 #666;
}
.wrapper {
  max-width: 800px;
  margin: 0 auto;
}
header {
  position: fixed;
  /* top: 0; */
  z-index: 5;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.655);
}
nav {
  display: flex;
  align-items: center;
}
ul.menu {
  display: flex;
  position: relative;
  justify-content: flex-end;
  padding: 0.5em;
  font-weight: 100;
}
.menu > li {
  padding: 0.5em;
  background-color: transparent;
  border-radius: 34px;
  transition: .5s;
}
.menu>li:hover {
  background-color: rgba(204,204,204,0.7);
  transition: .5s;
}
.menu>li.current-menu-item {
  background-color: rgba(204,204,204,0.7);
  transition: .5s;
}
header>.wrapper {
  display: flex;
  justify-content: space-between;
  text-align: center;
}
.logo {
  color: white;
  font-size: 1.3em;
  padding: 0.5em;
  font-family: 'Nothing You Could Do', cursive;
}
.scroll-to-top {
  display: block;
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 0.5em;
  margin: 0.5em;
  background-color: var(--dark-grey-color);
  border-radius: 50%;
  opacity: 70%;
  transition: 1s;
  z-index: 5;
}
.scroll-to-top.hide {
  opacity: 0;
}
.scroll-to-top > i {
  font-size: 1.5em;
  /* color: var(--dark-grey-color); */
  color: white;
}
/*------Burger Menu-------*/
.burger{
  display: none;
}

/*-------banner-------*/
#banner {
  width: 100vw;
  height:500px;
  background-attachment: fixed;
  background-size: cover;
  background-position: 22%;
  /* background-position: bottom; */
  background-repeat: no-repeat;
  filter: grayscale(20%);
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
#banner h1 {
  text-shadow: 1px 2px 7px black;
}
#banner p, #banner a {
  padding: 0.5em;
  font-weight: 100;
  text-shadow: 1px 1px 5px darkblue;
}
#banner .navigation {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0.5em;
  font-size: .9em;
  background-color: darkseagreen;
}
.navigation i {
  color: white;
  padding-right: 0.5em;
  opacity: 0.7;
}

.filter {
  display: flex;
  padding: 1em 2em 1em 1em;
  justify-content: right;
  gap: 1em;
}
div.select-item {
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
ul.select-items {
  display: none;
  position: absolute;
  z-index: 6;
}
ul.select-items a {
  display: block;
}
ul.select-items.show {
  display: flex;
  visibility: visible;
  flex-direction: column;
  animation: ani 1s forwards;
}
@keyframes ani {
  0% {opacity: 0;}
  100% {opacity: 1;}
} 

div.select-item > i {
  transition: .4s;
}
div.select-item > i.rotate {
  transform: rotate(-180deg);
}
ul.select-items > li:hover {
  background-color: var(--dark-grey-color);
  transition: .5s;
}
ul.select-items > li:hover > a {
  color: white;
  transition: .5s;
}
/*-------filter-test------*/
.select-item, .cat-item {
  color: var(--dark-grey-color);
  background-color: #ccc;
  padding: 0.5em;
  width: 200px;
}
.select-item a, .cat-item a, .waste-category-items a {
  color: var(--dark-grey-color);
}
/*---------select------archive-waste.php*/
ul.waste-select-items {
  display: flex;
  justify-content: space-around;
  text-align: center;
  font-size: 1.3em;
  vertical-align: center;
}
.waste-select-items .cat-item, .button-style {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 34px;
  box-shadow: 1px 1px 5px grey;
  background: linear-gradient(204deg, rgba(255,255,255,1) 0%, rgba(95,177,15,1) 50%);
}
.button-style {
  padding: .5em;
  width: 200px;
  font-size: 1.3em;
}
#banner .button-style {
  /* position: absolute; */
  margin-top: 1.5em;
}
.waste-select-items .cat-item a, .button-style {
  color: white;
  text-shadow: 1px 1px 7px black;
}
.waste-filter-test {
  padding: 1em 0.5em 2em;
}
main.archive-waste p {
  padding: 0.5em;
  text-align: justify;
  color: var(--dark-grey-color);
  /* text-indent: 1.5em; */
}
main .wrapper {
  padding: 1em;
}


/*------switcher-------*/
.switch {
  position: relative;
  display: inline-block;
  /* width: 60px;
  height: 34px; */
  /* padding: 0.5em; */
  /* margin-top: 1em; */
  color: #666;
}
.switch input {
  display: none;
}
.switch span {
  vertical-align: middle;
}
.slider {
  position: relative;
  cursor: pointer;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
  width: 60px;
  height: 34px;
  display: inline-block;
}
.slider:before {
  position: absolute;
  content: '';
  width: 26px;
  height: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 34px;
}
input:checked + .slider {
  background-color: #61f37b;
}
input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider::before {
  transform: translateX(26px);
}
/*--------ul waste-category-items------archive.php*/
ul.waste-category-items {
  display: flex;
  flex-direction: column;
  max-height: 500px;
  flex-wrap: wrap;
}
.waste-category-items li {
  padding: 0.5em 3em;
  max-width: 50%;
}
main.archive .cat-item {
  opacity: 0.4;
  transition: .5s;
}
main.archive .cat-item:hover, main.archive-waste .cat-item:hover {
  transform: translateY(-10px);
  opacity: 1;
}
main.archive-waste .cat-item {
  transition: .5s;
}
main.archive .current-cat {
  opacity: 1;
}


/*-------books------*/
main h2 {
  color: var(--dark-grey-color);
  text-align: center;
}
.cards-container {
  display: flex;
  flex-wrap: wrap;
  padding: 2em;
  justify-content: space-evenly;
  gap: 2em;
}
.cards-container.show {
  display: flex;
}

.card {
  position: relative;
  border-radius: 5px;
  box-shadow: 0px 0px 15px rgba(155, 154, 154, 0.717);
  color: var(--dark-grey-color);
  perspective: 1000px;
  transition: transform 0.8s;
  -webkit-transition: -webkit-transform 0.8s;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  text-align: center;
  width: 270px;
  height: fit-content;
  z-index: 1;
  /* overflow: hidden; */
}

.flag{
  position: absolute;
  top: -6px;
  right: -42px;
  width: 120px;
  height: 50px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  opacity: 70%;
  transform: rotate(45deg);
  z-index: 1;
}
.flag.ukrainian {
  background: linear-gradient(to bottom, rgb(38, 95, 227) 50%, yellow 50%);
  padding-top: 30px;
  box-shadow: var(--box-shadow);
}
.flag.english {
  background-image: url('images/united-kingdom-flag-icon.png');
  box-shadow: var(--box-shadow);
}
.flag.german {
  background: linear-gradient(to bottom, black 33%, red 33%, red 66%, rgb(244, 204, 70) 66%);
  padding-top: 30px;
  box-shadow: var(--box-shadow);
}

.card h3 {
  /*text-shadow: 1px 2px 3px grey;*/
  
}
.card img {
  width: 200px;
  height: 300px;
}
.card .price p {
  padding: 0.5em;
  /*text-shadow: 1px 2px 3px grey;*/
}
.transform {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}
.card:hover {
  /* transform: rotateY(180deg); */
  cursor: pointer;
}
.flip-card-front, .flip-card-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden; /* Safari */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
}
.flip-card-back {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  padding: 1em;
}
.flip-card-back p {
  width: 100%;
  text-align: left;
  padding: 0.5em;
  font-size: .95em;
}
.pagination {
  font-size: 1em;
  width: 100%;
  text-align: center;
  padding-top: 1em ;
}
.pagination a{
  color: grey;
  font-weight: 100;
}
.page-numbers {
  padding: 0.2em;
}
.page-numbers.current {
  outline: 2px  outset rgba(93, 211, 247, 0.745);
  transition: .4s;
  color: var(--dark-grey-color);
}



/*-------footer------*/
.fa-facebook {
  color: blue;
}
.fa-facebook-messenger {
  color: rgb(98, 37, 222);
  /* color: linear-gradient(227deg, rgba(246,20,213,1) 9%, rgba(22,0,255,1) 98%); */
}
.fa-instagram {
  color: rgb(218, 31, 115);
}
.fa-telegram {
  color:rgb(0, 140, 255);
}
.fa-solid {
  color: grey;
}
footer {
  background-color: whitesmoke;
  color: grey;
  font-family: system-ui;
  font-weight: 100;
}
footer .wrapper {
  max-width: 582px;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  padding: 2em;
  gap: 0.5em;
  justify-content: space-between;
}
footer p {
  padding: 0.5em 0;
}
.socials {
  align-self: center;
  text-align: center;
  /* flex-basis: 100%; */
  order: 2;
  /* flex-basis: 50%; */
}
.socials i {
  font-size: 1.5em;
  padding: 0.1em;
  flex: 1;
}
footer i {
  padding: 0.2em;
}
.phone {
  order: 1;
}
.adress {
  order: 4;
  width: 100%;
  text-align: justify;
}
img.garage {
  /* width: 300px;
  height: 200px;
  margin: 0 auto; */
  filter: grayscale(30%);
  order: 5;
  display: none;
}
.adress, .phone, .scedule {
  display: flex;
  gap: 0.2em;
  align-items: center;
}
.adress p, .phone p {
  padding: 0;
}
.phone p{
    color: grey;
}
.copyright {
  order: 6;
  text-align: center;
  flex-basis: 100%;
  font-family: 'Nothing You Could Do', cursive;
  border-top: 1px solid lightgrey;
}
.scedule {
  order: 3;
}
.scedule a{
  color: inherit;
  text-decoration: underline;
}

/*-------page-------*/
main.page p {
  padding: 0.5em;
  text-align: justify;
  color: var(--dark-grey-color);
  /* text-indent: 1.5em; */
}
main.page .wrapper {
  padding: 2em;
}
main .text-background {
  border: 1px solid lightgrey;
  border-radius: 5px;
  box-shadow: 1px 1px 5px lightgray;
  background-color: whitesmoke;
  padding: 1em;
}

@media screen and (max-width: 900px) {
  .filter {
    flex-wrap: wrap;
    padding-right: 4em;
  }
  label[name="categories"] {
    display: block;
  }
}

@media screen and (max-width: 480px) {
  ul.menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgb(87 88 88 / 94%);
    transition:All 0.5s ease-in;
    transform: translateX(100%);
    opacity: 0;
  }
  ul.menu.show {
    transform: translateX(0);
    transition:All 0.5s ease-in;
    opacity: 1;
    z-index: 12;
  }

  /*-----Burger Menu-------*/
  .burger {
    display: block;
    margin-right: 0.5em;
  }
  .burger div{
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px;
    transition:all 0.5s ease;
  }

  .toggle .line1{
    transform: rotate(-45deg) translate(-5px,6px );
  }
  .toggle .line2{
    opacity: 0;
  }
  .toggle .line3{
    transform: rotate(45deg) translate(-5px,-6px );
  }

  .filter {
    padding: 1em 3em;
    justify-content: flex-start;
  }
  /* .switch span {
    display: block;
    padding: 0.5em;
  } */
  
/*----------archive-waste-----*/
  ul.waste-select-items{
    font-size: 1.1em;
  }
/*----------archive------*/
ul.waste-category-items {
  max-height: inherit;
}
  .waste-category-items li {
    padding: 0.5em 0;
    max-width: 100%;
  }
  .cards-container {
    justify-content: center;
  }

   main .wrapper {
    padding: 1em;
  }

  /*-------footer------*/
  footer .wrapper {
    width: 90vw;
  }
  
  .footer-container {
    flex-direction: column;
  }
  .adress {
    align-items: flex-start;
    text-align: justify;
  }
  .adress i {
    padding-top: 0.1em;
  }
  img.garage {
    display: block;
    width: 100%;
  }
  .socials {
    text-align: center;
    order: 5;
  }

}