@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", serif;
  background-color: #4498D4;
  text-align: center;
}

.container {

  /* background-image: url('img/superhero-bg.svg'); */
  /* background-size: auto 100%; */
  /* background-repeat: no-repeat; */
  /* background-position: right center; */
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px;
  margin-top: 40px
}

.graphics {
  position: absolute;
  width: 100%;
  top: 0;
  max-width: 50vw;
  right: 0;
  z-index: -1;


}


h1 {
  animation: slide 0.75s forwards ease-out;
  opacity: 0;
  animation-delay: 1s;
}

@keyframes slide {
  from {
    transform: translateX(-50dvw);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.graphics svg {
  position: absolute;

  @media screen and (max-width: 400px) {
    width: 200%;
    transform: translate(-25%, -10%);
  }
}

#one,
#two,
#three {
  /* transform-origin: 50% 50%; */
  transform: scale(0) rotate(0deg);
}

.graphics svg>g#one {
  transform-origin: 500px 425px;
  animation: spin 0.5s forwards ease-out;
  animation-delay: 1s;
}

.graphics svg>g#two {
  transform-origin: 1300px 875px;
  animation: spin 0.5s forwards ease-out;
  animation-delay: 1.25s;
}

.graphics svg>g#three {
  transform-origin: 725px 1550px;
  animation: spin 0.5s forwards ease-out;
  animation-delay: 1.5s;
}

.graphics svg>g#debug {
  animation: none;
  background: red;
  ;
}

@keyframes spin {
  from {
    transform: scale(0) rotate(-180deg);
  }

  to {
    transform: scale(1) rotate(360deg);
  }
}



header {
  padding: 20px 0;
  color: white;
  width: 100%;
  text-align: left;
}

header h1 {
  font-family: "Bangers", serif;
  text-transform: uppercase;
  font-size: 5.5em;
  line-height: 5rem;
  text-shadow: 4px 4px 0px #000000;
  color: #FCF742;
  margin-top: 50px;
  letter-spacing: 4px;
  max-width: 400px;
}

header h2 {
  font-size: 1.2rem;
}

.party-details {
  width: 80%;
  max-width: 800px;
  margin: 50px auto
}

.party-details h3 {
  font-family: "Bangers", serif;
  font-size: 4rem;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 4px 4px 0px #000000;

}

.party-details p {
  margin-top: 15px;
  color: #ffffff;
  font-size: 18px;
  line-height: 145%;
}


.rsvp-form {
  background-color: #000000;
  padding: 30px;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
  width: 80%;
  max-width: 600px;
  margin: 20px auto;
}

.rsvp-form h3 {
  font-family: "Poppins", serif;
  font-size: 1.5rem;
  color: #ffffff;
}

.input-group {
  margin: 15px 0;
  text-align: left;
}

.input-group label {
  font-size: 0.8rem;
  margin-bottom: 5px;
  display: block;
  color: #ffffff;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid black;
  border-radius: 15px;
}

input[type="number"] {
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

button {
  background-color: #FF2E83;
  color: white;
  font-size: 2rem;
  padding: 15px 25px;
  letter-spacing: 1px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: "Bangers", serif;
}

button:hover {
  background-color: #E0226D
}

footer {
  margin-top: 30px;
  font-size: 0.9rem;
  color: #555;
}

footer strong {
  font-weight: bold;
}

.yes-rsvp {
  display: none;
  margin-top: 20px;
}

@media screen and (max-width: 900px) {
  .container {
    background-size: auto;
    background-position: 280% -35px;
    padding: 20px;
    margin-top: 0px;
  }

  header h1 {
    font-size: 3.5rem;
    width: 80%;
    line-height: 3.5rem;
    margin-top: 60px;
  }
}

#result {
  color: white;
  margin: 1rem;
  font-weight: bold;
}

form.disabled {
  pointer-events: none;
  opacity: 0.5;
}
