body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f4e7d3;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
  padding-bottom: 50px; /* Add padding to prevent overlap with footer */
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  text-align: center;
  max-width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.no-scale {
  transform: scale(1) !important;
  overflow: hidden;
}

.large-container {
  width: 100%;
  height: 100%;
  max-width: 500px;
  max-height: 500px;
}

.container i {
  color: #d3d3d3;
  background-color: transparent;
  padding: 20px;
  border-radius: 10px;
  font-size: 12rem;
}

.file-icon {
  width: 250px;
  height: auto;
  padding: 20px;
  border-radius: 10px;
}

.download-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 20px;
  text-decoration: none;
  width: 100%;
  max-width: 200px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

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

.settings-panel {
  position: fixed;
  top: 50%;
  right: -200px;
  width: 200px;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px 0 0 10px;
  transform: translateY(-50%);
  transition: right 0.3s;
}

.settings-panel:hover {
  right: 0;
}

.settings-panel label {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

.settings-panel .input-group {
  display: flex;
  width: 100%;
  margin-bottom: 10px;
}

.settings-panel input,
.settings-panel select {
  display: block;
  width: 50%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  margin: 0;
  box-sizing: border-box;
  height: 40px;
}

.settings-panel input {
  border-radius: 5px 0 0 5px;
}

.settings-panel select {
  border-radius: 0 5px 5px 0;
  border-left: 1px solid #ccc;
  height: 40px;
}

.settings-panel .file-pattern-select {
  border-radius: 5px;
  width: 100%; /* Ensure the dropdown is wide enough */
}

#custom-pattern {
  border-radius: 5px; /* Ensure the input has the same corner radius on all sides */
}

.settings-panel button {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px;
  cursor: pointer;
}

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

.settings-panel label,
.settings-panel input,
.settings-panel button {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

.settings-panel button {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.animate-bounce {
  animation: bounce 2s;
}

.animate-spin {
  animation: spin 2s;
}

.api-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-left: 10px;
}

.api-docs-button, .code-icon-button, .coffee-icon-button {
  position: fixed;
  bottom: 20px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: black;
}

.api-docs-button {
  right: 120px;
}

.code-icon-button {
  right: 70px;
}

.coffee-icon-button {
  right: 20px;
}

.api-docs-button i, .code-icon-button i, .coffee-icon-button i {
  font-size: 24px;
}

.footer {
  position: fixed;
  bottom: 10px;
  left: 10px;
  font-size: 12px;
  color: #888;
  z-index: 2;
}

.version {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #888;
}

.api-endpoint {
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2px 4px;
  font-family: monospace;
  color: #333;
}

.api-docs-box {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  box-sizing: border-box;
  overflow: auto;
}

.no-bullet {
  list-style-type: none;
}

.code-block {
  background-color: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 16px;
  font-family: monospace;
  color: #24292e;
  overflow-x: auto;
  font-size: 14px;
  white-space: nowrap;
  word-wrap: break-word;
}

.code-block .keyword {
  color: #d73a49;
}

.code-block .string {
  color: #032f62;
}

.code-block .variable {
  color: #005cc5;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 10px 30px 10px 10px; /* Add padding to the right for the close button */
  border-radius: 5px;
  margin-bottom: 20px;
  position: relative;
  animation: fadeIn 0.5s;
}

.error-message .close-button {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%); /* Center the button vertically */
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #721c24;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (max-width: 600px) {
  .api-docs-box {
    padding: 10px;
  }

  .download-button {
    font-size: 14px;
    padding: 8px 16px;
  }

  .code-block {
    font-size: 12px;
    padding: 8px;
  }
}