* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 25%;
}

.logo img {
  width: 75%;
  object-fit: contain;
}

nav {
  width: 75%;
  display: flex;
  justify-content: space-around;
}

nav a {
  width: 100%;
  color: #c29cc1;
  text-decoration: none;
  font-size: 1.7em;
  font-weight: bold;
  text-align: center;
}

.dropdown {
  display: inline-block;
}

.dropdown-content {
  display: none;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  position: fixed;
  border-radius: 8px;
  background-color: white;
}

.dropdown-content a {
  color: #c29cc1;
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  flex-flow: column wrap;
  align-items: start;
  font-size: 1.2em;
}

.dropdown-content a:hover {
  background-color: whitesmoke;
  border-radius: 8px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.specialties-text {
  width: 100%;
  font-size: 1.4em;
  background-color: whitesmoke;
  padding: 1% 12%;
  margin: auto;
  position: relative;
}

.image-container {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  align-items: center;
  row-gap: 10px;
  max-width: 100%;
  margin: 0 auto;
  padding: 1% 5%;
  background-color: whitesmoke;
}

.image-container img {
  max-width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

.image-block {
  text-align: center;
  position: relative;
}

.caption {
  position: absolute;
  top: 50%;
  left: 50%;
  right: -50%;
  transform: translate(-50%, -50%);
  color: #f2f2f2;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 1.1em;
  padding: 1%;
}

.treatment-container {
  width: 100%;
  font-size: 1.2em;
  padding: 2% 8%;
}

footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.emdria-container {
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.emdria {
  width: 100%;
  padding: 30%;
  /* height: 30%; */
  /* object-fit: contain; */
}

.jtsn-container {
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.jtsn {
  width: 100%;
  padding: 10%;

  /* height: 50%; */
  /* object-fit: contain; */
}

.psyche-today-container {
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2%;
}

.psyche-today {
  width: 100%;
  padding: 10%;
  /* height: 100%; */
  /* object-fit: contain; */
}

.therapyden-container {
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.therapyden {
  width: 100%;
  padding: 10%;
  /* height: 50%; */
  /* object-fit: contain; */
}

.ifs-container {
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ifs {
  width: 100%;
  padding: 10%;
  /* height: 50%; */
  /* object-fit: contain; */
}

@media screen and (max-width: 768px) {
  header,
  nav {
    /* width: 100%; */
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    font-size: small;
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .dropdown-content {
    font-size: smaller;
  }
}

@media screen and (max-width: 768px) {
  .logo {
    width: 50%;
    display: flex;
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .specialties-text {
    font-size: medium;
  }
}

@media screen and (max-width: 768px) {
  .image-container img {
    max-width: 150px;
    height: 150px;
  }
}

@media screen and (max-width: 768px) {
  .caption {
    font-size: medium;
  }
}

@media screen and (max-width: 768px) {
  .treatment-container {
    font-size: medium;
  }
}

@media screen and (max-width: 768px) {
  iframe {
    width: auto;
    height: auto;
  }
}

@media screen and (max-width: 768px) {
  .badge-info {
    font-size: medium;
    padding: 5%, 5%, 0;
  }
}

@media screen and (max-width: 768px) {
  .emdria {
    width: 100%;
    height: 100%;
    /* object-fit: contain; */
    padding: 25%;
    /* padding: 10% 10% 10% 40%; */
  }
}

@media screen and (max-width: 768px) {
  .jtsn {
    width: 115%;
    /* height: 100%; */
    /* object-fit: contain; */
    /* padding: 1%; */
  }
}

@media screen and (max-width: 768px) {
  .therapyden {
    width: 100%;
    /* height: 100%; */
    padding: 25%;
  }
}

@media screen and (max-width: 768px) {
  .psyche-today {
    width: 135%;
    /* height: 100%; */
    /* padding: 1%; */
  }
}

@media screen and (max-width: 768px) {
  .ifs {
    width: 100%;
    /* height: 100%; */
    padding: 2%;
  }
}
