:root {
  scrollbar-width: thin;
}

body {
  font-family: system-ui, -apple-system, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
  max-width: 1500px;
  margin: auto;
}
main {
  flex: 1;
  padding: 80px;
}

.content {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 14vh;
}

.column {
  flex: 1;
  border-radius: 8px;
  text-align: center;
}

.content header {
  text-align: center;
  font-family: Verdana, sans-serif;
}
header h1 {
  font-size: 5rem;
  margin-bottom: 20px;
  margin-top: 2vh;
}
header p {
  font-size: 1.2rem;
}

.column #qrForm {
  padding: 20px;
}
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  margin: auto;
}
input,
button {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: background-color 0.3s, border-color 0.3s;
}
label {
  opacity: 0.5;
}
#color,
#backgroundColor {
  height: 40px;
  padding: 4px 5px;
}
#toggleColorInputs {
  background-color: transparent;
  max-width: 60%;
  font-size: 0.8rem;
  margin: auto;
  text-decoration: underline;
  color: white;
  opacity: 0.8;
  border: none;
  cursor: pointer;
}

.submit-button {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(.4,0,.2,1);
}
.submit-button:hover {
  transform: scale(1.04);
}
.submit-button:active {
  transform: scale(0.95);
}
.button-for-download {
  color: white;
  border: none;
  background-color: #28a745;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(.4,0,.2,1);
}
.button-for-download:hover {
  background-color: #218838;
  transform: scale(1.04);
}
.button-for-download:active {
  transform: scale(0.95);
}

#result {
  margin-top: 20px;
  text-align: center;
}
#qrCode {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}
#downloadBtn {
  text-decoration: none;
}

a {
  text-decoration: none;
  color: #007bff;
  font-size: 18px;
}

footer {
  text-align: center;
  padding: 10px;
  margin-top: auto;
  font-size: small;
}
footer a {
  color: #007bff;
  text-decoration: none;
  font-size: small;
}
footer a:hover {
  text-decoration: underline;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: #aaa;
}
.close-btn:hover {
  color: #a70000;
}

@media (prefers-color-scheme: light) {
  body {
    background-color: #ffffff;
    color: #000000;
  }
  input {
    background-color: #f9f9f9;
  }
  #toggleColorInputs {
    background-color: transparent;
    max-width: 60%;
    margin: auto;
    text-decoration: underline;
    color: rgb(0, 0, 0);
    border: none;
    cursor: pointer;
  }
}
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #ffffff;
  }
  input {
    background-color: #00000000;
    border-color: #333;
    color: #fff;
  }
  #toggleColorInputs {
    color: white;
    border: none;
    cursor: pointer;
  }
}
@media (max-width: 768px) {
  .content {
    flex-direction: column;
    gap: 20px;
    margin-top: 5vh;
  }
  header h1 {
    font-size: 5rem;
  }
  header p {
    font-size: 1.2rem;
  }
  main {
    padding: 0;
  }
  #qrForm {
    max-width: 340px;
    padding: 0;
    margin: auto;
  }
}