@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&family=Lato:wght@400;700&display=swap');

* {
  box-sizing: border-box;
  transition: 0.5s;
}

body {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(#29251c, #2c2306);
  color: #d9e2f1;
  min-height: 100vh;
}

#main-header {
  display: inline-block;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 10%;
}

#main-header #title {
  display: flex;
  gap: 1rem;
  align-items: center;
}

p {
  font-family: 'Bahnschrift', sans-serif;
  font-weight: lighter;
  color: #ffd13a;
  padding: 0.5rem;
}

span {
  font-family: 'Bahnschrift', sans-serif;
  font-weight: lighter;
  color: #d0aa2f;
  padding: 1rem;
}

h1 {
  font-family: 'Bahnschrift', sans-serif;
  font-weight: lighter;
  font-size: 4rem;
  transform: scaleY(1.5);
  margin: 0;
  color: #ffc508;
  letter-spacing: 0.0rem;
}

h2 {
  font-family: 'Bahnschrift', sans-serif;
  font-weight: lighter;
  font-size: 2rem;
  transform: scaleY(1.5);
  margin: 0;
  color: #ffc508;
}

h3 {
  font-family: 'Bahnschrift', sans-serif;
  font-weight: lighter;
  font-size: 1rem;
  margin: 0;
  color: #ffc508;
}

#inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  /* flex-direction: row;  */
  justify-content: space-evenly;
}

#player {
  display: block;
  position: sticky;
  top: 1rem;
  height: 50%;
  margin: 1rem auto;
  z-index: 998;
}

#playertitle {
  color: black;
  font-size: xx-small;
  position: relative;
  top: 24px;
  left: 2.4rem;
  width: 270px;
  margin: 0px;
  z-index: 999;
}

#meals {
  list-style: none;
  margin: 0.5rem auto;
  padding: 1rem;
  display: block;
  gap: 1rem;
  color: rgb(253, 237, 5);
}

ul {
  list-style-type: none;
}

.meal-item {
  background-color: #1d1a16;
  border-radius: 1rem;
  padding: 1rem;
  overflow: hidden;
  text-align: left;
  display: flex;
  /* flex-direction: column; */
  justify-content: space-between;
}

.meal-item a {
  color: rgb(221, 197, 57);
  background-color:rgba(0, 0, 0, 0);
  text-decoration: none;
  width: auto;
}

.meal-item a:hover {
  color: rgb(241, 236, 252);
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}

.meal-item[state='loading'] {
  animation: morph 0.5s ease-in-out infinite;
}

.meal-item[state='playing'] {
  animation: morph 3s ease-in-out infinite;
}

.meal-item[state='paused'] {
  background-color: rgb(74, 63, 53);
}

.meal-item h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.75rem 0;
}

.button {
  font: inherit;
  cursor: pointer;
  background-color: #ffc404;
  border: 1px solid #ffc404;
  color: #1f1a09;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
}

.button:hover,
.button:active {
  background-color: #ffab04;
  border-color: #ffab04;
  color: #1f1a09;
}

.text-button {
  font: inherit;
  cursor: pointer;
  background-color: transparent;
  border: none;
  color: #ffc404;
}

.text-button:hover,
.text-button:active {
  color: #ffab04;
}

.center {
  text-align: center;
}

.error {
  width: 90%;
  max-width: 25rem;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #f9b8b8;
  color: #6d0b0b;
  border-radius: 6px;
}

.error h2 {
  margin: 0;
}

.error p {
  margin: 0;
}

/* Adjust width of list based on screen size */
@media (min-width: 1096px) {
  #meals {
    width: 70%;
  }
}
@media (min-width: 1400px) {
  #meals {
    width: 60%;
  }
} 

@keyframes morph {
  0% { background-color: rgb(74, 63, 53); }
  50% { background-color: rgb(107, 90, 75); }
  100% { background-color: rgb(74, 63, 53); }
}

@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(4rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}