/**********************************************************
 * Font Imports
 *********************************************************/

@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;700&family=Archivo+Black&family=Montserrat:wght@200;700&display=swap");

/**********************************************************
 * Keyframes
 *********************************************************/

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fade-and-lower {
	0% {
		transform: translateY(-16px);
    opacity: 0;
	}
	100% {
		transform: opacity(0px);
    opacity: 1;
	}
}

@keyframes jack-in-the-box {
  0% {
      -webkit-transform: scale(.1) rotate(30deg);
      -webkit-transform-origin: center bottom;
      opacity: 0;
      transform: scale(.1) rotate(30deg);
      transform-origin: center bottom
  }

  50% {
      -webkit-transform: rotate(-10deg);
      transform: rotate(-10deg)
  }

  70% {
      -webkit-transform: rotate(3deg);
      transform: rotate(3deg)
  }

  to {
      -webkit-transform: scale(1);
      opacity: 1;
      transform: scale(1)
  }
}

/**********************************************************
 * Base Elements
 *********************************************************/

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  font-family: "Fira Sans", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: #111;
  z-index: 9999;
}

ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  padding: 0;
}

li {
  margin-left: 16px;
  margin-right: 16px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

a {
  display: inline-block;
  position: relative;
  text-decoration: none;
  line-height: initial;
  color: #a71818;
}

a::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 4px;
  bottom: -4px;
  left: 0;
  background-color: #b91d1d;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

li a {
  color: #fff;
}

main {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

h1 {
  color: #fff;
  font-family: "Archivo Black", sans-serif;
  font-size: 48pt;
  margin: 0;
}

h2 {
  font-family: "Montserrat", sans-serif;
  color: #fff;
  letter-spacing: 12pt;
}

h3 {
  font-family: "Fira Sans", Helvetica, sans-serif;
  font-size: 36px;
  color: #a71818;
  font-weight: 400;
}

h4 {
  font-family: "Montserrat", sans-serif;
  color: #fff;
  font-size: 18px;
  margin-bottom: 10px;
}

h5 {
  margin: 0;
  font-weight: 300;
}

p {
  font-size: 18px;
  margin-bottom: 10px;
}

footer {
  height: 50px;
  background-color: #fff;
  color: #a71818;
  padding: 24px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

footer div a {
  margin-left: 16px;
}

main #about-section {
  width: 100%;
  border-top: 4px #b91d1d solid;
  border-bottom: 4px #b91d1d solid;
}

main #about-section .center-container {
  width: 70%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

/**********************************************************
 * Classes
 *********************************************************/

.center-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-container {
  border-top: 4px #fff solid;
  border-bottom: 4px #fff solid;
  padding-left: 32px;
  padding-right: 32px;
  padding-top: 16px;
  padding-bottom: 16px;
  text-align: center;
  background: rgba(166, 16, 16, 0.8);
  box-shadow: 16px 4px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fade-and-lower 1s ease-in-out;
  opacity: 1;
  transition: all 0.5s ease-in-out;
}

.title-container:hover {
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

.grid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  position: relative;
  width: 480px;
  height: 300px;
  margin: 10px;
  color: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 5px;
}

.card iframe {
  height: 270px;
}

.red-bg-heading {
  background-color: #b91d1d;
  color: #fff;
  text-align: center;
  padding-top: 32px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.red-bg-heading h3 {
  color: #fff;
  background: rgba(166, 16, 16, 0.8);
  box-shadow: 16px 4px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  width: max-content;
  padding: 16px;
  border-top: 4px #fff solid;
  border-bottom: 4px #fff solid;
}

.card-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transition: .5s ease;
  background-color: rgba(20, 20, 20, 0.8);
  padding: 8px;
}

.card:hover .card-overlay {
  opacity: 1;
}

.fade-out {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.list-container {
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.primary-section hr {
  width: 45%;
  min-width: 400px;
  margin-top: 16px;
  margin-bottom: 8px;
}

.primary-section .red-bg-heading {
  padding-top: 120px;
}

.bg-1 {
  background: url("../assets/header-bg-image.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-2 {
  background: url("../assets/header-bg-image-2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-3 {
  background: url("../assets/header-bg-image-3.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.white-text-red-bg {
  color: #fff;
  background-color: #b91d1d;
}

.centered-flex-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.white-drop-shadow {
  -moz-box-shadow: 4px 4px 0px 0px #FFFFFF;
  -webkit-box-shadow: 4px 4px 0px 0px #FFFFFF;
  box-shadow: 4px 4px 0px 0px  #FFFFFF;
  transition: all 0.25s ease-in-out;
}

.white-drop-shadow:hover {
  -moz-box-shadow: 8px 8px 0px 0px #FFFFFF;
  -webkit-box-shadow: 8px 8px 0px 0px #FFFFFF;
  box-shadow: 8px 8px 0px 0px  #FFFFFF;
  transition: all 0.25s ease-in-out;
}

/**********************************************************
 * IDs
 *********************************************************/

#about-section {
  height: max-content;
  padding-top: 64px;
  padding-bottom: 64px;
}

#demo-section {
  background-color: #b91d1d;
  text-align: center;
  padding-bottom: 64px;
}

#demo-section h3 {
  color: #fff;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 32px;
}

#demo-section h4 {
  margin-bottom: 4px;
}

#title-section {
  min-height: 75%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url("../assets/main-image.jpg");
}

#members-section .card {
  background-color: transparent;
  height: 300px;
  width: 300px;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
}

#members-section .card img {
  width: 100%;
  height: auto;
  display: block;
}

#members-section .card p {
  font-size: 16px;
}

#members-section .card h4 {
  position: absolute;
  bottom: -16px;
  left: 8px;
  background-color: #111;
  padding: 8px;
}

#nav-left, #nav-right {
  margin-right: 64px;
}

#hamburger-icon {
  display: none;
  font-size: 36px;
}

#player {
  position: fixed;
  bottom: 16px;
  right: 16px;
  transition: all 0.3s ease-in-out;
}

#track-info {
  position: absolute;
  height: 60px;
  top: 0;
  opacity: 0;
  left: 10px;
  right: 10px;
  background-color: #b91d1d;
  padding: 5px 15px 5px 110px;
  border-radius: 15px;
  transition: all 0.5s ease-in-out;
}

#song-name {
  display: block;
  color: #fff;
  font-size: 12px;
  margin-bottom: 8px;
}

#track-info.active {
  top: -60px;
  opacity: 1;
  transition: all 0.5s ease-in-out;
}

#control-panel {
  position: relative;
  background-color: #fff;
  border-radius: 15px;
  width: 300px;
  height: 80px;
  z-index: 5;
  border: 2px #b91d1d solid;
}

#album-art {
  position: absolute;
  left: 20px;
  top: -15px;
  height: 80px;
  width: 80px;
  border-radius: 50%;
  transform: scale(1);
  transition: all 0.5s ease-in-out;
}

#album-art::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  background-color: #fff;
  border-radius: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}

#album-art::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 80px;
  background-image: url("../assets/vinyl.png");
}

#album-art.active {
  transform: scale(1.2);
  transition: all 0.5s ease-in-out;
}

#album-art.active::before {
  animation: rotation 3s infinite linear;
  -webkit-animation: rotation 3s infinite linear;
  animation-fill-mode: forwards;
}

#controls {
  display: flex;
  justify-content: flex-end;
  height: 80px;
  padding: 0 15px;
}

#prev-track-btn, #play-btn, #next-track-btn {
  width: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 20px;
  margin: 5px 0;
  color: #222;
  background-color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  -webkit-transition: background-color 0.3s ease-in-out;
  font-size: 18pt;
  border: none;
}

#prev-track-btn:hover, #play-btn:hover, #next-track-btn:hover {
  background-color: #b91d1d;
  color: #fff;
  transition: background-color 0.3s ease-in-out;
  -webkit-transition: background-color 0.3s ease-in-out;
}

/**********************************************************
 * Media Queries
 *********************************************************/

@media (prefers-reduced-motion: no-preference) {
  .fade-and-lower-animation {
    animation: fade-and-lower 0.75s ease-in-out;
  }
}

@media screen and (max-width: 600px) {
  nav {
    transition: background-color 0.5s ease-in-out;
    padding-top: 0;
    background-color: transparent;
    border-bottom: transparent;
  }

  nav li {
    margin-left: 8px;
    margin-right: 8px;
    display: none;
  }

  .red-bg-heading {
    padding-top: 16px;
  }

  #nav-left {
    margin-left: 16px;
  }

  #nav-right {
    margin-right: 16px;
  }

  #hamburger-icon {
    display: block;
    background-color: #b91d1d;
    align-self: center;
    border-radius: 5px;
    margin-top: 16px;
  }
}

@media screen and (max-width: 600px) {
  nav.expanded {
    background-color: #fff;
    height: 100%;
    transition: background-color 0.5s ease-in-out;
    z-index: 9999;
  }

  nav.expanded ul {
    display: block;
  }

  nav.expanded ul li {
    display: block;
    color: #a71818;
  }

  nav.expanded ul li a {
    color: #a71818;
  }

  nav.expanded #hamburger-icon {
    color: #fff;
  }

  nav.expanded #nav-left li:not(:first-child) {
    margin-top: 64px;
  }

  #nav-right {
    display: flex;
    flex-direction: row-reverse;
    height: 12px;
  }

  nav.expanded #nav-right li:not(:first-child) {
    margin-right: 16px;
  }
}