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

body {
  width: 100%;
  height: 100vh;
  font-family: "Poppins", sans-serif;
  margin: 0px auto;
  padding: 0px;
  background-color: #f7f8fa;
  color: #333;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  overflow-x: hidden;
}
html {
  width: 100%;
  height: 100vh;
  overscroll-behavior: none;
}
#container::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}
#navbar {
  background: linear-gradient(90deg, #2579d3, #b53333);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#navbar a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
}

#navbar a:hover {
  text-decoration: underline;
}
#navbar div {
  display: flex;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
}
#navbar div::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 10px;
}

#navbar .title img {
  font-size: 24px;
  font-weight: 600;
  padding-top: 7px;
  margin-right: 15px;
}
#navbar div::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

#border-btn {
  top: 15px;
  right: 15px;
  position: absolute;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
}
#controls,
#inputSection {
  position: sticky;
  top: 0px;
}
#preview {
  background-color: white;
  z-index: 1;
}

#download-btn {
  margin-bottom: 10px;
}
#container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  transition: background-color 0.3s ease;
  max-height: 82vh;
  overflow-y: auto;
  overflow-x: hidden;
}

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

#dark-mode-toggle {
  position: fixed;
  right: 10px;
  bottom: 1%;
  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;
}
input[type="file"] {
  background: linear-gradient(-90deg, #007bff, #0056b3);
  padding: 10px;
}
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;
  width: 100%;
}

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;
}

.info-button {
  bottom: 10px !important;
  left: 20px !important;
  position: fixed !important;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  padding: 0px;
}
.info-button button {
  background-color: transparent;
  padding: 0px;
}
body.dark-mode .info-button svg {
  background-color: #474747;
}
.info-button svg {
  width: 20px;
  height: 20px;
  background-color: rgb(209, 209, 209);
  padding: 5px;
  border-radius: 50%;
}
.info-button button:hover {
  background-color: transparent;
  opacity: 0.6;
}

.info-message {
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 40vh;
  position: fixed;
  background-color: #0056b3;
  z-index: 1000;
  overflow-x: auto;
  padding: 20px;
  color: white;
  display: none;
}

.info-about-content {
  width: 95%;
  color: white;
  border-radius: 10px;
  padding-top: 10px;
  word-wrap: break-word;
}
.info-about-content a {
  color: #b1b1b1;
  font-weight: 500;
}
.close-info-button {
  margin-top: 20px;
  padding: 5px 20px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  max-width: 100px;
}

.close-info-button:hover {
  background-color: #d32f2f;
}

/* Scroll container to wrap the links and buttons */
.scroll-container {
  display: flex;
  align-items: center;
  flex-grow: 1;
  margin-left: 10px;
  position: relative;
  height: 50px;
  overflow: hidden;
}

/* Left and Right Scroll buttons */
.scroll-leftic,
.scroll-rightic {
  cursor: pointer;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 50%;
  color: white;
  transition: background 0.2s;
}

.scroll-leftic:hover,
.scroll-rightic:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Content inside the scroll */
.scroll-content {
  display: flex;
  gap: 15px;
  padding: 5px 10px;
}

/* Navigation Links */
.scroll-content a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.scroll-content a:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  #navbar div {
    background: linear-gradient(to right, #00000000, #ffffff5c);
  }
  #container {
    flex-direction: column;
    align-items: center;
  }

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