/*Light color palette*/
:root { 
  color-scheme: light;

  /*Surface*/
  --surface-color: white;
  --on-surface-color: #171717;
  --on-surface-alternative-color-1: #b3b3b2;
  --on-surface-alternative-color-2: #777777;

  /*Important container*/
  --important-container-color: #f6e7e0;
  --on-important-container-color: #d18765;

  /*Tip container*/
  --tip-container-color: #b9e5fa;
  --on-tip-container-color: #09587c;

  /*Code container*/
  --code-container-color: #f2f2f2;
  --on-code-container-color: #e6e6e6;

  /*Input container*/
  --input-container-color: #f1f1f1;

  /*Top bar container*/
  --top-bar-container-color: rgb(218,218,218);

  /*Misc*/
  --hyperlink-font-color: #0065b3;
  --active-color: rgba(0,0,0,0.2);
  --overlay-color: rgba(0, 0, 0, 0.32)
}

/*Override color palette if user prefers dark mode*/
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    /*Surface*/
    --surface-color: rgb(50, 50, 50);
    --on-surface-color: #ffffff;

    /*Important container*/
    --important-container-color: #f6e7e038;
    --on-important-container-color: #dfab93;

    /*Tip container*/
    --tip-container-color: #b9e5fa53;
    --on-tip-container-color: #4fbff2;

    /*Code container*/
    --code-container-color: #1E1E1E;
    --on-code-container-color: #424242;

    /*Input container*/
    --input-container-color: rgb(68, 69, 74);

    --top-bar-container-color: #838383;

    /*Misc*/
    --hyperlink-font-color: #6cc5d4;
    --active-color: rgba(223, 215, 215, 0.2);
  }
}

body,
html {
  font-family: Segoe UI, SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  color: var(--on-surface-color);
  background-color: var(--surface-color);
  height: 100%;
}

h1,
h2,
h2.likeAnH1,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

a {
  color: var(--hyperlink-font-color);
  text-decoration: none;
  /*word-wrap: break-word;*/
}

.button,
.checkbox-button,
.file-cta,
.file-name,
.input,
.pagination-ellipsis,
.pagination-link,
.pagination-next,
.pagination-previous,
.select select,
.textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  box-shadow: none;
  display: inline-flex;
  font-size: 1rem;
  height: 2.25em;
  justify-content: flex-start;
  line-height: 1.5;
  padding-bottom: calc(0.375em - 1px);
  padding-left: calc(0.625em - 1px);
  padding-right: calc(0.625em - 1px);
  padding-top: calc(0.375em - 1px);
  position: relative;
  vertical-align: top;
}

.row {
  display: flex;
  max-width: 1200;
  margin: auto;
}

.column {
  flex: 50%;
}

.result {
  flex: none;
  display: flex;
  flex-direction: column;
  max-width: 300px;
  min-width: 300px;
  min-height: 400px;
  max-height: 90%;
  overflow-x: hidden;
  margin: 1em;
}

.resultElement {
  padding: 4px 0px 4px 0px;
}

#filterGroup{
  display: none;
  padding: 4px 0px 4px 0px;
}

.filterElement{
  display: inline-flex;
}

select { 
  color: var(--on-surface-color);
  background-color: var(--input-container-color);
  border: 1px solid transparent;
  padding: 10px;
  font-size: 16px;
}

.carmenta {
  flex: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#home-container {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.7rem;
}

.carmenta svg {
  margin-right: 7px;
}

.hljs {
  background: transparent;
}

.nohighlight
{
  display: block;
  overflow-x: auto;
  padding: 0.5em;
  color: var(--on-surface-color);
}

.pulsate {
  animation: pulsate 1.5s ease-out;
  animation-iteration-count: infinite;
  opacity: 0.4;
}

@keyframes pulsate {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.4;
  }
}

/* Remove chrome clear button */
input[type='search']::-webkit-search-decoration,
input[type='search']::-webkit-search-cancel-button,
input[type='search']::-webkit-search-results-button,
input[type='search']::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

/* Basic clear button styling */
.clear {
  position: absolute;
  right: 4px;
  top: 1px;
  font-size: 1.5rem;
  cursor: pointer;
  display: inline-block;
}

/* Basic search wrapper and input styling */
/*
.search-wrap {
 display:inline-block;
 position:relative;
}*/
autocomplete input[type='search'] {
  padding-right: 20px;
}

/*THIS IS FOR THE AUTOCOMPLETE*/

* {
  box-sizing: border-box;
}

/*the container must be positioned relative:*/

.autocomplete {
  position: relative;
  display: inline-block;
}

input {
  border: 1px solid transparent;
  background-color: var(--input-container-color);
  color: var(--on-surface-color);
  padding: 10px;
  font-size: 16px;
}

input[type='search']{
  width: 100%;
}

input[type='text'] {
  background-color: #f1f1f1;
  width: 100%;
}

input[type='submit'] {
  background-color: DodgerBlue;
  color: #fff;
  cursor: pointer;
}

.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0;
  right: 0;
}

.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff;
  border-bottom: 1px solid #d4d4d4;
}

/*when hovering an item:*/

.autocomplete-items div:hover {
  background-color: #e9e9e9;
}

/*when navigating through the items using the arrow keys:*/

.autocomplete-active {
  background-color: var(--active-color) !important;
}

/* TOC */

.accordion {
  /*background-color: #ccc;*/
  font-size: 0.9rem;
  transition: 0.4s;
  /*overflow: hidden;*/
}

.tocElement {
  padding: 4px 0px 4px 10px;
  cursor: pointer;
}
/*
.accordion:hover {
  background-color: #eee;
}
*/
.accordion.children:before {
  content: '\002B';
  color: var(--on-surface-alternative-color-2);
  font-weight: bold;
  margin-left: 5px;
  display: block;
  float: left;
  height: 1.3rem;
  padding-right: 4px;
}

/*
.accordion.nochildren:before {
	content: '\002B';
	color: transparent;
    font-weight: bold;
    margin-left: 5px;
    padding-right: 4;
}
*/

.accordion.nochildren {
  margin-left: 20px;
}

.accordion.children.active:before {
  content: '\2212';
}

.panel {
  /*padding: 0 18px;*/
  background-color: var(--surface-color);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.menutitle {
  margin: 0px 0px 5px 0px;
  font-size: 21px;
}

#article-parent {
  flex: auto;
  overflow: auto;
  display: grid;
  grid-template-columns: 70% 25%;
  grid-gap: 20px;
}

#menulist {
  list-style-type: none;
  padding: 0px;
}

#menu-parent {
  position: sticky;
  right: 10px;
  top: 10px;
  height: fit-content;
  display: block;
}

#menu-inline-parent {
  display: none;
}

.overlay,
#hamburger {
  display: none;
}

#language {
  flex: none;
  margin-left: auto;
}

@media only screen and (max-width: 1026px) {

  #article {
    word-wrap: break-word;
  }

  #menu-parent,
  #title {
    display: none;
  }

  #article-parent {
    display: block;
    grid-template-columns: none;
    grid-gap: none;
    overflow-x: hidden;
    margin-top: 50px;
  }

  #menu-inline-parent {
    display: block;
  }
  .result {
    position: fixed;
    z-index: 1000;
    left: 0px;
    top: 0px;
    display: block;
    transition-property: width;
    transition: 0.1s;
    margin: 0px;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    min-width: 0;
    width: 0;
    border-right: 2px var(--on-surface-alternative-color-1) solid;
    background-color: var(--surface-color);
    word-break: break-all;
  }

  .side-sheet-show {
    width: calc(100% - 100px);
  }

  .tocElement {
    padding-right:4px;
  }

  .overlay {
    position: fixed;
    z-index: 500;
    top: 0px;
    left: 0px;
    display: none;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    overflow: hidden;
  }

  .overlay-show {
    display: block;
  }

  table.normal
  ,.propertylinks
  ,.members {
    display: block;
    width: 100%;
    max-height: 50vh;
    overflow: auto;
    border: 1px solid var(--on-surface-color);
  }

  .license {
    overflow-x: auto;
    border: 1px solid var(--on-surface-color);
  }

  .carmenta {
    position: fixed;
    top: 0;
    z-index: 50;
    padding:10px;
    background-color: var(--top-bar-container-color);
    gap: 10px;
  }

  #hamburger {
    flex: none;
    display: block;
    width: 35px;
    height:35px;
    
  }
}

#menu {
  overflow: auto;
  height: fit-content;
  padding: 10px;
  border-left: 2px solid var(--on-surface-alternative-color-1);
  overflow-x: hidden;
}

.target {
  color: var(--on-surface-color);
}
