@use "/src/styles/utils.scss";

.detail {
  z-index: 10;
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 0 10px 20px 10px;
  transition: 0.2s;
}

.detail.open {
  left: 0;
}

.container {
  height: 100%;
  background: linear-gradient(
    to bottom right,
    hsla(0, 0%, 100%, 0.2),
    hsla(0, 0%, 100%, 0)
  );
  box-shadow:
    -1px 0 0 2px rgba(255, 255, 255, 0.15),
    0 0 30px 0 #ffffff54;
  backdrop-filter: blur(20px);
  @include utils.noise-bg;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 8px;
}

.btn-close {
  position: absolute;
  right: 5px;
  top: 5px;
}

.card {
  --width: 160px;
  width: var(--width);
  height: calc(var(--width) / var(--card-ratio));
  flex-shrink: 0;
  border: 1px solid #ffffff52;
  overflow: hidden;
  box-shadow: 0 0 6px 2px #ffffff2b;
  transition: 0.3s;
  cursor: pointer;
  &:hover {
    --width: 220px;
    filter: contrast(1.1);
  }
}

.title {
  font-size: 20px;
  font-family: var(--nato-serif-font);
  margin: 20px 0 15px;
  display: flex;
  justify-content: space-between;
  // color: rgba(255, 255, 255, 0.45);
}

.content {
  color: white;
}
