@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background-color: rgb(200, 200, 200);
}

h2 {
  font-size: 21px;
  text-align: center;
  text-transform: uppercase;
  margin-top: 2rem;
}

.divider {
  border: 1px solid rgba(255, 255, 255, 0.5);
  width: 50%;
  max-width: 512px;
  margin: auto;
}

.grid-container {
  display: grid;
  grid-template-areas:
    "header header header header"
    "main main main right"
    "footer footer footer footer";
  padding: 0;
}

.header {
  grid-area: header;
  height: 4em;
}

.navbar {
  background-color: rgb(57, 57, 57);
  width: 100%;
  height: 4em;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  list-style-type: none;
  overflow: hidden;
  position: fixed;
  top: 0;
}

.navlink {
  text-decoration: none;
  padding: 0.7em;
  margin: 0 0.4em;
  color: white;
  border-radius: 8px;
  box-shadow: 0 0px 0px black;
  transition: all 0.5s ease;
}

.current {
  background-color: rgb(67, 67, 67);
}

.navlink:hover {
  color: black;
  background-color: rgb(231, 231, 231);
  transform: translate(0 -3px);
}

.main,
.right {
  border-radius: 7px;
}

.main {
  grid-area: main;
  background-color: rgb(230, 230, 230);
  margin: 1rem;
}

.right {
  grid-area: right;
  background-color: rgb(230, 230, 230);
  padding: 0;
  margin: 1rem 1rem 1rem 0;
}

.right ul {
  list-style-type: none;
  padding: 0;
  text-align: center;
}

.right a,
.right a:active {
  text-decoration: none;
  color: black;
  margin: 0;
  padding: 0.75rem 1.75rem;
  line-height: 3rem;
  transition: all 0.3s ease;
}

.right a:hover {
  background-color: white;
  border-radius: 5px;
}

.scroll-container {
  max-height: 60vw;
  overflow: auto;
}

.footer {
  grid-area: footer;
  height: 3rem;
  margin: 1rem 2rem;
  text-align: center;
}

.music-box {
  display: flex;
  margin: 10px auto;
  background-color: black;
  width: 20vw;
  height: 20vw;
  min-width: 256px;
  min-height: 256px;
  outline: 10px solid black;
  border-radius: 2px;
}

@media screen and (max-width: 640px) {
  .grid-container {
    grid-template-areas:
      "header"
      "right"
      "main"
      "footer";
  }

  .navlink {
    padding: 0.5em;
    margin: 0 0.2em;
  }

  .right {
    margin: 1rem 1rem 0 1rem;
  }
}
