body {
  background: #1a1a1a;
  color: #E0E0E0;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  overflow-y: auto;
}

:root {
  --font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  --spacing-unit: 0.5rem;
  --border-radius: 6px;
  --dark-shadow: rgba(0, 0, 0, 0.5);
  --light-shadow: rgba(255, 255, 255, 0.1);
}

.run-jisp-button {
  background-color: #3a2121;
  color: yellow;
  font-weight: bold;
  border: 3px solid #d00;

  box-shadow:
    1.5px 1.5px 1.5px var(--dark-shadow),
    -1.5px -1.5px 1.5px var(--light-shadow),
    inset 1px 1px 1px var(--dark-shadow),
    inset -1px -1px 1px var(--light-shadow);
  margin-bottom: 1rem;
}

.run-jisp-button:hover {
  background-color: rgb(234, 234, 11);
  color: #b33838;
}

.discord-button {
  background-color: #bfcbf7;
  /* Discord brand color */
  color: #3c61e7;
  font-weight: bold;
  border: 3px solid #3f55a5;
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
  font-size: 1em;
  cursor: pointer;
  border-radius: var(--border-radius);
  box-shadow:
    1.5px 1.5px 1.5px var(--dark-shadow),
    -1.5px -1.5px 1.5px var(--light-shadow),
    inset 1px 1px 1px var(--dark-shadow),
    inset -1px -1px 1px var(--light-shadow);
  position: relative;
  overflow: hidden;
  animation: pulse 2s infinite;
}

/* .discord-button::before { */
/*   content: ''; */
/*   position: absolute; */
/*   top: 0; */
/*   left: -100%; */
/*   width: 100%; */
/*   height: 100%; */
/*   background: linear-gradient(120deg, */
/*       transparent, */
/*       rgba(255, 255, 255, 0.5), */
/*       transparent); */
/*   /* transition: all 2s; */ */
/*   transform: skewX(-20deg); */
/*   animation: shine 4s infinite; */
/* } */
/*  */
/* @keyframes shine { */
/*   0% { */
/*     left: -110%; */
/*   } */
/*  */
/*   50% { */
/*     left: 110%; */
/*   } */
/*  */
/*   100% { */
/*     left: 110%; */
/*   } */
/* } */


.discord-button:hover {
  color: #e8edff;
  background-color: #839cf9;
}

:root {
  --spacing-unit: 10px;
  --border-radius: 8px;
  --dark-shadow: rgba(0, 0, 0, 0.2);
  --light-shadow: rgba(255, 255, 255, 0.1);
}

.github-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background-color: #333;
  color: #ffffff;
  font-weight: bold;
  border: 3px solid #1a1a1a;
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
  font-size: 1em;
  cursor: pointer;
  border-radius: var(--border-radius);
  box-shadow:
    1.5px 1.5px 1.5px var(--dark-shadow),
    -1.5px -1.5px 1.5px var(--light-shadow),
    inset 1px 1px 1px var(--dark-shadow),
    inset -1px -1px 1px var(--light-shadow);
  position: relative;
  overflow: hidden;
  font-family: sans-serif;
}

.github-button svg {
  fill: currentColor;
  width: 1.2em;
  height: 1.2em;
  position: relative;
  z-index: 2;
}

.github-button span {
  position: relative;
  z-index: 2;
}

/* .github-button::before { */
/*   content: ''; */
/*   position: absolute; */
/*   top: 0; */
/*   left: -100%; */
/*   width: 100%; */
/*   height: 100%; */
/*   background: linear-gradient(120deg, */
/*       transparent, */
/*       rgba(255, 255, 255, 0.3), */
/*       transparent); */
/*   transform: skewX(-20deg); */
/*   animation: shine 4s infinite; */
/*   z-index: 1; */
/* } */
/*  */
/* @keyframes shine { */
/*   0% { */
/*     left: -110%; */
/*   } */
/*  */
/*   40%, */
/*   100% { */
/*     left: 110%; */
/*   } */
/* } */

.github-button:hover {
  color: black;
  background-color: #a4a4a4;
}

.container {
  text-align: center;
  max-width: 800px;
  padding: 0 40px;
  /* Add horizontal padding to container */
  width: 100%;
  /* Ensure container takes full width up to max-width */
  box-sizing: border-box;
  /* Include padding in width calculation */
}

h1 {
  font-family: 'American Typewriter', sans-serif;
  font-weight: 900;
  font-size: 7rem;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  text-shadow:
    1px 1px 0px #ff0,
    /* Bevel Shadow */
    2px 2px 0px #bb0,
    /* Extrusion */
    3px 3px 0px #bb0,
    /* Extrusion */
    4px 4px 0px #aa0,
    /* Extrusion */
    -6px 6px 10px rgba(0, 0, 0, 1),
    /* Drop Shadow */
    -6px 6px 10px rgba(0, 0, 0, 1);
  /* Drop Shadow */
  margin-bottom: 40px;
  margin-top: 2rem;
}

.red {
  text-shadow:
    1px 1px 0px #f00,
    /* Bevel Shadow */
    2px 2px 0px #b00,
    /* Extrusion */
    3px 3px 0px #b00,
    /* Extrusion */
    4px 4px 0px #a00,
    /* Extrusion */
    -6px 6px 10px rgba(0, 0, 0, 1),
    /* Drop Shadow */
    -6px 6px 10px rgba(0, 0, 0, 1);
}

h3 {
  font-size: 1rem;
  margin-bottom: -1rem;
  font-family: monospace;
}

p {
  font-size: 1rem;
  line-height: 1.1;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.jisp-runner-section {
  width: 100%;
  /* Take full width of its parent (.container) */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.runner-container {
  display: flex;
  justify-content: center;
  width: 100%;
  /* Take full width of its parent (.jisp-runner-section) */
  height: 500px;
  width: 1000px;
  gap: 2%;
}

.editor-column,
.output-column {
  flex: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* a flexbox fix to prevent content from pushing the container */
}

#codemirror-editor,
#codemirror-output {
  text-align: left;
  flex-grow: 1;
}

.CodeMirror {
  height: 100%;
  max-height: 450px;
  border: 1px solid #555;
  border-radius: 8px;
  background-color: #222;
  color: #e0e0e0;
}

#tabs-container,
#output-tabs-container {
  display: flex;
  justify-content: center;
  font-size: 14px;
}

.tab {
  padding: 8px 15px;
  color: yellow;
  cursor: pointer;
  border: 1px solid #555;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  background-color: #2a2a2a;
  margin: 0 2px;
  transition: background-color 0.3s;
}

.tab:hover {
  background-color: #3a3a3a;
}

.tab.active {
  background-color: #222;
  border-color: #555;
}


.button-container {
  display: flex;
  justify-content: center;
  width: 100%;
}



button {
  padding: 10px 25px;
  font-size: 1rem;
  cursor: pointer;
  background-color: #333;
  color: #e0e0e0;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
}

button:hover {
  background-color: #3a3a3a;
}

button:active {
  transform: scale(0.98);
}

.ops-list-container {
  text-align: left;
  padding: 20px 0;
  width: 100%;
}

.op-item {
  background-color: #2a2a2a;
  border: 1px solid #444;
  border-bottom: 0;
  border-radius: 4px;
  margin-bottom: 0px;
  padding: 3px 5px;
  cursor: pointer;
}

.op-item:hover {
  background-color: #3a3a3a;
}

.op-item-header {
  display: flex;
  align-items: center;
}

.op-name {
  color: #eae72a;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  margin: 0;
  font-size: 1.1rem;
}

.op-stub {
  font-size: 0.9rem;
  color: #ccc;
  margin-left: 0.5em;
}

.op-expand-toggle {
  font-size: 1.2rem;
  font-weight: bold;
  color: #bb0;
}

.op-documentation {
  font-size: 0.9rem;
  line-height: 1.4;
  border-top: 1px solid #555;
  display: none;
  /* Hidden by default */
}

.op-documentation.expanded {
  display: block;
}
