body {
  max-width: 882px;
  margin: 0 auto;
}

@font-face {
  font-family: popins;
  src: url('https://fonts.googleapis.com/css?family=Poppins');
}

hr {
  display: block;
  height: 2px;
  border: 0;
  border-top: 1px solid #000000;
  margin: 1em 0;
  padding: 0;
  margin-bottom: 30px;
}

div {
  margin: 0;
  font-family: 'popins', sans-serif;
}

/*header*/

#header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 0px;
}

#clinicaData {
  text-align: right;
  font-weight: lighter;
  margin-top: 10px;
}

#phone {
  font-size: 2.1rem;
  margin-bottom: 0px;
}

#street,
#location {
  font-size: 1.1rem;
  margin: 0;
}

.itemHeader {
  height: 45px;
  width: 142px;
  text-align: center;
  vertical-align: middle;
  line-height: 45px;
  border: 2px solid #c9398e;
  border-radius: 22.5px;
  font-weight: bold;
  font-size: 1.1rem;
  margin-right: 10px;
  margin-left: 10px;
  cursor: pointer;
}

.itemHeader:hover {
  background-color: #c9398e;
  color: white;
}

a {
  text-decoration: none;
  color: black;
}

#brand {
  width: 74px;
  height: 74px;
}

/*@media only screen and (max-width: 768px) {
  .itemHeader {
    display: none;
  }
}*/

/*Slider*/
/* <base href="https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/"> */

@keyframes slidy {
  0% {
    left: 0%;
  }
  20% {
    left: 0%;
  }
  25% {
    left: -100%;
  }
  45% {
    left: -100%;
  }
  50% {
    left: 0%;
  }
  70% {
    left: 0%;
  }
  75% {
    left: -100%;
  }
  95% {
    left: -100%;
  }
  100% {
    left: 0%;
  }
}

div#slider {
  overflow: hidden;
}
div#slider figure img {
  width: 20%;
  float: left;
}
div#slider figure {
  position: relative;
  width: 500%;
  margin: 0;
  left: 0;
  text-align: left;
  font-size: 0;
  animation: 60s slidy infinite;
}

/*why*/
#reasons {
  background-color: #f3cef3;
}
.why {
  display: grid;
  grid-gap: 20px;
  grid-template-columns: 266px 266px 266px;
  grid-template-rows: auto;
  padding-bottom: 30px;
  padding-left: 20px;
}

.box {
  height: 202px;
  width: 267px;
  border: 2px solid #000000;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#pinki {
  color: #ba468a;
}

#reasonTitle {
  font-weight: bold;
  font-size: 25px;
  text-align: center;
  padding-top: 20px;
}

/*High tech*/

#techtitle {
  font-weight: bold;
  font-size: 25px;
  text-align: center;
  margin: 20px 5px 0px 5px;
}

.tech {
  margin-top: 50px;
}

#tech {
  display: flex;
  margin-top: 30px;
}

#tech-item {
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 148px;
  border: 2px solid #b8b8b8;
}

#tech-item-marg {
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 148px;
  border: 2px solid #b8b8b8;
  margin-left: 30px;
}

#techsubtitle {
  font-size: 16px;
}

#techimg {
  margin-top: 24px;
}

#line-tech {
  margin-right: 15px;
  margin-left: 15px;
}

/*maps*/

.address {
  display: flex;
  margin-top: 50px;
  background-color: #f3cef3;
}

#timetable {
  width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /*margin: 30px, 0, 0, 30px;*/
  margin-top: 30px;
  margin-left: 40px;
}

ul {
  /*list-style-type: '🔔';*/
  list-style: none;
}

#listtime {
  margin-left: 60px;
}

#linea::before {
  content: '•';
  color: #c9398e;
}

#lineo::before {
  content: '•';
  color: transparent;
}

span#bold {
  font-weight: bold;
}

span#boldin {
  font-weight: bold;
  font-size: 24px;
  margin: 0%;
}

.space {
  padding-left: 3px;
}

#borderbottom {
  border-bottom: 2px solid black;
  width: 400px;
  margin-top: 10px;
  padding-bottom: 15px;
}

#mapimg {
  margin-left: 42px;
}
#mapnoimg {
  display: none;
}

#contactButton {
  margin-left: 60px;
  margin-bottom: 20px;
  display: none;
}

#direction {
  margin: 30px 0px 0px 0px;
}

#direction2 {
  margin-top: 5px;
}

/*footer*/

#footer {
  display: flex;
  align-items: center;
}

#imglogo {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 90px;
  margin-left: 16px;
}

#minilogo {
  justify-content: center;
  align-items: center;
}

#address2 {
  margin-left: 85px;
}

#address3 {
  width: 485px;
}

#contactform {
  display: none;
  margin-bottom: 20px;
}

input[type='text'],
input[type='email'],
input[type='phone'] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type='submit'] {
  width: 100%;
  background-color: #c9398e;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type='submit']:hover {
  background-color: #45a049;
}

@media only screen and (max-width: 800px) {
  #brand {
    margin-left: 30px;
  }

  #clinicaData {
    margin-right: 30px;
  }

  .why {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: 266px 266px;
    grid-template-rows: auto;
    padding-bottom: 30px;
    padding-left: 20px;
    justify-content: space-evenly;
  }
  #home,
  .box c,
  .box2,
  #tech-item,
  .higiene,
  #footer,
  #mapimg {
    display: none;
  }

  #mapnoimg {
    display: block;
    margin-bottom: 30px;
    margin-left: 60px;
  }

  #timetable {
    width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*margin: 30px, 0, 0, 30px;*/
    margin-top: 30px;
    margin-left: 00px;
  }

  .address {
    margin-top: 50px;
    background-color: #f3cef3;
    display: flex; /* establish flex container */
    flex-direction: column; /* make main axis vertical */
    justify-content: center; /* center items vertically, in this case */
    align-items: center; /* center items horizontally, in this case */
    /*height: 300px;*/
  }

  #tech {
    display: flex;
    margin-top: 30px;
    justify-content: center;
  }
}

@media only screen and (max-width: 600px) {
  .itemHeader {
    display: none;
  }
  #header {
    display: flex;
    justify-content: center;
    margin-top: 0px;
  }

  #brand {
    margin-right: 30px;
  }

  #reasons {
    display: none;
  }
}

@media only screen and (max-width: 500px) {
  .protesil {
    display: none;
  }
}
