@import url("/common.css");

body {
  background-color: var(--background);
  color: var(--accent);
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
}

body:has(div) > *:not(div) {
  opacity: 0.3;
  pointer-events: none;
}

div {
  background-color: var(--background);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 50%;
  border: 3px double red;
  padding: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

button {
  background-color: #000000;
  color: var(--accent);
  border: 3px double red;
  padding: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  transition: color 0.25s steps(3), background-color 0.25s steps(3);
}

button:hover {
  background-color: var(--accent);
  color: #000000;
}

textarea {
  border: 3px double red;
  padding: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  background-color: #000000;
  color: var(--accent);
  height: 80%;
  resize: none;
  transition: all 0.5s steps(3);
}

textarea:focus {
  outline: 3px double red;
}

.hidden {
  scale: 0;
}

code {
  transform-origin: center;
  font-family: inherit;
  font-size: inherit;
  display: block;
  transition: all 0.5s steps(15);
  background-color: #000000;
  border: 3px double red;
  padding: 10px;
  height: 50%;
  width: 50%;
  overflow: scroll;
}
