body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 20px;
  font-family: "Sour Gummy", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  height: 100%;
  max-width: 100%;
  width: 100%;
  background-image: url("/assets/dots.svg");
  /* background-color: rgb(213, 236, 251); */
  background-color: rgb(203, 231, 240);
}

.title {
  font-weight: 300;
  margin-top: 60px;
}

i,
em,
.cursive,
.he,
.she {
  /* font-family: "Moon Dance", serif; */
  font-family: "MonteCarlo", serif;
  font-weight: 400;
  font-style: normal;
  font-size: larger;
}

main {
  background-color: #fff;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 30px;
  padding-top: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fade-in-fwd 1s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

.he {
  color: #55a0be;
}

.she {
  color: #c153a0;
}

h2.heart>* {
  display: inline;
  vertical-align: middle;
  /* font-family: cursive; */
  font-size: 4rem;
}

h2.heart > img {
  max-width: 220px;
}

h2.heart+.date {
  margin-bottom: 60px;
}

.container {
  background-color: #fff;
  padding: 20px;
}

.header.invite {
  line-height: 2.4rem;
}

.header.invite>span {
  display: block;
}

.header.invite .inviter {
  font-size: 3rem;
  line-height: 5rem;
  margin-bottom: 40px;
}

.header.invite .subtitle {
  font-size: 2rem;
}


hr.heart {
  line-height: 1px;
  /* vertical centering */
  height: 0px;
  /* gap between the lines */
  margin: 40px 0px;
  /* 20px space above/below, 10px left/right */
  overflow: visible;

  /* ensure 1px gap between borders */
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  -ms-box-sizing: content-box;
  -o-box-sizing: content-box;
  box-sizing: content-box;
}

hr.heart:after {
  content: "❤️";
  color: transparent;
  background: url('/assets/heart.svg') no-repeat center center;
  background-size: contain;
  padding: 0 0.5em;
}


form[name="formRSVP"] {
  display: flex;
  flex-direction: column;
  font-size: 1.4rem;
  text-align: left;
  max-width: 500px;
  width: 100%;
  padding: 20px;
  overflow: hidden;
}

form[name="formRSVP"] .title {
  text-align: center;
}

form[name="formRSVP"] fieldset {
  border: 0;
  padding: 20px 0;
}

form[name="formRSVP"] label:has(+ input[type="text"]), 
form[name="formRSVP"] label:has(+ input[type="email"]) {
  display: inline-block;
  min-width: 200px;
}

form[name="formRSVP"] input {
  border: 0;
  border-bottom: 1px solid gray;
}

input[type="radio"]:checked+label {
  font-weight: bold;
}

form[name="formRSVP"] select,
form[name="formRSVP"] textarea {
  display: block;
}

form[name="formRSVP"] textarea {
  width: 100%;
}

form[name="formRSVP"] input[type="submit"],
form[name="formRSVP"] button[type="submit"] {
  align-self: center;
}

.glow-on-hover {
  width: 220px;
  height: 50px;
  border: none;
  outline: none;
  color: #fff;
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  transition: all .2s ease-in-out;
}

.glow-on-hover:hover {
  transform: scale(1.05);
}

.glow-on-hover:before {
  content: '';
  background: linear-gradient(45deg, #55a0be, #c153a0, #55a0be);
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing 20s linear infinite;
  opacity: 0;
  transition: opacity .3s ease-in-out;
  border-radius: 10px;
}

.glow-on-hover:active {
  color: #fff;
  font-weight: bold;
}

.glow-on-hover:active:after {
  background: transparent;
}

.glow-on-hover:hover:before {
  opacity: 1;
}

.glow-on-hover:after {
  z-index: -1;
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #111;
  left: 0;
  top: 0;
  border-radius: 10px;
}

@keyframes glowing {
  0% {
    background-position: 0 0;
  }

  50% {
    background-position: 400% 0;
  }

  100% {
    background-position: 0 0;
  }
}

@keyframes fade-in-fwd {
  0% {
    -webkit-transform: translateZ(-80px);
    transform: translateZ(-80px);
    -webkit-filter: blur(20px);
    filter: blur(20px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-filter: blur(0);
    filter: blur(0);
    opacity: 1;
  }
}


@keyframes slide-in-elliptic-top-fwd {
  0% {
    -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0);
    transform: translateY(-600px) rotateX(-30deg) scale(0);
    -webkit-transform-origin: 50% 100%;
    transform-origin: 50% 100%;
    opacity: 0;
  }

  100% {
    -webkit-transform: translateY(0) rotateX(0) scale(1);
    transform: translateY(0) rotateX(0) scale(1);
    -webkit-transform-origin: 50% 1400px;
    transform-origin: 50% 1400px;
    opacity: 1;
  }
}

@keyframes slide-out-elliptic-top-bck {
  0% {
    -webkit-transform: translateY(0) rotateX(0) scale(1);
    transform: translateY(0) rotateX(0) scale(1);
    -webkit-transform-origin: 50% 1400px;
    transform-origin: 50% 1400px;
    opacity: 1
  }

  100% {
    -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0);
    transform: translateY(-600px) rotateX(-30deg) scale(0);
    -webkit-transform-origin: 50% 100%;
    transform-origin: 50% 100%;
    height: 100px;
    opacity: 1
  }
}

form[name="formRSVP"].submitted {
  border: 1px dashed gray;
  animation: slide-out-elliptic-top-bck .7s ease-in both;
}

.response.success {
  animation: slide-in-elliptic-top-fwd 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.4s both;
}