// -----------------------------------------------------------------------------
// This file contains all styles related to the device splashscreen component.
// -----------------------------------------------------------------------------

.c-deviceSplash {
  position: absolute 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: $dark-blue;

  &__inner {
    max-width: 350px;
    width: 100%;
  }

  &__message {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid $white-10;
    line-height: 1.5em;
  }

  &__deviceName {
    display: block;
    margin: 10px 0;
    color: $accent-color;
    font-weight: $font-weight-bold;
    font-size: 1.3em;
  }
}

.c-connectMenu {
  &__image {
    margin: auto auto 3em;
    max-width: 200px;
  }

  &__item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 2em;

    &.is-highlighted {
      color: $accent-color;

      .c-connectMenu__iconScreen {
        border: 2px solid $accent-color;
      }

      .c-connectMenu__iconKeyboard {
        background-color: $accent-color;
      }
    }
  }

  &__itemArrow {
    position: absolute;
    right: -20px;
    font-size: 2em;
    animation: arrowAnimation 2s ease-in-out infinite alternate;
  }

  &__itemIcon {
    margin-right: 2em;
    width: 60px;
  }

  &__iconScreen {
    margin: auto;
    width: 80%;
    height: 35px;
    border: 2px solid $white;
    border-radius: 3px;
  }

  &__iconKeyboard {
    margin-top: 10px;
    width: 100%;
    height: 2px;
    background-color: $white;
  }

  &__itemTitle {
    margin: 0;
    letter-spacing: 2px;
    font-weight: $font-weight-bold;
  }

  &__itemSubtitle {
    margin: 5px 0 0;
    opacity: 0.7;
  }
}

@keyframes arrowAnimation {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-20px);
  }
}
