:root {
  --primary-color: #220d4e;
  --secondary-color: #4c555a;
  --text-color-dark-background: #ffffff;
}

@font-face {
  font-family: "Font-Awesome";
  src: url("https://cdn.appsflyer.com/kb/iaegen/webfonts/fa-regular-400.woff2")
      format("woff2"),
    url("https://cdn.appsflyer.com/kb/iaegen/webfonts/fa-regular-400.woff")
      format("woff");
}

@font-face {
  font-family: "MuseoSans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://cdn.appsflyer.com/kb/iaegen/webfonts/MuseoSans_300.otf)
    format("opentype");
}

@font-face {
  font-family: "MuseoSans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://cdn.appsflyer.com/kb/iaegen/webfonts/MuseoSans_700.otf)
    format("opentype");
}

header {
  display: flex;
  /* background-color: var(--secondary-color); */
  align-items: center;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

#AppsFlyerLogo {
  padding-left: 6px;
}

html {
  max-height: 100vh;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
}
#IAECodeGenEditor {
}

#IAETitle {
  color: var(--primary-color);
  margin-left: 32px;
}

main {
  padding: 16px;
  padding-bottom: 0;
  padding-top: 0;
}

.IAECodeGenEditor {
  display: flex;
  flex-direction: column;
  margin: 0;
  width: 100%;
  flex-wrap: wrap;
}

.global-toolbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  margin-top: 16px;
  margin-bottom: 24px;
}

.global-toolbar-left {
  display: flex;
  justify-content: left;
  width: 100%;
}

.toolbar-buttons {
  display: flex;
  justify-content: flex-end;
}

.event-item-container {
  display: flex;
  padding-left: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  border: solid 2px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  cursor: pointer;
  justify-content: space-between;
}

.event-item-container-selected {
  display: flex;
  padding-left: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 2px;
  background-color: rgba(0, 0, 0, 0.05);
  cursor: default;
  justify-content: space-between;
}

.event-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-item-container:hover {
  background-color: beige;
}

.event-item-action-bar {
  display: flex;
  flex-direction: column;
  width: 1rem;
  align-items: center;
  padding: 1rem;
}
.event-item-remove-button {
  width: 2rem;
  height: 2rem;
}
.event-type-selector-container {
}
.event-type-selector {
  max-width: 100px;
  padding: 4px;
}

.predefined-event-type-selector {
  font-size: 11px;
  max-width: 120px;
}

@media (min-width: 800px) {
  .event-type-selector {
    max-width: 120px;
  }

  .predefined-event-type-selector {
    font-size: 12px;
  }
}

@media (min-width: 1100px) {
  .event-type-selector {
    max-width: 150px;
  }
  .predefined-event-type-selector {
    font-size: 14px;
    max-width: 150px;
  }
}

.event-selector-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.event-item-selector-container {
  display: flex;
  flex-direction: column;
  padding-right: 0.5rem;
}

.event-type-selector-container {
  display: flex;
  padding-bottom: 1rem;
}
.event-type-selector-label {
  margin: 8px;
}

.vertical-selector-container {
  font-size: 10px;
  padding-top: 4px;
}

.event-vertical-selector-label {
  margin: 16px;
  margin-top: 0;

  font-size: 11px;
  font-weight: bold;
}

@media (min-width: 800px) {
  .event-vertical-selector-label {
    font-size: 13px;
  }
}

@media (min-width: 1100px) {
  .event-vertical-selector-label {
    font-size: 16px;
  }
}

.add-event-button {
  position: sticky;
  top: 0;
  padding: 0.5rem;
}

.add-parameter-button-container {
  display: flex;
  padding: 0.5em;
  background-color: white;
  box-shadow: rgba(82, 82, 82, 0.65) 0px 5px 10px -10px;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.parameter-selector-container {
  display: flex;
  width: 100%;
  flex-wrap: nowrap;
}
.event-parameter-selector {
  padding: 8px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.remove-event-parameter-button {
  padding: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.right-panel-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 800px;
  border: solid 2px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  max-height: 500px;
}

@media only screen and (max-width: 600px) {
  .right-panel-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border: solid 2px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    max-height: 500px;
  }
}

.event-list-container {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 300px;
  max-height: 500px;
  overflow-y: scroll;
  border: solid 2px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.event-editor-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 500px;
  overflow-y: scroll;
  border: solid 2px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background-color: rgba(205, 205, 205, 0.2);
}

.event-summary-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-y: scroll;
}

.event-summary-content {
  display: flex;

  max-height: 500px;
  flex-direction: column;
}

.event-summary-event-type {
  padding: 16px;
}

.event-summary-label {
  padding: 16px;
}

.event-parameters-multichoice-container {
  display: flex;
  flex: 1;
  max-height: 300px;
  width: 450px;
  background: rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
  overflow-y: scroll;
}

.event-parameters-multichoice-container label {
  padding: 6px;
  margin: 0px;
  align-items: center;
  font-size: 16px;
  font-weight: 400;
  word-break: break-word;
}

.event-parameters-filter {
  display: flex;
  justify-content: space-between;
}

.event-parameters-filter-input {
  width: 100%;
}

.advanced-view {
  display: flex;
  width: 100%;
}

.view-menu {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  border-bottom: solid 1px var(--primary-color);
  height: 30px;
}

.view-tab-link {
  padding: 0.5em;
  font-size: 11px;
}

.view-tab-link.active {
  background-color: rgba(0, 0, 0, 0.05);
}

.view-tab-link:hover {
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
}
@media (min-width: 800px) {
  .view-tab-link {
    font-size: 12px;
  }
}

@media (min-width: 110px) {
  .view-tab-link {
    font-size: 14px;
  }
}

.code-view {
  display: flex;
}
.code-tabs {
  height: 100%;
  position: relative;
  width: 100%;
}
.code-tabs-menu {
  display: flex;
}

.code-tab {
  display: flex;
  height: 0;
  overflow-y: scroll;
  font-size: 12px;
}

@media (min-width: 800px) {
  .code-tab {
    font-size: 13px;
  }
}

@media (min-width: 1100px) {
  .code-tab {
    font-size: 14px;
  }
}

.code-tab.visible {
  position: relative;
  height: 100%;
  overflow-y: scroll;
  width: 100%;
}

.code-toolbar {
  width: 100%;
  height: 100%;
}

.custom-parameters-header {
  display: flex;
  height: 100%;
}

.custom-parameters-header button {
  display: flex;
  height: fit-content;
  align-self: center;
}

.file-stats {
  display: flex;
}

.definition-view {
  overflow-y: scroll;
  max-height: fit-content;
  padding: 1em;
  padding-top: 0;
  padding-bottom: 16px;
}

.definition-table {
  display: table;
  width: 100%;
  height: 100%;
  min-height: 150px;
  border-collapse: collapse;
  background: #ffffff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  font-size: 16px;
}

.definition-table thead {
  background: white;
}

.definition-table thead tr {
  position: sticky;
  top: 0;
  width: 100%;
  justify-content: space-between;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  margin-bottom: 16px;
}

.definition-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.05);
}

.editable-cell {
  cursor: pointer;
}

.definition-table-parameter-row .editable-cell {
  /* width: 250px; */
  padding: 0px;
}

.editable-cell-inner {
  display: flex;
  position: relative;
  min-height: 0.5em;
  padding: 0.8em;
  padding-left: 8px;
  font-size: 10px;
}

@media (min-width: 800px) {
  .editable-cell-inner {
    font-size: 11px;
    padding: 0.4em;
  }
}

@media (min-width: 1100px) {
  .editable-cell-inner {
    font-size: 16px;
  }
}

.editable-cell:not(.active):hover .editable-cell-inner::before {
  position: absolute;
  bottom: 0px;
  background: var(--primary-color);
  color: var(--text-color-dark-background);
  font-size: 10px;
  padding-left: 2px;
  padding-right: 2px;
  border-radius: 4px;
  content: "Click to edit";
  z-index: 99;
}

@media (min-width: 800px) {
  .editable-cell:not(.active):hover .editable-cell-inner::before {
    font-size: 12px;
  }
}

@media (min-width: 1100px) {
  .editable-cell:not(.active):hover .editable-cell-inner::before {
    font-size: 16px;
  }
}

.editable-cell:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.editable-cell.active {
  background: rgba(0, 0, 0, 0.05);
  cursor: initial;
}

.definition-table th {
  text-align: left;
  padding: 8px;
  font-size: 12px;
  background: white;
}

.definition-table th:last-of-type {
  text-align: left;
  width: 16px;
  background: white;
}

@media (min-width: 800px) {
  .definition-table th {
    width: 100px;
    font-size: 13px;
    text-align: center;
  }
}

@media (min-width: 1100px) {
  .definition-table th {
    text-align: left;
    font-size: 16px;
  }
}
.definition-table th:nth-of-type(1),
.definition-table th:nth-of-type(2) {
  min-width: auto;
  width: 16px;
}

.definition-table-row td {
  border-bottom: solid 1px gainsboro;
  margin: 0;
  padding: 0;
  width: 200px;
}

.definition-table td:nth-of-type(1),
.definition-table td:nth-of-type(2) {
  padding-left: 4px;
  width: 16px;
}

.definition-table-row tr:last-of-type td {
  border-bottom: none;
}

.definition-table-code {
  padding: 2px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
  font-family: monospace;
  font-size: 8px;
}

@media (min-width: 800px) {
  .definition-table-code {
    padding: 2px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    font-family: monospace;
    font-size: 9px;
  }
}

@media (min-width: 1100px) {
  .definition-table-code {
    padding: 2px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    font-family: monospace;
    font-size: 13px;
  }
}

.definition-table-parameter-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border-bottom: solid 1px gainsboro;
}

.definition-table-parameter-row td {
  min-width: 100px;
  font-size: 10px;
  border: none;
}

.definition-table-parameter-row td:first-of-type {
  min-width: 150px;
  border: none;
}

.definition-table-parameter-row td:last-of-type {
  display: flex;
  align-items: center;
  border: none;
  min-width: auto;
  width: 32px;
}

@media (min-width: 1100px) {
  .definition-table-parameter-row td {
    min-width: 250px;
    font-size: 16px;
    border: none;
  }

  .definition-table-parameter-row td:first-of-type {
    min-width: 300px;
    border: none;
  }

  .definition-table-parameter-row td:last-of-type {
    border: none;
    min-width: auto;
  }
}

.definition-table-index {
  width: 32px;
  font-size: 12px;
  padding-right: 4px;
  padding-left: 6px;
}

.parameters-cell {
  display: flex;
  flex-direction: column;
  max-height: 200px;
  overflow-y: scroll;
  box-shadow: rgba(82, 82, 82, 0.65) 0px -15px 20px -28px inset;
  border-left: solid 2px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.definition-table-parameter-row td.parameter-remove-button {
}

.remove-button-small {
  align-items: center;
  border: none;
  color: rgba(205, 205, 205, 0.9);
  background-color: rgba(0, 0, 0, 0);
  font-size: 16px;
}

.remove-button-small:hover {
  cursor: pointer;
  color: rgb(255, 118, 118);
}

.code-tab-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px;
  padding-top: 8px;
  padding-bottom: 6px;
  cursor: pointer;
  border-right: solid 1px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.code-tab-link.active {
  background: rgba(0, 0, 0, 0.1);
}

.code-tab-link svg {
  width: 32px;
  height: 32px;
}

.code-tab-link:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.code-tab-link-title {
  color: var(--primary-color);
  font-size: 10px;
  margin-top: 4px;
}

.number-of-events {
  color: var(--primary-color);
  font-weight: 700;
  margin-right: 4px;
  margin-left: 4px;
}

.generator-output-container {
  width: 100%;
}

.generator-output-heading {
  display: flex;
  flex-direction: column;
}

.event-set-stats {
  display: flex;
  flex-direction: column;
  min-height: 2.5em;
  width: 100%;
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 8px;
  padding-bottom: 6px;
  font-size: 10px;
  /* background: rgba(0, 0, 0, 0.05); */
  box-shadow: rgba(67, 71, 85, 0.27) 0px 0px 0.25em,
    rgba(90, 125, 188, 0.05) 0px 0.25em 1em;
  border-radius: 6px;
  margin-left: 32px;
  margin-right: 32px;
}

.event-set-stats-inner {
  display: flex;
  flex-wrap: wrap;
  height: 100%;
  text-align: center;
  align-items: center;
  padding: 4px;
}

.event-set-stats .event-type-selector {
  padding: 2px;
  margin-right: 8px;
  font-size: 10px;
  font-family: "MuseoSans";
}

.event-set-stats .event-type-selector-label {
}

@media (min-width: 800px) {
  .event-set-stats {
    min-height: 2.5em;
    width: 100%;
    font-size: 12px;
  }
  .event-set-stats .event-type-selector {
    font-size: 10px;
  }
}

@media (min-width: 1100px) {
  .event-set-stats {
    min-height: 2.5em;
    font-size: 16px;
  }
  .event-set-stats .event-type-selector {
    font-size: 14px;
  }
}

.event-set-options {
  display: flex;
  flex-direction: column;
  min-height: 2.5em;
  width: 100%;
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 8px;
  padding-bottom: 6px;
  font-size: 10px;
  /* background: rgba(0, 0, 0, 0.05); */
  box-shadow: rgba(67, 71, 85, 0.27) 0px 0px 0.25em,
    rgba(90, 125, 188, 0.05) 0px 0.25em 1em;
  border-radius: 6px;
}

.vertical-selector-container-inner {
  display: flex;
  flex-direction: column;
}

.event-set-stats:first-of-type {
  margin-left: 0;
}

.event-set-stat {
  display: flex;
  margin: 16px;
  margin-top: 0;
}

.parameter-stats {
  display: flex;
  font-size: 13px;
  align-items: center;
}

.custom-name-input-container {
  display: flex;
  flex-direction: column;
}

.custom-name-input-container-inner {
  display: flex;
}

.primary-buttons-container {
  display: flex;
}

.primary-button {
  display: flex;
  align-items: center;
  background: var(--primary-color);
  color: var(--text-color-dark-background);
  padding: 0.6em;
  text-align: center;
  font-weight: bold;
  font-size: 10px;
  box-sizing: content-box;
  height: 20px;
  border: solid 2px var(--primary-color);
  border-radius: 6px;
}

.primary-button,
.primary-button label {
  cursor: pointer;
}

.primary-button:hover {
  background: var(--text-color-dark-background);
  color: var(--primary-color);
}

.secondary-button {
  display: flex;
  align-items: center;
  background: var(--text-color-dark-background);
  color: var(--primary-color);
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
}

@media (min-width: 800px) {
  .primary-button {
    font-size: 11px;
    height: 10px;
  }
  .secondary-button {
    font-size: 11px;
  }
}

@media (min-width: 1100px) {
  .primary-button {
    font-size: 13px;
  }
  .secondary-button {
    font-size: 14px;
    height: 20px;
  }
}

.secondary-button.add-parameter-button {
  margin-right: 4px;
}

.secondary-button:hover {
  background: var(--primary-color);
  color: var(--text-color-dark-background);
}

.import-dialog {
  display: flex;
  align-items: center;
}

.import-button {
  cursor: pointer;
  padding-bottom: 0;
}

/* Hidden checkbox */
#import-button {
  height: 0;
}

.export-dialog-container {
  padding: 4px;
  display: inline-block;
}

.export-dialog,
.export-dialog button {
}
.export-dialog {
  display: flex;
  flex-direction: column;
}

.export-button {
  font-family: "MuseoSans";
  padding-bottom: 0;
}

.export-options {
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  border: solid 1px var(--primary-color);
  border-left: none;
  border-radius: 4px;
  font-size: 16px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  max-height: 36px;
}

.export-options:hover {
  background: var(--primary-color);
  color: var(--text-color-dark-background);
}

.export-options-menu {
  display: flex;
  position: absolute;
  flex-direction: column;
  align-items: center;
  width: 106px;
  max-height: 200px;
  overflow-y: scroll;
  text-align: center;
  box-sizing: border-box;
  border: solid 1px gainsboro;
  background-color: white;
  top: 170px;
}

.export-options-menu.hidden {
  display: none;
}

.export-options-title {
  text-align: left;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.05);
  width: 100%;
  padding-top: 4px;
  padding-bottom: 4px;
}

.export-option {
  cursor: pointer;
  width: 100%;
  padding-top: 4px;
  padding-bottom: 4px;
}

.export-option:hover {
  background: rgba(0, 0, 0, 0.1);
}

.export-option.selected-event-parameter {
  color: red;
}

.description-input {
  display: flex;
  height: 80px;
  font-size: 10px;
}

@media (min-width: 800px) {
  .description-input {
    width: 400px;
    font-size: 12px;
  }
}

@media (min-width: 1100px) {
  .description-input {
    font-size: 16px;
  }
}

.description-input.trigger-description {
  display: flex;
  height: auto;
  height: 80px;
  font-size: 12;
}

@media (min-width: 800px) {
  .description-input.trigger-description {
    font-size: 14px;
  }
}

@media (min-width: 1100px) {
  .description-input.trigger-description {
    font-size: 14px;
  }
}

.description-input.parameter-description {
  display: flex;
  flex-wrap: wrap;
  width: auto;
  height: auto;
}

/* .editable-field-textarea {
  display: flex;
  height: 100%;

  width: 100%;
} */

.tooltip-container {
  display: inline-block;
  position: relative;
}

.tooltip-content {
  display: flex;
  flex-direction: column;
  position: absolute;
  padding: 4px;
  padding-bottom: 16px;
  background-color: #ffffff;
  border: solid 2px var(--primary-color);
  border-radius: 4px;
  min-width: 250px;
  font-size: 13px;
  font-weight: lighter;
  z-index: 99999;
  left: -50px;
}
.fas.fa-plus {
  padding-right: 4px;
}
.fas.fa-info-circle {
  color: rgba(0, 0, 0, 0.1);
  margin-left: 6px;
  cursor: pointer;
}

.fas.fa-info-circle:hover {
  color: rgba(0, 0, 0, 0.8);
}

.modify-modal {
  font-size: large;
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  margin-right: -50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 50%;
  background: white;
  border-radius: 6px;
  box-shadow: rgba(67, 71, 85, 0.27) 0px 0px 0.25em,
    rgba(163, 168, 177, 0.8) 0px 0.25em 10em;
}

html,
body {
  font-family: "MuseoSans";
}

.fas.fa-pencil-alt {
  font-size: 10px;
}

.fas.fa-pencil-alt:hover {
  cursor: pointer;
  opacity: 0.2;
}

@media (min-width: 800px) {
  .fas.fa-pencil-alt {
    font-size: 12px;
  }
}

.far.fa-times-circle:hover {
  cursor: pointer;
  opacity: 0.2;
}

.far.fa-times-circle {
  font-size: 14px;
}

.fas.fa-check-circle {
  font-size: 14px;
}

.fas.fa-check-circle:hover {
  cursor: pointer;
  opacity: 0.2;
}

.fas.fa-exclamation-triangle {
  color: rgb(255, 204, 0);
}

.fas.fa-exclamation-circle {
  color: rgb(255, 52, 52);
}

.fas.fa-code,
.far.fa-edit,
.fas.fa-download,
.fas.fa-upload {
  margin-right: 4px;
}

.instruction {
  margin-bottom: 8px;
  font-size: 11px;
}

.inline-label {
  font-size: 13px;
  margin-left: 4px;
  margin-right: 4px;
}

@media (min-width: 800px) {
  .instruction {
    font-size: 12px;
  }
}

@media (min-width: 1100px) {
  .instruction {
    font-size: 15px;
  }
}

kbd {
  background-color: #eee;
  border-radius: 3px;
  border: 1px solid #b4b4b4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 2px 0 0 rgba(255, 255, 255, .7) inset;
  color: #333;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  white-space: nowrap;
 }

 .commit-discard-dialog {
   display: flex;
   flex-direction: column;
   justify-content: space-around;
   align-items: flex-start;
   text-align: left;
 }

 .app-name-dialog {
   text-align: left;
 }

.inline-code-button {
  background: #0000000d;
  margin: 4px;
}

 .instruction.small {
   font-size: 12px;
   margin-top: 8px;
 }
