:root {
  --bg-gradient: linear-gradient(to bottom, #6a11cb, #2575fc);
  --bg-color: rgba(255, 255, 255, 0.1);
  --text-color: #fff;
  --button-bg: #ff6a3d;
  --button-hover: #ff3a00;
}

[data-theme="dark"] {
  --bg-gradient: linear-gradient(to bottom, #232526, #414345);
  --bg-color: rgba(0, 0, 0, 0.8);
  --text-color: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-color);
  min-height: 100vh; /* Minimum height of the viewport */
  text-align: center;
  overflow: auto; /* Allows scrolling */
  padding-top: 70px; /* Increase padding to avoid overlap */
  transition: background 0.3s, color 0.3s;
}

.container {
  background: var(--bg-color);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  margin: 20px 0; /* Adds margin to the container */
}

h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

p {
  font-size: 1rem;
  margin-bottom: 20px;
}

input[type="text"] {
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
}

button {
  background: var(--button-bg);
  color: var(--text-color);
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: var(--button-hover);
}

iframe {
  margin-top: 20px;
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 15px;
}

.error {
  color: #ff3a3a;
  font-size: 0.9rem;
  margin-top: 10px;
}

.credit {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-top: 20px;
}

.credit a {
  color: var(--button-bg);
  text-decoration: none;
}

.credit a:hover {
  text-decoration: underline;
}

.support-links {
  margin-top: 10px;
  font-size: 0.9rem;
}

.support-links a {
  color: var(--text-color);
  text-decoration: none;
  margin: 0 5px;
}

.support-links a:hover {
  text-decoration: underline;
}

.dark-mode-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--button-bg);
  color: var(--text-color);
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.dark-mode-toggle:hover {
  background: var(--button-hover);
}

.useful-section {
  margin-top: 20px;
  padding: 15px;
  background: var(--bg-color);
  border-radius: 10px;
}

.useful-section h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.useful-section ul {
  list-style: none;
  padding-left: 0;
  font-size: 0.9rem;
}

.useful-section li {
  margin-bottom: 5px;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  body {
    padding-top: 100px; /* Increase top padding for mobile */
  }
  
  h1 {
    font-size: 1.5rem; /* Adjust header size for mobile */
  }
  
  p {
    font-size: 0.9rem; /* Adjust paragraph size for mobile */
  }
  
  iframe {
    height: 300px; /* Reduce iframe height for mobile */
  }
}