* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  background-color: #216869;
  font-family: Nunito, sans-serif;
  min-height: 100vh;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  background-color: #1f2421;
}

.logo {
  text-indent: -9999px;
  background-image: url(../images/logo.png);
  background-repeat: no-repeat;
  background-position: center;
  height: 40px;
  width: 160px;
  background-size: contain;
  text-decoration: none;
  text-shadow: none;
  margin: 5px auto;
}
main {
  /* flex: 0.5; */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20px 15px;
}
.container {
  width: 90%;
  max-width: 800px;
  margin: 20px 20px;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
h1 {
  text-align: center;
  font-family: "Bebas Neue", serif;
  /* letter-spacing: 1px; */
  font-weight: 400;
  font-size: 2.5rem;
}
.info {
  background-color: #ebf8ff;
  border: 1px solid #bee3f8;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  color: #2c5282;
  font-size: clamp(0.875rem, 2vw, 0.9rem);
}
.input-group,
.output-group {
  margin-bottom: 1.5rem;
  width: 100%;
}

#hexInput {
  width: 100%;
  height: 100px;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #4a5568;
  font-weight: 500;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-group {
  margin-bottom: 15px;
}

button {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

select {
  width: 100%;
  margin-bottom: 20px;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.bits-select {
  padding: 0.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
}

.convert-btn {
  background-color: #4299e1;
  color: white;
}

.convert-btn:hover {
  background-color: #3182ce;
}

.clear-btn {
  background-color: #e2e8f0;
  color: #4a5568;
}

.clear-btn:hover {
  background-color: #cbd5e0;
}

.copy-btn {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: #48bb78;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.copy-btn:hover {
  background-color: #38a169;
}
textarea {
  /* max-width: 100%; */
  resize: vertical;
  width: 100%;
  min-height: 300px;
  margin: 5px 5px 0px 0px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: border-color 0.2s ease;
  font-size: 18px;
}
textarea:focus {
  outline: none;
  border-color: #4299e1;
}

.counter {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  width: 100%;
  margin-top: 10px;
  font-size: 18px;
  color: #333;
}

.counter p {
  margin: 20px;
}

.counter span {
  font-weight: bold;
}

.output span {
  font-weight: bold;
}

input[type="number"],
input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
  resize: vertical;
}

input[type="checkbox"] {
  margin-right: 10px;
}
.output-container {
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #ddd;
  background-color: #fafafa;
}
.output {
  margin-top: 20px;
}
.password-output {
  text-align: center;
  margin-top: 20px;
  font-size: 1.2em;
  font-weight: bold;
}
.password-output input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.output textarea {
  background-color: #f4f4f4;
}
#input {
  font-family: monospace;
}
button {
  background-color: #4caf50;
  color: white;
  cursor: pointer;
  font-size: 16px;
}
button:hover {
  background-color: #45a049;
}
.result {
  text-align: left;
  margin-top: 20px;
  background-color: #f0f0f0;
  padding: 15px;
  border-radius: 5px;
  white-space: pre-wrap;
}
.result p {
  font-size: 1.2em;
  font-weight: bold;
}
.result input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.color-display {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 24px;
  border: 2px solid black;
}
.picker-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  border: 2px solid black;
  border-radius: 8px;
  padding: 10px;
}
input[type="color"] {
  width: 150px;
  height: 60px;
  border: none;
  cursor: pointer;
  padding: 0;
  border: 2px solid black;
  /* border-radius: 8px; */
}
.color-info {
  margin-top: 20px;
  text-align: center;
}
.color-values {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

/* General styling for the dropdown menu */
#tagSelector {
  width: 100%; /* Set a width for the dropdown */
  padding: 10px; /* Add padding inside the dropdown */
  font-size: 16px; /* Set the font size for the options */
  border: 1px solid #ccc; /* Add a light gray border */
  border-radius: 4px; /* Round the corners */
  background-color: #f9f9f9; /* Set the background color */
  color: #333; /* Set the text color */
  cursor: pointer; /* Show a pointer cursor */
  margin: 10px 0;
}

/* Add a hover effect for the dropdown */
#tagSelector:hover {
  border-color: #888; /* Darken the border color on hover */
}

/* Styling for the dropdown options */
#tagSelector option {
  font-size: 16px; /* Keep font size consistent */
  color: #333; /* Set the text color */
  padding: 5px; /* Add padding for readability */
}

/* Focus styling for accessibility */
#tagSelector:focus {
  outline: none; /* Remove the default outline */
  border-color: #4caf50; /* Highlight the border in green */
  box-shadow: 0 0 5px #4caf50; /* Add a glow effect */
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: monospace;
}

.message {
  position: fixed;
  top: 110px;
  right: 20px;
  padding: 1rem;
  border-radius: 6px;
  background-color: #48bb78;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: clamp(0.875rem, 2vw, 1rem);
  z-index: 1000;
}

.message.show {
  opacity: 1;
}

.error {
  background-color: #fc8181;
  color: white;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: none;
  font-size: clamp(0.875rem, 2vw, 0.9rem);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.format-select {
  padding: 0.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
}

.options {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.separator-select {
  padding: 0.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: clamp(0.875rem, 2vw, 1rem);
  min-height: 44px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table,
th,
td {
  border: 1px solid #ddd;
}

th,
td {
  padding: 10px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}

strong {
  color: white;
  text-shadow: 2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000, 1px 1px #000,
    -1px -1px #000, 1px -1px #000, -1px 1px #000;
}

footer {
  display: flex;
  height: 150px;
  width: 100%;
  justify-content: center;
  align-items: center;
  background-color: #1f2421;
}

.made-with {
  display: flex;
  /* border: 2px solid white; */
  height: 35px;
  width: 100%;
  justify-content: center;
}
.made-with p {
  margin: 0 10px;
}
