/* for light theme*/

.img-dark {
  display: block;
}

.img-light {
  display: none;
}

body.light-mode .img-dark {
  display: none;
}

body.light-mode .img-light {
  display: block;
}

.img-wrapper {
  max-width: 100%;
}

.img-wrapper img {
  width: 100%;
  height: auto;
}

/******************************* GENERAL STYLING ****************************/

#contact-content h1 {
  color: var(--text-color);
}

#contact-content h2,
#contact-content p {
  color: var(--text-white);
}

#contact-content h1 {
  font-size: var(--header-size);
  font-weight: 700;
}

#contact-content h2 {
  font-size: var(--font-m);
  font-weight: 600;
  line-height: 1.5;
}

#contact-content p {
  font-size: var(--font-sm);
  font-weight: 300;
  line-height: 1.5;
  padding: var(--padding-m) 0 var(--padding-m) 0;
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  margin-top: var(--margin-l);
  gap: var(--margin-l);
}

.contact img,
.location img {
  max-width: 50px;
  max-height: 50px;
}

.info-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--margin-l);
  align-items: center;
  text-align: center;
  padding-top: var(--padding-m);
}

.contact,
.location {
  display: flex;
  flex-direction: column;
  gap: var(--margin-xs);
  align-items: center;
  text-align: center;
}

.contact ul {
  list-style-type: none;
}

.contact li {
  padding-bottom: var(--padding-s);
}

.contact a {
  text-decoration: none;
  color: var(--text-white);
  font-weight: 300;
  font-size: var(--font-sm);
}

#contact-content .location p {
  font-size: var(--font-sm);
  padding: 0;
}

/******************************* MEDIAQUERIES ****************************/

/* tablet size */

@media (min-width: 768px) {
  .contact-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--margin-xl);
  }

  .img-wrapper {
    flex: 1;
    max-width: 50%;
  }

  .info-wrapper {
    flex: 1;
  }

  #contact-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
  }

  #contact-content p {
    font-size: var(--font-m);
  }
}

/* desktop size */

@media (min-width: 1024px) {
  #main-wrapper {
    padding: var(--padding-xl) var(--padding-xxl) 6rem;
  }

  .contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding-top: var(--padding-xl);
  }
}

/* tv/mega-screen sizes */

@media (min-width: 1440px) {
  #contact-content {
    margin: 0 auto;
    max-width: 1440px;
  }
}
