
/* styles.css All Rights Reserved didoe.org*/
*{
  transition: all .2s;
  scrollbar-width: none;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  height: 100vh;
  max-width: 100vw;
  position: relative;
  display: flex;
  flex-direction: column;
  --body-bg-color: #00c9c9;
  background-color: var(--body-bg-color);
  margin: 0;
  font-size: 24px;
  overflow: hidden;
  }

  .brand{
    background-color: ghostwhite;
  }
  
  .category, .brand, .product {
    box-shadow: 1px 1px 3px 0px #484848;
    cursor: pointer;
    margin: 3px 0px;
    padding: 6px;
    border: solid #8b8b8b;
    flex: auto;
    height: fit-content;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    max-width: max-content;
    border-bottom: outset;
  }

  .autofill-brand-suggestions ul{
    display: flex;
    list-style: none;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
  }

  .autofill-brand-suggestions li{
    border: groove;
    outline: 1px auto gray;
    margin: 5px 2px;
    padding: 2px;
    background: white;
  }

  .autofill-brand-suggestions{
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    background: antiquewhite;
    outline: 1px auto gray;
    position: absolute;
    z-index: 9;
    top: 0;
    width: -webkit-fill-available;
    left: 0;
    max-height: 50vh;
  }
  
  .category-header, .brand-header, .product-header {
    display: flex;
    font-weight: bold;
    word-break: break-word;
    align-items: center;
    text-align: left;
    width: 100%;
    justify-content: space-between;
  }

  #category-list{
    display: flex;
    padding: 10px 12px 337px 12px;
    overflow: scroll;
    flex-wrap: wrap;
  }
  
  .brands, .products {
    max-height: 0vh;
    opacity: .7;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
  }

  *::-webkit-scrollbar{
    display: none;
  }
  
  .brands.active, .products.active {
    margin-top: 3px;
    max-height: 100vh;
    opacity: 1;
  }

  .products{
    max-width: max-content;
    flex-direction: column-reverse;
  }

  .brand{
    text-align: right;
    display: flex;
    flex-direction: column;
    margin-right: 3px;
  }

  .brand button{
    align-self: flex-end;
  }

  .product{
    border: none;
    border-radius: 0;
    margin-right: 3px;
    margin-left: 3px;
  }

  .category-header .header-text-div{
    text-align: center;
    flex-grow: 1;
    flex-direction: column;
    justify-content: center;
    flex-grow: 999;
  }

  .brand-company, .brand-name{
    font-style: italic;
  }
  
  #mainHeader{
    display: flex;
    justify-content: space-between;
    margin: 12px 12px 0 12px;
    flex-wrap: wrap;
    position: relative;
  }
  
  button:hover {
    background-color: #0056b3;
  }
  
  button:focus {
    outline: none;
    box-shadow: 0 0 0 2px #007bff;
  }
  
.expand-indicator {
    margin-left: 5px;
    margin-right: 5px;
    font-size: 10px;
    transition: transform 0.3s ease;
    align-content: center;
}

.category-header.active .expand-indicator,
.brand-header.active .expand-indicator {
    transform: rotate(90deg);
}

#version{
  position: absolute;
  color: darkgreen;
  font-size: 14px;
  bottom: 0;
  left: 0;
  right: 0;
}

.category-picture, .brand-picture{
  height: 32px;
}

.category{
  box-shadow: 0px 0px 2px 1px #6c6c6c;
  border: none;
  background-color: white;
  transition: margin 0.2s;
}

.category.active, .product{
  background-color: #dcdcdc;
}

.category.active{
  margin: 12px 12px 12px 0;
  box-shadow: 0px 0px 4px 1px #6c6c6c;
}

.header-image-container{
  flex-grow: 1;
  overflow: hidden;
}

input[type="file"] {
  font-size: inherit;
  font-family: inherit;
}


.header-image{
  max-width: 100%;
  max-height: 2em;
  float: right;
}

#imgModal{
  position: fixed;
  overflow: scroll;
}

.img-modal-on{
  display: block;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: grey;
}

.img-modal-off{
  display: none;
}

.separator{
  margin: 12px 0;
  border-top: 4px solid grey;
}

.imgModal-img{
  max-width: 100%;
}

input, textarea{
  font-size: inherit;
  font-family: inherit;
}

textarea {
  resize: none;
  padding-bottom: 34px;
  box-sizing: border-box;
  padding-left: 5px;
}

#omnisearch {
  overflow: hidden;
  resize: none;
  padding-bottom: 0;
  margin: 0;
  min-width: 70%;
  height: fit-content;
  flex-grow: 1;
  align-self: center;
}

@media only screen and (orientation: landscape) {
  #omnisearch {
    max-width: 360px;
    min-width: unset;
  }
}

#addBrandButton{
  width: 100%;
  max-width: 400px;
  align-self: flex-start;
}

textarea::after {
  content: '';
  position: absolute;
  width: 80%;
  height: 20px;
  background: #ccc;
  left: 0;
  bottom: 0;
  cursor: ns-resize;
  z-index: 10;
}

input, button, textarea{
  font-style: italic;
  margin: 8px 0;
  font-weight: bold;
  border-radius: 5px;
}

input, textarea{
  outline: 1px auto gray;
  box-shadow: 3px 3px 3px #4e4e4e;
  line-height: 1.5em;
}

#watchFace{
  padding: 8px;
  height: auto;
  width: auto;
}

#add-category-button{
  white-space: nowrap;
  flex-grow: 1;
  margin: 8px 12px;
}

@media only screen and (orientation: landscape) {
  #add-category-button {
      max-width: 236px;
  }
}

button{
  font-size: inherit;
  font-family: inherit;
  padding: 6px 12px;
  background-color: #0047ff;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: inset -2px -2px 1px 0px #464646;
}

#color-picker {
  border-radius: 28px;
  padding: 10px;
  font-style: normal;
}

#settings {
  display: none;
  position: fixed;
  text-align: center;
  left: 0;
  border-radius: 28px;
  max-width: 600px;
  z-index: 1000;
  flex-direction: column;
  top: 100%;
  left: 100%;
  transform: translate(-100%, -100%);
}

@media only screen and (orientation: landscape) {
  #settings {
    flex-direction: row;
    max-height: 90vh;
    width: max-content;
    max-width: 100vw;
  }
}

.settings-button{
  height: auto;
  font-style: normal;
  margin: 8px 5px;
}

#color-picker {
  position: relative;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  align-content: center;
}

#scott{
  display: flex;
  justify-content: space-evenly;
  margin: 8px 8px 8px 0;
  align-self: center;
  height: fit-content;
}

#color-wheel-canvas {
  border-radius: 50%;
  cursor: crosshair;
}
#custom-color{
  height: auto;
  margin: 0 0 0 8px;
  min-width: 30px;
}
#color-value {
  text-align: center;
  max-width: 7em;
  margin: 0;
  max-height: max-content;
}

#color-history-list {
display: contents;
}

.color-history-item {
  align-self: center;
  width: 30px;
  height: 30px;
  border: 1px solid #000000;
  cursor: pointer;
  border-radius: 4px;
  padding: 0;
}

#settingsContainer{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 6px;
    padding-bottom: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background: 8080808a;
}

@media only screen and (orientation: portrait) {
  #settingsContainer {
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    min-width: unset;
    padding-right: 0;
  }

  #color-picker {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-right-radius: inherit;
  }
}

#categorylistuppergradient{
background: linear-gradient(180deg, var(--body-bg-color), transparent);
height: 10px;
width: 100%;
position: absolute;
bottom: -8px;
}