#bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
}

#api-form {
  position: fixed;
  inset: 0px;
  width: 290px;
  height: 430px;
  margin: auto;
}

#iframe-overlay {
  position: fixed;
  top: 10px;
  right: 10px;
  width: calc(100vw - 476px);
  height: calc(100vh - 20px);
  z-index: 9999;
}

#iframe-overlay > iframe {
  width: 100%;
  height: 100%;
}

#iframe-overlay > button {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 32px;
  height: 30px;
  border-radius: 6px;
  border: none;
  background-color: #ffb8b3;
  outline: 1px solid #b2817d;
  outline-offset: -1px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

#iframe-overlay > button > img {
  width: 60%;
  height: 60%;
}

#render-target {
  margin: 1rem;
}

#calendar {
  display: flex;
  gap: 1rem;
}

#calendar .card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#calendar .date-space {
  width: fit-content;
}

.group,
.space {
  overflow-wrap: break-word;
  display: grid;
  width: fit-content;
  margin-right: calc(100vw - 450px);
}

h2,
h3 {
  width: fit-content;
}

.space h3 {
  position: sticky;
  left: 1rem;
  width: fit-content;
}

.space .card-wrapper {
  display: flex;
  gap: 1rem;
}

/*.space .card-wrapper.column {
  flex-direction: column;

  > .card {
    grid-template-columns: 270px 30px;
  }
}*/

.card {
  grid-template-columns: 170px 30px;
  grid-template-rows: auto auto;
  width: fit-content;
  height: fit-content;
  display: grid;
  grid-template-areas:
    "text card"
    "tags tags";
}

.card p {
  grid-area: text;
  padding-left: 0.2rem;
  height: fit-content;
}

.card:has(a.external) {
  grid-template-rows: 30px 30px auto auto;
  grid-template-areas:
    "text card"
    "text url"
    "text ."
    "tags tags";
}

.box-tag-wrapper {
  grid-area: tags;
}

.card a {
  height: 30px;
  background-size: 16px;
  border-radius: 15px;

  background-repeat: no-repeat;
  background-position: center;
}

.card a.internal {
  grid-area: card;
  background-image: url("images/connector.webp");
}

.card a.external {
  grid-area: url;
  background-image: url("images/arrow.webp");
}

.done,
.hidden {
  display: none;
}
