@keyframes loading{
  0%  { content: ''}
  25%  { content: '.'}
  50%  { content: '..'}
  75%  { content: '...'}
}

@keyframes loadingLine{
  0%{
    width: 0;
  }
  70% {
    width: 80%;
  }
  90% {
    width: 80%;
  }
  100%{
    width: 99%;
  }
}

.loader{
  left: 0;
  top: 0;
  position: fixed;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  &:before{
    content: '';
    opacity: 0.06;
    position: absolute;
    top:10%;
    left: 10%;
    width: 80%;
    height:80%;
    background-image: url("../images/map.png");
    background-position: center;
    background-repeat:no-repeat;
    background-size:contain;
  }
  div.content{
    text-align: center;
    .logo-image{
      max-width: 180px;
    }
    p.loading{
      color: #fff;
      text-align: center;
      text-shadow: 0 0 1px #000;
      position: relative;
      span{
        position: relative;
        display: inline-block;
        &:after{
          content: '';
          display: block;
          position: absolute;
          left: 100%;
          bottom: 0;
          animation: loading 2s linear infinite;
        }
      }
    }
    div.line{
      background-color: #4a4a51;
      width: 240px;
      height: 2px;
      margin: 20px auto;
      position: relative;
      &:after{
        content: '';
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 50%;
        background-image: linear-gradient(to right, #1e8cff, #1e8cff);
        animation: loadingLine 2s linear forwards;
      }
    }
    img.logo-for-light{
      display: none;
    }
    img.logo-for-dark{
      display: inline-block;
    }
  }
}

.theme-light{
  .loader{
    div.content{
      p.loading{
        color: #000;
        text-shadow: 0 0 1px #afafaf;
      }
      img.logo-for-light{
        display: inline-block;
      }
      img.logo-for-dark{
        display: none;
      }
    }
  }
}

.example-enter {
  opacity: 0.01;
}

.example-enter.example-enter-active {
  opacity: 1;
  transition: opacity 500ms ease-in;
}

.example-leave {
  opacity: 1;
}

.example-leave.example-leave-active {
  opacity: 0.01;
  transition: opacity 300ms ease-in;
}

