* {
    margin: 0;
    padding: 0;
    font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: hsla(279, 33%, 48%, 1);
    background: linear-gradient(90deg, hsla(279, 33%, 48%, 1) 0%, hsla(232, 73%, 65%, 1) 100%);
    background: -moz-linear-gradient(90deg, hsla(279, 33%, 48%, 1) 0%, hsla(232, 73%, 65%, 1) 100%);
    background: -webkit-linear-gradient(90deg, hsla(279, 33%, 48%, 1) 0%, hsla(232, 73%, 65%, 1) 100%);
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#8752a3", endColorstr="#6274e7", GradientType=1 );
    color: #FAF9F6;
}

main {
    width: 955px;
}

#tgjson {
    height: 636px;
    width: 304px;
    border: 4px solid rgb(255, 194, 80);
}

#tgjson:focus {
    box-shadow: 0 0 10px #FAF9F6;
}

.container {
    display: flex;
    gap: 24px;
}

.column {
    display: flex;
    flex-direction: column;
    width: 310px;
    gap: 4px;
}

button {
  display: flex;
  align-items: end;
  gap: 8px;
  cursor: pointer;
  border: 0;
  font-weight: 700;
  line-height: 1.1; 
  transition: background-color 0.3s ease;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  background-color: rgb(255, 194, 80);
  border: 1px rgb(255, 194, 80) solid;
  color: rgb(135, 82, 163);
  width: 311px;
}

button:active {
    transform: translateY(0.5px);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3) inset;
}

button:hover {
    background-color: rgb(243, 205, 135);
    border: 1px rgb(243, 205, 135) solid;
}

.button-download {
    background: url('download.svg') no-repeat center / contain;
    width: 20px;
    height: 20px;
}

h1 {
    line-height: 96px;
}

p {
    font-size: 18px;
    line-height: 24px;
}

textarea {
    border-radius: 4px;
    border: 1px #FAF9F6 solid;
    resize: none;
    width: 310px;
}

textarea:focus {
    outline: none !important;
}

.textarea-wrapper {
  position: relative;
  width: 310px;
  height: 200px;
}

.textarea-wrapper::before {
  content: attr(data-placeholder);
  position: absolute;
  top: 50%;
  left: 50%;
  inset: 12px;
  transform: translate(0%, 20%);
  font-size: clamp(18px, 4vw, 28px);
  font-weight: bold;
  color: hsla(232, 73%, 65%, 1);
  pointer-events: none; 
  user-select: none;
  white-space: nowrap;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* скрываем маску при фокусе или вводе текста */
.textarea-wrapper:focus-within::before {
  opacity: 0;
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}