body {
margin: 0;
  padding: 40px 20px;
  font-family: Georgia, serif;
  text-align: center;
  color: #393636;
  background-color: #fcfbf8;
  
}

.date {
  font-size: 20px;
  color: #393636;
  margin-top: -2px;
  margin-bottom: 10px;
}

/* Kortet */
.card {
  max-width: 560px;
  margin: auto;
  padding: 50px 32px 40px;
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(194, 155, 90, 0.15);
  backdrop-filter: blur(4px);
  background-color: rgba(255, 255, 255, 0.9);
  background-image: url("Ram.JPG");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;

}

.names {
  margin-top: 138px;
}


/* Rubrik */
h1 {
  color: #393636;
  font-size: 30px;
  font-weight: normal;
  margin-bottom: 6px;
}

/* Introtext */
.intro {
  margin-bottom: 14px;
  font-size: 15px;
}

/* Sektioner */
.section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #393636;
  margin-left: 18px;
  margin-right: 18px;
}

.section p {
  margin: 10px 0;
  line-height: 1.35;
}

h2 {
    color: #393636;
  font-size: 18px;
  font-weight: normal;
  margin-bottom: 6px;
}

.info-button {
  color: #393636;
}

/* Knapp */
.map-button {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  font-size: 13px;
  background-color: transparent;
  color: #393636;
  text-decoration: none;
  border: 1px solid #393636;
  border-radius: 20px;
  transition: 0.3s;
}


.map-button:hover {
  background-color: #f8f1dc;
}

.rsvp-button {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  font-size: 13px;
  background-color: transparent;
  color: #393636;
  text-decoration: none;
  border: 1px solid #393636;
  border-radius: 20px;
  transition: 0.3s;
}

.rsvp-button:hover {
  background-color: #f8f1dc;
}

svg {
  color: #393636;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 4px;
}

html {
  scroll-behavior: smooth;
}

 .page {
  margin: 130px auto 0;
  padding: 50px 30px;
  max-width: auto;

  background-color : #fcfbf8;
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(194, 155, 90, 0.15);
  backdrop-filter: blur(4px);

  background-image: url("cake.JPG"), url("Barn.JPG");
  background-size: 25% auto, 25% auto;
  background-position: left 10%, right 10%;
  background-repeat: no-repeat, no-repeat;
}

@media (max-width: 768px) {
  body {
    padding: 12px 8px;
  }

  .card {
    max-width: 100%;
    padding: 40px 18px 24px;
    border-radius: 18px;
  }

  .names {
    margin-top: 122px;
  }

  h1 {
    font-size: 26px;
    margin-bottom: 4px;
  }

  .date {
    font-size: 17px;
    margin-bottom: 10px;
  }

  .intro {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .section {
    margin-top: 14px;
    padding-top: 10px;
    margin-left: 24px;
    margin-right: 24px;
  }

  h2 {
    font-size: 17px;
    margin-bottom: 4px;
  }

  .map-button,
  .rsvp-button {
    padding: 4px 10px;
    font-size: 12px;
  }

  .page {
    margin: 60px auto 0;
    padding: 34px 18px;
    background-size: 18% auto, 18% auto;
    background-position: left top, right bottom;
  }
}

@media (max-width: 430px) {
  body {
    padding: 6px 4px;
  }

  .card {
    padding: 30px 12px 20px;
    border-radius: 14px;
  }

  .names {
    margin-top: 114px;
  }

  h1 {
    font-size: 22px;
    line-height: 1.1;
  }

  .date {
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 8px;
  }

  .intro {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .section {
    margin-top: 10px;
    padding-top: 8px;
    margin-left: 20px;
    margin-right: 20px;
  }

  .section p {
    margin: 6px 0;
    font-size: 13px;
    line-height: 1.3;
  }

  h2 {
    font-size: 16px;
    margin-bottom: 4px;
  }

  svg {
    width: 18px;
    height: 18px;
    margin-right: 4px;
  }

  .map-button,
  .rsvp-button {
    margin-top: 4px;
    padding: 3px 9px;
    font-size: 11px;
  }

  .page {
    margin: 36px auto 0;
    padding: 26px 14px;
    background-image: url("cake.JPG"), url("Barn.JPG");
    background-size: 22% auto, 26% auto;
    background-position: left 24px top 18px, right 4px bottom 10px;
    background-repeat: no-repeat, no-repeat;
  }
}
