header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 3;
}

#navbar {
  height: 50px;
  background: hsla(0,0%,0%,0.8);
  display: flex;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#navbarshadow {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -3;
  box-shadow: 0 0 15px 5px hsla(0,0%,0%,0.6);
}

#nav_r {
  margin-right: auto;
}

/* Button Animation */
#navbar img, #searchUnder img, #tabaccount, #tabaccount img {
  transition: background 0.6s, width 0.6s, height 0.6s, padding 0.6s;
  width: 50px;
  height: 50px;
  user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
}

#navbar img:hover, #searchUnder img:hover, #tabaccount:hover, #tabaccount:hover img {
  transition: background 0.2s, width 0.2s, height 0.2s, padding 0.2s;
  background: hsla(225,8%,50%,0.5);
  cursor: pointer;
}

#navbar img.activetab {
  background: hsl(225,8%,40%);
}

#navbar img.activetab:hover {
  background: hsl(225,8%,50%);
}

#navbar img:active, #searchUnder img:active, #tabaccount:active, #tabaccount:active img {
  transition: background 0.05s, width 0.05s, height 0.05s, padding 0.05s;
  background: hsla(225,8%,50%,1);
  width: 46px;
  height: 46px;
  padding: 2px;
}

#navbar img.activetab:active {
  background: hsl(225,8%,60%);
}

#tabaccount {
  padding: 10px;
  width: 30px;
  height: 30px;
}

#tabaccount img {
  border-radius: 50%;
  height: 30px;
  width: 30px;
}

#tabaccount:active {
  height: 26px;
  width: 26px;
  padding: 12px;
}

#tabaccount:active img {
  height: 26px;
  width: 26px;
  padding: 0;
}

#tabaccount.amopen {
  background: hsl(225,8%,15%);
}

#tabaccount.amopen:hover {
  background: hsl(225,8%,25%);
}

#tabaccount.amopen:active {
  background: hsl(225,8%,35%);
}

/* Logo Animation */
#navbar img#logo {
  width: 130px;
  height: 50px;
}

#navbar img#logo:active {
  width: 126px;
  height: 46px;
  padding: 2px;
}

/* Search Bar */
#navbar form {
  display: inline-flex;
  height: 30px;
  margin: 10px;
  width: 35%;
  max-width: calc(100% - 480px);
}

.searchMain input {
  font-family: "Montserrat",sans-serif;
  font-size: 16px;
  color: white;
  background: hsla(225,8%,15%,0.8);
  border: 0;
  width: 100%;
  padding: 0 0 0 8px;
  transition: background 0.6s;
  border-radius: 0;
  outline: none;
}

.searchMain input:focus {
  transition: background 0.05s;
  background: hsla(225,8%,20%,0.8);
}

/* Search Button */
.searchMain img#search_btn {
  background: hsla(225,8%,15%,0.8);
  width: 30px;
  height: 30px;
}

.searchMain input:focus + img#search_btn {
  transition: background 0.05s;
  background: hsla(225,8%,20%,0.8);
}

.searchMain img#search_btn:hover {
  background: hsla(225,8%,50%,0.5);
}

.searchMain input:focus + img#search_btn:hover {
  transition: background 0.2s;
  background: hsla(225,8%,50%,0.5);
}

.searchMain img#search_btn:active {
  width: 26px;
  height: 26px;
  padding: 2px;
  background: hsla(225,8%,50%,1);
}

/* Search Underbar */
#search_large {
  visibility: hidden;
  display: none;
}

#searchUnder {
  position: fixed;
  top: 50px;
  background: hsla(0,0%,0%,0.8);
  width: 100%;
  visibility: hidden;
  box-shadow: 0 0 15px 5px hsla(0,0%,0%,0.6);
  z-index: -1;
  display: inline-flex;
  height: 0;
  overflow: hidden;
  transition: height 0.1s, visibility 0.1s;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#searchUnder form {
  display: inline-flex;
  height: 30px;
  margin: 10px;
  width: calc(100% - 70px);
}

#searchUnder.searchunderopen {
  visibility: visible;
  height: 50px;
  transition: height 0.3s, visibility 0s;
}

.arrowup {
  transform: rotate(-90deg);
}

@media screen and (max-width: 599px) {
  #navbar form.searchMain {
    display: none;
    visibility: hidden;
  }

  #search_large {
    visibility: visible;
    display: block;
  }
}

#accountmenu {
  position: fixed;
  z-index: -1;
  width: 250px;
  background: hsl(225,8%,15%);
  overflow: hidden;
  right: 0;
  height: 0px;
  transition: height 0.2s, visibility 0.2s, box-shadow 0.2s;
  visibility: hidden;
}

#accountmenu.amopen {
  visibility: visible;
  height: 50px;
  transition: height 0.5s, visibility 0s, box-shadow 0.2s;
  box-shadow: 0 0 15px 5px hsla(0,0%,0%,0.6);
}

#accountmenu.signed.amopen {
  height: 110px;
}

#amuser {
  display: flex;
  padding: 10px;
}

#amuseravatar {
  height: 40px;
  border-radius: 50%;
}

.amuserinfo {
  display: flex;
  flex-direction: column;
  padding-left: 10px;
  margin: auto 0;
  max-width: 180px;
}

#amusername {
  font-size: 18px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  line-height: 20px;
}

#amuserstats {
  font-size: 14px;
  color: hsl(225,8%,80%);
  line-height: 16px;
  font-weight: 300;
}

.ambutton {
  height: 50px;
  font-size: 16px;
  transition: height 0.9s, background 0.6s, font-size 0.6s;
  line-height: 50px;
  padding-left: 15px;
}

.ambutton.hide, #amuser.hide {
  display: none;
  visibility: hidden;
}

.ambutton:not(.amtoggle):hover {
  transition: background 0.2s, font-size 0.2s;
  background: hsl(225,8%,25%);
  cursor: pointer;
}

.ambutton:not(.amtoggle):active {
  transition: background 0.05s, font-size 0.05s;
  background: hsl(225,8%,35%);
  font-size: 14px;
}

.amswitch {
  margin: auto 31px auto auto;
}

.switch {
  position: relative;
  display: inline-block;
  width: 35px;
  height: 20px;
}

.switch input {
  display: none;
}

.switchhandle {
  position: absolute;
  cursor: pointer;
  top: 2px;
  left: 2px;
  right: 0px;
  bottom: 0px;
  width: 31px;
  height: 16px;
  background: hsl(225,8%,25%);
  transition: 0.5s;
  border-radius: 20px;
}

.switchhandle:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  background: hsl(225,8%,45%);
  transition: 0.5s;
  top: -2px;
  left: -2px;
  box-shadow: 0 0 4px 0 hsla(0,0%,0%,0.5);
  border-radius: 50%;
}

input:checked + .switchhandle {
  background: hsl(225,8%,50%);
}

input:checked + .switchhandle:before {
  background: #385ad6;
  transform: translateX(15px);
}

#signindimmer {
  position: fixed;
  z-index: 4;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: hsla(225,8%,10%,0);
  display: flex;
  visibility: hidden;
  transition: background 0.3s, visibility 0.3s, -webkit-backdrop-filter 0.3s, backdrop-filter 0.3s;
}

#signindimmer.open {
  background: hsla(225,8%,10%,0.8);
  visibility: visible;
  transition: background 0.6s, visibility 0s, -webkit-backdrop-filter 0.6s, backdrop-filter 0.6s;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#signin {
  padding: 40px 20px 30px;
  max-width: 460px;
  min-height: 130px;
  margin: auto;
  background: hsla(225,8%,20%,0.9);
  overflow: auto;
  width: calc(100% - 70px);
  box-shadow: 0 0 15px hsl(225,8%,5%);
  transition: transform 0.3s;
  text-align: center;
  font-size: 18px;
  transform: scale(0);
}

.firebaseui-container {
  background: none !important;
  font-family: inherit !important;
}

.firebaseui-idp-text {
  font-family: "Montserrat","Muli","Open Sans","Source Sans Pro","Segoe UI Emoji",sans-serif;
  font-weight: 600;
}

#signindimmer.open #signin {
  transform: scale(1);
  transition: transform 0.6s;
}

#browserSupport, #noscript {
  position: fixed;
  background: hsla(0,100%,50%,0.8);
  width: 100%;
  visibility: hidden;
  box-shadow: 0 0 15px 5px hsla(0,0%,0%,0.6);
}

#browserSupport a {
  color: hsl(225,100%,85%);
}

#browserSupport div, #noscript div {
  padding: 5px;
  text-align: center;
  line-height: 20px;
}

#browserSupport img {
  float: right;
  background: hsla(0,0%,15%,0);
  transition: background 0.6s;
}

#browserSupport img:hover {
  transition: background 0.2s;
  background: hsla(0,0%,15%,0.4);
  cursor: pointer;
}

#browserSupport img:active {
  transition: background 0.05s;
  background: hsla(0,0%,15%,0.8);
}

#noscript {
  visibility: visible;
}

#noscript div {
  line-height: 40px;
}

.sidebars {
  position: fixed;
  top: 50px;
  box-shadow: 0 0 15px 5px hsla(0,0%,0%,0.6);
  height: calc(100% - 50px);
  display: flex;
  flex-flow: column;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.3s, visibility 0.3s, scrollbar-color 0.6s;
  visibility: hidden;
}

.sidebars.sidebaropen {
  transition: transform 0.6s, visibility 0s, scrollbar-color 0.6s;
  visibility: visible;
}

.sidebars.silent {
  transition: transform 0s, visibility 0s, scrollbar-color 0.6s;
}

#menu.sidebaropen, #feed.sidebaropen {
  transform: unset;
}

#menu {
  width: 240px;
  background: hsla(0,0%,0%,0.8);
  overflow: hidden;
  z-index: -2;
  transform: translateX(calc(-100% - 20px));
  scrollbar-color: #385ad600 hsla(225,8%,15%,0);
  scrollbar-width: thin;
}

#menu:hover {
	overflow-y: auto;
  scrollbar-color: #385ad6 hsla(225,8%,15%,0);
  transition: transform 0.3s, visibility 0.3s, scrollbar-color 0.2s;
}

@supports (scrollbar-color: #385ad600 hsla(225,8%,15%,0)) {
  #menu {
    overflow-y: auto;
  }
}

.menuitem {
  display: flex;
  transition: background 0.6s;
  padding: 10px;
  min-height: 30px;
}

.menuitem img{
  height: 30px;
}

.menuitem span {
  line-height: 30px;
  height: 30px;
  padding-left: 15px;
}

.menuitem:hover {
  background: hsla(225,8%,30%,0.7);
  transition: background 0.2s;
}

.menuitem:active {
  background: hsla(225,8%,40%,0.9);
  transition: background 0.05s;
}

#feed {
  right: 0;
  width: 400px;
  background: hsla(225,8%,30%,0.8);
  transform: translateX(calc(100% + 20px));
  z-index: -3;
}

.feednav {
  height: 40px;
  background: hsl(225,8%,40%);
  display: flex;
  box-shadow: 0 0 15px 0 hsla(0,0%,0%,0.6);
}

.feednav img {
  height: 40px;
  width: 40px;
  transition: background 0.6s, width 0.6s, height 0.6s, padding 0.6s;
  background: hsla(225,8%,20%,0);
}

.feednav img:not(#feednavicon):hover {
  transition: background 0.2s, width 0.2s, height 0.2s, padding 0.2s;
  background: hsla(225,8%,20%,0.5);
  cursor: pointer;
}

.feednav img:not(#feednavicon):active {
  transition: background 0.05s, width 0.05s, height 0.05s, padding 0.05s;
  background: hsla(225,8%,20%,1);
  width: 36px;
  height: 36px;
  padding: 2px;
}

#feednavicon {
  margin: auto 0 auto auto;
}

#feedtitle {
  margin: auto auto auto 0;
  font-weight: 300;
  font-size: 18px;
  cursor: default;
}

.feedcontent {
  display: flex;
  position: relative;
  padding: 10px 0 0 0;
  overflow: hidden;
  z-index: -1;
  flex: 1 1 auto;
  -moz-user-select: none;
  scrollbar-color: #385ad6 hsla(225,8%,20%,0.8);
  scrollbar-width: thin;
}

.feedcontent:hover {
  overflow-y: auto;
}

@supports (scrollbar-width: thin) {
  .feedcontent {
    overflow-y: auto;
  }
}

.feedtab {
  position: absolute;
  width: 100%;
  transition: transform 0.5s;
  padding-bottom: 10px;
  -moz-user-select: text;
  overflow: hidden;
}

.feedtab.silent {
  transition: transform 0s;
}

.feedpos-3, .feedpos-2, .feedpos-1, .feedpos1, .feedpos2, .feedpos3 {
  height: calc(100% - 20px);
}

.feedpos-1 {
  transform: translateX(-100%);
}

.feedpos-2 {
  transform: translateX(-200%);
}

.feedpos-3 {
  transform: translateX(-300%);
}

.feedpos1 {
  transform: translateX(100%);
}

.feedpos2 {
  transform: translateX(200%);
}

.feedpos3 {
  transform: translateX(300%);
}

@media screen and (max-width: 599px) {
  #feed {
    width: 100%;
    background: hsla(225,8%,30%,0.9);
  }

  .feedtab {
    max-width: 420px;
    width: 100%;
    padding: 0 calc((100% - 420px) / 2);
  }
}

.feedblock {
  display: flex;
  padding: 5px 10px 5px 0;
}

.feedavatar {
  width: 40px;
  margin: 0 10px auto 10px;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
}

.feedblockcontent {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.feedbubble {
  display: flex;
  position: relative;
  background: hsla(225,8%,10%,0.8);
  min-height: 40px;
  align-items: center;
  transition: background 0.5s;
}

.feedbubble:hover {
  transition: background 0.2s;
  background: hsla(225,8%,50%,0.8);
  cursor: pointer;
}

.feedbubble:active {
  transition: background 0.05s;
  background: hsla(225,8%,60%,0.8);
}

.feedbubble:after {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-right-color: hsla(225,8%,10%,0.8);
  border-left: 0;
  margin-left: -5px;
  transition: border-right-color 0.5s;
}

.feedbubble:hover:after {
  transition: border-right-color 0.2s;
  border-right-color: hsla(225,8%,50%,0.8);
}

.feedbubble:active:after {
  transition: border-right-color 0.05s;
  border-right-color: hsla(225,8%,60%,0.8);
}

.feedbubbletext {
  padding: 5px 10px 5px 10px;
  font-size: 16px;
  font-weight: 300;
}

.feedblockinfo {
  min-height: 20px;
  display: flex;
  font-size: 14px;
  font-weight: 400;
  color: hsl(225,8%,85%);
  align-items: center;
  flex-wrap: wrap;
  transition: background 0.5s;
  background: hsla(225,8%,50%,0);
}

.feedupvote,.feeddownvote,.feedcontext,.feedcomments,.feeduser {
  transition: background 0.5s;
  background: hsla(225,8%,50%,0);
}

.feedupvote:hover,.feeddownvote:hover,.feedcontext:hover,.feedcomments:hover,.feeduser:hover {
  transition: background 0.2s;
  background: hsla(225,8%,50%,0.5);
  cursor: pointer;
}

.feedupvote:active,.feeddownvote:active,.feedcontext:active,.feedcomments:active,.feeduser:active {
  transition: background 0.05s;
  background: hsla(225,8%,50%,1);
}

.feedupvote:active {
  background: hsl(120,25%,40%);
}

.feeddownvote:active {
  background: hsl(0,25%,40%);
}

.feeduser {
  color: hsl(225,8%,80%);
  font-weight: 300;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  line-height: 20px;
}

.feedupvote {
  margin: 0 2px 0 5px;
}

.downvote {
  transform: scaleY(-1);
}

.feedscore,.feedtime {
  cursor: default;
}

.feeddownvote {
  margin-left: 2px;
}

.feedcomments,.feedtime {
  display: flex;
  align-items: center;
  padding: 0 2.5px 0 2.5px;
}

.feedcomments img,.feedtime img {
  margin-right: 2px;
}

.feedcomments {
  margin-left: auto;
}

.feedcontext {
  margin-left: 2.5px;
}

.feedpost {
  background: hsl(225,8%,40%);
  box-shadow: 0 0 15px 0 hsla(0,0%,0%,0.6);
  flex: 0 1 auto;
  padding: 5px 0;
}

.feedpostbubble, .feedpostbubble:hover, .feedpostbubble:active, .feedposttext {
  background: hsl(225,8%,8%);
}

.feedpostbubble:hover {
  cursor: auto;
}

.feedpostbubble:after, .feedpostbubble:hover:after, .feedpostbubble:active:after {
  border-right-color: hsl(225,8%,8%);
}

.feedposttext {
  font-family: "Montserrat",sans-serif;
  color: white;
  border: 0;
  width: 100%;
  border-radius: 0;
  resize: none;
  margin: 0;
  line-height: 21px;
  outline: none;
  overflow-y: auto;
  overflow-x: hidden;
  transition: height 0.5s;
  height: 21px;
}

.feedposttext:focus {
  height: 50px;
  transition: height 0.05s;
}

.feedpostsend {
  margin-left: 5px;
  background: hsl(225,8%,80%);
  width: 40px;
  transition: background 0.6s, width 0.6s, padding 0.6s;
}

.feedpostsend:hover {
  transition: background 0.2s, width 0.2s, padding 0.2s;
  background: hsl(225,8%,90%);
  cursor: pointer;
}

.feedpostsend:active {
  transition: background 0.05s, width 0.05s, padding 0.05s;
  background: hsl(225,8%,100%);
  width: 36px;
  padding: 2px;
}