:root {
  --color-primary: #faff89;
  --color-primary-rgb: 250, 255, 137;
  --color-secondary: 255, 112, 97;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, sans-serif;
  background: #000a25;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  padding-inline: 1rem;
}

.layout-container {
  background-color: rgba(var(--color-primary-rgb), 0.95);
  border-radius: 5px;
  overflow: hidden;
  color:#000a25;
  position: relative;
}

.layout-container .close-button {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 2rem;
  color: rgba(var(--color-secondary), 1);
  text-decoration: none;
}

.close-button:hover {
  color: #000a25;
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 1.125rem;
}

.album-cover {
  display: block;
  width: 128px;
  height: 128px;
  object-fit: cover;
}


@media (max-width: 600px) {
  .now-playing {
    flex-direction: column;
    padding-right: 0;
    padding-bottom: 1.125rem;
  }

  .album-cover {
    width: 100%;
    height: auto;
  }
}


.song {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.song-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.song-artist {
  color: #420;
}

.player {
  display: flex;
  justify-content: center;
}

.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

#toggle {
  background-color: rgba(var(--color-secondary), 0.75);
  color: #fff;
  font-weight: bold;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 50%;
  aspect-ratio: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

#toggle:hover {
  background-color: rgba(var(--color-secondary), 1);
}

#toggle.playing {
  background: linear-gradient(181deg, #2143ff, #fff77f, #d04a4a);
  background-size: 600% 600%;
  border-radius: 0.35rem;
  animation: playing-gradient 16s ease infinite;
}

@keyframes playing-gradient {
  0% { background-position: 50% 0%; }
  50% { background-position: 50% 100%; }
  100% { background-position: 50% 0%; }
}

.content {
  max-width: 60ch;
  color: #100040;
  padding: 1.125rem 1rem;
}

.content h1 {
  margin-top: 0.375rem;
  margin-bottom: 0.75rem;
}

.content p:not(:last-child) {
  margin-bottom: 0.75rem;
}

.content a {
  color: rgba(var(--color-secondary), 1);
  font-weight: bold;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  color: #100040c8;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.25rem;
  border: none;
}

.form textarea {
  min-height: 150px;
}

.form button {
  background-color: rgba(var(--color-secondary), 1);
  color: rgba(var(--color-primary-rgb), 1);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  width: fit-content;
  cursor: pointer;
}

.form button:hover {
  background-color: rgba(var(--color-secondary), 0.8);
}

.nav-container {
  background-color: rgba(var(--color-secondary), 1);
  width: 100%;
  padding-inline: 2rem;
}

.site-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-navigation a {
  display: inline-block;
  text-decoration: none;
  border-radius: 50%;
  color: rgba(var(--color-secondary), 1);
  font-weight: bold;
}

.site-navigation a:hover {
  color: #000a25;
}

.site-navigation .logo {
  display: flex;
  gap: 0.25rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
}

.site-navigation a {
  background-color: rgba(var(--color-secondary), 1);
  color: rgba(var(--color-primary-rgb), 1);
}

.site-navigation li {
  position: relative;
  text-align: center;
  list-style: none;
}

.site-navigation li ul a {
  border-radius: 0;
}

.site-navigation li ul {
  display: none;
  position: absolute;
  padding: 0;
}

.site-navigation li > ul {
  bottom: 100%;
  width: auto;
  left: 50%;
  transform: translateX(-50%);
}

.site-navigation li:hover > ul {
  display: block;
}

.inline-menu {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
