/* CSS Variables */
:root {
  --sand: #cb9448;
  --red: #ba545b;
  --green: #7F9B45;
  --dark-green: #4D7043;
  --blue: #458d8e;
  --dark: #21434a;
  --light: #f5e3c6;
  --white: #fffffe;
  --red-active: #9C3F45;
  --green-active: #6a823a;
  --dark-green-active: #375030;
  --blue-active: #346A6A;
}

/* Typography */
body {
  font-family: 'Sanchez', serif;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 400;
  color: var(--white);
  background-color: var(--light);
  margin: 0;
}

h1 {
  font-size: 48px;
  color: var(--light);
  line-height: 1;
  font-weight: 600;
}

h2 {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
  align-self: start;
}

h3 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
}

a {
  text-decoration: none;
}

.inline-link {
  color: var(--white);
  text-decoration: underline;
  transition: all 0.2s;
}

.inline-link:hover {
  color: var(--light);
  transition: all 0.2s;
  text-decoration: underline;
}

.footer-link {
  color: var(--dark);
  text-decoration: none;
  transition: all 0.2s;
}

.footer-link:hover {
  color: var(--sand);
  transition: all 0.2s;
}

p {
  margin: 12px 0;
}

i {
  font-style: italic;
}

figcaption {
  text-align: center;
  color: var(--light);
  font-size: 14px;
  margin-top: -12px;
}

strong {
  font-weight: 600;
}

/* Initial Layout */
header {
  width: 100vw;
  background-color: var(--sand);
  padding: 14px 12px;
}

.hero {
  background-image: url("/images/carnoustie-1880-sharpened.jpg");
  background-position: bottom;
  background-size: cover;
  width: 100vw;
  max-height: 460px;
  z-index: -10;
}

.hero-circular {
  background-image: url("/images/Craigmill-2.jpg");
  background-position: center;
  background-size: cover;
  width: 100vw;
  max-height: 460px;
  z-index: -10;
}

.hero-history {
  background-image: url("/images/dibble1.jpg");
  background-position: center;
  background-size: cover;
  width: 100vw;
  max-height: 460px;
  z-index: -10;
}

.hero-nature {
  background-image: url("/images/GreySealInTheTayEstuary.jpg");
  background-position: center;
  background-size: cover;
  width: 100vw;
  max-height: 460px;
  z-index: -10;
}

.hero-golfing {
  background-image: url("/images/totem17_b.jpg");
  background-position: top;
  background-size: cover;
  width: 100vw;
  max-height: 460px;
  z-index: -10;
}


.hero-image {
  width: 100vw;
  max-height: 460px;
  opacity: 0;
}

iframe {
  margin-left: auto;
  margin-right: auto;
}

footer {
  width: 100vw;
  height: auto;
  padding: 24px;
  background-color: var(--light);
  color: var(--dark);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

/* Dropdown */
.landing-dropdown {
  padding: 12px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-height: 120px;
  transition: all 0.6s ease-in-out;
}

svg {
  fill: var(--white);
  transition: all 0.6s ease-in-out;
}

.dropdown-circular {
  background-color: var(--dark-green);
  color: var(--white);
}

.dropdown-history {
  background-color: var(--red);
  color: var(--white);
}

.dropdown-nature {
  background-color: var(--blue);
  color: var(--white);
}

.dropdown-golfing {
  background-color: var(--green);
  color: var(--white);
}

.dropdown-links {
  background-color: var(--light);
  color: var(--sand);
  border-bottom: 2px solid var(--sand);
}

.dropdown-links:hover {
  background-color: var(--sand);
  color: var(--blue);
  border-bottom: 2px solid var(--sand);
  border-top: 2px solid var(--sand);
}

.dropdown-map {
  background-color: var(--dark);
  color: var(--white);
}

.dropdown-map-back {
  background-color: var(--sand);
  color: var(--white);
}

.dropdown-linked-item {
  padding: 12px;
  display: block;
  min-height: 120px;
  border-top: 2px solid var(--light);
  transition: all 0.3s;
}

.dropdown-linked-item:hover {
  color: var(--light);
  transition: all 0.3s;
}

#circular-section {
  overflow: hidden;
  transition: all 0.6s ease-in-out;
  height: auto;
  max-height: 0;
}

#circular-section-active {
  overflow: hidden;
  transition: all 0.6s ease-in-out;
  height: auto;
  max-height: 1600px;
}

#circular-button-active {
  background-color: var(--dark-green-active);
  color: var(--light);
}

#circular-svg-active {
  fill: var(--light);
}

#history-section {
  overflow: hidden;
  transition: all 0.6s ease-in-out;
  height: auto;
  max-height: 0;
}

#history-section-active {
  overflow: hidden;
  transition: all 0.6s ease-in-out;
  height: auto;
  max-height: 1600px;
}

#history-button-active {
  background-color: var(--red-active);
  color: var(--light);
}

#history-svg-active {
  fill: var(--light);
}

#nature-section {
  overflow: hidden;
  transition: all 0.6s ease-in-out;
  height: auto;
  max-height: 0;
}

#nature-section-active {
  overflow: hidden;
  transition: all 0.6s ease-in-out;
  height: auto;
  max-height: 1600px;
}

#nature-button-active {
  background-color: var(--blue-active);
  color: var(--light);
}

#nature-svg-active {
  fill: var(--light);
}

#golfing-section {
  overflow: hidden;
  transition: all 0.6s ease-in-out;
  height: auto;
  max-height: 0;
}

#golfing-section-active {
  overflow: hidden;
  transition: all 0.6s ease-in-out;
  height: auto;
  max-height: 1600px;
}

#golfing-button-active {
  background-color: var(--green-active);
  color: var(--light);
}

#golfing-svg-active {
  fill: var(--light);
}

#links-section {
  overflow: hidden;
  transition: all 0.6s ease-in-out;
  height: auto;
  max-height: 0;
  border-top: 2px solid var(--sand);
}

#links-section-active {
  overflow: hidden;
  transition: all 0.6s ease-in-out;
  height: auto;
  max-height: 1600px;
  border-top: 2px solid var(--sand);
}

#links-button-active {
  background-color: var(--sand);
  color: var(--light);
  border-top: 2px solid var(--sand);
  border-bottom: 2px solid var(--sand);
}

#links-svg-active {
  fill: var(--light);
}

/* Item Pages */
.circular-heading {
  padding: 12px;
  min-height: 120px;
  background-color: var(--dark-green-active);
  color: var(--light);
  border-bottom: 2px solid var(--light);
}

.circular-item-content {
  background-color: var(--dark-green);
  color: var(--white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
}

.history-heading {
  padding: 12px;
  min-height: 120px;
  background-color: var(--red-active);
  color: var(--light);
  border-bottom: 2px solid var(--light);
}

.history-item-content {
  background-color: var(--red);
  color: var(--white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
}

.nature-heading {
  padding: 12px;
  min-height: 120px;
  background-color: var(--blue-active);
  color: var(--light);
  border-bottom: 2px solid var(--light);
}

.nature-item-content {
  background-color: var(--blue);
  color: var(--white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
}

.golfing-heading {
  padding: 12px;
  min-height: 120px;
  background-color: var(--green-active);
  color: var(--light);
  border-bottom: 2px solid var(--light);
}

.golfing-item-content {
  background-color: var(--green);
  color: var(--white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
}


.item-content-image {
  max-width: 360px;
  align-self: center;
  margin: 20px;
  border: 2px solid var(--light);
}

.map-content {
  background-color: var(--dark);
  color: var(--white);
  padding: 20px 0 0 0;
}

.map-content h2 {
  padding-left: 20px;
}

.map-image {
  align-self: center;
  margin-top: 20px;
  border: 0;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  width: 100vw;
}

.item-map-image {
  align-self: center;
  margin-top: 20px;
  border: 0;
  margin-left: 20px;
  margin-right: 20px;
  width: 94vw;
  max-width: 600px;
}

.winners-green {
  color: var(--dark);
}




/* Media Query for non-mobile users */
@media screen and (min-width: 740px) {
  .dropdown-linked-item {
    height: 100px;
  }

  .landing-dropdown {
    height: 100px;
  }

  .hero-image {
    max-height: 480px;
  }

  .hero {
    max-height: 480px;
  }

  .map-image {
    width: 100vw;
  }
}

@media screen and (min-width: 1080px) {
  .dropdown-linked-item {
    height: 100px;
  }

  .landing-dropdown {
    height: 100px;
  }

  .hero-image {
    max-height: 600px;
  }

  .hero {
    max-height: 600px;
  }
}
