@import '../../../core/src/style/variables';
@import '../../../core/src/style/mixins';

.upload-box {
  font-size: 1.2rem;
  height: 260px;
  background-color: $blue;
  position: relative;
  float: left;
  margin: 3px;  // To ensure visual focus
  @include col-width($col-narrow, 10px);

  @media (min-width: $wide-breakpoint) {
    @include col-width($col-wide, 10px);
  }
  @media (max-width: $desktop-breakpoint) {
    margin-top: 40%;
    width: 100%;
  }
  @media (max-width: $phablet-breakpoint) {
    margin-top: 60%;
    width: 100%;
  }

  &:hover {
    background-color: $button-hover-blue;

    .BomIcon--upload-arrow {
      color: $button-hover-blue;
    }
  }

  &--header {
    padding: 0.5em;
    width: 100%;
    background-color: $grey;
    text-align: center;

    span {
      text-transform: uppercase;
      font-weight: bold;
      color: $middarkergrey;
    }
  }

  &--formats {
    color: $white;
    margin-top: 20px;
    text-align: center;
    display: block;
    padding: 0 25px;
    font-weight: bold;
  }

  &--button {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    cursor: pointer;
    opacity: 0;
    z-index: 3;
  }
  .BomIcon--circle {
    background: $white;
    padding: 0;
  }

  .BomIcon--upload-arrow {
    width: 47px;
    height: 47px;
    line-height: 47px;
    font-size: 26px;
    color: $blue;
    text-align: center;
    display: block;
    margin: 0 auto 0;
  }

  .upload-warning {
    text-align: center;
    display: block;
    margin: 30px auto 20px;
    color: #fff;
  }

  &-drag-screen {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 9999;
    text-align: center;
    font-size: 45px;
    font-weight: bold;
    color: $middarkgrey;
    padding-top: 20%;

    &--show {
      display: block;
    }

    &--hide {
      display: none;
    }
  }
}
