body {
  font-family: "Courier New", monospace;
  background-color: #f5f3e7;
  color: #2f4f4f;
  margin: 0;
  padding: 0;
}

.title {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #8b4513;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: "Playfair Display", serif;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}

.encrypt,
.decrypt {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 10px;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  border: 1px solid #8b4513;
}

h2 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #8b4513;
  font-family: "Playfair Display", serif;
}

label {
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
  color: #2f4f4f;
}

input[type="text"] {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #8b4513;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 15px;
  font-family: "Courier New", monospace;
}

button {
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #2f4f4f;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #8b4513;
}

.output {
  font-size: 16px;
  margin-top: 15px;
  padding: 10px;
  border: 1px solid #8b4513;
  border-radius: 4px;
  background-color: #fbceb1;
  word-wrap: break-word;
  min-height: 80px;
  font-family: "Courier New", monospace;
}

.divider {
  border-bottom: 1px solid #8b4513;
  margin: 1rem 0;
}

.vintage-icon {
  width: 50px;
  height: 50px;
  background-image: url("vintage-icon.png");
  background-size: cover;
  margin: 1rem 0;
}

@media screen and (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .encrypt,
  .decrypt {
    max-width: 100%;
    margin: 10px 0;
  }
}

@media screen and (max-width: 480px) {
  .title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .encrypt,
  .decrypt {
    max-width: 400px;
  }

  h2 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  label,
  input[type="text"],
  button,
  .output {
    font-size: 14px;
  }

  input[type="text"],
  .output {
    padding: 8px;
  }

  button {
    padding: 10px 16px;
  }
}

