/* color var  */
:root {
  --main: #1405aa;
  --secondary: #fcfcfc;
}

body {
  margin: 0;
  padding: 0;
  display: grid;
  background-color: #fff;
  font-family: "IBM Plex Sans", sans-serif;
}
img{
  max-width: 100%;
  height:auto;
}
.grid {
  margin: 0;
  display: grid;
  grid-template-columns: min-content 1fr;
}


#main-result{
  display: grid;
  grid-template-columns: 1rem auto;
  background: #eee;

}

#result {
  height: 100vh;
  padding: 0 1rem 2rem 0;
  overflow-y: auto;
  resize: both;

}
#result div{
  font-family: 'Courier New', Courier, monospace;
  margin-bottom: 1rem;
}
.tools{
  grid-column: 1/-1;
  padding:1rem;
  border-bottom: 1px solid #1405aa;
  background-color: var(--main);
  display: grid;
  gap:12px;
  grid-template-columns: auto 1fr auto auto auto auto;
  align-items: flex-start;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  transition: height 0.3s ;
  height:70px;
  position: sticky;
  top:0;
  z-index: 9999;

}

.tools.open{
  height: 180px;
}

.tools svg{
  height:2rem;
  width: auto;
  margin-right: 1rem;
}
.tools svg path{
  transition: all 2s;
  stroke-dasharray: 5;

}
.tools a{
  color:#fff;
  text-decoration: none;
}

.tools a:hover svg path{
  stroke-dasharray: 170;
} 


.sidebar ul{
  padding: 0;
  margin: 0;
  margin-bottom: 3rem;
  width:280px;
}
.sidebar li{
  list-style: none;
 
}
.sidebar a{
  display: block;
  text-decoration: none;
  color:#000;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #ccc;
  background-color: #f5f5f5;
}



.sidebar a:hover{
  background-color: #e5e5e5;
}

.sidebar strong{
  display: block;
  padding: 0.5rem 1rem;
  background-color: var(--main);
  color: #fff;
  font-weight: normal;
}
.sidebar strong::before{
  content: '↓';
  margin-right: 0.5rem;
}
.description{
  padding: 1rem 3rem;
  /* background-color: #f5f5f5; */
  border-left: 1px solid #ccc;
  max-width: 600px;
}

code{
  background-color: #fff;
  padding: 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.6;
}
p>code{
  margin: 0;
  padding: 0;
}

p a{
  color: var(--main);
}

hr{
  border:0;
  border-top: 1px solid #ccc;
  margin: 2rem 0;
  width:calc(100% + 4rem);
  transform: translateX(-2rem);
}

img,code{
  border: 1px solid #eee;
}
p>code{
  border:0
}

figure{
  margin: 0;
  padding: 0;
  margin-bottom: 1.5em;
}

figcaption{
  font-size: 0.8rem;
  color: #777;
  text-align: center;
  margin-top: 0.5rem;
}

.hero{
  /* width:1200px; */
  max-width: calc(100vw - 360px);
  box-shadow: 0 0 30px rgba(0,0,0,0.1);
}