* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}
body {
  padding: 1rem;
  height: 100%;
}
h1 a {
  text-decoration: none;
}
.wrapper {
  display: grid;
  grid-template-rows: 1fr auto;
  grid-gap: 0.5rem;
  width: 100%;
  /* subtract 2 rem of body padding */
  height: calc(100dvh - 2rem);
}
#editable {
  grid-row: 1;
  font-size: 3rem;
  background-color: aliceblue;
  border: 1px solid royalblue;
  line-height: 1.5;
  font-family: monospace;
  padding: 1rem;
  border-radius: 4px;
  overflow-y: auto;
}
.buttons {
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  gap: 1rem;
}
.button {
  font-size: 2rem;
  width: 50%;
  padding-block: 1rem;
  min-width: 100px;
  border-radius: 4px;
  border: 1px solid aliceblue;
}
.button#save {
  background-color: lightgreen;
}
.button#share {
  background-color: rgb(245, 244, 150);
}
.button:hover {
  transform: scale(1.1);
}
.button:active {
  transform: scale(0.9);
}
.button-attention {
  background-color: lightskyblue !important;
}
.version {
  text-align: end;
  align-content: center;
}
:popover-open {
  width: 200px;
  height: 70px;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
::backdrop {
  backdrop-filter: blur(3px);
}
/* media query for large screens */
@media only screen and (min-width:512px) {
  body {
    padding: 0.5rem;
  }
  .wrapper {
    /* subtract 1 rem of body padding */
    height: calc(100dvh - 4rem);
  }
  #editable,
  .button {
    font-size: 1rem;
  }
  .buttons {
    justify-content: flex-start;
  }
  .button {
    width: fit-content;
    padding: 0.5rem;
  }
}
