body{
  --background:#EBEEF0;
  --light-background:#F7F9FA;
  --graydiv:#d5d5d5;
  --selection:#2162AF;
  --rightpanel: white;
  --article-title: #253237;

  @media(prefers-color-scheme: dark){
    --background:#323333;
    --light-background:#4B4D4D;
    --graydiv:#656565;
    --selection: white;   
    --rightpanel: #4B4D4D;
    --article-title: rgba(255,255,255,.65);
  }
}

body{
  font-size: 14px;
  font-family: -apple-system, system-ui, "Open Sans", "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
  margin: 0px;
  padding: 0px;
  background-color: var(--background);
}

#pagetitle{
  float: left;
  color: #253237;
  opacity: .5; 
  line-height: 33px; 
  margin-left: 12px;
}

#nav{
  border: 1px solid var(--graydiv);
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  position: absolute;
  top: 0px;  
  left: 0px;
  background-color: var(--background);
  #searchbar{
    position: relative;  
    width: 516px;
    height: 40px;
    margin: auto;
    margin-top: 2px;
  }
  #global-options-button{
    position:absolute;
    top:1px;
    right:4px;
    padding:7px;
  }
}

#global-options{
  position: absolute;
  z-index: 100;
  right: -5px;
  top: 33px;
  display:none;
  background-color: #fff;
  padding: 10px;
  width: 100px;
}


#global-options.on {
  position: absolute;
  display:block;
  background-color: #fff; 
  padding: 10px;
  color: #333;
}

#global-options button {
  padding:5px;
  color: #A8A9AB;
  font-size:14px;
  text-align:left;
  &:hover{
    cursor:pointer;
    text-decoration:underline;
  }  
}



#appcontainer{
  position:fixed;
  top:36px;
  display:flex;
  flex-direction:row;
  width:100%;

  #leftnav{
    position:relative;
    border-right: 1px solid var(--graydiv);
    background-color: var(--background);
    height:100vh;
    flex-grow:1;
    min-width:350px;
    max-width:500px;
    overflow-y:scroll;
    overscroll-behavior: contain;
  }

  #rightpanel{
    position: relative;
    min-width: 800px;
    flex-grow: 2;
    background: var(--rightpanel);
    height: 100vh;
    overflow: scroll;
  }

}

#articleSort{
  position:relative;
  display:flex;
  z-index:105;
  width:100%;
  background-color: var(--background);
  height:25px;
  font-size:14px;
  border-bottom:1px solid var(--graydiv);
  color: #333;
  font-weight:600;
  padding:5px 0px 0px 12px;
  text-overflow: ellipsis;     
}


#article-scrollContainer, #panel-scrollContainer{
  padding-bottom:70px;
}

#leftnav::-webkit-scrollbar {
      display: none;
};
#rightpanel::-webkit-scrollbar {
      // display: none;
};

#panel-scrollContainer{
  margin-top:40px ;
  padding: 25px 75px 50px 3vw;
}

#titlebar{
  position:absolute;
  width:100%;
  display:flex;
  flex-flow: row nowrap;
  align-items:center;
  justify-content: space-between;
  height:40px;
  z-index: 10;
  background-color: var(--light-background);
  font-size:14px;
  border-bottom:1px solid var(--graydiv);
  #titlebar-innercontainer{
    display:flex;
    flex-flow: row nowrap;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis;    
  }
  #titlebar-author{
    margin-left:10px;
    padding:5px 5px 5px 5px;
    display:block;
    float:left
  }
  #titlebar-title{
    display:block;
    float:left;
    color: var(--selection);
    font-weight:600;
    padding:5px;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;    
  }
  #titlebar-options{
    right:40px;
    display:flex;
    align-items:center;    
    width:40px;
    height:100%;
    border-left: 1px solid var(--graydiv);
    &:hover{
      background-color: #fafafa;
    };
    &::after {
      content: '\2807';
      font-size: 24px;
      padding:12px 10px 10px 14px;
      color: #B1B2B4;
    }    
  }
}

#titlebar-author, #titlebar-title{
 &:hover{
  opacity:.65;
  background-color: var(--background);
 }
}

#titlebar-author, #titlebar-title{
  &:focus{
   opacity:.65;
   background-color: var(--background);
   outline:none;
  }
 }

[contenteditable=true]:empty:before{
  content: attr(placeholder);
}

.dropdown{
  position:absolute;
  color: #333;
  border: 1px solid #9DB8BF;
  box-shadow: 1px 3px 8px rgba(0,0,0,.15);  
}


#titlebar-dropdown{
  position: absolute;
  right: 0px;
  top: 40px;
  display:none;
  background-color: #fff;
  padding: 10px;
  #titlebar-delete{
    font-size:14px;
    &:hover{
      cursor:pointer;
      color:red;
    };
  }
}

#titlebar-dropdown.on {
  position: absolute;
  display:block;
  background-color: #fff; 
  padding: 10px;
  color: #333;
}

#capture-helper{
  position:absolute;
  left:50%;
  width:300px;
  margin-top:-40px;
  transform:translateX(-50%);
  text-align:center;
  z-index:100;
  color: #A8A9AB;
  font-size:14px;
}

.quoteblock{
  margin-bottom: 25px;  
  z-index:9999;
}

.quote-container{
  display:flex;
  flex-direction:row;
  #quoteback-component{
    max-width:700px;
  }

  .quote-controls{
    flex-direction:column;
    margin-left:5px;
    position:relative;
    width:130px;
    opacity:0;  
    @include transition(all .20s ease);
    .control-button{
      margin-bottom:6px;
      word-wrap: no-wrap;
    }
    #delete{
      color:red;
      &:hover{
        color:black;
      }      
    }
    #embedLink{
      color: #395FE5;
      &:hover{
        color:black;
      }
    }
  }
}


.options-control-button{
  border:none;
  padding:10px;
  text-align: left;
  font-size:14px;
  font-weight:500;
  font-family:inherit;
  display:inline-block;
  border-radius:2px;
  @include transition(background-color .20s ease);
  &:hover{
    cursor: pointer;
    color: black;
    background-color:rgba(194,223,227,.25);
  }
  #options-svg{

  }
}

.showcontrols{
  transform: translateX(10px);
  opacity:1 !important;
}

.comment{
  max-width:600px;
  line-height:20px;
  padding:11px;
  color:#b6b6b6;
  background: #ECEEEF;
  box-sizing: border-box;
  border-radius: 10px;
  margin-top:-15px;
  @include transition(all .10s ease);
}

.comment:focus{
  outline:none;
  box-shadow: inset 0px 0px 0px 1px #9DB8BF;
}

.meta{
  height:25px;
  width:100%;
}

.date{
  color:#B8B8B8;
  float:left;
}

.linkback{
  a{
    color:#B8B8B8;
    float:left;
    text-decoration:underline;
    margin-left:15px;
    &:visited{
      color:#B8B8B8;
    }
  }
}


.article{
  @include transition(all .1s ease);
  border-bottom: .5px solid var(--graydiv);
  padding: 15px 11px 10px 15px;
  background-color: var(--background);
  cursor: pointer;
  display: flex;
  flex-flow: row nowrap;
  justify-content: start;
  align-items: stretch;
  &:hover{
    background-color: var(--rightpanel);
  }
  .title{
    color: var(--article-title);
    font-weight:600;
    margin-bottom:8px;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    padding-right:5px;    
  } 
  .url{
    font-weight: 300;
    margin-left: auto;
    white-space: nowrap;
    color: var(--article-title);
    opacity: .5;

    img{
      padding-right:5px;
      vertical-align:bottom;
    }

  }  
}

.selected{
  border-left: 4px solid var(--selection);
  background-color: var(--rightpanel);
  .title{
    color: var(--selection);
  }
  .url{
    color: var(--selection);
    opacity: 1;
  }  
}

.mini-favicon{
  margin-right: 6px;
  width:16px;
  height:16px;
  margin: 1px 12px 0px 0px;
}





#fastSearch { 
  position: absolute;
  left:0px;
  display: inline-block;
  width: 100%;
  z-index:5;
  &:focus-within{
    #searchInput{
      box-shadow:0 1px 1px 0 rgba(65,69,73,0.3), 0 1px 3px 1px rgba(65,69,73,0.15);
      background: var(--light-background);
      border:none;
      border-radius: 4px 4px 0px 0px;  
    }
  }
}      
#fastSearch input { 
  @include transition(all .20s ease);
  padding-left: 10px;
  width: 100%;
  height: 26px;
  font-size: 14px;
  background: var(--light-background);
  outline: none;
  text-align: left;
  display: inline-block;
  background: var(--light-background);
  border: 0.5px solid var(--graydiv);
  border-radius: 4px;
  &::placeholder{
    color: #767778;
    opacity: .5;
  };
}

#searchResults{
  display:none;
  position:absolute;
  margin:0px;
  padding:0px;
  width:528px;
  background:white;
  border-radius:0px 0px 4px 4px;
  box-shadow:0 1px 1px 0 rgba(65,69,73,0.3), 0 1px 3px 1px rgba(65,69,73,0.15);
}

#searchResults li { 
  list-style: none; 
  width:100%;
  margin-left: 0em;
  background:white; 
  border-bottom: 1px solid var(--graydiv);
  position:relative;
}
#searchResults li .title { font-size: 1.1em; margin-bottom: 10px; display: inline-block;}

#searchResults .search-url { font-weight: 300;
  margin: 2px 0px 2px auto;
  white-space: nowrap;
  color: #253237;
  opacity: .5;
}

.search-content{
  color: #464A4D;
}

#searchResults a { 
  color:black;
  text-decoration: none !important; 
  padding: 10px; 
  display: inline-block;
  img{  
    margin-right:5px;
  }
}
#searchResults a:hover, a:focus { outline: 0; background-color: #ECEEEF; }
#searchResults li:focus-within, #searchResults li:hover {outline: 0; background-color: #ECEEEF;  }

