* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-color: #f0ece1;
}

body {
  padding: 16px;
  margin: 0 auto;
  line-height: 1.5;
  min-height: 100%;
  max-width: 800px;
  font-family: "Hepta Slab", serif;
  font-size: 14px;
}

h1 {
  text-align: center;
}

p {
  margin: 0;
  text-align: center;
}

a:link,
a:visited {
  color: inherit;
}

.logo {
  max-height: 128px;
  display: block;
  margin: 0 auto;
}

.main-img {
  width: 30vh;
  display: block;
  margin: 0 auto;
}

.links-container {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gift-link {
  border: 1px solid black;
  border-radius: 4px;
  padding: 8px;
  text-align: center;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.gift-link img {
  height:2rem;
  margin-right: 8px;
}

.gift-link img {
  height:2rem;
  margin-right: 8px;
}

.gift-link:nth-child(1) img {
  animation: float 2s ease-in-out infinite;
}

.gift-link:nth-child(2) img {
  animation: float 3s ease-in-out infinite;
}

.gift-link:nth-child(3) img {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
	0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(-10px);
	}
	100% {
		transform: translatey(0px);
	}
}

.address {
  font-size: 10px;
}

.img-container {
  position: relative;
  max-width: 400px;
  margin: auto;
}

.swing-wrapper {
  position: fixed;
  top: 0px;
  right: 0;
  transform-origin: top center; /* crucial for swinging */
  animation: swing 2s ease-in-out infinite alternate;
}

@media (min-width: 400px) {
  .swing-wrapper {
    top: -64px;
    right: calc(50% - 250px);
  }
}


.party-ball {
  width: 5rem;
}

@media (min-width: 400px) {
  .party-ball {
    width: 7rem;
  }
}

@keyframes swing {
  0% {
    transform: rotate(-3deg);
  }
  100% {
    transform: rotate(3deg);
  }
}
