:root {
  --text-color: #666;
  --initial-player-height: 200px;
  --media-single-column: 768px;
}

body,
html {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
  /* margin-top: 20px; */
  padding: 1vw;
  background-color: #f2f2f2;
}

h1 {
  color: #333;
}

p {
  color: var(--text-color);
}

li {
  color: var(--text-color);
}

.button {
  padding: 5px 10px;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.header-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  padding-bottom: 10px;
  margin: 0;
}

.index-content {
  transition: height 0.1s;
  height: calc(100vh - var(--initial-player-height));
  /* height: 100vh; */
  /* top: 0; */
  /* left: 0; */
  /* right: 0; */
  /* position: fixed; */
  /* display: flex; */
  /* flex-direction: column; */
  overflow: auto;
}

.player-div {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  min-height: 50px;
  max-height: 90vh;
  height: var(--initial-player-height);
  transition: height 0.1s;
  overflow: auto;

  background-color: #aaa;
  border-top: 2px solid black;
  background-size: cover;
  background-position: center;

}

.player-content {
  height: 100%;
  display: grid;
  position: relative;

  grid-template-areas:
    "title duration"
    "player-buttons player-buttons"
    "description volume-slider";
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
}

.volume-slider-div {
  grid-area: volume-slider;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;

}

#volume-slider {}

.player-duration-div {
  grid-area: duration;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;

}

#player-duration {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 5px 10px;
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
}

@media (max-width: 767px) {
  .player-content {
    grid-template-areas:
      "title"
      "duration"
      "player-buttons"
      "volume-slider"
      "description";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
  }

  .volume-slider-div {
    justify-content: center;
    align-items: flex-end;
  }

  .player-duration-div {
    align-items: flex-end;

  }
}


.player-buttons {
  grid-area: player-buttons;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.player-title-div {
  grid-area: title;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

#player-title {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 5px 10px;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  z-index: 2;
}


.player-long-description-div {
  grid-area: description;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;

}

#player-long-description {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 0px 10px;
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
  margin: 0;
  z-index: 1;
}

#player-long-description p {
  color: white;
}


.playback-button {
  background-color: rgba(255, 255, 255, 0.6);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  height: 50px;
  width: 50px;
  font-size: 24px;
  margin: 10px;

  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 50px;
  z-index: 10;
}

.playback-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.playback-button:active {
  transform: scale(0.95);
}

.drag-handle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: #ccc;
  cursor: ns-resize;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  color: #555;
}

.index-card-group {
  margin-bottom: 40px;
  border-radius: 10px;
  background-color: #ffffff;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.index-card-group-title {
  font-size: 24px;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  color: #333;
}

.index-dataset-container {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.index-card {
  cursor: pointer;
  background-color: #eee;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  text-decoration: none;
}

.index-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.index-card-img-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  margin-top: 0px;
  align-items: center;
}

.index-card img {
  max-width: 95%;
  /* height: 100%; */
  max-height: 150px;
  object-fit: contain;
  object-position: center;
  clip-path: polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%);
  /* position: absolute; */
}

.index-card-info {
  margin: 20px;
  border-bottom: 1px solid #666;
}

.index-card-title {
  font-size: 18px;
  margin: 0 0 10px;
}

.index-card-description {
  font-size: 14px;
  color: #555;
}