  /*Variables*/
:root {
  --red: #ffADAD;
  --orange: #ffD6A5;
  --yellow: #FDFFB6;
  --green: #CAFFBF;
  --blue: #9BF6FF;
  --purple: #BDB2FF;
  --white: #FFFFFC;
} 

/* Global Styling*/
body {
  background-image: linear-gradient(var(--red) 0%, var(--orange) 20%, var(--yellow) 40%, var(--green) 60%, var(--blue) 80%, var(--purple) 100%);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: 'AnonymousPro';
}

.cursive {
  font-family: 'AlexBrush';
  letter-spacing: 0.2rem;
  font-size: 3rem
}

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

img,
button,
input,
textarea,
input::placeholder,
textarea::placeholder {
  font: inherit;
  color: inherit;
}

a,
a:link,
a:visited,
a:hover,
a:active {
  color: inherit;
  font: inherit;
}

/* Font Face */
@font-face {
  font-family: 'AnonymousPro';
  src: url('/Assets/Fonts/AnonymousPro-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'AnonymousPro';
  src: url('/Assets/Fonts/AnonymousPro-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'AnonymousPro';
  src: url('/Assets/Fonts/AnonymousPro-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'AlexBrush';
  src: url('/Assets/Fonts/AlexBrush-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/*Home page*/

.header-image {
  align-self: flex-start;
  margin-left: 10px;
  margin-top: 10px;
  border: 4px solid var(--white);
  border-radius: 10px;
}

.navigation ul {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  margin-top: 10px;
  font-size: 20px;
}

.navigation li {
  list-style: none;
}

.weddingInvite {
  border: 25px solid var(--white);
  width: 520px;
  height: 850px;
  text-align: center;
  margin: 50px auto;
  border-radius: 10px;
  padding: 10px;
}

.when, .where {
  margin-top: 20px;
  font-size: 40px;
  font-family: 'AlexBrush';
  letter-spacing: 0.3rem;
  padding-bottom: 10px;
}

.innerborder {
  border: 2px solid white;
  margin: 10px;
  padding: 10px;
  border-radius: 20px;
}

/*Gallery page*/

.gallery-heading {
  text-align: center;
  margin-top: 40px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  max-width: 1200px;
  margin: 30px auto 60px;
}

.bento-item {
  overflow: hidden;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.bento-item:hover img {
  transform: scale(1.05);
}

.bento-item.big {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-item.wide {
  grid-column: span 2;
}

.bento-item.tall {
  grid-row: span 2;
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-auto-rows: 140px;
  }
}

/* RSVP Page */
.rsvp {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
}

.submit {
  margin-bottom: 10px;
}

form {
  text-align: center;
  border: 4px solid var(--white);
  width: 500px;
  height: auto;
  margin: 50px auto;
}

.rsvpForm {
  display: flex;
  flex-direction: column;
  align-content: center;
  flex-wrap: wrap;
  width: 80%;
  gap: 20px;
  padding: 20px;
  margin: 10px auto;
}

.submit {
  margin-bottom: 10px;
}

input {
  width: 80%;
}

input[type="checkbox"] {
  width: auto;
  margin-right: 6px;
}

.loginform input{
  padding: 5px;
  margin: 10px auto;
}

.guestbook {
  margin-top: 50px;
  text-align: center;
}

.guestbookh2 {
  margin-top: 50px;
  margin-bottom: 50px;
}

.guestbookform {
  max-width: 750px;
  margin: 50px auto;
}

.guestbookform input, .guestbookform textarea {
  padding: 5px;
  margin: 10px 10px;;
  max-width: 600px;
}

.guestbookFieldGroup {
  display: flex;
  flex-direction: column;
  width: fit-content;
  margin: 0 auto;
}

.guestbookNameRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 10px;
}

.guestbookNameRow .name {
  flex: 1;
  max-width: none;
  margin: 0;
}

.commentfeed {
  background-color: white;
  border: 2px solid var(--blue);
  max-width: 500px;
  height: 300px;
  margin-bottom: 50px;
  margin-left: auto;
  margin-right: auto;
}

.commentfeedheader {
  background-color: white;
  border: 2px solid var(--blue);
  text-align: center;
  max-width: 500px;
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 10px;
}

.commentfeed h2 {
  text-align: center;
  border-bottom: 2px solid var(--red);
  padding-top: 10px;
}

.larger {
  font-size: 2rem;
  text-align: center;
}

.comment {
  border: 2px solid var(--green);
  text-align: center;
}

/*Messages*/
.bottle {
  fill: var(--white);
  rotate: -45deg;
  flex-shrink: 0;
  cursor: none;
}

.bottle svg {
  width: 550px;
  height: 687px;
}

.messagesheader h1, .messagesheader h2 {
  margin: 50px auto;
  text-align: center;
}

.messagesfield {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 50px auto;
}

.compose {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.msgsubmit {
  text-align: center;
  padding: 5px;
  position: relative;
  z-index: 1;
}

.message {
  width: 400px;
  height: 250px;
  padding: 20px;
  background-color: #f4ecd8;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 100% 28px;
  border: none;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  outline: none;
  resize: none;
  font-family: AlexBrush;
  letter-spacing: 2px;
  font-size: 24px;
  color: #2a2a2a;
  line-height: 28px;
}

.paper {
  transform-origin: center center;
}

.paper.rolling {
  animation: rollIntoCylinder 1.7s ease-in forwards;
}

@keyframes rollIntoCylinder {
  0% {
    border-radius: 2px;
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  30% {
    border-radius: 40%;
    transform: translate(0, 0) rotate(20deg) scale(0.08);
    opacity: 1;
  }
  55% {
    border-radius: 40%;
    transform: translate(var(--rollDXNeck, 0), var(--rollDYNeck, 0)) rotate(220deg) scale(0.08);
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    border-radius: 40%;
    transform: translate(var(--rollDX, 0), var(--rollDY, 0)) rotate(620deg) scale(0.08);
    opacity: 0;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .weddingInvite {
    width: 90%;
    height: auto;
  }

  form {
    width: 90%;
  }

  .messagesfield {
    flex-direction: column;
    gap: 20px;
  }

  .message {
    width: 90%;
    max-width: 320px;
  }

  .bottle svg {
    width: 320px;
    height: 400px;
  }
}