/* Global styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: white;
  background-color: #0c091c;
}

nav {
  display: flex;
  justify-content: flex-end;
}

nav a {
  color: white;
  font-size: 18px;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

/* Header styles */
header {
  color: white;
  padding: 20px;
  text-align: center;
}

header h1 {
  font-size: 48px;
  margin: 0;
}

header p {
  font-size: 24px;
}

/* Main styles */
main {
  display: flex;
  flex-direction: column;
  flex: 1;
}

button {
  font-size: 18px;
  padding: 10px 20px;
  border: none;
  background-color: #7a61f6;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #444;
}

textarea {
  width: 100%;
  height: 100%;
  padding: 10px;
  border: none;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  resize: none;
  font-family: monospace;
  font-size: 1rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-align: center;
}

.converter {
  display: flex;
  flex: 1;
  justify-content: space-between;
}

.converter>div {
  display: flex;
  flex-direction: column;
  width: 50%;
}

.converter>div:first-child {
  /* border-right: 1px solid #444; */
  margin-right: 2px;
  /* Subtle line on the right side of the first .box */
}

.input,
.output {
  display: flex;
  flex-direction: column;
  flex: 1;
}

#input:focus {
  outline: none;
}

.output {
  position: relative;
}

.copy-to-clipboard {
  position: absolute;
  bottom: 20px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #7a61f6;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.copy-to-clipboard:hover {
  background-color: #444;
}

.copy-prompt {
  position: absolute;
  bottom: 60px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  display: none;
}

.switch-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 30px;
}

.switch-wrapper div {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.switch-field input {
  position: absolute !important;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  width: 1px;
  border: 0;
  overflow: hidden;
}

.switch-field label {
  background-color: #262336;
  color: #d2d2d2;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  padding: 8px 16px;
  margin-right: -1px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.1s ease-in-out;
}

.switch-field label:hover {
  cursor: pointer;
}

.switch-field input:checked+label {
  background-color: #7662ee;
  color: white;
  box-shadow: none;
}

.switch-field label:first-of-type {
  border-radius: 4px 0 0 4px;
}

.switch-field label:last-of-type {
  border-radius: 0 4px 4px 0;
}

#error-message {
  color: red;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  padding-bottom: 20px;
}

#github-icon {
  margin-right: 5px;
}