/* GENERAL */
:root {
  --madd-red: #b3272d;
  --madd-gray: #f5f5f5;
  --madd-font-raleway: 'Raleway', sans-serif, 'Helvetica Neue', Arial;
  --madd-font-oswald: 'Oswald', sans-serif;
  --madd-font-lato: 'Lato', sans-serif;
}

body {
  background-color: #fff;
}

* {
  padding: 0;
  margin: 0;
  max-width: 100%;
  font-family: var(--madd-font);
}

h3 {
  font-family: var(--madd-font-oswald);
  text-transform: uppercase;
  font-weight: bold;
  font-size: 30px;
}

.red-text {
  color: var(--madd-red);
}

.summary-header {
  font-family: var(--madd-font-lato);
  background-color: #121212;
  color: #fff;
  font-weight: bold;
}

p {
  font-family: var(--madd-font-lato);
  margin-bottom: 1em;
  text-align: center;
  font-size: 18px;
}

hr {
  margin: 1em 0 2em 0;
  display: block;
}

.typ-container {
  max-width: 960px;
  display: block;
  margin: 0 auto;
  padding: 2em 1em;
}

.typ-container a {
  color: var(--madd-red);
  text-decoration: underline;
}

img {
  display: block;
}

/* HEADER */
header nav {
  text-align: center;
  padding: 1em 0;
}

header nav img#logo {
  max-width: 120px;
  margin: 0 auto;
}

/* HERO */
#hero-image {
  background-color: var(--madd-red);
}

#hero-image img {
  width: 100%;
}

#hero-mobile {
  display: none;
}

/* FOLLOW SECTION */
#social {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}
#social h3 {
  display: inline-block;
  max-width: 15%;
  text-align: right;
  margin-right: 15px;
}
#social a {
  text-decoration: none;
  margin-right: 15px;
  display: flex;
}
#social a img {
  height: 40px;
}
/* DOUBLE SECTION */
section#double {
  background-color: var(--madd-gray);
  text-align: center;
}

#double-content {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
}

#double-content img {
  max-width: 50%;
  width: 45%;
  max-height: 120px;
}

#mobile-image {
  display: none;
}

#matching-search {
  width: 50%;
}
#dd-container .dtd-callout,
.dtd-plugin .dtd-callout {
  padding: 0 !important;
  margin: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

#dd-container .search-title,
.dtd-plugin .search-title {
  font-family: var(--madd-font-lato) !important;
  font-weight: bold !important;
  font-size: 18px !important;
  width: 100%;
}

#dd-container .dtd-search-box,
.dtd-plugin .dtd-search-box {
  max-width: 50% !important;
  width: 50% !important;
  box-shadow: none !important;
  border: 1px solid #000 !important;
  border-radius: 0 !important;
}

#dd-container .dtd-search-input[name='doublethedonation_company_name_input'],
.dtd-plugin .dtd-search-input[name='doublethedonation_company_name_input'] {
  padding: 15px 20px 15px 40px !important;
  background-position: 12px 17px !important;
}

#dd-container .dtd-search-input:focus-visible,
.dtd-plugin .dtd-search-input:focus-visible {
  outline: none !important;
}

#dd-container .dtd-lets-check,
.dtd-plugin .dtd-lets-check {
  width: 45%;
  flex-direction: column;
}

#dd-container .grid-x .cell.medium-4,
.dtd-plugin .grid-x .cell.medium-4 {
  width: 100%;
}

#dd-container button.lets-check,
.dtd-plugin button.lets-check {
  margin: 0;
  background-color: var(--madd-red) !important;
  border-radius: 0 !important;
  color: #fff;
}

#dd-container .dtd-powered-by img,
.dtd-plugin .dtd-powered-by img {
  display: none !important;
}
/* SUMMARY SECTION */
#summary-content {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
}

#summary-container,
#sumary-sidebar {
  width: 47.5%;
}
#summary-container {
  background-color: var(--madd-gray);
}

#summary-container h3 {
  padding: 1em 0.5em;
}

h4.summary-header {
  padding: 0.5em 1em;
}

.summary-info {
  padding: 0.5em;
}

#sidebar-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 2em 0;
  justify-content: flex-start;
}

.sidebar-grid-item {
  margin-bottom: 0.5em;
  margin-right: 0.5em;
}

/* FOOTER */
footer {
  background-color: #121212;
  color: #fff;
  text-align: center;
}

@media (max-width: 767px) {
  h3 {
    font-size: 24px;
  }

  p {
    font-size: 16px;
  }

  header nav img#logo {
    max-width: 180px;
  }

  /* HERO */
  #hero-desktop {
    display: none;
  }

  #hero-mobile {
    display: block;
  }

  /* FOLLOW SECTION */
  #social {
    flex-direction: column;
  }

  #social h3 {
    width: 100%;
    text-align: center;
    margin: 0;
    margin-bottom: 1em;
    max-width: 100%;
  }

  #social a {
    margin: 0;
    margin-bottom: 0.5em;
    width: 100%;
    justify-content: center;
  }

  /* DOUBLE SECTION */
  #double-content {
    flex-direction: column;
    margin-top: 2em;
  }
  #desktop-image {
    display: none;
  }

  #mobile-image {
    display: block;
  }

  #double-content img {
    max-width: 80%;
    width: 100%;
    max-height: unset;
  }

  #matching-search {
    width: 100%;
  }

  /* SUMARY SECTION */

  #summary-content {
    flex-direction: column;
  }

  #summary-container,
  #sumary-sidebar {
    width: 100%;
    margin: 1em 0;
  }

  .sidebar-grid-item {
    max-width: 135px;
  }
}
