/* css variables*/
/* Stand-ins for the web fonts while they load. Each one is Arial (or the metric twin Liberation Sans, or Helvetica) scaled to the width of the
   web font it stands for, so that the text wraps the same before and after the swap and the page does not jump. The sizes are the widths
   of a sample text in the web font divided by the width of the same text in Arial, measured in Chromium (2026-11-21): Bricolage Grotesque 800
   0.955, 600 0.929; IBM Plex Sans 400 0.987, 500 1.007, 600 0.958. Without Arial or Liberation Sans on the device the browser goes on to the
   next font of the stack, as before. */
@font-face { font-family: 'Bricolage Fallback'; font-weight: 800; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Helvetica Bold'); size-adjust: 95.5%; }
@font-face { font-family: 'Bricolage Fallback'; font-weight: 600; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Helvetica Bold'); size-adjust: 92.9%; }
@font-face { font-family: 'Plex Fallback'; font-weight: 400; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Helvetica'); size-adjust: 98.7%; }
@font-face { font-family: 'Plex Fallback'; font-weight: 500; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Helvetica'); size-adjust: 100.7%; }
@font-face { font-family: 'Plex Fallback'; font-weight: 600 700; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Helvetica Bold'); size-adjust: 95.8%; }

:root {
  --primary-color: #432E30;
  --primary-color-light: #8E7474;
  --accent-color: #FE6A6B;
  --rev-accent-color: #1B1B24;
  --accent-color-light: #FFE4E4;
  --accent-color-dark: #B8323A;
  --on-accent-color: #15151C;
  --rev-accent-color-dark: #2E2E3A;
  --rev-accent-color-light: #2E2E3A;
  --white-color: #FAFBFC;
  --light-gray-color: #C6CBD1;
  --medium-gray-color: #959DA5;
  --dark-gray-color: #444D56; 
  --bg-color: #F8F8FA;
  --code-bg-color: #F0E8E8;
  --code-bg-color-2: #363636;
  --code-bg-color-border: #000000;
  --link-blue-color: #337ab7;
  --code-prompt-color: #c5c525;
  --code-error-color: #cb4b15;
  --code-data-type-color: #008000;
  --terminal-bg-color: black;
  --gutter-rotate: 90deg; /* Initial rotation angle */
  --gutter-right: 3px;
  --modal-duration: 1s;
  --clear-color: #ebebec;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --overlay-color: rgba(0, 0, 0, 0.6);
  /* type: one face for UI text, one for code, one display face for big headings */
  --font-ui: 'IBM Plex Sans', 'Plex Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-code: 'JetBrains Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --font-display: 'Bricolage Grotesque', 'Bricolage Fallback', var(--font-ui);
  /* ink scale for the dark app surfaces (nav, hero, IDE) */
  --ink-950: #0D0D12;
  /* home page nav, hero and workspace band: a soft graphite for a calmer first view (redesign canvas, 30 Sep) */
  --hero-bg: #2A2930;
  --ink-900: #121218;
  --ink-850: #15151C;
  --ink-800: #1B1B24;
  --ink-750: #1D1D26;
  --ink-700: #24242E;
  --ink-600: #2E2E3A;
  --ink-500: #3A3A48;
  --paper: #F2F0EC;
  --muted-1: #C9C7D1;
  --muted-2: #A9A7B4;
  --muted-3: #8C8A98;
  --accent-on-dark: #FF9C9D;
  --ok-color: #4CC38A;
  --warn-color: #F5C37A;
  --danger-color: #F07171;
  /* coral for text and icons on light backgrounds (and lighter on dark) */
  --accent-text: #B8323A;
}

/* ------------------------------------------------------------------ */
/* Dark theme (T11): <html data-theme="dark">, set by js/theme.js      */
/* ------------------------------------------------------------------ */
[data-theme="dark"] {
  color-scheme: dark;
  /* <html> is white by default (html, body below) and shows under the body on a page longer than one screen */
  background-color: #25242A;
  --primary-color: #F2F0EC;
  --primary-color-light: #A9A7B4;
  --bg-color: #121218;
  --white-color: #15151C;
  --light-gray-color: #3A3A48;
  --medium-gray-color: #8C8A98;
  --dark-gray-color: #C9C7D1;
  --code-bg-color: #1B1B24;
  --code-bg-color-border: #2E2E3A;
  --clear-color: #24242E;
  --link-blue-color: #8CC8FF;
  --shadow-color: rgba(0, 0, 0, 0.6);
  --accent-text: #FF9C9D;
}
[data-theme="dark"] body { background-color: #25242A; color: #E6E4EC; }
[data-theme="dark"] p { color: #B9B7C4; }
[data-theme="dark"] sup { color: #C9C7D1; }
[data-theme="dark"] .footer { background-color: #1F1E24; }
[data-theme="dark"] .link--light,
[data-theme="dark"] .go__color { color: var(--accent-color); }
[data-theme="dark"] table td,
[data-theme="dark"] table th { border-color: #2E2E3A; }
[data-theme="dark"] .toggle span,
[data-theme="dark"] .toggle span:before,
[data-theme="dark"] .toggle span:after { background: #F2F0EC; }
[data-theme="dark"] .toggle.open span { background: transparent; }

/* theme switch button in every nav */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  vertical-align: middle;
}
.theme-toggle:hover,
.theme-toggle:focus-visible { background: rgba(127, 127, 127, 0.15); }
.theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }

/* normalized */
html, body {
  padding: 0;
  margin: 0;
  font-family: var(--font-ui);
  background-color: white;
  height: 100%;
}

h1, h2 {
  font-family: var(--font-display);
}

button, input, select, textarea {
  font-family: inherit;
}

sup {
    vertical-align: top;
    font-size: small;
    color: #3d144a;
}

p {
  font-weight: 300;
  color: #4A4A4A;
}

a, a:hover {
  text-decoration: none;
  color: var(--primary-color);
}


hr {
  padding: 1rem 0;
  border: 0;
  border-bottom: 1px solid var(--bg-color);
}

* {
  box-sizing: border-box;
}

/* global components */


/* global scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
 
/* Track */
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
    -webkit-border-radius: 10px;
    border-radius: 10px;
    width: 6px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: var(--accent-color); 
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
    width: 6px;
}
::-webkit-scrollbar-thumb:window-inactive {
    background: rgba(255,0,0,0.4);
}


/* typography */
.section__title {
  color: var(--primary-color);
}

/* tabs */
.tab__container {
  position: relative;
}

.tab__container > ul {
  position: absolute;
  list-style: none;
  margin: 0;
  right: 1rem;
  top: -2rem;
  padding-left: 0;
}

.tab__container .code {
  white-space: normal;
  padding: 1rem 1.5rem;
}

.tab {
  display: inline-block;
  padding: 0.3rem 0.5rem;
  font-weight: 200;
  cursor: pointer;
}

.tab.active {
  border-bottom: 1px solid var(--primary-color);
  font-weight: 700;
  display: inline-block;
}

.tab__pane {
  display: none;
}

.tab__pane.active {
  display: block;
}

/* code */
.code {
  border-radius: 3px;
  font-family: var(--font-code);
  font-size: 14px;
  background: var(--code-bg-color-2);
  border: 1px solid var(--code-bg-color-border);
  color: var(--white-color);
  overflow: auto;
  max-height: 400px;
  line-height: 16px;

}

.code--block {
  white-space: pre-line;
  padding: 0 1.5rem;
}

.code--inline {
  padding: 3px 6px;
  font-size: 80%;
}

.code--prompt {
  color: var(--code-prompt-color);
}

.code--error {
  color: var(--code-error-color);
}

.code--data-type {
  color: var(--code-data-type-color);
}

/* buttons */
.button--primary {
  padding: 10px 22px;
  background-color: var(--accent-color);
  color: var(--on-accent-color);
  position: relative;
  text-decoration: none;
  border: 0;
  transition: all .3s ease-out;
}

.button--primary:after {
  position: absolute;
  content: "";
  width: 1rem;
  height: 1rem;
  background-color: var(--accent-color-light);
  right: -0.4rem;
  top: -0.4rem;
  transition: all 0.3s ease-out;
}

.button--primary:hover {
  text-shadow: none;
  color: var(--on-accent-color);
  transform: translate3D(0, -3px, 0);
}

.button--primary:hover::after {
  transform: rotate(90deg);
}

.button--secondary {
  padding: 10px 22px;
  border: 2px solid var(--primary-color);
  transition: all 0.5s ease-out;
}

.button--secondary:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* links */
.link {
  text-decoration: none;
  transition: all 0.3s ease-out;
}

.link:hover {
  color: var(--accent-color);
}

.link--dark {
  color: var(--primary-color);
}

.link--light {
  color: var(--accent-color);
}

.link--light-rev {
  color: var(--rev-accent-color);
}

.link--blue {
  color: var(--link-blue-color);
}

.link--blue:hover {
  text-decoration: underline;
}

/* menu */
nav {
  display: grid;
  grid-template-columns: 70px auto;
}

.menu {
  margin: 0;
  text-align: right;
  overflow: visible;
  list-style: none;
}

.toggle {
  display: none;
  position: relative;
}
/* the menu toggle is a real button holding the three bars (T15); on every page */
.toggle__button {
  position: relative;
  display: block;
  width: 24px;
  height: 20px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.toggle__button span { top: 9px; }

.toggle span,
.toggle span:before,
.toggle span:after {
  content: '';
  position: absolute;
  height: 2px;
  width: 18px;
  border-radius: 2px;
  background: var(--primary-color);
  display: block;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  right: 0;
}

.toggle span:before {
  top: -6px;
}

.toggle span:after {
  bottom: -6px;
}

.toggle.open span{
  background-color: transparent;
}

.toggle.open span:before,
.toggle.open span:after {
  top: 0;
}

.toggle.open span:before {
  transform: rotate(45deg);
}

.toggle.open span:after {
  transform: rotate(-45deg);
}

.menu__item {
  padding: 1rem;
  display: inline-block;
}

.menu__item.toggle {
  display: none;
}

/* table */
table {
  border-collapse: collapse;
  width: 100%;
  transition: color .3s ease-out;
  margin-bottom: 2rem;
}

table td, table th {
  border: 1px solid var(--code-bg-color);
  padding: 0.8rem;
  font-weight: 300;
}

table th {
  text-align: left;
  background-color: white;
  border-color: white;
  border-bottom-color: var(--code-bg-color);
}

table td:first-child {
  background-color: var(--bg-color);
  font-weight: 600;
}

/* CSS for form inputs */
input[type=text],[type=email], select, textarea, email {
      width: 100%;
      padding: 5px;
      border: 1px solid #ccc;
      border-radius: 5px;
      box-sizing: border-box;
      margin-top: 6px;
      margin-bottom: 16px;
      resize: vertical;
  }
  
  input[type=submit] {
      background-color: var(--rev-accent-color);
      color: white;
      padding: 12px 20px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
  }
  
  input[type=submit]:hover {
      background-color: var(--rev-accent-color-dark);
  }
  /* End */

/* video */
.videoWrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  padding-top: 25px;
  height: 0;
}
.videoWrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* img */
.videoWrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 2px;
}

/* layout */
.wrapper {
  margin: 0 auto;
  width: 70%;
}

.footer {
  text-align: center;
  background-color: var(--primary-color);
  padding: 1rem;
  color: white;
  width: 100%;
  bottom: 0;
}

.interpreter {
   /*  display:block;
    float: left;
    padding: 0px 12px;
    margin: auto;
    border: 1px solid #ccc;
    width: 75%;
  
    overflow: scroll; */
    
  width: 60%;
  margin: -11rem auto 3rem auto;
  text-align: left;
  color: white;
  padding: 0 1rem;
  border-radius: 4px;
  background-color: #232323;
  height: 400px;
  animation: fadeUp 2s;
  /* box-shadow: 0px 12px 36.8px 9.2px rgba(0, 0, 0, 0.1); */
}

/* ------------------- github-corner --------------------------------- */



/* ------------------ css for creating separator dot------------------ */
  
  .sepdot{
        height: 5px;
        width: 5px;
        background-color: white;
        border-radius: 50%;
        display: inline-block;
    }

  .dot{
        height: 5px;
        width: 5px;
        background-color: white;
        border-radius: 50%;
        display: inline-block;
    }

@media screen and (max-width: 600px) {
  nav {
    grid-template-columns: 70px auto;
  }

  .menu__item{
    display: none;
  }

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

  .menu {
    text-align: right;
    padding: 0.5rem 1rem;
    z-index: 1;
  }

  .toggle {
    display: block;
  }

  .menu.responsive .menu__item:not(:first-child) {
    display: block;
    padding: 0 0 0.5rem 0;
  }

  /* the theme button stays in the bar, in a row with the menu button */
  .menu:not(.responsive) {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
  }
  .menu:not(.responsive) .menu__item--theme {
    display: inline-flex;
    align-items: center;
    order: -1;
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translate3d(0,30px,0);
  }
  100% {
    transform: translate3d(0,0,0);
  }
}

.opaq {
  opacity: 0.5;
}

.opaq:hover {
  opacity: 1;
}

/* theme specific class */
.accent-background {
  background: var(--accent-color);
}
.rev-accent-background {
  background: var(--rev-accent-color);
}
/* them classes ends */

/* loaders */
.loader, #loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 11;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid var(--accent-color);
  width: 80px;
  height: 80px;
  -webkit-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
}

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

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* loader ends */
/* On-page notices (js/notices.js), replacing alert() pop-ups */
.notices {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(440px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-sizing: border-box;
  padding: 12px 10px 12px 14px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.45;
  color: #15151C;
  background: #F2F0EC;
  border-radius: 12px;
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  animation: notice-in 0.2s ease-out;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.notice--hide { opacity: 0; transform: translateY(6px); }
@keyframes notice-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.notice__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
}
.notice--success .notice__icon { color: #1F7A4D; background: #D8F3E4; }
.notice--info .notice__icon { color: #2456B8; background: #E3EDFF; }
.notice--error .notice__icon { color: #B42323; background: #FDE2E2; }
.notice__body { flex: 1; display: flex; flex-direction: column; gap: 2px; padding-top: 3px; word-break: break-word; }
.notice__title { font-weight: 600; }
.notice__title + .notice__text { color: #4A4855; }
.notice__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  padding: 0;
  color: #5B5866;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.notice__close:hover,
.notice__close:focus-visible { background: rgba(0, 0, 0, 0.06); }
.notice__action {
  flex-shrink: 0;
  align-self: center;
  padding: 5px 10px;
  font: inherit;
  font-weight: 600;
  color: #2456B8;
  background: transparent;
  border: 1px solid rgba(36, 86, 184, 0.35);
  border-radius: 6px;
  cursor: pointer;
}
.notice__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
/* the card of "your program is listening" (page/27-preview.js): dark, a green dot, a lime main button */
.notice--program { color: #F2F0EC; background: #1B1B24; border: 1px solid #2A2A36; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.notice--program .notice__icon { width: 8px; height: 8px; margin-top: 9px; background: #4CC38A; }
.notice--program .notice__icon svg { display: none; }
.notice--program .notice__title { font-size: 14px; }
.notice--program .notice__title + .notice__text { color: #A9A7B4; font-size: 13px; }
.notice--program .notice__close { color: #A9A7B4; }
.notice--program .notice__close:hover,
.notice--program .notice__close:focus-visible { background: rgba(255, 255, 255, 0.08); }
.notice--program .notice__action { color: #F2F0EC; background: #14141B; border-color: #2A2A36; }
.notice--program .notice__action:hover,
.notice--program .notice__action:focus-visible { background: #22222D; }
.notice--program .notice__action--primary { color: #15151C; background: #C8F04A; border-color: #C8F04A; }
.notice--program .notice__action--primary:hover,
.notice--program .notice__action--primary:focus-visible { background: #D6F67A; border-color: #D6F67A; }
.notice--program .notice__action--quiet { color: #A9A7B4; background: transparent; border-color: transparent; font-weight: 500; }
.notice--program .notice__action--quiet:hover,
.notice--program .notice__action--quiet:focus-visible { color: #F2F0EC; background: rgba(255, 255, 255, 0.06); }
.notice__action:hover,
.notice__action:focus-visible { background: #E3EDFF; }
