body {
  overflow: hidden;
  padding: 0;
  margin: 0;
  height: 100vh;
  font-family:'Roboto', sans-serif;
  /*     margin: 0;
        padding: 0;
        overflow: hidden;
        background-color: #f0f0f0;*/
}
#container {
  box-shadow: 11px 11px 20px -6px rgba(0, 0, 0, 0.79);
  width: 600px;
  height: 600px;
  margin: 0 auto;
  background: white;
}
#container-stage {
  background-color: whitesmoke;
  display: flex;
  flex: 2;
  height: 100vh;
  align-items: center;
}
#container-pallet {
  flex: 1;
  background-color: ghostwhite;
  transition-duration: 1s;
}
#toolbar {
  position: fixed;
  border: solid 1px lightgray;
  background-color: white;
  border-radius: 1em;
  padding: 0.5em;
  height: 300px;
  top: 50px;
  left: 50px;
}

#toolbar button {
  background-color: transparent;
  border: none;
  border: solid 1px white;
  border-radius: 1em;
  transition-property: border-color;
  transition-duration: 0.25s;
  display: block;
}
#toolbar button:hover {
  border: solid 1px gray;
  border-radius: 1em;
  cursor: pointer;
}

#tabs {
  display: flex;
  padding: 1em;
}

#tabs > div {
  flex: 1;
  text-align: center;
}
#tabs button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

#tabs > div:hover > button {
  transform: scale(1.1);
  transition-duration: 0.25s;
}

#categories {
  width: 100%;

  overflow-y: scroll;
  height: 85vh;
}
#categories ul {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}
#categories li {
  text-transform: capitalize;
}
#categories a {
  color: inherit;
  text-decoration: none;
}
#categories a:hover {
  font-size: 1.01em;
  transition-duration: 0.1s;
  text-decoration: underline;
}

#random-grid {
  width: 100%;
  display: grid;
  padding-top: 20px;
  grid-template-areas: "a a a a";
  gap: 5px;
  grid-auto-rows: 100px;
  overflow-y: scroll;
  height: 85vh;
}

#random-grid > div {
  background-color: transparent;
  position: relative;
}
#random-grid > div:hover .svg-info {
  cursor: pointer;
  display: block;
}
.svg-info:hover {
  fill: blue;
}

#random-grid > div .svg-info {
  position: absolute;
  display: none;
  z-index: 100;
  top: 0;
  left: 0;
}

#random-grid img {
  object-fit: contain;
  width: 100px;
  height: 100px;
  position: relative;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  left: 50%;
  cursor: pointer;
}

#random-grid img:hover {
  transition-duration: 0.1s;
  transform: scale(1.5) translateY(-30%) translateX(-30%);
}

.image-dump {
  position: 5%;
  width: auto;
}

#sources {
}
#sources a {
  color: black;
}

#sources img {
  height: 50px;
  width: auto;
}
#save-divider-div{
  position:relative;
  margin-top:3em;
  margin-bottom:3em;
}
#save-divider-div span{
  position:absolute;
  left:44%;
  top:-12px;
  background-color:ghostwhite;
  border: solid 2px lightgray;
  border-radius:1em;
  padding:4px;
  font-size:0.8em;
}

#save-post{
  
  width:75%;
  margin-left:auto;
  margin-right:auto;
  
  
}
#save hr {
  border: solid 1px lightgray;
  width: 75%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1em;
  margin-bottom: 1em;
}
#save-download {
  padding-top: 3em;
  text-align: center;
}
#save-download button {
  transform: scale(1);
  transition-duration: 0.25s;
}
#save-download button:hover {
  transform: scale(1.25);
  transition-duration: 0.25s;
}
#save-download button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}
#save-post-button{
  padding:1em;
  text-align:center;
}
#save-post-button input{
  display:block;
  width:100%;
  margin-bottom:1em;
  font-size:1.1em
}
#save-post p{
  text-align:center;
  line-height:1.25em;
}
#save-post button {
  transform: scale(1);
  transition-duration: 0.25s;
}
#save-post button:hover {
  transform: scale(1.25);
  transition-duration: 0.25s;
}
#save-post button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

#welcome{
  padding:2.1em;
  
}
#welcome p{
  font-size:1.2em;
  line-height:1.4em;
}
#welcome svg{
  padding-left:5px; padding-right:5px;vertical-align: middle;
}

#welcome button{
  display:block;
  margin:0 auto 0 auto;
  font-size:2em;
  background-color:transparent;
  margin-top:2em;
  cursor:pointer;
    transform: scale(1);
  transition-duration: 0.25s;
  

}



#welcome button:hover {
  transform: scale(1.25);
  transition-duration: 0.25s;
}



#container-pallet-tab {
  display: none;
  background-color:white;
  
}

#container-pallet-tab button{
  background-color:white;
    transform: rotate(0deg);
  transition-duration: 1s;
  transition-delay:0.5s;
  cursor:pointer;
  
}

#container-pallet-tab svg{

}

.rotate180{
  transform: rotate(180deg) !important;
}




@media only screen and (max-width: 1100px) {
  #toolbar {
    position: fixed;
    border: solid 1px lightgray;
    background-color: white;
    border-radius: 1em;
    padding: 0.5em;
    height: 50px;
    width: 290px;
    top: 25px;
    right: 100px;
  }
  #toolbar button {
    display: inline-block;
    padding:0;
  }
}
@media only screen and (max-width: 900px) {
  #container-pallet {
    position: absolute;
    
    width: 500px;
    right: -150%;
    z-index: 1000;
    height:100vh;
  }

  #container-pallet-tab {
    position: absolute;
    display: block;
    top: 25px;
    right: 0vw;
    height: 25px;
    width: 50px;
    
    z-index:2000;
  }
}


@media only screen and (max-width: 500px) {
  
  
  
  #container-pallet {
    
    width: 400px;

  }  
  
  
  
  
  
}

/* Tool Tips*/
[data-tooltip] {
  --arrow-size: 5px;
  position: relative;
  z-index: 10;
}

/* Positioning and visibility settings of the tooltip */
[data-tooltip]:before,
[data-tooltip]:after {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  left: 50%;
  bottom: calc(100% + var(--arrow-size));
  pointer-events: none;
  transition: 0.2s;
  will-change: transform;
}

/* The actual tooltip with a dynamic width */
[data-tooltip]:before {
  content: attr(data-tooltip);
  padding: 10px 18px;
  min-width: 50px;
  max-width: 300px;
  width: max-content;
  width: -moz-max-content;
  border-radius: 6px;
  font-size: 14px;
  background-color: rgba(59, 72, 80, 0.9);
  background-image: linear-gradient(
    30deg,
    rgba(59, 72, 80, 0.44),
    rgba(59, 68, 75, 0.44),
    rgba(60, 82, 88, 0.44)
  );
  box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.2);
  color: #fff;
  text-align: center;
  white-space: pre-wrap;
  transform: translate(-50%, calc(0px - var(--arrow-size))) scale(0.5);
}

/* Tooltip arrow */
[data-tooltip]:after {
  content: "";
  border-style: solid;
  border-width: var(--arrow-size) var(--arrow-size) 0px var(--arrow-size); /* CSS triangle */
  border-color: rgba(55, 64, 70, 0.9) transparent transparent transparent;
  transition-duration: 0s; /* If the mouse leaves the element, 
                                  the transition effects for the 
                                  tooltip arrow are "turned off" */
  transform-origin: top; /* Orientation setting for the
                                  slide-down effect */
  transform: translateX(-50%) scaleY(0);
}

/* Tooltip becomes visible at hover */
[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
  visibility: visible;
  opacity: 1;
}
/* Scales from 0.5 to 1 -> grow effect */
[data-tooltip]:hover:before {
  transition-delay: 0.3s;
  transform: translate(-50%, calc(0px - var(--arrow-size))) scale(1);
}
/* 
      Arrow slide down effect only on mouseenter (NOT on mouseleave)
    */
[data-tooltip]:hover:after {
  transition-delay: 0.5s; /* Starting after the grow effect */
  transition-duration: 0.2s;
  transform: translateX(-50%) scaleY(1);
}
/*
      That's it for the basic tooltip.

      If you want some adjustability
      here are some orientation settings you can use:
    */

/* LEFT */
/* Tooltip + arrow */
[data-tooltip-location="left"]:before,
[data-tooltip-location="left"]:after {
  left: auto;
  right: calc(100% + var(--arrow-size));
  bottom: 50%;
}

/* Tooltip */
[data-tooltip-location="left"]:before {
  transform: translate(calc(0px - var(--arrow-size)), 50%) scale(0.5);
}
[data-tooltip-location="left"]:hover:before {
  transform: translate(calc(0px - var(--arrow-size)), 50%) scale(1);
}

/* Arrow */
[data-tooltip-location="left"]:after {
  border-width: var(--arrow-size) 0px var(--arrow-size) var(--arrow-size);
  border-color: transparent transparent transparent rgba(55, 64, 70, 0.9);
  transform-origin: left;
  transform: translateY(50%) scaleX(0);
}
[data-tooltip-location="left"]:hover:after {
  transform: translateY(50%) scaleX(1);
}

/* RIGHT */
[data-tooltip-location="right"]:before,
[data-tooltip-location="right"]:after {
  left: calc(100% + var(--arrow-size));
  bottom: 50%;
}

[data-tooltip-location="right"]:before {
  transform: translate(var(--arrow-size), 50%) scale(0.5);
}
[data-tooltip-location="right"]:hover:before {
  transform: translate(var(--arrow-size), 50%) scale(1);
}

[data-tooltip-location="right"]:after {
  border-width: var(--arrow-size) var(--arrow-size) var(--arrow-size) 0px;
  border-color: transparent rgba(55, 64, 70, 0.9) transparent transparent;
  transform-origin: right;
  transform: translateY(50%) scaleX(0);
}
[data-tooltip-location="right"]:hover:after {
  transform: translateY(50%) scaleX(1);
}

/* BOTTOM */
[data-tooltip-location="bottom"]:before,
[data-tooltip-location="bottom"]:after {
  top: calc(100% + var(--arrow-size));
  bottom: auto;
}

[data-tooltip-location="bottom"]:before {
  transform: translate(-50%, var(--arrow-size)) scale(0.5);
}
[data-tooltip-location="bottom"]:hover:before {
  transform: translate(-50%, var(--arrow-size)) scale(1);
}

[data-tooltip-location="bottom"]:after {
  border-width: 0px var(--arrow-size) var(--arrow-size) var(--arrow-size);
  border-color: transparent transparent rgba(55, 64, 70, 0.9) transparent;
  transform-origin: bottom;
}
