/*
! tailwindcss v3.3.1 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/
/* Dark Mode Theme */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1a1a1a;
    --text-dark: #e5e7eb;
    --text-light: #9ca3af;
    --border-gray: #4b5563;
    --accent-blue: #8bb2ff;
    --hover-bg: #2d3748;
  }
}
/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
*/

html {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

html, body {
    height: auto; /* Ensures content can grow as needed */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/
h1 {
      font-size: clamp(1rem, 2vw + 1rem, 1.875rem); /* Responsive heading scaling */
      margin-bottom: 1em;
      color: var(--text-dark);
    }

p {
      margin-bottom: 0.75em;
      font-size: 0.9375rem; /* ~15px base size in rem */
      line-height: 1.6;
    }    

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font family by default.
2. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden] {
  display: none;
}

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
}

.container {
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding: 1em;
}


.visible {
  visibility: visible;
}

.collapse {
  visibility: collapse;
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.ml-0 {
  margin-left: 0px;
}

.ml-2 {
  margin-left: 0.5rem;
}

.ml-4 {
  margin-left: 1rem;
}

.ml-auto {
  margin-left: auto;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.25rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.inline {
  display: inline;
}

.flex {
  display: flex;
}

.table {
  display: table;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.h-auto {
  height: auto;
}

.h-full {
  height: 100%;
}

.h-screen {
  height: 100vh;
}

.min-h-screen {
  min-height: 100vh;
}

.w-16 {
  width: 4rem;
}

.w-auto {
  width: auto;
}

.w-full {
  width: 100%;
}

.flex-1 {
  flex: 1 1 0%;
}

.shrink {
  flex-shrink: 1;
}

.grow {
  flex-grow: 1;
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.list-disc {
  list-style-type: disc;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.5rem * var(--tw-space-x-reverse));
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1rem * var(--tw-space-x-reverse));
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}

.overflow-auto {
  overflow: auto;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.border {
  border-width: 1px;
}

.bg-\[\#161b22\] {
  --tw-bg-opacity: 1;
  background-color: rgb(22 27 34 / var(--tw-bg-opacity));
}

.bg-blue-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(59 130 246 / var(--tw-bg-opacity));
}

.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity));
}

.bg-gray-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(209 213 219 / var(--tw-bg-opacity));
}

.bg-gray-800 {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / var(--tw-bg-opacity));
}

.bg-green-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 252 231 / var(--tw-bg-opacity));
}

.bg-green-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(34 197 94 / var(--tw-bg-opacity));
}

.bg-green-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(20 83 45 / var(--tw-bg-opacity));
}

.bg-orange-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(124 45 18 / var(--tw-bg-opacity));
}

.bg-purple-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(168 85 247 / var(--tw-bg-opacity));
}

.bg-red-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 226 226 / var(--tw-bg-opacity));
}

.bg-red-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / var(--tw-bg-opacity));
}

.bg-red-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(127 29 29 / var(--tw-bg-opacity));
}

.bg-yellow-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(234 179 8 / var(--tw-bg-opacity));
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-blue-500 {
  --tw-gradient-from: #3b82f6 var(--tw-gradient-from-position);
  --tw-gradient-from-position:  ;
  --tw-gradient-to: rgb(59 130 246 / 0)  var(--tw-gradient-from-position);
  --tw-gradient-to-position:  ;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-green-500 {
  --tw-gradient-via-position:  ;
  --tw-gradient-to: rgb(34 197 94 / 0)  var(--tw-gradient-to-position);
  --tw-gradient-to-position:  ;
  --tw-gradient-stops: var(--tw-gradient-from), #22c55e var(--tw-gradient-via-position), var(--tw-gradient-to);
}

.to-yellow-400 {
  --tw-gradient-to: #facc15 var(--tw-gradient-to-position);
  --tw-gradient-to-position:  ;
}

.object-contain {
  -o-object-fit: contain;
     object-fit: contain;
}

.p-2 {
  padding: 0.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.pl-4 {
  padding-left: 1rem;
}

.pl-5 {
  padding-left: 1.25rem;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.uppercase {
  text-transform: uppercase;
}

.lowercase {
  text-transform: lowercase;
}

.italic {
  font-style: italic;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

.text-black {
  --tw-text-opacity: 1;
  color: rgb(0 0 0 / var(--tw-text-opacity));
}

.text-blue-100 {
  --tw-text-opacity: 1;
  color: rgb(219 234 254 / var(--tw-text-opacity));
}

.text-blue-200 {
  --tw-text-opacity: 1;
  color: rgb(191 219 254 / var(--tw-text-opacity));
}

.text-blue-300 {
  --tw-text-opacity: 1;
  color: rgb(147 197 253 / var(--tw-text-opacity));
}

.text-blue-500 {
  --tw-text-opacity: 1;
  color: rgb(59 130 246 / var(--tw-text-opacity));
}

.text-blue-600 {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity));
}

.text-gray-200 {
  --tw-text-opacity: 1;
  color: rgb(229 231 235 / var(--tw-text-opacity));
}

.text-gray-300 {
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / var(--tw-text-opacity));
}

.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity));
}

.text-gray-700 {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity));
}

.text-gray-800 {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity));
}

.text-gray-900 {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity));
}

.text-green-500 {
  --tw-text-opacity: 1;
  color: rgb(34 197 94 / var(--tw-text-opacity));
}

.text-green-700 {
  --tw-text-opacity: 1;
  color: rgb(21 128 61 / var(--tw-text-opacity));
}

.text-red-200 {
  --tw-text-opacity: 1;
  color: rgb(254 202 202 / var(--tw-text-opacity));
}

.text-red-500 {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity));
}

.text-red-700 {
  --tw-text-opacity: 1;
  color: rgb(185 28 28 / var(--tw-text-opacity));
}

.text-red-800 {
  --tw-text-opacity: 1;
  color: rgb(153 27 27 / var(--tw-text-opacity));
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

.underline {
  text-decoration-line: underline;
}

.overline {
  text-decoration-line: overline;
}

.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-md {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.hover\:w-1\/2:hover {
  width: 50%;
}

.hover\:w-1\/3:hover {
  width: 33.333333%;
}

.hover\:bg-blue-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(191 219 254 / var(--tw-bg-opacity));
}

.hover\:bg-blue-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity));
}

.hover\:bg-blue-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / var(--tw-bg-opacity));
}

.hover\:bg-blue-900:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(30 58 138 / var(--tw-bg-opacity));
}

.hover\:bg-gray-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity));
}

.hover\:bg-gray-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(55 65 81 / var(--tw-bg-opacity));
}

.hover\:bg-green-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(187 247 208 / var(--tw-bg-opacity));
}

.hover\:bg-green-300:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(134 239 172 / var(--tw-bg-opacity));
}

.hover\:bg-green-500:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(34 197 94 / var(--tw-bg-opacity));
}

.hover\:bg-green-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(22 163 74 / var(--tw-bg-opacity));
}

.hover\:bg-orange-300:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(253 186 116 / var(--tw-bg-opacity));
}

.hover\:bg-purple-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(147 51 234 / var(--tw-bg-opacity));
}

.hover\:bg-red-500:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / var(--tw-bg-opacity));
}

.hover\:bg-red-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / var(--tw-bg-opacity));
}

.hover\:bg-red-900:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(127 29 29 / var(--tw-bg-opacity));
}

.hover\:bg-yellow-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(202 138 4 / var(--tw-bg-opacity));
}

.hover\:text-blue-500:hover {
  --tw-text-opacity: 1;
  color: rgb(59 130 246 / var(--tw-text-opacity));
}

.hover\:text-blue-700:hover {
  --tw-text-opacity: 1;
  color: rgb(29 78 216 / var(--tw-text-opacity));
}

.hover\:text-blue-900:hover {
  --tw-text-opacity: 1;
  color: rgb(30 58 138 / var(--tw-text-opacity));
}

.hover\:text-green-900:hover {
  --tw-text-opacity: 1;
  color: rgb(20 83 45 / var(--tw-text-opacity));
}

.hover\:underline:hover {
  text-decoration-line: underline;
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-blue-400:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
}

.focus\:ring-gray-400:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
}

.focus\:ring-red-400:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity));
}


body {
  background-color: #161b22;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                  Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  display: flex;
  line-height: 1.6;
  flex-direction: column;
  min-height: 100vh;
  font-size: 1.2rem;
  padding: 0;
  /* overflow-y: hidden; */
}

.navbar {
  position: sticky;
  top: 0;
  background-color: #161b22;
  /* Dark navbar */
  padding: 5px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  justify-content: center;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links li a {
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 15px;
  transition: background 0.3s ease, color 0.3s ease;
  border-radius: 5px;
}

.nav-links li a:hover {
  background-color: #238636;
  color: #ffffff;
}

.nav-auth {
  display: flex;
  gap: 15px;
}

.nav-auth a {
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-auth a:hover {
  background-color: #238636;
  color: #ffffff;
}

.main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  padding: 20px;
}

.login-container {
  background-color: #161b22;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.login-container label {
  display: block;
  text-align: left;
  font-weight: bold;
  margin-top: 10px;
}

.login-container input {
  width: 100%;
  padding: 10px;
  margin: 5px 0 10px;
  border: none;
  border-radius: 5px;
}

.login-container .btn {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  background-color: #238636;
  color: white;
  font-weight: bold;
  border: none;
}

.footer {
  text-align: center;
  padding: 20px;
  background-color: #161b22;
  color: white;
  position: relative;
  z-index: 10;
  visibility: visible !important;
  height: auto !important;
}


/* Sign-Up & Login Box Styling */
.signup-box,
.login-box,
.forms {
  background-color: #161b22;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  text-align: center;
  max-width: 400px;
  width: 100%;
  margin: auto;
  color: #00b4d8;
}

.login-box form {
    padding-bottom: 20px; /* Add bottom padding to the form */
}

.confirm-delete {
  background-color: #161b22;
  padding: 20px;
  /* border-radius: 8px; */
  /* box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); */
  text-align: center;
  max-width: 400px;
  width: 100%;
  margin: auto;
}

.subject-form-box {
  background-color: #161b22;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  text-align: center;
  max-width: 500px;
  width: 100%;
  margin: auto;
}

.signup-box h2,
.login-box h2 {
  margin-bottom: 15px;
  color: white;
}

.sidebar {
  background-color: #161b22;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  overflow-y: auto;
  scroll-behavior: smooth;
  /* text-align: center; */
  /* max-width: 400px; */
  width: 100%;
  margin: auto;
}

.highlight {
  background-color: #2c3e50;
  /* Dark blue background */
  color: black;
  /* Light text color */
}

.subject-details, .topic-details {
  background-color: #161b22;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  text-align: center;
  max-width: 400px;
  width: 100%;
  margin: auto;
  color: #ffffff; 
}

.subject-nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin-top: 20px;
}

.description {
  text-align: center;
  color: #ffffff; 
  text-align: justify;
}

.h2 {
  font-size: 1.5em;
  font-weight: bold;
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  color: #00b4d8;
}
.title {
  font-size: 1.875rem;
  font-weight: bold;
  background-color: #161b22;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  color: #00b4d8;
}

.subject-nav li {
  margin-right: 15px;
}

.nav-link {
  text-decoration: none;
  color: #007bff;
  font-size: 13px;
  padding: 5px 5px;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.nav-link:hover {
  background-color: #007bff;
  color: #000000;
}

/* Initially hide subtopics */
.sub-topics-container {
  display: none; /* Hide by default */
}

/* Show subtopics when the parent topic has this class applied */
.topic .show-subtopics {
  display: block; /* Display on click */
}

/* styles.css */
.hidden {
  display: none;
}

.subject-list-item, details > summary {
  cursor: pointer;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}


.topic-nav__item {
  display: inline-block;
  margin: 10px 10px;
  font-size: 13px;
}
.topic-details__header {
  margin-bottom: 20px;
}

.topic-details__info p {
  margin: 5px 10px;
}

.topic-nav__list {
  display: flex;
  /* justify-content: space-between; */
  justify-content: center;
  list-style: none;
  padding: 0;
}

.topic-nav__link {
  text-decoration: none;
  color: #007BFF;
  padding: 10px;
  border-radius: 4px;
}

.topic-nav__link:hover {
  background-color: #f0f0f0;
}
.content {
  margin-left: 200px; /* Adjust content position */
}

.tone-selector {
  position: fixed;
  bottom: 50px;
  right: 4px;
  background-color: #3b4c70; /* bg-gray-800 in TailwindCSS */
  padding: 15px;             /* p-3 in TailwindCSS */
  display: flex;
  gap: 5px;                  /* space-x-1 in TailwindCSS */
  box-shadow: 0 4px 6px -1px rgba(53, 47, 47, 0.2), 
              0 2px 4px -1px rgba(67, 64, 64, 0.1); /* shadow-lg in TailwindCSS */
  border-radius: 8px;        /* rounded in TailwindCSS */
  pointer-events: auto;
  z-index: 5;
  opacity: 0.3;
}

.tone-selector button {
  padding: 10px;
  margin-right: 5px;
  border: none;
  background-color: #ccc;
  cursor: pointer;
}

.tone-selector .active {
  background-color: #007bff;
  color: white;
}
.tone-selector:hover { opacity: 1; }
.dynamic-dashboard {
  padding: 2em;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow-y: auto; /* Allows scrolling within the dashboard if content overflows */
}

.dynamic-dashboard .dynamic-dashboard h2, .dynamic-dashboard p {
  margin-bottom: .9em;
}

.dynamic-dashboard h1 {
  font-size: 2rem;
  font-weight: bold;
  color: #00b4d8;
  margin-bottom: .9em;
}

.sourceCode {
  background-color: #000000;
  line-height: 1.6;
  border-radius: 1rem;
  padding: 1rem; /* remove padding here */
  /* max-width: 600px; */
  max-width: 100%;
  width: 100%;
  font-size: 1.rem;
  font-weight: bold;
  display: block; /* makes sure all lines are treated the same */
  margin: auto;
  overflow-x: auto;
  white-space: pre-wrap;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  text-align: left; /* Aligns the content to the left */
  margin-top: 1rem;   /* Add spacing before .sourceCode element */
  margin-bottom: 1rem;/* Add spacing after .sourceCode element */
}
.highlight {
    background-color: #00b4d8;
    color: black;
}

.sourceCode pre {
  /* margin: 1rem;
  padding: 16px; apply consistent padding to the actual content */
  text-align: left; /* Aligns the content to the left */
  overflow-x: auto;
  white-space: pre;
  
  
}

.sourceCode code {
  display: block;
  text-align: left; /* Aligns the content to the left */
  overflow-x: auto;
  white-space: pre;
}

.code-container {
  position: relative;
  margin: 1rem auto;
  max-width: 100%;
}

.dynamic-dashboard h2 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #00b4d8;
}

.mathml {
  background-color: #161b22;
  padding: 100px;
  /* border-radius: 80px; */
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  /* text-align: center; */
  /* max-width: 1400px; */
  width: 100%;
  margin: auto;
  color: #00b4d8;
}
/* Monokai-based Pygments tokens */
/* ---------- generic wrapper ---------- */
.codehilite {
    background: #272822;          
    /* color: #f8f8f2;               Default fg */
    padding: .5rem .75rem;
    border-radius: 4px;
    overflow: auto;
    text-align: left;
}
/* Add this new rule for the hover effect */
.codehilite:hover {
    background-color:  #00b4d8;
    /* color: #524b4b; */
    color: #ffffff;
}

/* highlighted line */
.codehilite .hll {
    background-color: #49483e;
}

/* ---------- comments ---------- */
.codehilite .c,
.codehilite .cm     { color: #1f8626 !important; font-style: italic; } /* comments / multiline */
.codehilite .c1,       /* single-line # …            */
.codehilite .ch,       /* hash-bang/she-bang         */
.codehilite .cs,       /* special (e.g. #: )         */
.codehilite .cpf,      /* pre-proc file              */
.codehilite .cp        /* pre-processor directives   */
{
    color: #73e07a !important;
    font-style: italic;
}
                         /* pre-processor */

/* ---------- errors & diffs ---------- */
.codehilite .err    { color: #f44747; background: #1e0010; }
.codehilite .gd     { color: #f44747; }  /* diff deleted */
.codehilite .gi     { color: #a6e22e; }  /* diff inserted */

/* ---------- keywords ---------- */
.codehilite .k,
.codehilite .kd,    /* declaration (def, class) */
.codehilite .kp,    /* pseudo (async, await)    */
.codehilite .kr,    /* reserved (for, if, …)   */
.codehilite .kt,    /* type (int, str)         */
.codehilite .kn     { color: #f257a7; } 
.codehilite .kc     /* constant (True, None)   */
                   { color: #66d9ef; font-weight: bold; }

/* ---------- operators & punctuation ---------- */
.codehilite .o,
.codehilite .ow     { color: #f92672; }   /* + - = and/or */
.codehilite .p      { color: #f8f8f2; }   /* punctuation (., :, etc.) */

/* ---------- names ---------- */
.codehilite .nb     { color: #f8f8f2; }   /* built-ins (len, print) */
.codehilite .bp     { color: #f8f8f2; }   /* built-in pseudo */
.codehilite .nf     { color: #a6e22e; font-weight: bold; } /* function def */
.codehilite .nc,
.codehilite .nn     { color: #33874b; }   /* class / namespace */
.codehilite .n     { color: #b7d9ea; }  
.codehilite .nd     { color: #a6e22e; }   /* decorators */
.codehilite .nv,
.codehilite .vc, .vg, .vi  { color: #fd971f !important; } /* variables */

/* ---------- literals ---------- */
.codehilite .s,
.codehilite .sb, .sc, .s2, .sx,
.codehilite .sd,      /* docstring */
.codehilite .sr,
.codehilite .si,
.codehilite .ss       /* interpolated / symbol / other strings */
                   { color: #e6db74; }

.codehilite .se     { color: #ae81ff; }   /* escape */
.codehilite .m,
.codehilite .mb, .mf, .mh, .mi, .il
                   { color: #ae81ff; }    /* numbers (all bases) */

/* ---------- miscellaneous ---------- */
.codehilite .nt     { color: #f92672; }   /* HTML/XML tags */

h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  animation: fadeInDown 1s ease-out;
}

h3 {
  font-size: 1rem;
  color: #00b4d8;
}


.box-center {
  background-color: #161b22;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  text-align: center;
  max-width: 768px;
  width: 100%;
  margin: auto;
  color: #00b4d8;
}

.timer {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1.5s ease-out;
}

.time-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  min-width: 80px;
  transform: scale(0.95);
  transition: transform 0.3s ease, background 0.3s ease;
}

.time-box:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.15);
}

.time-box .value {
  font-size: 2.5rem;
  font-weight: bold;
  animation: pulse 2s infinite;
}

.time-box .label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  opacity: 0.8;
}


@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.dynamic-dashboard a {
  color: #091b2d; /* or just 'blue' */
  text-decoration: underline; /* optional: keeps the default underline */
}

a:hover {
  color: #0e1215; /* lighter blue on hover */
}

.aligned-list {
  text-align: right;
  padding-right: 20px; /* Adjust as needed for alignment */
}

/* ol li code {
  display: block;
  white-space: pre-wrap; 
} */

math {
  font-size: larger; /* Optional styling to make MathML more readable */
}

@media (max-width: 1024px) {
  .topic-nav__list {
    flex-direction: column;
  }
}


/*  */ /*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  */

/* Styling for the run button and output area */
.run-button-container {
  position: absolute;
  top: 10px;
  right: 10px;
}

.output-area {
margin-top: 20px;
background-color: #f4f4f4;
padding: 15px;
border-radius: 8px;
white-space: pre-wrap;
}

button.run-button {
  padding: 6px 12px;
  font-size: 1em;
  cursor: pointer;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
}

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

pre.numberSource code
{ counter-reset: source-line 0; }

.notice {

    background-color: #e0f7fa; /* Light blue for calmness */
    color: #01579b;            /* Darker blue for contrast */
    border: 2px dashed #0288d1;
    box-shadow: 0 4px 8px rgba(0, 51, 102, 0.3);

    padding: 2px; /* Further reduced padding */
    font-size: 0.85em; /* More refined font size */
    border-radius: 6px;
    margin-bottom: 10px;
    animation: pulse 4s infinite; /* Adjusted duration */
    width: 98%; /* Further reduced width */
    margin: 8px auto;
}
.notice p {
    margin: 2px 0;
}

#slideshow-video {
  width: 100vw;
  height: auto;           /* let aspect-ratio control the height   */
  aspect-ratio: auto;
}


/*  */ /*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  *//*  */
@media screen and (min-width: 320px) and (max-width: 374.98px) {
  /* Adjust container for tight space on small screens */
  .container {
    max-width: 280px;     /* Tighter constraint than larger devices */
    padding: 1rem;        /* Consistent spacing with rem units */
    line-height: 1.1;     /* Slightly tighter lines to save vertical space */
  }

  /* Responsive h1 font size using clamp() for smooth scaling */
  h1 {
    font-size: clamp(1.1rem, 4vw + 0.7rem, 1.5rem);
  }
}

@media (min-width: 375px) { /* iPhone SE / Small Tablets */
      .container {
        max-width: 300px;
        padding: 1.25rem;
        line-height: 1.15;
        
      }
      h1 { 
        font-size: clamp(1.25rem, 4vw + 1.25rem, 2.25rem); /* Responsive H1 */
      }
    }


@media (min-width: 576px) { /* Medium Devices - Portrait Tablet & Landscape Mobiles */
      body {
        font-size: 0.9375em; /* Slightly larger base for readability */
      }
      
      .container {
        max-width: 80%;
        padding: 1.5rem;
      }

      h1 { 
        font-size: clamp(1.25rem, 4vw + 1.25rem, 2.25rem); /* Responsive H1 */
      }
    }


@media (min-width: 768px) { /* Tablets & Small Desktops */
      .container {
        max-width: 90%;
        padding: 2em;
      }

      h1 {
        font-size: clamp(1.5rem, 3vw + 1.4rem, 2.5rem);
      }
      
      p { 
        font-size: 1rem; /* Standard readable size */
      }

      .nav-links li a,
      button,
      input[type="submit"],
      .topic-nav__link {
        padding: 0.75em 1em;
        border-radius: 6px;
        font-size: 0.9375rem; /* ~15px */
      }
    }


@media (min-width: 1024px) { /* Desktop */
      body {
        font-size: 1rem; /* Final base size for desktop readability */
      }

      .container {
        max-width: 960px;
        padding: 3em;
      }

      h1 {
        font-size: clamp(1.75rem, 2vw + 2rem, 3rem);
      }
      
      p { 
        font-size: 1.0625rem; /* ~17px */
      }

      .timer {
        gap: 1.5em;
        margin-bottom: 1.5em;
      }

      .time-box {
        min-width: 48px;
        padding: 0.75rem;
        font-size: 2rem; /* Larger for desktop visibility */
        border-radius: 6px;
      }

      .time-box:hover {
        transform: scale(1.08) translateY(-3px); 
      }
    }



@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

@media (prefers-color-scheme: dark) {
  .dark\:text-blue-400 {
    --tw-text-opacity: 1;
    color: rgb(96 165 250 / var(--tw-text-opacity));
  }

  .dark\:text-gray-100 {
    --tw-text-opacity: 1;
    color: rgb(243 244 246 / var(--tw-text-opacity));
  }

  .dark\:text-gray-300 {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity));
  }

  .dark\:hover\:bg-gray-700:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity));
  }
}

@media (min-width: 640px) {
  .sm\:w-20 {
    width: 5rem;
  }
}

@media (min-width: 768px) {
  .md\:ml-auto {
    margin-left: auto;
  }

  .md\:mt-0 {
    margin-top: 0px;
  }

  .md\:flex {
    display: flex;
  }

  .md\:hidden {
    display: none;
  }

  .md\:w-24 {
    width: 6rem;
  }

  .md\:w-auto {
    width: auto;
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:space-x-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(1rem * var(--tw-space-x-reverse));
    margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
  }

  .md\:space-x-6 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(1.5rem * var(--tw-space-x-reverse));
    margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
  }

  .md\:space-y-0 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0px * var(--tw-space-y-reverse));
  }

  .md\:text-base {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .md\:text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .lg\:w-28 {
    width: 7rem;
  }
}

@media (min-width: 1280px) {
  .xl\:w-1\/12 {
    width: 8.333333%;
  }

  .xl\:w-2\/12 {
    width: 16.666667%;
  }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08); }
    50% { transform: scale(1.03); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15); }
    100% { transform: scale(1); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08); }
}

/* Media query for smaller screens (max-width of 768px) */
@media (max-width: 768px) {

  /* Adjust heading sizes */
  h1 { font-size: 1.2rem; } /* Smaller than the default size on larger devices */
  .title, .highlight {
    font-size: 0.5rem;
  }

  /* Navigation links and buttons */
  .nav-links li a,
  .login-container input,
  .subject-details p,
  .topic-nav__link {
    padding: 0.5em; /* Slightly reduce the padding for smaller screens */
    font-size: 0.1em; /* Reduce text size slightly to fit better on small devices */
  }
  .tone-selector button {
    padding: 2px; /* Reduced padding for smaller screens */
    font-size: 0.6rem; /* Smaller font size */
}
}

@media (max-width: 450px) {
  /* Tone selector buttons */
  .tone-selector button {
    padding: 1px 4px;
    font-size: 0.5rem;
  }

  /* Headings and titles */
  h1 {
    font-size: 1rem;
  }

  .title,
  .highlight {
    font-size: 0.4rem;
  }


  /* Navigation and interactive elements */
  .nav-links li a,
  .login-container input,
  .subject-details p,
  .topic-nav__link {
    padding: 6px;
    font-size: 0.09em;
  }
  

  /* General layout adjustments */
  body {
    padding: 0.5rem;
  }

  /* Optional: shrink containers and reduce margins */
  .container,
  .content-wrapper,
  .sidebar {
    padding: 0.5rem;
    margin: 0.25rem;
  }
  .box-center {
    background-color: #161b22;
    padding: 10px;
    border-radius: 4px;
    /* max-width: 420px; */
    width: 100%;
    margin: auto;
    color: #00b4d8;
  }
  .timer {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1.5s ease-out;
  }
  .centered-heading {
    color: #00b4d8;       /* Blue-green text color */
    text-align: center;   /* Center-aligned text */
    padding: 20px;        /* Padding around the element */
    text-decoration: underline; /* Underlined text */
}
  
  .time-box {
    background: rgba(255, 255, 255, 0.1);
    padding: .5rem;
    border-radius: .5rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    min-width: 40px;
    transform: scale(0.95);
    transition: transform 0.3s ease, background 0.3s ease;
  }
  
  .time-box:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
  }
  
  .time-box .value {
    font-size: 1.5rem;
    font-weight: bold;
    animation: pulse 2s infinite;
  }
  
  .time-box .label {
    text-transform: uppercase;
    font-size: 0.5rem;
    letter-spacing: 1px;
    opacity: 0.9;
  }
}

.btn-primary {
    background-color: #648199;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    border: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.btn-primary:hover {
    background-color: #36f242;
    transform: scale(1.05);
}

.btn-primary:focus {
    outline: none;
    border: 2px solid #3498db; /* Optional focus style */
}
#flashcard-selector:hover { opacity: 1; cursor: pointer;}
#flashcard-selector {
  position: fixed;
  top: 12rem;
  left: 80%; 
  background-color: #22e829ff; /* bg-gray-800 in TailwindCSS */
  padding: 1px 4px;      
  display: flex;
  gap: 5px;                  /* space-x-1 in TailwindCSS */
  box-shadow: 0 4px 6px -1px rgba(53, 47, 47, 0.2), 
              0 2px 4px -1px rgba(67, 64, 64, 0.1); /* shadow-lg in TailwindCSS */
  border-radius: 8px;        /* rounded in TailwindCSS */
  pointer-events: auto;
  align-items: center;
  z-index: 5000;
  opacity: 0.2;
  transform: translateX(-50%);
  font-size: 1.2rem;
  font-weight: bold;
  }

#toc:hover { opacity: 1; cursor: pointer;}
#toc {
  position: fixed;
  top: 8rem;
  left: 80%; 
  background-color: #22e829ff; /* bg-gray-800 in TailwindCSS */
  padding: 1px 4px;      
  display: flex;
  gap: 5px;                  /* space-x-1 in TailwindCSS */
  box-shadow: 0 4px 6px -1px rgba(53, 47, 47, 0.2), 
              0 2px 4px -1px rgba(67, 64, 64, 0.1); /* shadow-lg in TailwindCSS */
  border-radius: 8px;        /* rounded in TailwindCSS */
  pointer-events: auto;
  align-items: center;
  z-index: 5000;
  opacity: 0.2;
  transform: translateX(-50%);
  font-size: 1.2rem;
  font-weight: bold;
  }

