body {
  color: #444;
  padding: 1rem
}

a {
  color: #666;
  text-decoration: none;
}

section.rails {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8rem;
  gap: 1rem;
  justify-content: center;

  article.folder--empty {
    min-width: 100px;
  }

  article.file {
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    font-weight: 400;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.5rem;
    position: relative;
    min-width: 100px;
  }

  article.folder {
    align-items: center;
    border: 1px dashed #666;
    border-radius: 5px;
    font-weight: 400;
    min-height: 100px;
    justify-content: center;
    padding: 1rem;
    position: relative;
    min-width: 100px;

    section {
      align-items: center;
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      justify-content: center;
      margin-top: 0.5rem;
    }

    article.folder {
      min-height: 80px;
      min-width: 80px;
    }

    h3 {
      border: 1px solid #f92672;
      border-radius: 3px;
      color: #f92672;
      display: inline-flex;
      font-size: 0.6rem;
      font-weight: bold;
      padding: 0.1rem 0.3rem;
      text-transform: uppercase;
    }
  }
}

pre {
  padding: 1rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1050;
  overflow-y: auto;
}

.modal.open {
  display: flex;
  opacity: 1;
  animation: fadeIn 0.3s ease;
}

.modal-dialog {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  width: 90%;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal.open .modal-dialog {
  transform: translateY(0);
  opacity: 1;
}

.modal-content {
  padding: 0.5rem 1rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 500px) {
  .modal-dialog {
    width: 95%;
    border-radius: 0.75rem;
  }
}

pre.highlight {
  overflow-x: auto;
  max-width: 100%;
  white-space: pre;
  word-wrap: normal;
}

#controls {
  align-items: center;
  background: #272822;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  width: 100%;

  div#command-lines {
    flex: 1 1 0%;
    min-width: 0;
  }

  div#actions {
    flex: 0 0 auto;

    .button {
      min-width: 200px;
    }
  }

  pre {
    padding: 0;
  }
}

button.button {
  background: #fff;
  border: 1px solid #fff;
  border-radius: 5px;
  color: #f92672;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 0.3rem 1rem;

  &:hover {
    background: #f92672;
    color: #fff;
  }

  & .flex {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
  }
}

button.button--secondary {
  background: #fff;
  border: 1px solid #f92672;
  border-radius: 5px;
  color: #f92672;
  font-weight: bold;
  font-size: 0.7rem;
  padding: 0.3rem 1rem;

  &:hover {
    background: #f92672;
    color: #fff;
  }

  & .flex {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
  }
}

#domains {
  margin: 0.5rem 0;
}

.ghost {
  opacity: 0.3;
}

.flex {
  align-items: center;
  display: flex;
  gap: 1rem;
}