
/* Colors */
:root {
  --blue: #1C7CD5;
  --red: #c2484a;
  --green: #50b300;
}

/* Tags */
* {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  box-sizing: border-box;
}
code {
  font-family: Monaco, Menlo, Consolas, Courier New, monospace !important;
  font-size: 9pt;
  color: #e01e5a;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:disabled {
  color: #DDD;
}
tr {
  vertical-align: middle;
}
body, html {
  background-color: #F3F3F3;
  color: #373A3C;
  margin: 0px;
}
h1 {
  text-align: center;
  font-weight: 400;
  margin: 5px;
}
h2 {
  align-items: flex-end;
  text-align: center;
}
h2, h3 {
  font-weight: 500;
}
h3 {
  font-size: 15pt;
}
h4 {
  font-size: 13pt;
  text-align: left;
  margin-bottom: 10px;
}
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 16px 12px;
}
select, input[type=text], input[type=number], .opener, textarea, .row button {
  font-size: 12pt;
  width: 400px;
  padding: 10px;
  margin: 5px;
  border: 1px #DDD solid;
  background-color: #FAFAFA;
  border-radius: 5px;
}
  input[disabled] {
    background-color: #f3f3f3;
  }
  input[disabled]:hover {
    background-color: #f3f3f3;
    cursor: not-allowed;
  }
  #login input[type=text] {
    width: initial;
  }
textarea {
  height: 100px;
}
  select.default {
    color: #666;
  }
button, input[type=button] {
  position: relative;
  border-radius: 5px;
  margin: 5px;
  font-size: 12pt;
  padding: 10px 20px;
  background-color: #FAFAFA;
  border: 1px #DDD solid;
  cursor: pointer;
}
  button:hover, input[type=button]:hover, select:hover, input:hover, textarea:hover {
    background-color: #FFF;
  }
  button:active, input[type=button]:active {
    filter: none;
    box-shadow: inset 2px 2px rgba(0, 0, 0, 0.1);
  }
button.large {
  font-size: 14pt;
  padding: 15px 30px;
}
  button.large:active {
    box-shadow: inset 2px 2px rgba(0, 0, 0, 0.2);
  }
button.plain {
  background-color: transparent;
  border: none;
  padding: 0px;
  margin: 0px;
}

/* IDs */

#headline {
  margin: 100px;
}
#logo, #user {
  width: 170px;
  display: flex;
}
  #logo img {
    height: 40px;
    width: 40px;
    margin: 20px;
    margin-bottom: 10px;
    display: block;
  }
  #logo h2 {
    text-align: left;
    font-size: 14pt;
    display: block;
  }
#loading {
  display: none;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  padding-top: 100px;
  background-color: #F3F3F3;
}

#spinner {
  border: 16px solid #F3F3F3;
  border-top: 16px solid var(--red);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  margin: auto;
  animation: spin 2s linear infinite;
}

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

#login {
  width: 460px;
  margin: auto;
  margin-top: 50px;
}
#main {
  width: 1200px;
  margin: auto;
  position: relative;
}
#tabsMain {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  margin-bottom: 40px;
  gap: 20px;
  background-color: #DDD;
}
  #tabsMain .selects {
    display: flex;
    align-items: center;
    margin-top: 30px;
  }
    #tabsMain .edit {
      cursor: pointer;
      font-size: 12pt;
      padding-left: 5px;
      color: gray;
    }
      #tabsMain .edit:hover {
        color: black;
      }

#editModal {
  display: none;
  position: absolute;
  top: 0px;
  left: 0px;
  background-color: white;
  box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 10px;
  width: 140px;
}
  #editModal div {
    padding: 5px 10px;
    cursor: pointer;
  }
    #editModal div:hover {
      font-weight: bold;
    }

#publisherRow label, #websiteRow label {
  width: 100px;
}
#publisherRow .spaced, #websiteRow .spaced {
  width: 160px;
}

#settings {
  width: 100%;
  display: none;
}
  #settings h2 {
    text-transform: capitalize;
    margin: 5px 0px;
    padding: 10px 0px;
  }
  #settings h3 {
    text-transform: capitalize;
    margin: 10px 0px;
  }
  #settings button, .modal button {
    width: 400px;
  }
#settings #left {
  width: 568px;
  float: left;
  margin-right: 60px;
}
#settings #right {
  width: 568px;
  float: left;
}


#tooltip {
  position: absolute;
  width: 320px;
  top: 0px;
  left: 0px;
  display: none;
  background-color: #FFF;
  padding: 20px;
  font-size: 10pt;
  box-shadow: 2px 2px 10px 2px rgba(0, 0, 0, 0.1);
  z-index: 999999;
}
#auth {
  position: absolute;
  top: 20px;
  right: 0px;
}
#openSheet {
  padding: 15px;
  float: right;
}

#save {
  display: none;
  position: relative;
  padding-top: 40px;
  padding-bottom: 40px;
  margin-top: 20px;
  text-align: center;
}
  #save h4 {
    height: 40px;
  }
    #save h4 button {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13pt;
      font-weight: bold;
    }
  #download {
    position: absolute;
    left: 0px;
  }
  #preview {
    align-items: flex-start;
    justify-content: space-between;
  }
    #preview textarea {
      white-space: pre;
      line-height: 1.5;
    }
  #result, #diff {
    flex: 1;
    position: relative;
    margin-top: 20px;
    padding-top: 20px;
  }
    #result textarea {
      width: 100%;
    }
    #result .copy {
      top: 85px;
    }
    #result {
      margin-left: 10px;
    }
    #diff {
      line-height: 1.5;
      margin-right: 10px;
    }
      #diff .unfold .material-icons {
        pointer-events: none;
      }
    #batchDiffArea .codeArea {
      margin-top: 20px;
      margin-bottom: 20px;
    }

#tabsBottom {
  margin-bottom: 40px;
  border-bottom: 1px #DDD solid;
}

.saveRow {
  display: flex;
  gap: 10px;
}
  .saveRow label {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  #taskLabel {
    width: 200px;
  }
  #descLabel {
    flex: 1;
  }
  .saveRow input, .saveRow select {
    font-size: 14pt;
    padding: 15px;
  }
    .saveRow input {
      flex: 1;
      width: 100%;
    }
    .saveRow select {
      width: 200px;
    }

#batch {
  display: none;
  padding-bottom: 40px;
}
  #batchContent {
    align-items: flex-start;
  }
  #batch #left, #batch #right {
    flex: 1;
  }
  #batch #right {
    margin-left: 20px;
  }
  #batch .description, #batchWebSelect, #batchSelect {
    width: 100%;
    padding: 15px;
  }
  #batch #batchTask {
    width: 120px;
  }

#history {
  transition: opacity .25s ease-in-out;
  margin-bottom: 50px;
}
  #history table {
    width: 100%;
    border-collapse: collapse;
  }
    #history table tr:nth-child(even) {
      background-color: #EBEBEB;
    }
    #history td {
      padding: 5px;
      font-size: 10pt;
    }
      #history td.time {
        white-space: nowrap;
        width: 120px;
      }
    #history h3 {
      white-space: nowrap;
    }
    #history h3 span {
      font-size: 10pt;
      color: silver;
      font-weight: normal;
      padding-left: 5px;
    }
  #contextHistory {
    display: flex;
    align-items: flex-start;
  }
    #contextHistory div {
      flex: 1;
      width: 100%;
    }

  #integration {
    position: relative;
    display: none;
  }
    #integration .header {
      padding: 10px 0px;
      margin-top: -35px;
    }
    #integration textarea {
      white-space: pre;
      line-height: 1.5;
      height: 210px;
    }
  #documentation {
    display: none;
  }
  
/* Classes */

.tabs {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.tabs .tab, .tabs button {
  position: relative;
  display: inline-block;
  width: 480px;
  padding: 15px;
  margin: 0px 5px;
  background-color: #f3f3f3;
  border-top: 1px #DDD solid;
  border-right: 1px #DDD solid;
  border-left: 1px #DDD solid;
  border-bottom: none;
  border-radius: 10px 10px 0px 0px;
}
  .tabs button:hover, .tabs .tab:hover {
    background-color: #f6f6f6;
    font-weight: bold;
  }
  .tabs .tab.disabled, .tabs button:disabled {
    background-color: none;
  }
  .tabs .tab.active, .tabs button.active {
    box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.2);
    clip-path: inset(-10px -10px 0px -10px);
    bottom: -1px;
    background-color: #F3F3F3;
    padding: 20px;
    font-weight: bold;
  }
  #tabsMain .label {
    cursor: pointer;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 50px;
    padding-top: 15px;
  }
    #tabsMain .tab {
      border: none;
      border-bottom: 1px #DDD solid;
    }
    #tabsMain .tab.active {
      border-bottom: none;
    }
    
.adUnit {
  width: 750px;
  margin: auto;
}
.padding10 {
  padding: 10px;
}
.help {
  cursor: help;
}
.left {
  float: left;
}
.right {
  float: right;
}
.flex {
  display: flex;
  align-items: center;
}
.centered {
  justify-content: center;
}
.spaced {
  justify-content: space-between;
}
.center {
  margin: auto;
}
.hidden, .extras {
  display: none;
}
.invisible {
  visibility: hidden;
}
.code {
  font-family: monospace;
  font-size: 9pt;
}
.material-icons {
  font-family: 'Material Symbols Outlined';
  color: inherit;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;  /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-icons.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-icons:hover {
  color: black;
}
.material-icons.md-10 { font-size: 10px; }
.material-icons.md-14 { font-size: 14px; }
.material-icons.md-18 { font-size: 18px; }
.material-icons.md-24 { font-size: 24px; }

.add, .remove, .confirm {
  cursor: pointer;
  user-select: none;
}
.add:hover, .remove:hover { color: var(--blue) }
.confirm { color: var(--red) }

.blue {
  color: var(--blue) !important;
}
.red {
  color: var(--red) !important;
}
.green {
  color: var(--green) !important;
}
.gray {
  color: #666;
}
button.gray, button.blue, input.gray, input.blue {
  border: none;
  color: #FAFAFA !important;
}
button.blue {
  background-color: var(--blue);
  box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.2);
}
button.gray {
  background-color: #373A3C;
  box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.2);
}
button.gray:hover, button.blue:hover {
  filter: brightness(120%);
}
button.bottom {
  display: block;
  margin: 20px auto;
}

.codeArea {
  white-space: pre-wrap;
  text-align: left;
  display: block;
  width: 100%;
  background-color: #EBEBEB;
  border: none;
  font-family: monospace;
  font-size: 8pt;
  padding: 18px;
  margin: 0px;
  border-radius: 5px;
}
  .codeArea:hover {
    background-color: #EBEBEB;
  }

.nowrap {
  white-space: nowrap;
}

.number {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 3px;
  background-color: var(--blue);
  color: #FFF;
  font-family: monospace;
  font-size: 11pt;
}
.overlay {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  padding-top: 100px;
  background-color: rgba(127, 127, 127, 0.9);
  /*
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  */
}
.row {
  clear: both;
}
.row label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* color: #666; */
}
  /*
  .row.required label {
    color: #000;
  }
  */
  .enableRow {
    width: 200px;
    position: absolute;
    top: 0px;
    right: 0px;
  }
    .enableRow label span {
      display: none;
    }
  .subgroup .enableRow {
    top: 15px;
  }

.modalWrapper {
  position: absolute;
  top: 20px;
  left: 0px;
  right: 0px;
  width: 1100px;
  margin: auto;
  margin-bottom: 100px;
}
  .modalWrapper.templates textarea {
    height: 250px;
  }

.modal {
  background-color: #F3F3F3;
  border-radius: 15px;
  padding-bottom: 20px;
}
  .modal header {
    border-bottom: 1px #DDD solid;
    position: relative;
    display: flow-root;
    margin-bottom: 20px;
  }
    .modal .back {
      position: absolute;
      cursor: pointer;
      left: 20px;
      top: 23px;
    }
    .modal .add {
      position: absolute;
      top: 22px;
      right: 22px;
    }
    .modal .addMedia {
      position: absolute;
      top: 75px;
      left: 130px;
    }
      .modal header .path {
        font-weight: normal;
        font-style: italic;
        color: gray;
        text-align: center;
        font-size: 10pt;
      }
      .modal header .path::before{
        content: '\a';
        white-space: pre;
      }
  .modal .import {
    text-align: center;
    height: 80px;
  }
    .modal #gamId {
      width: 230px;
    }
    .modal #gamPrefix {
      width: 230px;
    }
    .modal .list {
      width: 100%;
      margin: auto;
    }
      .modal .list table {
        width: 95%;
      }
        .modal .list table input, .modal .list table textarea, .list table .cm-editor  {
          width: 95%;
          max-width: 700px;
        }

  .modal .body {
    padding: 20px;
  }
    .modal .group {
      flex: 1;
      padding: 20px;
      margin-bottom: 0px;
      background-color: #F7F7F7;
      box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.2);
      border-radius: 10px;
    }
    .modal .group label {
      display: flex;
      align-items: center;
    }
    .modal .group .label {
      text-align: left;
      min-width: 150px;
    }
    .modal .inputBlock div {
      display: flex;
      align-items: center;
      text-align: left;
    }
      .modal .inputBlock select, .modal .inputBlock button {
        width: 195px;
      }

  .modalWrapper.testCode header {
    margin-bottom: 0px;
  }
    .testCode cite {
      display: inline-block;
      margin-top: 20px;
      font-size: 10pt;
      line-height: 150%;
    }
    .testCode cite strong {
      color: var(--blue);
    }

  select#rows {
    width: auto;
    padding-right: 30px;
  }

.group {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px #DDD solid;
  /*
  background-color: #EBEBEB;
  */
}
  .group:last-child {
    border-bottom: none;
  }
  .group h2 {
    display: flex;
  }
.subgroup {
  position: relative;
  padding: 20px 0px;
  border-bottom: 1px #DDD solid;
  /*
  background-color: #f3f3f3;
  */
}
  .subgroup:last-child {
    border-bottom: none;
  }
.defaults {
  margin-bottom: 20px;
  padding: 20px;
  background-color: #EBEBEB;
}
.expand, .codeOpen, .formatInfo {
  color: #999;
  cursor: pointer;
  margin-left: 10px;
}
  .expand.open {
    transform: rotate(180deg);
  }
.copy {
  position: absolute;
  right: 20px;
  top: 60px;
  color: var(--blue);
}
  .copy:hover {
    cursor: pointer;
    filter: brightness(120%);
  }
  .copy:active {
    color: #373A3C;
  }
.testCode .copy {
  top: 15px;
}

/* CodeMirror 6 editor */
.cm-editor {
  cursor: text;
  overflow: auto;
  font-size: 10pt;
  width: 400px;
  padding: 8px 5px;
  margin: 5px;
  border: 1px #DDD solid;
  background-color: #FAFAFA;
  border-radius: 5px;
  resize: vertical;
  height: auto !important;
}
  .ͼ1.cm-editor.cm-focused {
    outline: 5px auto -webkit-focus-ring-color;
  }
  .cm-editor .cm-line {
    font-family: Monaco, Menlo, Consolas, Courier New, monospace !important;
  }
  .cm-editor:hover {
    background-color: #FFF;
  }
  /* .cm-completionMatchedText */

.narrow {
  position: relative;
  width: 800px;
  margin: auto;
  margin-bottom: 100px;
}

.callout {
  display: none;
  align-items: flex-start;
  gap: .5rem;
  padding: .75rem 1rem;
  border: 1px solid #FDE68A;
  border-left: 4px solid #F59E0B;
  background: #FFF7ED;
  color: #7C2D12;
  border-radius: .5rem;
  font: 14px/1.4 system-ui, Segoe UI, Roboto, Arial, sans-serif;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  margin-bottom: 10px;
}
  .callout::before {
    content: '⚠️';
    font-size: 1.1rem;
    line-height: 1;
    margin-top: .1rem;
  }
