body,html{
  margin: 0;
  font-family: sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

.container{
  z-index: 5;
  max-width: 1050px;
}

.flex-container{
  display: flex;
  flex-wrap: wrap;
}

.card-container{
  margin: 0 1em;
}

.card-container h4{
  font-weight: lighter;
  margin: 0 auto;
  padding: 10.5em 0;
}
.card{
  padding: 1em;
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  border-radius: 3px;
  background-color: #FFF;
}

.form-container, .choice-container, .item-container{
  margin: 1em;
}
.item-card .flex-container h3{
  width: 80%;
  box-sizing: border-box;
  padding: 0 0.5em;
  margin: 0.5em 0;
}
.item-card .flex-container>div{
  width: 20%;
  text-align: center;
}
.item-card .flex-container div>span{
  display: block;
  font-size: 0.8em;
  color: red;
  text-transform: uppercase;
}
.contact{
  padding: 1em 0 0;
  text-align: center;
}
.contact button{
  cursor: pointer;
  padding:1em;
  border: none;
  font-size: 1em;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: lighter;
  background-color: #343434;
  box-sizing: border-box;
  border: 1px solid #999;
  color: white;
}

.item-details label{
  font-size: 0.7em;
  text-transform: uppercase;
}

header{
  position: relative;
  z-index: 5;
  display: flex;
  height: 60px;
  font-size: 2em;
  font-weight: bolder;
  text-transform: uppercase;
}

header a{
  color: black;
}

#header-lost, #header-found{
  padding: 0 3px;
  border-bottom-width: 3px;
  border-bottom-color: black;
}

.centered{
  justify-content: space-around;
  align-items: center;
}

.form-container label{
  display: block;
}
.form-container>div>label{
  padding: 0.25em 0;
}
input, select{
  box-sizing: border-box;
  font-family: sans-serif;
  display: block;
  font-size: 18px;
  width: 100%;
  background-color: #EEE;
  border: 1px solid #DDD;
  border-radius: 0;
  padding: 0.25em 0.5em;
}

.select-container{
  position: relative;
}
.select-container:after {
  content:'\25c4';
  color:#AAA;
  font-size: 1.2em;
  transform:rotate(270deg);
  right:0.6em;
  top:0.2em;
  padding:0 0 2px;
  position:absolute;
  pointer-events:none;
}
.inputfile {
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}

.lost-bg .inputfile + label {
  color: #D85B5B;
  border: 1px solid #D85B5B;
}
.inputfile + label {
  cursor: pointer;
  margin: 0.5em;
  color: #5896AD;
  border: 1px solid #5896AD;
  border-radius: 5px;
  padding: 0.5em 1em;
  background-color: white;
  display: inline-block;
}

.homepage{
  height: 100vh;
  width: 100vw;
  position: absolute;
  left: 0;
  right: 0;
  transition: 1s all;
  overflow-x: hidden;
}
.homepage{
  background-color: rgb(56,163,209);
}

.homepage-flex{
  width: 100%;
  margin-top: 30vh;
  justify-content:space-around;
  align-items: center;
  display: flex;
  flex-direction: column;
}
.homepage-flex .flex-item{
  position: relative;
  z-index: 5;
  margin: 3em 0;
  width: 250px;
  text-align: center;
  border-radius: 1px;
  background: linear-gradient(90deg, rgb(92, 60, 18) 0%, rgb(65, 47, 15) 100%);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(128, 128, 128, 0.1) inset;
}

.homepage-flex .flex-item:nth-child(1){
  transform: rotate(-4deg);
  border-top-right-radius: 6px;
  border-bottom-right-radius: 17px;
}

.homepage-flex .flex-item:nth-child(2){
  border-top-left-radius: 11px;
  transform: rotate(2deg);
  border-bottom-left-radius: 6px;
}

.homepage-flex .flex-item:after{
  content:"";
  position: absolute;
  top:0; left:100%;
  height:0; width:0;
  border-width: 30px;
  border-style:solid;
  border-color:rgb(65, 47, 15);
  border-top-color:transparent;
  border-bottom-color:transparent;
  border-right-color:transparent;
}

.homepage-flex .flex-item:nth-child(1):after{
  left:-24%;
  border-right-color:rgb(92, 60, 18);
  border-left-color: transparent;
}

.homepage-flex .flex-item a{
  font-size: 1.5em;
  padding: 0.2em;
  color: white;
  position: relative;
}
.homepage-flex .flex-item a:after{
  content:'';
  position:absolute;
  width:100%; height:7px;
  border-radius: 30px;
  background: linear-gradient(to left, #E77F00, #D03E00);
  clip-path: polygon(0 0, 100% 0, 100% 20%, 0% 100%);
  top:90%; left:0;
}

.homepage-flex .flex-item:nth-child(2) a:after{
  background: linear-gradient(to bottom, #38A3D1 , #3a7bd5);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 20%);
}

.post{
	position: absolute;
  z-index: 4;
  top: 25%;
  left: 44vw;
  bottom: 50px;
	width: 45px;
  background: linear-gradient(90deg, rgb(92, 60, 18) 0%, rgb(65, 47, 15) 100%);
	border-top-left-radius: 75px 78px;
	border-bottom-left-radius: 80px 30px;
	border-bottom-right-radius: 70px 15px;
  clip-path: polygon(5% 0, 88% 0, 100% 30%, 96% 70%, 100% 100%, 7% 100%, 0 71%, 5% 35%);
}
.grass{
  width: 100vw;
  height: 70px;
  position: absolute;
  bottom: 0;
  left: auto;
  background: linear-gradient(90deg, rgb(19, 138, 54) 0%, rgb(19, 107, 54) 100%);
  clip-path: polygon(29% 10%, 70% 2%, 100% 13%, 100% 100%, 70% 100%, 30% 100%, 0 100%, 0 3%);
}

.cloud-container{
  position: fixed;
  top: 0; bottom: 0;
  left: 0; right: 0;
  z-index: -1;
}

.clouds{
  position: absolute;
  fill: #EEE;
  z-index: 0;
  opacity: 0.6;
  width: 25%;
  height: 25%;
}
.cloud-1{
  top: 50vh;
  animation: move 15s linear infinite;
  -webkit-animation: move 15s linear infinite;
}
.cloud-2{
  top: 70vh;
  animation: move 20s linear 10s infinite backwards;
  -webkit-animation: move 20s linear 10s infinite backwards;
}

@-webkit-keyframes move {
  from {-webkit-transform: translateX(-50vw);}
  to {-webkit-transform: translateX(200vw);}
}

.found-bg{
  background: linear-gradient(to top, #38A3D1 , #3a7bd5);
  min-height: 100vh;
}

.lost-bg{
  background: linear-gradient(to top, #E77F00, #D03E00);
  min-height: 100vh;
}


.filter-btn{
  display: block;
  width: 100%;
  background-color: orange;
}

.filters-container{
  justify-content: space-between;
  font-size: 16px;
  padding: 1em;
  margin: 0.5em auto;
  color: white;
  background-color: rgba(0,0,0,0.3);
}

.filters-container div:nth-of-type(1){
  order: 2;
}
.filter-heading{
  display: block;
  text-transform: uppercase;
  font-size: 2em;
  width: 100%;
  color: rgba(0,0,0,0.5);
  font-weight: bolder;
}
.filters-container select, .filters-container #filter_date{
  width: 165px;
  background-color: rgba(0,0,0,0.4);
  border: 1px solid rgba(0,0,0,0);
  color: white;
  height: 40px;
}
.filters-container .select-container:after{
  top: 0.5em;
}
.filter-label{
  padding: 0.5em 0;
  font-weight: lighter;
}

.search-action{
  background-color: rgba(0,0,0,0.35);
  margin: 1em auto 0;
  padding: 1em 0;
}
.search-action div{
  padding: 0.5em;
}
.search-action a{
  font-size: 1.2em;
  font-weight: lighter;
  color: white;
}

.item{
  width: 100%;
  box-sizing: border-box;
}

.back-btn{
  text-transform: uppercase;
  font-size: 0.8em;
  display: block;
  text-align: center;
  padding: 3em 0 2em;
  cursor: pointer;
}

.item-card{
  cursor: pointer;
  margin: 1em auto;
  max-width: 300px;
}

.btn-form{
  display: block;
  margin: 2em 1em 0;
  padding: 0.5em 0;
  text-align: center;
  color: white;
  cursor: pointer;
  font-weight:lighter;
  border-radius: 5px;
}

.found-bg .btn-form, .found-bg .search-btn{
  background-color: #5896AD;
}

.lost-bg .btn-form, .lost-bg .search-btn{
  background-color: #D85B5B;
}

.or{
  display: block;
  margin: 2em 0;
  text-align: center;
  font-weight: bolder;
}

.search-btn-container{
  padding-top: 1em;
  text-align: right;
}

.search-btn{
  cursor: pointer;
  margin: 0.5em;
  font-size: 14px;
  background-color: #5896AD;
  padding: 0.75em 1.25em;
  border: none;
  border-radius: 3px;
  color: white;
}

.search-btn span{
  display: inline-block;
  font-size: 1.5em;
  margin-right: 0.5em;
  transform: rotate(45deg);
}

.img-container{
  display: flex;
  justify-content:center;
  align-items: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 250px;
  box-sizing: border-box;
  border: 1px solid #DDD;
}
.item-container .img-container{
  height: 300px;
  background-size: cover;
}
.item-card .img-container{
  margin-bottom: 1em;
}
.img-container span{
  text-align: center;
  font-size: 3.5em;
  color: #888;
  padding: 0.5em;
}
.img-container img{
  max-width: 100%;
  max-height: 100%;
}

a{
  text-decoration: none;
}

.text-center{
  text-align: center;
}

@media screen and (min-width: 768px) {
  .container{
    margin: 1em auto;
  }
  .form-container, .choice-container, .item-container{
    max-width: 500px;
    padding: 1em;
  }
  .back-btn{
    padding: 3em 0;
  }
  .post{
    left: 49vw;
  }
  .search .img-container{
    height: 250px;
  }
  select{
    -webkit-appearance: none;
    appearance: none;
  }
  .filter-heading{
    display: flex;
    width: auto;
    font-size: 3em;
  }
  .filters-container div:nth-of-type(2){
    order: 1;
  }
  .filter-label{
    text-align: center;
  }
  .cloud-1{
    top: 35vh;
  }
  .cloud-2{
    top: 60vh;
  }
  .filters-container select, .filters-container #filter_date{
    width: 200px;
  }
  .item-card{
    margin: 2em auto;
  }
  .item-details{
    padding: 0 1em;
  }
  #item_name{
    padding: 0 0.68em;
  }
}

@media only screen and (min-width : 860px) and (max-width : 1100px){
  .item{
    width: 50%;
    padding: 1em;
  }
}

@media only screen and (min-width : 1100px){
  .item{
    width: 33.33%;
    padding: 1em;
  }
}
