:root {
  --dkGray: #413c42;
  --blk: #282426;
  --gold: #968046;
  --brown: #7e672b;
}

@font-face {
  font-family: 'GE';
  src: url(../fonts/GE_SS_TEXT_LIGHT.OTF);
  font-weight: normal;
}
@font-face {
  font-family: 'GE';
  src: url(../fonts/GE_SS_TEXT_MEDIUM.OTF);
  font-weight: bold;
}

* {
  box-sizing: border-box;
}
html {
  font-size: 62.8%;
}

body {
  padding: 0;
  margin: 0;
  background: radial-gradient(var(--blk) 3px, transparent 4px),
    radial-gradient(var(--blk) 3px, transparent 4px), var(--dkGray);
  background-size: 80px 80px, 80px 80px;
  background-position: 54px 55px, 0px 0px;
  background-attachment: fixed;
  position: relative;
  color: var(--gold);
  font-family: 'GE';
  font-size: 1.4rem;
  line-height: 1.7;
}

body:after,
body:before {
  content: '';
  width: 100%;
  height: 500px;
  position: absolute;
  left: 0;
  background-size: cover;
  background-position: 0 0;
  background-repeat: no-repeat;
  z-index: -1;
}

body:after {
  background-image: url(../img/a01.png);
  top: 0;
}
body:before {
  background-image: url(../img/a02.png);
  bottom: 0;
  height: 400px;
}
img {
  width: 100%;
}

main {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  justify-content: center;
  grid-template-columns: 1fr 1fr;
}

section {
  padding: 8rem 0;
  grid-column: 1/3;
  background-repeat: no-repeat;
}
.logo {
  text-align: center;
}
.logo img {
  max-width: 300px;
}

.invitation {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url(../img/b01.png);
  background-position: center;
}

.schedule {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.schedule ul {
  position: relative;
  background-image: url(../img/b02.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 600px;
  list-style: none;
  padding: 1rem 0;
  margin: 0;
  text-align: center;
}
.schedule li > * {
  margin: 0;
}

.schedule ul:after {
  content: '';
  width: 2px;
  height: 60%;
  position: absolute;
  background-color: var(--gold);
}

.rsvp {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rsvp__header {
  background-image: url(../img/rheader.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  padding: 1rem 4rem;
  margin-bottom: -1rem;
  position: relative;
  z-index: 4;
}

.rsvp form {
  padding: 2rem 4rem;
  background-color: var(--brown);
  position: relative;
  z-index: 3;
  color: white;
  overflow: hidden;
}
.form-group {
  margin-bottom: 30px;
}

input[type='text'] {
  background-color: white;
  border: none;
  padding: 0.5rem;
  margin-right: 10px;
  width: 75%;
  display: inline-block;
  font-family: 'GE';
}

button {
  text-align: center;
  background-color: white;
  color: var(--gold);
  font-family: 'GE';
  border: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  display: block;
  margin: 0 auto;
  cursor: pointer;
}

button:hover {
  color: white;
  background-color: var(--blk);
}

.message {
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    circle at center,
    var(--gold) 30%,
    var(--brown) 100%
  );
  position: absolute;
  top: 0;
  z-index: 99;
  left: 0;
  transform: translateY(100%);
  opacity: 0;
  transition: all 300ms ease-in;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 1.3rem;
  text-align: center;
}
.message p {
  visibility: hidden;
  opacity: 0;
  transition: all 300ms 200ms ease;
  position: absolute;
}
.message a {
  display: block;
  text-decoration: underline;
  color: white;
  font-weight: bold;
  margin-top: 20px;
}

.rsvp-done .message {
  opacity: 1;
  transform: translateY(0);
}

.not-coming .message__no {
  visibility: visible;
  opacity: 1;
}
.coming .message__yes {
  visibility: visible;
  opacity: 1;
}
.not-sure .message__maybe {
  visibility: visible;
  opacity: 1;
}
@media screen and (min-width: 40em) {
  html {
    font-size: 90%;
  }
  section {
    background-size: contain;
  }
}
