:root {
  /* brand colors */
  --mm-pink: #FECAE9;
  --mm-blue: #6984E9;
  --mm-yellow: #E6FF9B;
  --mm-dark-brown: #392015;
  --mm-light-brown: #824F38;
  --mm-peach: #F88E6E;
  --mm-red: #D54013;
  --mm-gray: #969696;
  --mm-dark-gray: #696969;

  /* text colors */
  --light-text: var(--mm-yellow);
  --medium-text: var(--mm-light-brown);
  --dark-text: var(--mm-dark-brown);
}

@font-face {
  font-family: 'Epilogue';
  src: url('/assets/fonts/Epilogue-VariableFont_wght.ttf');
}
@font-face {
  font-family: 'Fjalla One';
  src: url('/assets/fonts/FjallaOne-Regular.ttf');
}

body {
  overflow-x: hidden;

  margin: 0;
  font-family: 'Fjalla One', sans-serif;
  font-size: 20px;

  background-color: var(--mm-blue);
  color: var(--dark-text);
}

.font-epilogue {
  font-family: 'Epilogue', sans-serif;
  font-weight: 600;
}
.font-epilogue-lightweight {
  font-weight: 500;
}

a {
  text-decoration: none;
  color: var(--medium-text);
}
.section-dark-brown a {
  color: var(--mm-pink);
}
a:hover,
.section-dark-brown a:hover {
  color: var(--light-text);
}
.section-light-brown a {
  color: var(--light-text);
}
.section-light-brown a:hover,
.section-yellow a:hover {
  color: var(--dark-text);
}

.header {
  z-index: 2;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  background-color: var(--mm-blue);

  border-bottom: 2px solid black;

  padding: 10px 0;
}
.header img {
  height: 85px;
}
.header a {
  color: var(--dark-text);
}
.header a:hover {
  color: var(--medium-text);
}

.footer .flex-cols-container {
  align-items: stretch; /* stretch to full height so we can play with vertical spacing */
}
.footer .flex-footer-left,
.footer .flex-footer-right {
  box-sizing: border-box;
}
.footer .flex-footer-left {
  width: 40%; /* a column of exactly 40% width so we can use full screen width */
  padding: 50px;
  align-self: center;
}
.footer .flex-footer-right {
  width: 60%; /* a column of exactly 60% width so we can use full screen width */
  border-left: 2px solid var(--mm-dark-brown);
}
.footer .flex-footer-right * {
  height: 100%;
}
.footer nav {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  width: 100%;
}
.footer .footer-top-right,
.footer .footer-bottom-right {
  text-align: center;
  align-content: center;
  padding: 20px;
}
.footer .footer-top-right {
  background-color: var(--mm-red);
  border-bottom: 2px solid var(--mm-dark-brown);
}
.footer .footer-bottom-right {
  background-color: var(--mm-yellow);
}
.footer .footer-top-right a {
  color: var(--mm-yellow);
}
.footer .footer-bottom-right a {
  color: var(--mm-dark-brown);
}

.scrolling-text-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}
.scroll-left {
  display: inline-block;
  animation: scroll-left 20s linear infinite; /* Adjust duration for speed */
}
.scroll-right {
  display: inline-block;
  animation: scroll-right 20s linear infinite; /* Adjust duration for speed */
}
@keyframes scroll-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
@keyframes scroll-right {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}


ul {
  text-align: center;
  display: inline-block;
  text-align: left;
  margin-block-start: 0;
  margin-block-end: 0;
}

li {
  margin: 20px 0; /* vertical space between list elements */
}

.rectangle {
  height: fit-content;
  width: fit-content;
  border-radius: 50px;
}
.oval {
  height: fit-content;
  width: fit-content;
  border-radius: 150px;
}
.shape-blue,
.shape-red,
.shape-peach {
  padding: 50px;
  border: 2px solid var(--mm-dark-brown);
}
.section-dark-brown .shape-blue,
.section-dark-brown .shape-red {
  border: 2px solid black;
}
.shape-blue,
.shape-red {
  color: var(--mm-pink);
}
.shape-blue {
  background-color: var(--mm-blue);
}
.shape-red {
  background-color: var(--mm-red);
}
.shape-peach {
  background-color: var(--mm-peach);
  color: var(--mm-yellow);
}

/* add a dark brown bottom border to non-dark-brown sections only if the section does NOT have a dark brown section immediately after it */
.section-pink:not(:has(+ .section-dark-brown)),
.section-blue:not(:has(+ .section-dark-brown)),
.section-yellow:not(:has(+ .section-dark-brown)),
.section-light-brown:not(:has(+ .section-dark-brown)),
.section-peach:not(:has(+ .section-dark-brown)),
.section-red:not(:has(+ .section-dark-brown)) {
  border-bottom: 2px solid var(--mm-dark-brown);
}
.section-pink {
  background-color: var(--mm-pink);
  color: var(--mm-blue);
}
.section-blue {
  background-color: var(--mm-blue);
  color: var(--mm-pink);
}
.section-yellow {
  background-color: var(--mm-yellow);
  color: var(--dark-text);
}
.section-dark-brown {
  border-bottom: 2px solid black;
  background-color: var(--mm-dark-brown);
  color: var(--mm-pink);
}
/* add a top border to dark brown sections that have a preceding sibling, but the preceding sibling is not the header */
:not(.header) + .section-dark-brown {
  border-top: 2px solid black;
}
.section-light-brown {
  background-color: var(--mm-light-brown);
  color: var(--light-text);
}
.section-peach {
  background-color: var(--mm-peach);
  color: var(--mm-yellow);
}
.section-red {
  background-color: var(--mm-red);
  color: var(--light-text);
}

.center-text,
.section-center {
  text-align: center;
}
.left-text,
.section-left {
  text-align: left;
}
.right-text,
.section-right {
  text-align: right;
}

.underline,
.underline-wavy,
.header a.current-page {
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.underline,
.header a.current-page {
  text-decoration: underline;
}
.underline-wavy {
  text-decoration: wavy underline;
  text-decoration-color: rgba(230, 255, 155, 0.8);
}

.section-center,
.section-left,
.section-right {
  padding: 50px;

  /* flexbox to horizontally center section content even if it doesn't span the full width of the section */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-full-width {
  padding: 50px 0;
}

.margin-top {
  margin-top: 30px;
}
.margin-top-bottom {
  margin: 30px 0;
}

.no-padding {
  padding: 0 0;
}

.width-25 {
  width: 25%;
}
.width-50 {
  width: 50%;
}
.width-70 {
  width: 70%;
}
.width-80 {
  width: 80%;
}

.xs-text {
  font-size: 20px;
}
.sm-text {
  font-size: 25px;
}
.md-text {
  font-size: 40px;
  font-size: 2.5vw;
}
.lg-text {
  font-size: 4.25vw;
}
.xl-text {
  font-size: 8vw;
}
.massive-text {
  font-size: 20vw;
}

.line-height-1 {
  line-height: 1; /* default ("normal") is 1.2(em); setting to 1(em) instead */
}

.light-text {
  color: var(--light-text);
}
.dark-text {
  color: var(--dark-text);
}
.white-text {
  color: white;
}
.yellow-text {
  color: var(--mm-yellow);
}

.no-break {
  white-space: nowrap;
}

button,
.button {
  border: 2px solid var(--mm-dark-brown);
  border-radius: 10px;
  padding: 50px;
  font-size: 20px;
  width: fit-content;
}
button:hover,
.button:hover {
  cursor: pointer;
}
.btn-pink {
  background-color: var(--mm-pink);
  color: var(--dark-text);
}
.btn-blue {
  background-color: var(--mm-blue);
  color: var(--dark-text);
}
.btn-yellow {
  background-color: var(--mm-yellow);
  color: var(--dark-text);
}
.btn-dark-brown {
  border-color: black;
  background-color: var(--mm-dark-brown);
  color: var(--light-text);
}
.btn-light-brown {
  background-color: var(--mm-light-brown);
  color: var(--light-text);
}
.btn-peach {
  background-color: var(--mm-peach);
  color: var(--dark-text);
}
.btn-red {
  background-color: var(--mm-red);
  color: var(--dark-text);
}
/* hover styling but only apply on non-touchscreen devices */
@media(hover: hover) and (pointer: fine) {
  .btn-pink:not(:disabled):hover,
  .btn-blue:not(:disabled):hover,
  .btn-yellow:not(:disabled):hover,
  .btn-dark-brown:not(:disabled):hover,
  .btn-red:not(:disabled):hover {
    background-color: var(--mm-peach);
  }
  .btn-light-brown:not(:disabled):hover {
    background-color: var(--mm-dark-brown);
    border-color: black;
  }
  .btn-peach:not(:disabled):hover {
    background-color: var(--mm-pink);
  }
}

form {
  display: flex;
  flex-direction: column;
  gap: 2.4vh;

  background-color: var(--mm-blue);
  border: 2px solid var(--mm-dark-brown);
  color: var(--dark-text);
  border-radius: 20px;
  padding: 3vw 4.5vw;

  /* not sure where this is coming from but let's remove it */
  margin-block-end: 0;
}

form button[type="submit"] {
  padding: 1.5vh 1.5vw;
  color: var(--mm-light-brown);
  font-weight: bold;
  float: right;
}

input,
textarea {
  font-size: 16px;
}

input {
  height: 27px;
  vertical-align: middle;
}
input:focus,
textarea:focus {
  outline: none;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--mm-pink) inset;
  -webkit-text-fill-color: var(--medium-text);
}

input[type="color"] {
  background-color: transparent;
  border: none;
  border-radius: 5px;
}

input[type="range"] {
  accent-color: var(--mm-pink);
}
input[type="range"]:hover {
  accent-color: var(--mm-yellow);
}

input[readonly],
textarea[readonly],
button:disabled,
.button:disabled {
  cursor: not-allowed;
  opacity: 60%;
}

textarea {
  width: 100%;
  box-sizing: border-box;
  vertical-align: top;
}

input:not([type="color"]),
textarea {
  background-color: var(--mm-pink);
  border: 2px solid var(--mm-light-brown);
  border-radius: 5px;
  color: var(--mm-light-brown);
  caret-color: var(--mm-light-brown);
}

#contact-form-container {
  display: inline-block;
  position: relative;
}

#contact-form {
  padding: 4vw 4.5vw 1vw 4.5vw;
}

#contact-form-statuses {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding-top: 10px;
}
#contact-form-loading,
#contact-form-error,
#contact-form-success {
  grid-row-start: 1;
  grid-column-start: 1;

  opacity: 0;
}

/* container for overlaying child items on top of each other */
.item-stacker-container {
  width: 100%;
  height: 100%;
  position: absolute;
  display: grid;
  z-index: 1;
}

/* stack direct children of container on top of each other by putting them all in the same grid row and column */
.item-stacker-container > * {
  position: relative;
  grid-row: 1;
  grid-column: 1;
}

/* center ALL container children recursively */
.item-stacker-container * {
  margin: auto;
}

.overlay {
  width: 100%;
  height: 100%;
  background-color: black;
  border-radius: 20px;
  opacity: 60%;
}

.spinner {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid var(--mm-blue);
  border-right: 16px solid var(--mm-yellow);
  border-bottom: 16px solid var(--mm-red);
  border-left: 16px solid var(--mm-pink);
  width: 120px;
  height: 120px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fancy-text {
  color: white;
  text-shadow: 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black;
}
.item-stacker-container .fancy-text {
  width: 80%;
}
.loader .fancy-text {
  /* some padding since the spinner is above this particular text */
  padding-top: 3%;
}

.error-text {
  color: var(--mm-peach);
  text-shadow: 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black;
}

#contact-form-error {
  text-align: center;
  margin: auto;
}

.hidden {
  visibility: hidden;
  opacity: 0;
}

.rows-on-mobile {
  display: block;
}

img {
  max-width: 100%;
  object-fit: contain;
  overflow: hidden; /* removes any extra height/width so the border goes around the image only, not around any extra space around the image */
}

.flex-cols-container {
  display: flex;
  flex-direction: row;
  width: 100%; /* fill width and don't exceed */
  justify-content: space-evenly; /* space out horizontally */
  align-items: center; /* center align vertically */
  flex-wrap: wrap;
  row-gap: 30px;
}
.flex-col-50 {
  width: 45%; /* 2 columns; 45% width each for a total of 90% (some width leftover for spacing) */
}
.flex-col-40 {
  width: 35%; /* 1 column of ~40% width (35% to leave some width leftover for spacing) */
}
.flex-col-60 {
  width: 55%; /* 1 column of ~60% width (55% to leave some width leftover for spacing) */
}
.flex-col-50 img {
  width: 60%;
}

.flex-spread {
  display: flex;
  flex-direction: column;
}
.flex-spread .flex-left-align {
  float: left;
}
.flex-spread .flex-right-align {
  float: right;
}
.flex-gallery-item {
  width: 30%; /* fit 3; 30% width each for a total of 90% (some width leftover for spacing) */
}

.border {
  border: 2px solid var(--mm-dark-brown);
}

.glow {
  border: 2px solid black;
  box-shadow: 0px 0px 40px gold;
}

hr {
  border-style: none;
  height: 2px;
  background-color: var(--mm-dark-brown);
  width: 25%;
}

.btn-white {
  background-color: white;
  color: black;
}
.btn-black {
  background-color: black;
  color: white;
}
.btn-white:hover {
  background-color: var(--mm-gray);
  color: black;
}
.btn-black:hover {
  background-color: var(--mm-gray);
  color: white;
}

/* desktop only */
@media only screen and (min-width: 1025px) {
  .tall-section {
    padding-top: 100px;
    padding-bottom: 100px;
  }
  .short-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

/* BOTH tablet and mobile */
@media only screen and (max-width: 1024px) {
  .flex-col-50,
  .flex-col-40,
  .flex-col-60 {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .flex-col-50 img {
    width: 90%;
  }
  .flex-col-40 {
    width: 90%; /* reduce to 1 column */
  }
  .flex-col-60 {
    width: 90%; /* reduce to 1 column */
  }

  .section-left,
  .section-right {
    text-align: center;
  }

  .flex-spread .flex-left-align,
  .flex-spread .flex-right-align {
    float: none;
  }

  .md-text {
    font-size: 5vw;
  }
  .lg-text {
    font-size: 8vw;
  }
  .xl-text {
    font-size: 15vw;
  }
  .massive-text {
    font-size: 40vw;
  }

  .header .lg-text {
    font-size: 10vw;
  }

  .section-center:not(.section-full-width):not(.no-padding) {
    padding: 30px;
  }
  .section-center.section-full-width {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .section-left,
  .section-right {
    padding: 30px;
  }

  form {
    padding: 20px;
  }
}

/* tablets & landscape mobile -ish */
@media only screen and (min-width: 600px) and (max-width: 1024px) {
  .flex-gallery-item {
    width: 45%;
  }

  .footer .flex-footer-left {
    padding: 20px;
  }
}

/* tablets, landscape mobile-ish, and desktop */
/* @media only screen and (min-width: 600px) {
} */

/* mobile -ish */
@media only screen and (max-width: 599px) {
  .flex-gallery-item {
    width: 90%;
  }
  .flex-gallery-item img {
    max-height: 40vh;
  }

  .rows-on-mobile {
    display: grid;
    grid-template-rows: auto;
    gap: 5px;
  }

  .footer .flex-cols-container {
    row-gap: 0; /* no gap when stacked */
  }
  .footer .flex-footer-left {
    width: 100%; /* stretch to full width */
    border-bottom: 2px solid var(--mm-dark-brown);
  }
  .footer .flex-footer-right {
    width: 100%; /* stretch to full width */
  }
  
  .width-25,
  .width-50,
  .width-70,
  .width-80 {
    width: 100%;
  }

  .hide-on-mobile {
    display: none;
  }

  .flex-header-mobile {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around; /* spread logo and nav menu from each other */
    align-items: center; /* center align vertically */
  }

  .flex-mobile-rows {
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: end;
  }

  .shape-blue,
  .shape-red,
  .shape-peach {
    padding: 20px; /* decrease shape/text padding on mobile */
  }

  #contact-form {
    padding-top: 14vw; /* increase top padding on mobile since the error text gap at the bottom is taller than it is on desktop */
  }
}