:root {
  --primary-bg: #f7f7e8;
  --text-dark: #100b00;
  --accent-color: #a62900;
  --secondary-bg: #eae3d4;
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-dark);
  width: 800px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: var(--primary-bg);
}

.header {
  width: 800px;
  display: flex;
  align-items: center;
  padding: 16px 0;
  gap: 4px;
}

.header a {
  width: max-content;
  margin-left: auto;
  padding: 4px 8px;
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
}

.header a:hover {
  color: var(--accent-color);
  transform: scale(1.04);
  border-color: var(--accent-color);
  border-radius: 0;
}

.header a:hover svg {
  animation: rotate-logo 0.4s ease-in-out;
}

@keyframes rotate-logo {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(90deg);
  }
  50% {
    transform: rotate(180deg);
  }
  75% {
    transform: rotate(270deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.header svg {
  width: 28px;
  height: auto;
}

.header h1 {
  position: relative;
  font-size: 2.8rem;
}

.header h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-bottom: 8px solid #a62900;
}

.recipes-images {
  margin: 0 auto;
  margin-top: 16px;
  width: 792px;
  height: 414px;
  background-image: none;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 4px;
  transform: scale(1.011);
  transition: all 0.4s ease;
  animation: image-swap 8s infinite ease-in-out;
}

@keyframes image-swap {
  0% {
    background-image: url(./recipes/mimirs-eye-soup.png);
  }
  50% {
    background-image: url(./recipes/fernirs-feast.png);
  }
  100% {
    background-image: url(./recipes/yggdrasils-ambrosia.png);
  }
}
.recipes-list {
  list-style-type: none;
  padding-top: 12px;
}
.recipes-list li {
  background-color: var(--secondary-bg);
  border: 2px solid var(--text-dark);
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 4px;
}
.recipes-list li a {
  display: flex;
  align-items: center;
}
.recipes-list li a {
  color: var(--text-dark);
}
.recipes-list li:hover {
  cursor: pointer;
  border-color: var(--accent-color);
  transform: scale(1.04);
}
.recipes-list li:hover a {
  color: var(--accent-color);
}
.recipes-list li svg {
  margin-left: auto;
}
.recipes-list li:hover svg {
  animation: mover 0.8s infinite ease;
}
@keyframes mover {
  from {
    transform: translate(0);
  }
  to {
    transform: translate(4px, 0);
  }
}
