*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bright: #f1f1f1;
  --dark: #343b3e;
  --accent: #28f49e;
  --light-grey: #f1f1f1;
}

html,
body {
  height: 100%;
}

body {
  padding: 0;
  margin: 0;
}

#app {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 5rem auto;
  height: 100%;
}

#header {
  background: var(--dark);
  grid-column: span 2;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  gap: 1.2rem;
}
.button-wrapper {
  width: 11rem;
}

.button-wrapper button {
  all: unset;
  /*padding: 0.8rem 1.2rem;*/
  height: 2.6rem;
  background: var(--accent);
  color: var(--dark);
  font-family: sans-serif;
  font-weight: bold;
  font-size: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.3rem;
  cursor: pointer;
  transition: background 300ms ease-in-out;
  width: 100%;
}

.button-wrapper button:hover {
  background: var(--bright);
}

.button-wrapper button svg {
  fill: currentColor;
}

#form {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

#form label {
  color: var(--bright);
  font-family: sans-serif;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 50%;
}

#form label span {
  width: 2rem;
  height: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bright);
  color: var(--dark);
  border-radius: 100%;
  flex-shrink: 0;
}

#form input {
  display: inline-block;
  font-family: monospace;
  font-size: 1rem;
  width: 50%;
  padding: 0.8rem 1.2rem;
  background: var(--bright);
  border: none;
}

#structure {
  height: 100%;
}

#structure textarea {
  resize: none;
  border: none;
  width: 100%;
  height: 100%;
  background: var(--light-grey);
  padding: 1.2rem;
  font-family: monospace;
  font-size: 1rem;
  line-height: 150%;
  color: var(--dark);
  -webkit-text-fill-color: var(--dark);
}

#farm {
  width: 100%;
  height: 100%;
  border: none;
}
