div.pixeleditor{
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: whitesmoke;
  padding: 1rem;
}

div.px-dateimanager {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 10px 0px;
}

div.px-dateimanager div {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

div.px-darstellung{
  max-width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  margin: 10px 0px;
}

textarea.px {
  max-width: 100%;
  resize: none;
  overflow: scroll;
  font-family:Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace;
  min-height: 150px;
  min-width: 150px;
}

canvas.px {
  max-width: 100%;
  border:none;
}

input.px-text,
button.px {
  padding: 1px 6px 1px 6px;
  height: 35px;
  border: 1px solid lightgrey;
  border-radius: 3px;
}

input.px-text {
  border-right: none;
  width: 150px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}

button.px {
  border-left: none;
  width: 150px;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  background-color: rgb(192, 192, 192);
  margin: 0;
}

input.px-text:focus,
button.px:hover {
  color: #b82929;
  background-color: lightgray;
  outline: none;
}

button.px:focus {
  outline: none;
}

.px-buttonzeichnen button {
  border: 1px solid lightgrey;
  border-radius: 3px;
}

input.px-file{
  width: 20px;
  height: 20px;
  opacity: 1;
  display: none;
}

input.px-file + label {
  background-color: rgb(192, 192, 192);
  display: flex; 
  align-items: center;
  justify-content: center;
  padding: 1px 6px 1px 6px;
  width: 100px;
  border: 1px solid lightgrey;
  border-radius: 3px;
  margin-right: 25px;
}

input.px-file:focus + label,
input.px-file + label:hover {
  color: #b82929;
  background-color: lightgray;
  outline: none;
  cursor: pointer;
}

label {
  text-align: center;
}

.mr-1 {
  margin-right: 1rem;
}

/* Modal */
.pixeleditor-modal-btn-open {
  width: 35px;
  height: 35px;
  margin: 0;
  padding: 0.4rem;
  border: none;
  border-radius: 3px;
  background-color: rgb(192, 192, 192);
  color: rgb(67, 67, 67);
}

.pixeleditor-modal-btn-open:hover {
  background-color: lightgray;
  color: #b82929;
}

.pixeleditor-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  min-width: 300px;
  width: 40%;
  padding: 1.2rem;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
}

.pixeleditor-modal-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 20;
}

.pixeleditor-modal h3 {
  font-size: 1.3rem;
  display: block;
  margin-bottom: 1rem;
  font-weight: 700;
  margin: 0;
  border-bottom: none;
}

.pixeleditor-modal p {
  text-align: justify;
}

.pixeleditor-modal-btn {
  background-color: #0077b6;
  color: white;
  border: 0;
  padding: 0.3rem 0.9rem;
  border-radius: 0.25rem;
  margin: 0;
}

.pixeleditor-modal-btn:hover {
  background-color: #189adf;
  color: white;
}

.pixeleditor-modal-btn-red {
  background-color: #b82929;
  color: white;
  border: 0;
  padding: 0.3rem 0.9rem;
  border-radius: 0.25rem;
  margin: 0;
}

.pixeleditor-modal-btn-red:hover {
  background-color: #d05b5b;
  color: white;
}

.pixeleditor-modal-btn-green {
  background-color: #12b080;
  color: white;
  border: 0;
  padding: 0.3rem 0.9rem;
  border-radius: 0.25rem;
  margin: 0;
}

.pixeleditor-modal-btn-green:hover {
  background-color: #14c48f;
  color: white;
}

.pixeleditor-modal-btn-close {
  display: inline-block;
  cursor: pointer;
  border: none;
  background-color: rgb(192, 192, 192);
  color: rgb(67, 67, 67);
  width: 2rem;
  height: 2rem;
  font-weight: 700;
  border-radius: 0.25rem;
  text-align: center;
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0;
  margin: 0;
}

.pixeleditor-modal-btn-close:hover {
  background-color: lightgrey;
  color: #b82929;
}

.hidden {
  display: none;
}

.pixeleditor-modal-inputgroup {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.pixeleditor-modal-inputgroup input {
  width: 100%;
  border: 1px solid #0077b6;
  border-right: none;
  border-radius: 0.25rem 0 0 0.25rem;
  text-align: center;
}

.pixeleditor-modal-inputgroup button {
  border-radius: 0 0.25rem 0.25rem 0;
  border: 1px solid #0077b6;
  border-left: none;
}

.pixeleditor-modal-keyword {
  width: 100%;
  text-align: center;
  font-weight: 700;
  margin: 1rem 0;
}
