:root {
  --bg-light: #f5f5f5;
  --bg-light2: #fafafa;
  --text-light: #222;
  --bg-dark: #0d0d0d;
  --bg-dark2: #1e1e1e;
  --text-dark: #f1f1f1;
  --primary: #ba1f00;
  --secondary: #ff4757;
  transition: background-color 0.3s, color 0.3s;
}

html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding: 3rem;
  max-width: 1000px;
  margin: auto;
  line-height: 1.8;
}

body.light {
  background-color: var(--bg-light);
  color: var(--text-light);
}

body.dark {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#theme-toggle {
  position: absolute;
  top: 10px;
  right: 40px;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 20px;
}


.form-section,
#result {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: var(--bg-light);
}

body.dark .form-section,
body.dark #result {
  background-color: var(--bg-dark2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

body.light .form-section,
body.light #result {
  background-color: var(--bg-light2);
}

input,
select,
button {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border 0.3s, background-color 0.3s, color 0.3s;
}

input:hover,select:hover{
  border: 1px solid #8f8f8f;
  cursor: pointer;
}

body.light input,
body.light select {
  background-color: #fff;
  color: #000;
}

body.dark input,
body.dark select {
  background-color: #1e1e1e;
  color: #fff;
}

button {
  background-color: var(--primary);
  color: #fff;
  border: none;
  margin-top: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

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

#loader {
  display: none;
  margin-top: 1rem;
  font-size: 1rem;
  text-align: center;
  color: currentColor;
}

#loader::after {
  content: "⏳ Loading your SVG...";
  animation: blink 1s infinite;
}

@keyframes blink {
  50% {
    opacity: 0.4;
  }
}

iframe {
  width: 100%;
  height: 160px;
  border: none;
  margin-bottom: 1rem;
}

pre {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  color: inherit;
}

.social-links {
  margin-top: 3rem;
  text-align: center;
  font-size: 1.1rem;
}

.social-links a {
  color: #70a1ff;
  margin: 0 10px;
  text-decoration: none;
}

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

#streakSelect {
  width: fit-content;
}

hr{
  margin: 15px 0px 15px 0px;
  border: 0; 
  height: 1px; 
  background-image: -webkit-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
  background-image: -moz-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
  background-image: -ms-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
  background-image: -o-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0); 
}