/************************************************************
*************************************************************
Theme Name: savethedates Theme
Author: fourplex
Author URI:   https://fourplex.de
Version: 1.0
*************************************************************
************************************************************/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  background: var(--backgroundColor);
  font-size: 20px;
  color: var(--fontColor);
}

.hidden {
  display: none !important;
}

.not-desktop {
  display: none;
}

.container {
  padding: 2rem;
}

.boxed {
  width: 100%;
  max-width: 75vw;
  margin: 0 auto;
}

.boxed-small {
  max-width: 60vw;
  margin: 0 auto;
}

.element {
  margin-bottom: 2rem;
}

h1 {
  font-size: clamp(45px, 8vw, 100px);
}
h2 {
  font-size: clamp(30px, 6vw, 50px);
}
h3 {
  font-size: clamp(25px, 5vw, 40px);
  line-height: 1.25em;
}
h4 {
  font-size: clamp(18px, 1.25vw, 35px);
  line-height: 2.5rem;
}

p {
  line-height: 2em;
}

i {
  font-family: "Font Awesome 7 Pro" !important;
}

.ta-center {
  text-align: center;
}

.bold {
  font-weight: 700;
}

.uppercase {
  text-transform: uppercase;
}

.small-text {
  font-size: 15px;
}

.letter-wide {
  letter-spacing: 3px;
}

button {
  background: var(--fontColor);
  color: var(--backgroundColor);
  text-transform: uppercase;
  font-size: 1rem;
  padding: 0.75rem 4rem;
  border: none;
  outline: none;
  font-weight: 700;
  cursor: pointer;
}

#snow-wrapper {
  position: relative;
  overflow: hidden; /* keep flakes inside */
}

#snow-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999; /* snow above content */
}

/* .snowflake {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 0 0.5rem rgba(255, 255, 255, 0.5), 0 0 1rem rgba(255, 255, 255, 0.5),
    0 0 1.5rem rgba(255, 255, 255, 0.5), 0 0 2rem rgba(255, 255, 255, 0.5),
    0 0 2.5rem rgba(255, 255, 255, 0.5);
  pointer-events: none !important;
} */

/* SINGLE PAGE FILE */
#include-container {
  display: flex;
}

/* HEADER */
header {
  max-height: 20dvh;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
}

header div {
  display: flex;
  justify-content: space-between;
  padding: 2rem;
  width: calc(100% - 100px + 2rem);
  margin: 0 auto;
}

header img {
  min-width: 125px;
  max-width: 15vw;
  object-fit: contain;
}

header a {
  height: fit-content;
  width: fit-content;
  cursor: pointer;
}

/* HERO */
#hero {
  /* height: 100dvh; */
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* #overlayed-image {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -45%;
} */

#hero article {
  color: var(--fontColor);
  translate: 0% 20%;
}

#hero .location {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

/* DETAILS */
#details {
  margin: 5vh 0;
  position: relative;
}

#details div {
  display: flex;
  gap: 5rem;
}

#details div h2 {
  color: var(--accentColor);
  text-shadow: 0 0 1rem var(--accentColor);
  text-transform: uppercase;
}

#details div ul {
  padding-inline-start: 2rem;
}

#details div ul li {
  margin: 0.5rem 0;
}

#details a,
#details a button {
  width: 100%;
}

.party-button {
  margin: 1rem 0;
  background: var(--accentColor);
  border: 1px solid var(--accentColor);
  color: var(--fontColor);
  font-size: 1rem;
  transition: all 0.25s ease-in-out;
}

.party-button:hover {
  background: var(--accentColor);
  color: var(--backgroundColor);
}

.download-link button {
  background: transparent;
  color: var(--fontColor);
  border: 1px solid var(--fontColor);
}

.col {
  flex: 1 1 0;
  position: relative;
}

.info-box {
  /* padding: 3.5vw; */
  /* background: var(--accentColor); */
  border-radius: 10px;
}

/* GRID GALLERY */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 250px);
  gap: 1rem;
  justify-content: center;
}

.grid-item {
  height: 100%;
  width: 100%;
  text-align: center;
}

.grid-item p {
  width: fit-content;
  margin: auto;
}

.grid-item img {
  width: 100%;
}

/* REGISTER FORM */
#form-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

form {
  padding: 4vw;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  border-radius: 10px;
  border: 2px solid var(--accentColor);
  position: relative;
}

form h2 {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% -50%;
}

.input-box {
  height: 3rem;
  width: 45%;
  position: relative;
  margin-bottom: 0.5rem;
}

#accompany-fields-container {
  gap: 2rem;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  width: 100%;
  max-height: 0;
  transition: max-height 0.3s ease;
}

#accompany-fields-container.open {
  max-height: 50dvh; /* expanded state */
  flex-wrap: wrap;
  padding-top: 1.25rem;
}

.input-box label {
  position: absolute;
  top: 50%;
  left: 3.5%;
  translate: 0 -50%;
  pointer-events: none;
  transition: all 0.5s ease;
  color: var(--backgroundColor);
}

.input-box input:focus + label,
.input-box input:not(:placeholder-shown) + label,
.input-box input.filled + label {
  top: -1rem !important;
  color: var(--fontColor) !important;
  font-size: 0.9em !important;
  z-index: 99;
}

.input-box input,
.input-box select {
  height: 100%;
  width: 100%;
  padding: 0 1rem;
  border: none;
  outline: none;
  background: var(--fontColor);
  font-size: 1rem;
  color: var(--backgroundColor);
}

form button {
  height: 3rem;
  width: 100%;
  border: none;
  outline: none;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.35s ease;
  background: var(--accentColor);
  color: var(--fontColor);
}

form button.waiting {
  background: #eedca3;
  color: var(--fontColor);
}

#disclaimer {
  font-size: 12.5px;
  line-height: 1rem;
}

/* BANNER IMAGE BEFORE THE FOOTER */
#banner {
  min-height: 10dvh;
  position: relative;
}

#banner a {
  color: var(--fontColor);
  text-decoration: none;
}

#banner img {
  width: 100%;
  object-fit: contain;
}

/* GMAPS */
#gmaps {
  padding: 5vw 0 0;
}
#gmaps iframe {
  height: 50dvh;
  width: 100%;
}

/* GALLERY */
/* #gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-gap: .5rem;
    grid-auto-rows: minmax(250px, auto);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
} */

/* THANKYOU PAGE */
#thankyou {
  background: var(--backgroundColor);
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#thankyou div {
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

#thankyou * {
  color: var(--fontColor);
}

#thankyou button {
  background: var(--accentColor);
  color: var(--fontColor);
}

/* EDIT PAGE */
.edit-container {
  position: relative;
}

/* .edit-container h2 {
    position: absolute;
    top: 0;
    left: 50%;
    translate: -50% -50%;
    z-index: 25;
} */

#update-button {
  background: #f5d154;
}
#update-button:hover {
  background: #ffe073;
}
#delete-button {
  background: #d3123a;
}
#delete-button:hover {
  background: #ed264f;
}

@media only screen and (min-width: 2000px) {
  /* GRID GALLERY */
  .grid {
    grid-template-columns: repeat(4, minmax(250px, 1fr));
  }

  #overlayed-image {
    transform: scale(1.35);
  }
}

@media only screen and (max-width: 1200px) {
  html {
    font-size: 17.5px;
  }

  .boxed {
    max-width: 90vw;
  }

  .boxed-small {
    max-width: 90vw;
  }

  /* HEADER */
  header div {
    padding: 1rem;
  }

  header img {
    min-width: 50px;
    max-width: 15vw;
  }

  header a button {
    padding: 1rem;
  }

  /* HERO */
  #hero {
    /* height: 100dvh; */
    background-size: cover !important;
  }

  #overlayed-image {
    transform: scale(0.6);
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -30%;
  }

  /* DETAILS */
  #details div {
    flex-direction: column;
    gap: 2rem;
  }

  .info-box {
    padding: 0;
  }

  /* GRID GALLERY */
  .grid {
    grid-template-columns: repeat(2, 45vw);
    gap: 1rem;
  }

  /* FORM */
  #form-container {
    margin: 5vh 0;
  }

  .mobile-container {
    padding: 5vw;
  }

  #form-container div.container.boxed-small {
    max-width: 100vw !important;
    padding: 0 !important;
  }

  #register {
    padding: 3rem 5vw !important;
  }

  .input-box {
    width: 100% !important;
  }
}

@media only screen and (max-width: 768px) {
  .not-mobile {
    display: none;
  }
  .not-desktop {
    display: block;
  }

  .container {
    padding: 1rem;
  }

  .element {
    margin-bottom: 1.25rem;
  }

  .letter-wide {
    letter-spacing: 0px;
  }

  /* #banner {
    min-height: 75dvh;
  } */

  /* HEADER */
  header div {
    align-items: center;
  }

  header div img {
    max-width: 150px;
  }
}
