* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body,
html {
  height: 100%;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: scroll;
}

.display-area {
  flex: 2;
  background-color: #000;
  color: #fff;
  font-size: 4rem;
  font-weight: bold;
  padding-inline: 3rem;
  overflow-y: auto;
  line-height: 1.3;
}
.display-area > p {
  text-indent: 20px;
}

.input-area {
  position: sticky;
  bottom: 0;
  background-color: #f5f5f5;
  padding: 0.5rem;
  border-top: 3px solid #888;
  display: flex;
  flex-direction: column;
}

textarea {
  width: 100%;
  padding: 0.3rem;
  font-size: 1rem;
  border-radius: 8px;
}

textarea:focus {
  outline: none;
  border: 3px solid #067df5;
}

.controls {
  display: flex;
  margin-top: 0.2rem;
  gap: 0.2rem;
}
/* =============  */
/* Buttons */
/* =============  */

.button1 {
  border-radius: 5px;
  cursor: pointer;
  background-color: white;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-inline: 10px;
}

.button1:hover {
  background-color: #4f9ce8;
  color: white;
}

.button2 {
  border: 1px solid black;
  padding-inline: 0.2rem;
  border-radius: 3px;
  cursor: pointer;
  background-color: white;
}
.button2:hover {
  background-color: cornsilk;
}

.text-size-buttons {
  padding: 0;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background: none;
  line-height: 1;
}
.text-size-buttons:hover {
  background-color: #067df5;
}

#color_presets {
  width: 90px;
}

.size-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.size-controls input[type="range"] {
  width: 70px;
}

.settings {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-block: 0.3rem;
  justify-content: center;
}

.settings label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

input[type="color"] {
  border: none;
  width: 30px;
  place-self: center;
  border-radius: 15px;
}
input[type="color"],
input[type="range"] {
  cursor: pointer;
}

p {
  border-bottom: 1px solid rgba(var(--border-color), 0.2);
  padding: 10px;
  margin-block: 5px;
  font-size: inherit;
}
#info_popover {
  margin: auto;
  padding: 2rem;
  font-size: 2rem;
  max-width: 50%;
  border-radius: 15px;
}
#info_popover::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}
#text_section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.text-cntrls-subsection {
  display: none;
}

.text-cntrls-subsection.visible {
  display: block;
}

.main-input-row {
  display: flex;
  align-items: stretch;
  gap: 5px;
}

.main-input-row textarea {
  flex: 1;
  max-width: 70%;
  height: 2.5rem;
  min-height: 2.5rem;
  max-height: 8rem;
  resize: vertical;
}
.border {
  border: 1px solid black;
  display: grid;
  place-content: center;
  height: 100%;
  padding-inline: 1rem;
}

.small-text {
  font-size: 0.7rem;
  opacity: 0.5;
}

.no-pad {
  padding: 0;
}

.misc-buttons {
  display: flex;
  flex-direction: row;
  gap: 0.2rem;
  align-items: center;
}

.home-link {
  position: fixed;
  top: 8px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: rgba(var(--border-color), 0.6);
  border: 1px solid rgba(var(--border-color), 0.4);
  border-radius: 4px;
  text-decoration: none;
  opacity: 0.6;
  z-index: 1000;
  transition:
    opacity 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.home-link:hover {
  opacity: 1;
  color: rgba(var(--border-color), 1);
  border-color: rgba(var(--border-color), 0.8);
}

.splash-container {
  position: absolute;
  display: grid;
  place-items: center;
  animation: fadeOut 7s ease-in-out forwards;
  animation-delay: 0s;
  inset: 0;
  span {
    font-size: 7rem;
    text-align: center;
    color: #067df5;
    font-weight: bold;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    scale: 1.4;
    filter: blur(10px);
  }
}

text-cntrls-subsection {
  display: grid;
}
