/*
    TODO: fix audio bar for Chrome
*/

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

html {
  font-size: 16px;
}

body {
  width: 100vw;
  height: 100vh;
  background-image: url(../images/wireframe-sphere.png);
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-color: #f5f5db;
}

h1 {
  font-family: "League Spartan", sans-serif;
  font-size: calc(1rem + 2vw);
  line-height: 90%;
}

h2 {
  font-family: "Lora", serif;
  color: #7a4d59;
  font-size: calc(1rem + 1vw);
}

p {
  font-family: "Lora", serif;
  font-size: 1rem;
}

.nav-bar {
  background-image: url(../images/wireframe-sphere.png);
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  padding: 0;
  margin: 0;
  position: fixed;
  top: 0;
  width: 70vw;
  height: 10vh;
  margin-left: 15vw;
  margin-right: 15vw;
  background-color: #f5f5db;
  display: grid;
  grid-template-areas: ". about portfolio contact";
  grid-template-columns: 4fr 1fr 1fr 1fr;
  gap: 1vw;
  font-family: sans-serif;
  font-size: calc(0.5rem + 1vw);
}

.nav-bar div {
  width: 100%;
  display: flex;
  border-radius: 10px;
  align-items: center; /* Center text horizontally and vertically within div */
}

.nav-bar div:nth-child(1) {
  grid-area: about;
}

.nav-bar div:nth-child(2) {
  grid-area: portfolio;
}

.nav-bar div:nth-child(3) {
  grid-area: contact;
}

.nav-bar a {
  flex: 1;
  text-decoration: none;
  outline: none;
  text-align: center;
  line-height: 3;
  color: black;
}

.nav-bar a:hover {
  color: #7a4d59;
  font-weight: bold;
}

.active a {
  width: 75%;
  display: flex;
  border-radius: 10px;
  align-items: center; /* Center text horizontally and vertically within div */
  justify-content: center;
  background-color: #e6ded3;
  color: #7a4d59;
  font-weight: bold;
}

section {
  display: grid;
  padding-top: 10vh;
  margin-left: 15vw;
  margin-right: 15vw;
  width: 70%;
  height: 90vh;
  /* previous
    max-width: 100%;
    min-height: 100vh;
    */
}

.audio-and-title-container {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  height: auto;
}

.project-container {
  margin-bottom: 5vw;
}

.project-title-and-text-accordion {
  margin-bottom: 0.5rem;
  color: #7a4d59;
  background-color: #f5f5db;
  background-image: url(../images/wireframe-sphere.png);
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;

  cursor: pointer;
  padding: 1rem;
  width: 100%;
  border: none;
  text-align: center;
  outline: none;
  font-size: 1rem;
  transition: 0.4s;
  display: flex;
  justify-content: space-between;
}

.active-accordion,
.project-title-and-text-accordion:hover {
  background-color: #e6ded3;
  border-radius: 10px;
}

.project-title-and-text-accordion::after {
  content: "\02795"; /* Unicode character for "plus" sign (+) */
  font-size: 1rem;
  color: #777;
  height: fit-content;
  width: fit-content;
}

.active-accordion::after {
  content: "\2796"; /* Unicode character for "minus" sign (-) */
}

.panel {
  display: none;
  overflow: hidden;
  text-align: left;
  padding: 0 0.5rem 0.5rem 0.5rem;
}

.audio-container {
  grid-column-start: 1;
}

.video-container {
  grid-column-start: 1;
}

video {
  border-radius: 10px;
  margin: auto;
  width: 100%;
  display: block;
}

.track-title-container {
  display: flex;
  grid-column-start: 2;
  align-items: center;
  justify-content: left;
  border-radius: 10px;
}

.track-title-container h2 {
}

/* .videos-container {
  margin-top: 1rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  gap: 1rem;
}

.video-container {
  flex: 1;
} */
.videos-container {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.video-container {
  width: calc((100% - 2rem) / 3); /* Calculate width for three videos with 1rem gap */
}



video[poster] {
  object-fit: cover;
}

.hide-video {
  visibility: hidden;
}

audio {
  border-radius: 10px;
  margin: auto;
  width: 100%;
  display: block;
}
