@import './variables.scss';

.content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.text {
  font-family: 'Roboto', 'sans-serif';
}

.link {
  text-decoration: none;
  border-bottom: 2px solid $primary;
  transition: all 0.25s linear;
  position: relative;
  color: $text;
}

.link:before {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  position: absolute;
  left: 0;
  bottom: -2px; /* this is to match where the border is */
  transform-origin: left;
  transform: scale(0);
  transition: 0.25s linear;
  /*   will-change: transform; */
}

.link:hover:before {
  transform: scale(1);
}
.link:hover {
  color: $primary;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.onHoverLink {
  display: inline;
  color: $text;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.25s linear;
  position: relative;
  // border-bottom: 1px solid;
}

.onHoverLink:before {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background-color: $primary;
  position: absolute;
  left: 0;
  bottom: -2px;
  transform-origin: left;
  transform: scale(0);
  transition: 0.25s linear;
}

.onHoverLinkContainer:hover .onHoverLink:before {
  transform: scale(1);
}
.onHoverLinkContainer:hover .onHoverLink {
  color: $primary;
}

@mixin styledScrollBar {
  &::-webkit-scrollbar {
    width: 0.5em;
    height: 0.5em;
  }
  &::-webkit-scrollbar-track {
    background-color: rgba($color: #000000, $alpha: 0.1);
    border-radius: 30px;
  }
  &::-webkit-scrollbar-thumb {
    background-color: #888;
    outline: none;
    border-radius: 30px;
  }
  &::-webkit-scrollbar-thumb:hover {
    background-color: #666;
  }
  &::-webkit-scrollbar-thumb:active {
    background-color: #333;
  }
}

@mixin paper {
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.04), 0 0 10px 3px rgba(0, 0, 0, 0.05);
  background-color: #fff;
  border-radius: 5px;
}

.paper {
  @include paper;
}

@mixin paperElevated {
  box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.05), 0 0 20px 4px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  border-radius: 5px;
}

@mixin bckgrCover {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@mixin bckgrContain {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

@mixin icon {
  @include bckgrContain;
  width: 24px;
  height: 24px;
}

@media screen and (max-width: $mobileBreakpoint) {
  .onHoverLink:before {
    transform: scale(1);
  }
  .onHoverLink {
    color: $primary;
  }
}

.notFound {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 400px;
  font-size: 30px;
}
