:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --accent-color: #458588;
  --button-bg-color: #83a598;
  --button-hover-color: #458588;
  --border-radius: 12px;
  --textarea-bg-color: #f7f7f7;
  --textarea-border-color: #cccccc;
}

html,
body {
  touch-action: manipulation;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  font-family: 'Courier New', monospace;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

h1,
a {
  padding: 0;
  margin: 0;
}

h1 a img {
  padding: 0;
  margin: 0;
  height: 15vh;
}

main {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

label {
  font-weight: bold;
  font-family: 'Courier New', monospace;
  color: var(--text-color);
  font-size: 2rem;
  margin-bottom: 10px;
}

textarea {
  width: 100%;
  background-color: var(--textarea-bg-color);
  color: var(--text-color);
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  border: 2px solid var(--textarea-border-color);
  border-radius: var(--border-radius);
  padding: 10px;
  margin-bottom: 20px;
  resize: none;
  /* Disable text selection in Safari */
  -webkit-user-select: none;
  /* Disable text selection in Firefox */
  -moz-user-select: none;
  /* Disable text selection in Internet Explorer/Edge */
  -ms-user-select: none;
  /* Disable text selection in modern browsers */
  user-select: none;
}

#btn-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#morse-row,
#space-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

button {
  flex-grow: 1;
  padding: 15px;
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--bg-color);
  background-color: var(--button-bg-color);
  border: 2px solid var(--accent-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#morse-row button {
  font-size: 3rem;
}

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

button:active {
  transform: scale(0.98);
}
