body
{
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  margin-bottom: 7%;
  margin-right: 1%;
  background-color: #212121;
}
*:focus,
*:active
{
  outline: none;
}
fileInputContainer
body button 
{
  font-family: 'Montserrat', sans-serif;
}
body button:hover 
{
  background-color: #4f9a94;
}
h2 
{
  text-align: center;
  font-size: 1.7em;
}
.grid
{
  display: grid;
  margin-top: 1%;
  justify-content: start;
  grid-template-columns: 0.2fr repeat(3, auto) 2fr;
  grid-template-rows: 100px max-content auto;
  row-gap: 6%;
  column-gap: 2%;
  grid-template-areas:
    "logo logo . . ."
    "sidenav tree tree tree paths"
    "sidenav input data . .";
}
.logoHolder
{
  width: 100%;
  text-align: start;
  margin-left: 1%;
  grid-area: logo;
}
.sidenav 
{
  color: whitesmoke;
  background-color: transparent;
  font-size: 1.2em;
  grid-area: sidenav;
}
.treeContainer
{
  width: max-content;
  height: 100%;
  min-width: 800px;
  min-height: 400px;
  background: #484848;
  border-radius: 20px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
  grid-area: tree;
}
.pathsContainer
{
  width: 200px;
  max-height: 80vh;
  color: whitesmoke;
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(5px);
  text-align: center;
  overflow: hidden;
  box-shadow: 10px 10px 24px rgba(0, 0, 0, 0.5);
  grid-area: paths;
}
.inputContainer 
{
  margin-right: 15%;
  grid-area: input;
}
.algorithmBtnsContainer {grid-area: data;}

.logoHolder img
{
  height: 100%;
}

.sidenav .menu 
{
  list-style: none;
  padding: 0px;
}
.sidenav a,
.sidenav a:visited
{
  display: block;
  margin: 16px 12px;
  padding: 10px 16px;
  color: whitesmoke;
  text-decoration: none;
  transition: all 0.5s ease;
  position: relative;
}
.sidenav a:not(.current)::after
{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: whitesmoke;
  width: 0;
  height: 2px;
  border-radius: 12px;
  transition: all .5s ease;
}
.sidenav a:not(.current):hover:after
{
  width: 100%;
}
.sidenav a.current 
{
  color: black;
  border-radius: 12px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
  transition: all .5s ease;
}
.sidenav a.current:hover 
{
  color: whitesmoke;
  box-shadow: none;
}
.sidenav a.current::before
{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: whitesmoke;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  z-index: -1;
  transition: all .5s ease;
}
.sidenav a.current:hover::before 
{
  width: 0;
  color: whitesmoke;
}

.pathsList
{
  height: 100%;
  list-style: none;
  text-align: start;
  overflow: hidden;
  overflow-y: scroll;
  margin: 0;
  padding: 0;
}
.pathsList::-webkit-scrollbar
{
  display: none;
}
.pathsList>li
{
  padding: 6% 8%;
  border-top: 2px solid #484848;
  font-size: 1.4em;
  cursor: pointer;
  transition: all .6s ease;
}
.pathsList>li:last-child
{
  border-bottom: 2px solid #484848;
}
.pathsList>li:hover,
.pathsList>li.chosen
{
  background: #484848;
}

.switchContainer
{
  color: whitesmoke;
  font-size: 1.2em;
}
.switch
{
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin-right: 5%;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #484848;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}
input:checked + .slider {
  background-color: #80cbc4;
}
input:focus + .slider {
  box-shadow: 0 0 1px #80cbc4;
}
input:checked + .slider:before {
  transform: translateX(26px);
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}

.fileInputContainer
{
  margin-top: 5%;
}

.textInputContainer
{
  display: none;
  margin-top: 2%;
  margin-bottom: 5%;
  width: 100%;
}
#textInput
{
  width: 375px;
  height: 200px;
  padding: 4px 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25em;
  border-radius: 12px;
  resize: none;
}

#treeBtn,
#predictBtn,
.uploadLabel
{
  display: block;
  width: 100%;
  min-width: 200px;
  color: black;
  text-align: center;
  font-size: 1.3em;
  background: #80cbc4;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.6);
  margin-bottom: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
#treeBtn:active,
#predictBtn:active 
{
  transform: scale(0.98);
}
#treeBtn:hover,
#predictBtn:hover,
.uploadLabel:hover
{
  background: #4f9a94;
}
#treeBtn:disabled,
#predictBtn:disabled
{
  cursor: default;
  color: #9e9e9e;
  background: #484848;
}
#upload{display: none;}

.dataInfo 
{
  width: 100%;
  min-width: 100px;
  min-height: 20px;
  display: inline-block;
  color: whitesmoke;
  font-size: 1.3em;
  text-align: center;
  padding: 4px 16px;
  border-radius: 10px;
  border: 1px dashed #80cbc4;
}

.tree,
.tree ul,
.tree li 
{
  color: #e0e0e0;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.tree 
{
  margin: auto;
  margin-top: 1em;
  text-align: center;
}

.tree,
.tree ul 
{
  display: table;
}

.tree ul 
{
  width: 100%;
}

.tree li 
{
  display: table-cell;
  padding: .5em 0;
  vertical-align: top;
}

.tree li:before 
{
  border-bottom: solid 2px #e0e0e0;
  content: "";
  font-size: 1.25em;
  color: #9e9e9e;
  left: 0;
  position: absolute;
  right: 0;
  top: -1.1em;
}

.tree li:first-child:before 
{
  content: 'yes';
  text-align: start;
  left: 50%;
}

.tree li:last-child:before 
{
  content: 'no';
  text-align: end;
  right: 50%;
}

.tree>li:last-child:before 
{
  content: '';
}

.tree span 
{
  border: solid .1em #e0e0e0;
  background: transparent;
  font-size: 1.3em;
  border-radius: .2em;
  display: inline-block;
  margin: 0 1em 1.5em;  /* changing height/width of tree */
  padding: .2em .5em;
  position: relative;
  transition: all .4s ease;
}

.tree span.colored 
{
  background: #4db6ac;
}

.tree span.coloredTerminal 
{
  background: #7FAF5C;
}

.tree ul:before,
.tree span:before 
{
  outline: solid 1px #e0e0e0;
  content: "";
  left: 50%;
  position: absolute;
}

/* next 2 selectors is for changing heights of tree's edges */
.tree ul:before 
{
  height: 1.9em;
  top: -1.9em;
}

.tree span:before 
{
  height: .3em;
  top: -.4em;
}

.tree>li 
{
  margin-top: 0;
}

.tree>li:before,
.tree>li:after,
.tree>li>span:before 
{
  outline: none;
}
