@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7f8fa;
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
}

#navbar {
  background: linear-gradient(90deg, #007bff, #0056b3);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#navbar a {
  color: white;
  text-decoration: none;
  margin-left: 0.5rem;
  font-weight: 500;
  transition: color 0.3s;
}

#navbar a:hover {
  text-decoration: underline;
}

#navbar .title {
  font-size: 24px;
  font-weight: 600;
}

#container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  transition: background-color 0.3s ease;
}

body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

#dark-mode-toggle {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  font-size: 18px !important;
  transition: background-color 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#dark-mode-toggle:hover {
  background-color: #0056b3;
}

body.dark-mode #inputSection,
body.dark-mode #previewSection {
  background-color: #333;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

body.dark-mode .instructions {
  color: #ffffff;
}

#previewTitle {
  font-weight: bold;
}

canvas {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

input[type="number"],
input[type="file"],
input[type="radio"],
input[type="checkbox"] {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  margin-bottom: 15px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}

select {
  padding: 8px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: auto;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  background-color: white;
  color: #333;
  margin-left: 5px;
}

button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

label {
  font-weight: 500;
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
  margin-right: 5px;
}

input:disabled,
select:disabled {
  background-color: #e0e0e0;
  cursor: not-allowed;
}
#description {
  margin: 14rem;
}

@media (max-width: 1420px) {
  #navbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #navbar .title {
    margin-bottom: 10px;
  }

  #navbar div {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  #navbar a {
    margin-bottom: 10px;
  }

  #container {
    flex-direction: column;
    align-items: center;
  }

  #inputSection,
  #previewSection {
    width: 90%;
    margin-right: 0;
    margin-bottom: 20px;
  }

  #description {
    margin: 6rem;
  }
}

@media (max-width: 768px) {
  #navbar {
    padding: 15px;
  }

  #navbar .title {
    font-size: 20px;
  }

  #navbar a {
    font-size: 16px;
    padding: 8px 0;
  }
  #description {
    margin: 2rem;
  }
}

@media (max-width: 480px) {
    #navbar .title {
        font-size: 18px;
    }

    #navbar a {
        font-size: 14px;
    }
    #description {
      margin: 0rem;
    }
}

#description h1{
  text-align: center;
}

#description h2 {
  text-decoration: underline;
}

ol li {
  margin-bottom: 15px; /* Define um espaçamento de 15px abaixo de cada item */
}

ul li {
  margin-bottom: 15px; /* Define um espaçamento de 15px abaixo de cada item */
}

ol img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px 0;
}

#footer {
  background-color: #f4f4f4;
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.footer-content div {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-content a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-content a:hover {
  color: #0066cc;
}

.footer-bottom {
  max-width: 1200px;
  margin: 1rem auto 0;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}