@import './font';
@import './animations';
@import '../../components/settings/settings.style.scss';

* {
  user-select: none;
  cursor: default;
  font-family: 'Hind Guntur';
  box-sizing: border-box;
  outline: none;
  -webkit-user-drag: none;
}

a, button {
  cursor: pointer;
}

input {
  cursor: text;
}

input[type=text] {
  outline: none;
  border: none;
  padding: 0.5em;
  font-size: 1em;
  background: transparent;

  &:hover {
    background: rgba(255, 255, 255, 0.5);
  }

  &:focus {
    background: rgba(255, 255, 255, 0.9);
  }
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  background: linear-gradient(to bottom, #e4ffe0, white);
  background: linear-gradient(to bottom, #e4ffe0, #eeffeb);
  background-size: 100%;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

#app {
  height: 100%;
}

.require-api-key {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;

  font-weight: 100;

  background: linear-gradient(to bottom, #c5f7ff, white);
  background: linear-gradient(to bottom, #c5f7ff, #cdf8ff);
  background-size: 100%;
  background-repeat: no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  z-index: 1;

  font-size: 1.25em;
  text-align: center;

  .get-api-key {
    font-size: 14px;
    opacity: 0.75;
    position: absolute;
    bottom: 1em;
    left: 50%;
    transform: translateX(-50%);
  }

  svg {
    width: 64px;
    height: 64px;
  }

  p {
    margin: 0.15em;
  }

  input {
    margin: 0.15em;
    width: 100%;
    font-family: monospace;
    text-align: center;
  }

  button {
    background: #64de64;
    border: none;
    color: white;
    font-size: 0.75em;
    font-family: inherit;
    padding: 0.5em;
    padding-bottom: 4px;
    width: 100px;
    position: absolute;
    bottom: 1em;
    left: 50%;
    transform: translateX(-50%);
    animation: done-slide-in 0.2s forwards;

    &:hover {
      background: #4bac4b;
    }
  }
}

.toolbar {
  height: 54px;
  background: rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: relative;
  padding: 0 3em;

  .add-images {
    border-radius: 50%;
    position: relative;
    width: 65px;
    height: 65px;
    background: #0fd5f5;
    top: -25px;

    &:hover {
      background: #01ADE4;

      svg {
        color: white;
      }
    }

    cursor: pointer;

    * {
      cursor: pointer;
      margin: 0 !important;
    }

    svg {
      opacity: 0.75;
      color: white;
      width: 30px;
      height: 30px;
    }

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

  a {
    display: inline-flex;
    align-items: center;
    align-content: center;

    text-decoration: none;
    text-transform: uppercase;
    color: rgba(0,0,0,0.5);

    * {
      cursor: pointer;
    }

    &:hover {
      color: #01ADE4;
    }
  }

  span {
    margin-left: 0.5em;
    padding-top: 3px;
  }
}

.drag-drop {
  flex: 1;
  display: flex;
  height: calc(100% - 54px);
  justify-content: center;
  align-content: center;
  align-items: center;
  opacity: 0.3;
  transition: opacity 0.4s;

  &:hover {
    opacity: 0.5;
  }

  p {
    display: inline-flex;
    align-items: center;
    align-content: center;
  }

  svg {
    margin-right: 0.5em;
  }

  span {
    padding-top: 4px;
  }
}

.image-list {
  flex: 1;
  overflow-y: scroll;
  height: calc(100% - 54px);

  ul {
    list-style-type: none;
    margin: 0;
    padding: 0;

    li {
      padding: 0.5em;
      transition: background-color 0.2s;
      cursor: pointer;
      display: flex;
      align-items: center;
      align-content: center;

      svg {
        margin-right: 0.5em;
      }

      .feather-x-circle {
        stroke: #ff3535;
      }

      .feather-check-circle {
        stroke: #009e00;
      }

      .feather-loader {
        stroke: #ffa400;
        animation: spin 4s linear infinite;
      }

      span {
        padding-top: 4px;
      }

      * {
        cursor: pointer;
      }

      &:hover {
        background-color: rgba(0,0,0,0.05);
      }
    }
  }
}

.drag {
  cursor: copy;
  background-color: rgba(0,0,0,0.25);
}
