%basic-block {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

%hide-text {
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
}

%unselectable {
  user-select: none;
}

%vertical-align {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

%horizontal-align {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

%vertical-horizontal-align {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

%absolute-center {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

%fill-background {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

%contain-background {
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

%basic-list {
  @extend %basic-block;

  padding: 0;
  margin: 0;
  list-style: none;
}

%block-input {
  color: -color(gray-dark);
  font-size: 1.6rem;
  border: 1px solid -color(gray-dark);
  padding: 1rem 1.6rem;
  line-height: 1;
  vertical-align: middle;
  width: 100%;

  &::-webkit-input-placeholder {
    font-size: 1.6rem;
    line-height: 1.25;
    vertical-align: middle;
  }
}

%backdrop {
  content: "";
  display: block;
  position: absolute;
  height: 100%;
  width: 999em;
}

%basic-border {
  content: "";
  display: block;
  height: 0.1rem;
  width: calc(100% + 30px);
  margin-left: -15px;
  background-color: -color(gray-xlight);
}

%basic-link {
  text-decoration: none;
  color: -color(gray-dark);

  &:hover,
  &:focus {
    color: -color(black);
  }

  &:focus {
    outline: 0 auto;
  }
}

%underline-link {
  @extend %basic-link;

  position: relative;
  display: inline-block;
  white-space: nowrap;

  &:after {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 0.1rem;
    left: 0;
    bottom: 0.1rem;
    background-color: -color(gray-light);
  }

  &:hover {
    &:after {
      background-color: -color(gray);
    }
  }
}

%break-link {
  @extend %basic-link;

  position: relative;
  display: inline;
  word-break: break-all;
  word-wrap: break-word;
  border-bottom: 1px solid -color(gray-light);

  &:hover {
    border-color: -color(gray);
  }
}

%block-link {
  @extend %basic-block;

  cursor: pointer;

  a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 1.6rem 1.6rem;
    text-align: center;
    border: 0.1rem solid -color(gray-dark);
    font-size: 1.6rem;
    line-height: 1.2rem;

    &:hover {
      color: -color(black);
      border-color: -color(black);
    }
  }
}
