html {
    scroll-behavior: smooth;
    font-family: "Outfit", sans-serif;
}

body {
    color: white;
    letter-spacing: 0.2px;
    margin: 0;
    line-height: 1.6;
    background-color: #1a1a1a;
}

/* Headings */

h1 {
    font-size: 2.4rem; /* ~38.4px */
    line-height: 1.2;
    margin-bottom: 3rem; /* 48px */
    color: white;
}

h2 {
    font-size: 1.75rem; /* 28px */
    line-height: 1.3;
    text-align: center;
    color: white;
    margin: 2.5rem 0 2rem;
}
h2::before {
  content: "#";
  display: inline-block;
  margin-right: 0.5rem;
  font-weight: bolder;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #0098f1, #007ad6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


p {
    font-size: 20px;
    line-height: 26px;
    color: white;
}

a {
    text-decoration: none;
    color: #0098f1;
}

a:hover {
    text-decoration: underline;
    color: #007ad9;
}

.btn {
    background: linear-gradient(135deg, #0098f1, #007ad9);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    margin-block: 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 152, 241, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    user-select: none;
}

.btn:hover {
    background: linear-gradient(135deg, #007ad9, #006bbf);
    box-shadow: 0 6px 16px rgba(0, 122, 217, 0.4);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 122, 217, 0.2);
}
.btn:disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* Status containers for buttons */
.status-container {
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
    background: #1a1a1a;
    border-left: 4px solid #0098f1;
    border: 1px solid #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: white;
}

.status-container .status-text {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: white;
    font-weight: 500;
}

.status-container .status-text.error-text {
    color: #ff6b6b;
    font-weight: 600;
}

.status-container .progress-bar {
    margin-top: 15px;
    display: block;
}

.status-container progress {
    width: 100%;
    height: 20px;
    border-radius: 4px;
    background: #333;
    border: 1px solid #555;
    display: block;
}

.status-container progress::-webkit-progress-bar {
    background: #333;
    border-radius: 4px;
    border: 1px solid #555;
}

.status-container progress::-webkit-progress-value {
    background: linear-gradient(135deg, #0098f1, #007ad9);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.status-container progress::-moz-progress-bar {
    background: linear-gradient(135deg, #0098f1, #007ad9);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Info box styling */
.info-box {
    margin-top: 15px;
    padding: 15px;
    background: #1a1a1a;
    border-left: 4px solid #007bff;
    border-radius: 4px;
    color: white;
}

.info-box p {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: white;
}

.info-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.info-box li {
    margin: 5px 0;
    font-size: 16px;
    color: white;
}


.navbar {
    overflow: hidden;
    background-color: #0098f1;
    color: #333;
    top: 0;
    width: 100%;
    height: 70px;
    font-size: 15px;
    text-align: right;
    padding: 12px 0 0 0;
    position: fixed;
    z-index: 1;
}

.navbar a {
    margin-right: 40px;
    color: #333;
}

.navbar a:active {
    text-decoration: underline;
}

.right a {
    float: right;
}

.container {
    width: 100%;
}

.top {
    background-color: #0098f1;
    height: 650px;
}

.clear {
    background-color: #1a1a1a;
    height: auto;
}

.nav-top {
    border-top: 8px solid #0098f1;
}

.row {
    max-width: 63rem;
    margin: auto;
    display: block;
}

.content {
    padding: 22px;
}

.wrapper {
    display: flex;
    padding: 22px;
}

.sidepanel {
    width: 200px;
    margin-top: 120px;
    background-color: #1a1a1a;
    overflow-x: hidden;
    position: fixed;
    height: 80%;
}

.sidepanel a.title {
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    color: white;
    display: block;
    padding-bottom: 12px;
}

.sidepanel a.section {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    text-align: left;
    line-height: 30px;
    display: block;
    text-decoration: none;
    color: white;
}

.sidepanel a.sub-section {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    text-align: left;
    line-height: 25px;
    display: block;
    text-decoration: none;
    color: white;
    padding-left: 20px;
}

.sidepanel a.title:hover,
.sidepanel a.section:hover,
.sidepanel a.sub-section:hover {
    text-decoration: underline;
}

.main-col {
    width: 70%;
    margin: auto;
    text-align: center;
}

.main-col p {
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 36px;
}

.right-col {
    margin-top: 100px;
    text-align: left;
    width: 100%;
    margin-left: 220px;
}

.right-col h1 {
    font-size: 24px;
    line-height: 28px;
    margin-bottom: 24px;
}

.right-col h2 {
    font-size: 21px;
    line-height: 24px;
    margin-bottom: 30px;
    text-align: left;
    margin-block-start: 20px;
    margin-block-end: 10px;
}

.right-col p {
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 36px;
}

.right-col a {
    color: #0098f1;
    text-decoration: underline;
}

.right-col ol {
    margin-block-start: 10px;
}

.logo {
    width: 150px;
    float: left;
    margin: -10px 30px;
}

.col {
    width: 50%;
    float: left;
}

.top-info {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    text-align: center;
}

.divider {
    width: 40px;
    height: 4px;
    background: #0098f1;
    border-radius: 30px;
    margin: auto;
    margin-top: 8px;
    margin-bottom: 8px;
}

.left {
    margin: 20px 0;
}

.footer {
    float: left;
    width: 100%;
    padding: 90px 0 20px;
    font-size: 15px;
    text-align: center;
    background-color: #fff;
}

.footer a {
    color: #333;
}

.resp-break {
    display: none;
}

.break {
    display: block;
}

.space {
    height: 30px;
    width: 100%;
    float: left;
}

.double {
    height: 60px;
}

.links {
    float: left;
    padding-bottom: 8px;
}


/* Break Points */


/* Extra small-small devices (phones, 420px and down) */

@media only screen and (max-width: 420px) {
    .logo {
        width: 100px;
    }
    .navbar {
        height: auto;
    }
    h2 {
        font-size: 24px;
    }
    .links {
        float: none;
    }
}


/* Extra small devices (phones, 650px and down) */

@media only screen and (max-width: 650px) {
    .logo {
        width: 115px;
        margin: -10px 0px;
    }
    .navbar a {
        padding-bottom: 5px;
        margin-left: 40px;
        margin-right: 0;
    }
    .resp-break {
        display: block;
        margin: 17px;
    }
    .main-col {
        width: 100%;
    }
    .wrapper {
        display: block;
    }
    .sidepanel {
        width: 100%;
        text-align: center;
        position: relative;
        height: auto;
    }
    .sidepanel a.title,
    .sidepanel a.section,
    .sidepanel a.sub-section {
        text-align: center;
    }
    .left {
        margin: 20px auto;
    }
    .right-col {
        position: relative;
        margin-top: 20px;
        margin-left: 0px;
    }
}


/* Small devices (portrait tablets and large phones, 650px and up) */

@media only screen and (min-width: 650px) {
    .logo {
        margin: -10px 0px;
    }
    .right a {
        float: right;
        padding-bottom: 5px;
    }
}


/* Medium devices (landscape tablets, 768px and up) */

@media only screen and (min-width: 768px) {
    .logo {
        margin: -10px 0px;
    }
}


/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    /* Add large device specific styles here if needed */
}

/* End Break Points */


@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }

    h1, h2 {
        color: #ffffff;
    }

    a {
        color: #66b0ff;
    }

    .btn {
        background-color: #1e88e5;
        color: white;
    }

    .navbar {
        background-color: #1e1e1e;
        color: #e0e0e0;
    }

    .navbar a {
        color: #e0e0e0;
    }

    .sidepanel {
        background-color: #121212;
    }

    .sidepanel a.title,
    .sidepanel a.section,
    .sidepanel a.sub-section {
        color: #e0e0e0;
    }

    .right-col a {
        color: #66b0ff;
    }

    .top {
        background-color: #1e1e1e;
    }

    .clear {
        background-color: #121212;
    }

    .footer {
        background-color: #1e1e1e;
        color: #e0e0e0;
    }

    .divider {
        background-color: #66b0ff;
    }
}
/* Browser compatibility banners */
.compat-banner {
    background: #5a1a1a;
    border: 1px solid #c0392b;
    color: #ffcccc;
    border-radius: 6px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.error-text pre, .error-text code {
    background: #2a0000;
    border: 1px solid #600;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
    display: block;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0.5rem 0;
    color: #ffaaaa;
}
.error-text code {
    display: inline;
    padding: 0.1rem 0.35rem;
}
.ready-banner {
    background: #1a3a1a;
    border: 1px solid #27ae60;
    color: #aaffaa;
    border-radius: 6px;
    padding: 0.75rem 1.2rem;
    margin-bottom: 1.5rem;
}

/* Channel selector */
.channel-selector {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0 1.5rem;
    flex-wrap: wrap;
}
.channel-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    border: 2px solid #444;
    border-radius: 6px;
    transition: border-color 0.15s;
    user-select: none;
}
.channel-option:has(input:checked) {
    border-color: #0098f1;
}
.channel-option input[type="radio"] {
    accent-color: #0098f1;
    width: 1rem;
    height: 1rem;
}

/* Modal base */
:root {
  --clr-main: #d75b4c;
  --clr-dark: #333;
  --clr-neutral: #ddd;
  --clr-light: #fff;
}
.modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
  transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
}
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 2rem 2.5rem;
  width: 30em;
  border-radius: 0.5rem;
}
.close-button {
  float: right;
  width: 1.5rem;
  font-size: 1.2em;
  line-height: 1;
  padding: 0 .2em .15em;
  text-align: center;
  cursor: pointer;
  border-radius: 0.25rem;
  background-color: var(--clr-neutral);
  color: var(--clr-dark);
  transition: color 0.12s ease-in-out;
}
.close-button:hover {
  color: var(--clr-main);
}
.show-modal {
    opacity: 1;
    visibility: visible;
    transform: scale(1.0);
    transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
  
    background-color: rgba(255, 255, 255, 0.1); /* semi-transparent background */
    backdrop-filter: blur(10px); /* blur effect */
    -webkit-backdrop-filter: blur(10px); /* for Safari support */
  
    /* Optional: Add a border or shadow to enhance the glass effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  }
