.editor-toolbar {
  background-color: var(--white);
}

textarea#title {
  font-size: 18pt;
  line-height:16pt;
  /* background-color: var(--white); */
  /* color: var(--dark-background); */
  background-color: var(--textarea-background);
  color: var(--white);
}

.issue-form {
  display: flex;
  flex-direction: column;
}


.metadata-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.issue-form-field {
  display: flex;
  flex-direction: row;
  align-items: center;
}


.issue-form-field label {
  font-weight: bold;
  display: inline-block;
  width: 200px;
  vertical-align: center;
  /* display: none; */
}

.issue-form-field select {
  font-weight: bold;
  /* display: block; */
  width: 100%;
  /* margin: 5px auto; */
  /* padding: 5px; */
  height: 38px;
  background-color: var(--textarea-background);
  border: none;
  border-radius: 5px;
  color: white;
}

.issue-form-field .metadata-field {
  font-weight: bold;
  /* display: block; */
  width: 100%;
  /* margin: 5px auto; */
  /* padding: 5px; */
  height: 38px;
  background-color: var(--textarea-background);
  border: none;
  border-radius: 5px;
  color: white;
}

.issue-form-field textarea {
  width: 100%;
  height: 100px;
  /* margin: 5px auto; */
  padding: 0;
  /* height: 38px; */
  background-color: var(--textarea-background);
  color: var(--white);
  border: none;
  border-radius: 5px;
}

.issue-form-field.image-field {
  flex-direction: column;
  gap: 10px;
}

.issue-form-field.image-field label {
  text-align: center;
}

.issue-form-field .image-field-input {
  display: flex;
  flex-direction: row;
  width: 80%;
  gap: 20px;
}

#image-gallery-wrapper {
  margin-top: 20px;
}

.image-gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  height: 400px;
  overflow-y: scroll;
  gap: 10px;
  justify-content: center;
}

.image-gallery-item {
  width: 100px;
  height: 100px;
}

.image-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  padding: 2px;
  border-radius: 5px;
}

.image-gallery-item .selected {
  background-color: var(--neon-red);
  /* border: 2px solid var(--neon-red); */
}

#image-preview-wrapper {
  display: none;

  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  background-color: rgba(55, 55, 55, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 10px;
  z-index: 10;

  will-change: backdrop-filter;
  transform: translateZ(0);
}

.image-preview {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-preview-image {
  flex: 1;

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

  margin: 20px;

  font-size: 8pt;
  color: var(--gray);
  text-align: center;
}

.image-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-preview-contents {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  text-align: center;
}

@media (min-width: 770px) {
  .image-preview {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
}


.loading-indicator {
  width: 100px;
  height: 100px;
  justify-content: center;
  align-items: center;
  /* display: none; */
}
/* .htmx-request.loading-indicator { */
/*   display: flex; */
/* } */

.loading-indicator img {
  width: 50%;
  height: 50%;
}

.upload-image-indicator {
  display: none;
  width: 38px;
  height: 38px;
  margin: 10px;
}

.htmx-request.loading-indicator,
.htmx-request.upload-image-indicator {
  display: flex;
}

#upload-image {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

