.morse-tool {
  background-color: #FAF7F0;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

.morse-tool h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.morse-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.morse-input,
.morse-output {
  flex: 1;
  min-height: 200px;
  width: 100%;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: none;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  background-color: #fff;
}

.morse-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  display: block;
  margin: 1.5rem auto 0;
  transition: background-color 0.3s ease;
  font-family: Arial, sans-serif;
}

.morse-btn:hover {
  background-color: #45a049;
}

/* Responsive for tablets and mobiles */
@media (max-width: 900px) {
  .morse-container {
    flex-direction: column;
  }

  .morse-input,
  .morse-output {
    width: 100%;
  }
}

/* For very small screens */
@media (max-width: 600px) {
  .morse-tool {
    padding: 1.5rem;
  }

  .morse-input,
  .morse-output {
    min-height: 150px;
  }
}

@media (max-width: 320px) {
  .morse-btn {
    width: 100%;
  }
}
