:root {
  color-scheme: $color-scheme;
}

html {
  background: $base-1;
  font-family: sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: $base-0;
  font-size: 1rem;
  min-height: 100%;
}

::selection {
  background: $black;
  color: $white;
}

/* Style helpers */
.reset-after::after, .reset-before::before {
  content: none;
}

/* Menus */
.slide-menu {
  transform: translateX(-113%);
  transition-duration: .2s;
  transition-timing-function: cubic-bezier(0,0,.2,1);
}
.slide-menu.active {
  transform: translateX(0);
}
@include media-breakpoint-up(lg) {
  .slide-menu {
    transform: translateX(0);
  }
}

.sidebar .nav-link[aria-expanded=true] > .sidebar-expand svg {
  transform: rotate(180deg);
}

.sidebar .nav-link {
  padding: 0.75rem 1.25rem;
  color: $gray-800;
}

.sidebar .nav-link {
  border-right: 2px solid transparent;
}

.sidebar .nav-link:hover {
  background: rgba($primary, 5%);
}

.sidebar .nav-link:hover, .sidebar .nav-link:hover .sidebar-icon {
  color: $component-active-bg;
}

.sidebar .nav-link.active {
  color: $component-active-bg;
  background: rgba($primary, 10%);
  border-right: 2px solid $component-active-bg;
}

.sidebar .nav-link.active > .sidebar-icon {
  color: $component-active-bg;
}

.sidebar-icon {
  color: $gray-600;
}

.sidebar-footer {
  background: rgba($primary, 5%);
}

/* Cookie Banner */
.cookie-banner {
  background: $toast-background-color;
  box-shadow: $toast-box-shadow;
}

/* Icons */
.icon-x {
  background: rgba(white, 10%);
  color: white;
}
.icon-x:hover {
  background: rgba(white, 20%);
  color: white;
}

.icon-facebook {
  background: rgba(#0866ff, 10%);
  color: #0866ff;
}
.icon-facebook:hover {
  background: rgba(#0866ff, 20%);
  color: #0866ff;
}

.icon-reddit {
  background: rgba(#FF4500, 10%);
  color: #FF4500;
}
.icon-reddit:hover {
  background: rgba(#FF4500, 20%);
}

.icon-pinterest {
  background: rgba(#E60023, 10%);
  color: #E60023;
}
.icon-pinterest:hover {
  background: rgba(#E60023, 20%);
}

.icon-linkedin {
  background: #0077B5;
}
.icon-linkedin:hover {
  background: darken(#0077B5, 5%);
}

.icon-tumblr {
  background: #001935;
}
.icon-tumblr:hover {
  background: darken(#001935, 5%);
}

.icon-email {
  background: #6e6e6e;
}
.icon-email:hover {
  background: darken(#6e6e6e, 5%);
}

/* RTL Support */
[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] .sidebar .nav-link {
  border-left: 0;
  border-right: 2px solid transparent;
}

[dir="rtl"] .sidebar .nav-link.active {
  border-left: 0;
  border-right: 2px solid $component-active-bg;
}

/* Sidebar */
[dir="rtl"] .slide-menu {
  transform: translateX(113%);
}
[dir="rtl"] .slide-menu.active {
  transform: translateX(0);
}
@include media-breakpoint-up(lg) {
  [dir="rtl"] .slide-menu {
    transform: translateX(0);
  }
}