/*
Theme Name: Barrie District Stamp Club Custom Site
Author: You
Version: 3.0
*/

:root {
  font-family: "Gothic A1", sans-serif;
  color: black;
  font-size: 18px;
}

body {
  margin: 0;
}

h2 {
  border-bottom: 3px solid #20315b;
  margin: 30px 0 10px;
}

a {
  color: #20315b;
  font-weight: 600;
}

a:hover {
  text-decoration: none;
}

p {
  line-height: 2;
}

.control-width {
  max-width: 1260px;
  width: 90%;
  margin: 0 auto;
}

header {
  background-color: #ebf2f8;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  position: relative;
}

header h1 {
  font-size: 24px;
  margin: 0 0 0 20px;
  padding: 0;
  font-family: "Special Gothic Expanded One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

header .mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-right: 20px;
  z-index: 100;
}

header .mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #20315b;
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  list-style: none;
  padding: 0;
  margin: 0;
}

header nav ul li {
  margin: 0 20px;
}

header nav ul li a.active {
  text-decoration: underline;
}

header nav ul a {
  font-weight: 100;
}

header nav.active {
  max-height: 300px;
}

header a {
  color: black;
  text-decoration: none;
}

header a:hover {
  text-decoration: underline;
}

header .header-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

header .header-content h4 {
  margin: 0 0 0 20px;
  padding: 0;
  font-family: "Special Gothic Expanded One", sans-serif;
}

footer {
  background-color: #20315b;
  color: white;
  display: flex;
  flex-wrap: wrap;
  padding: 80px 50px;
  margin-top: 120px;
  justify-content: space-between;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 10px;
}

footer a {
  color: white;
  text-decoration: none;
  font-weight: 100;
}

footer a:hover {
  text-decoration: underline;
}

footer .logo,
footer .links,
footer .contact-info {
  margin-bottom: 30px;
}

footer .footer-logo {
  max-width: 150px;
  width: 100%;
  height: auto;
}

footer .links ul li a::before {
  content: "› ";
  color: inherit;
  margin-right: 4px;
}

button,
input[type="submit"],
.button {
  background-color: #20315b;
  color: white;
  border: none;
  padding: 20px 40px;
  font-size: 16px;
  text-decoration: none;
}

button:hover,
input[type="submit"]:hover,
.button:hover {
  box-shadow: inset 0 0 0 10em rgba(255, 255, 255, 0.1);
}

h1 {
  font-size: 36px;
  font-weight: 600;
}

.highlighted-table td {
  background-color: #ebf2f8;
}

.highlighted-table h3 {
  text-decoration: underline;
}

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

.responsive-image {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.gg-box img {
  max-width: 100%;
  height: auto;
}

.stamp {
  margin-top: 50px;
  margin-left: 50px;
  position: relative;
  background: white;
  -webkit-filter: drop-shadow(3px 3px 1px black);
  filter: drop-shadow(0px 0px 4px black);
}

.stamp::before {
  position: absolute;
  top: -20px;
  display: block;
  content: "";
  background: radial-gradient(circle, transparent 15px, white 16px);
  background-size: 50px 40px;
  background-position: -20px -20px;
  width: 100%;
  height: 40px;
  z-index: -1;
}

.stamp::after {
  position: absolute;
  bottom: -20px;
  content: "";
  display: block;
  background: radial-gradient(circle, transparent 15px, white 16px);
  background-size: 50px 40px;
  background-position: -20px -20px;
  width: 100%;
  height: 40px;
  z-index: -1;
}

#meetings table {
  max-width: 100%;
  overflow-x: auto;
}

#home #banner {
  background-color: #ebf2f8;
  padding: 60px 0;
}

#home #banner .control-width {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 20px;
}

#home #banner .control-width .text {
  flex: 1 1 50%;
}

#home #banner .control-width .image {
  flex: 0 1 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#home #banner .control-width .image .photo-container {
  background-color: white;
  padding: 5px 5px 45px 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  max-width: 420px;
}

#home #banner .control-width .image img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}

#home #banner .control-width .image .caption {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 16px;
  text-align: center;
  font-style: italic;
  white-space: nowrap;
}

#home #banner .button-wrapper {
  margin-top: 50px;
}

#home section {
  padding: 30px 0;
}

#home .featured-stamp img {
  display: block;
  margin: 0 auto;
}

#home #upcoming-events table tr:hover {
  background-color: #ebf2f8;
}

#home #upcoming-events table td:first-child strong,
#home #upcoming-events table td:first-child b {
  color: #20315b;
}

#home #upcoming-events table strong,
#home #upcoming-events table b {
  font-weight: 600;
}

#history .photo {
  background-color: #20315b;
  color: white;
  padding: 20px;
  margin: 20px;
  float: left;
  max-width: 250px;
}

#history .photo:nth-of-type(odd) {
  float: right;
}

#history .photo img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

#history .photo span {
  display: block;
  text-align: center;
  font-size: 14px;
  margin-top: 10px;
}

#history p {
  clear: none;
  overflow: auto;
}

#history #club-history ul {
  list-style: none;
  margin-top: 80px;
}

#history #club-history ul li {
  display: flex;
  margin-bottom: 80px;
}

#history #club-history ul li img {
  margin-right: 20px;
}

#history #club-history ul li h2 {
  margin-top: 0;
  font-size: 1em;
}

#history #club-history ul li h2 span {
  font-weight: 100;
  padding-left: 10px;
}

#history #photo {
  padding-top: 80px;
}

#become-a-member form {
  margin-top: 40px;
}

#become-a-member form .form-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}

#become-a-member form input[type="text"],
#become-a-member form input[type="tel"],
#become-a-member form input[type="email"] {
  font-family: "Gothic A1", sans-serif;
  padding: 15px;
  font-size: 18px;
  flex: 1 0 calc(50% - 40px);
  min-width: 250px;
  width: calc(100% - 30px);
}

#become-a-member form input[type="submit"] {
  display: block;
  margin: 0 auto;
}

@media screen and (max-width: 1024px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  #home #banner .control-width .image {
    margin-top: 40px;
  }
}

@media screen and (max-width: 768px) {
  header {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 20px 0;
  }

  header h1 {
    margin: 0 0 0 20px;
    text-align: left;
    font-size: 20px;
  }

  header .mobile-menu-toggle {
    display: block;
  }

  header nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }

  header nav ul {
    flex-direction: column;
    width: 100%;
    padding: 20px 0;
  }

  header nav ul li {
    margin: 10px 0;
    text-align: center;
  }

  header .header-content h4 {
    display: none;
  }

  .gg-container {
    padding: 0;
  }

  .gg-box {
    grid-gap: 8px;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
  }

  footer a {
    text-decoration: underline;
  }

  footer .logo,
  footer .links,
  footer .contact-info {
    margin-bottom: 30px;
    width: 100%;
  }

  .highlighted-table {
    display: block;
    width: 100%;
  }

  .highlighted-table tr,
  .highlighted-table td {
    display: block;
    width: 100%;
    margin-bottom: 20px;
  }

  #become-a-member form .form-row {
    flex-direction: column;
  }

  #become-a-member form input[type="text"],
  #become-a-member form input[type="tel"],
  #become-a-member form input[type="email"] {
    margin: 10px;
    width: calc(100% - 40px);
  }

  #history .photo {
    margin: 20px auto;
    max-width: 80%;
  }

  #history p {
    clear: both;
  }

  #meetings table {
    font-size: 14px;
  }

  #meetings table td {
    padding: 8px 28px;
    display: block;
  }
}

@media screen and (max-width: 480px) {
  :root {
    font-size: 16px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 18px;
  }

  button,
  input[type="submit"],
  .button {
    padding: 15px 30px;
    width: 100%;
    box-sizing: border-box;
  }

  #home #banner img {
    margin: 10px 0;
  }

  #meetings table {
    font-size: 12px;
  }

  #meetings table td {
    padding: 5px !important;
  }
}
