@import '~Breakpoints';
@import '~Colors';
@import '~Layout';
@import '~Type';
@import '~Zindex';

.container {
  @include container();
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding-top: 3rem;

}

.link {
  margin-top: 3.5rem;
  flex-basis: auto;
  display: block;
  position: relative;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  @include media-breakpoint-up(sm) {
    margin-left: 0;
    margin-right: 0;
    width: 47.5%;
  }
  padding: 0;
  &:hover {
    text-decoration: none;
    .thumbImgWrapper {
      box-shadow: 0 0 1rem black;
    }
  }
}

.thumbImgWrapper {
  width: 100%;
  height: 25rem;
  position: relative;
  overflow: hidden;
  transition: all .35s ease;
}

.img {
  min-width: 100%;
  min-height: 100%;
  max-width: 200%;
  max-height: 200%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.title {
  position: absolute;
  bottom: 0;
  width: 90%;
  color: white;
  text-transform: capitalize;
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: .2rem;
  margin-top: 1.5rem;
  z-index: 1;
  margin-bottom: 0;
  padding: 1.5rem 4rem 1.5rem 2em;
}

.lightbox {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: transparentize($gray-dark, .1);
  z-index: $zindex-modal;
  opacity: 0;
  display: none;
}

.contentWrapper {
  @include container-fluid();
  height: 100%;
  display: block;
  flex-direction: column;
  justify-content: space-between;
}

.row {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 85%;
  margin-top: 2rem;
  margin-bottom: 1rem;
  @include media-breakpoint-up(md) {
    height: 90%;
  }
  flex-wrap: wrap;
}

.imgWrapper {
  order: 1;
  flex-basis: auto;
  height: 90%;
  width: 100%;
  position: relative;
  @include media-breakpoint-up(md) {
    height: 100%;
    width: 90%;
    order: 2;
  }
}

.imgItem {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  //width: 100%;
  margin: 0 auto;
  &:not(:first-child) {
    opacity: 0;
  }
  max-height: 100%;
  max-width: 100%;

}

.arrow {
  position: relative;
  flex-basis: auto;
  width: 11rem;
  height: 10%;
  z-index: 3;
  background: transparent;
  display: block;
  cursor: pointer;
  border: none;
  padding: 0 .5rem;
  @include media-breakpoint-up(md) {
    width: 5%;
    height: 80%;
  }
  svg {
    fill: $brand-primary;
    max-height: 100%;
    width: 100%;
  }
  &:hover {
    svg {
      animation: burn .5s infinite alternate both ease;
    }
  }
}

.arrowLeft {
  composes: arrow;
  order: 2;
  @include media-breakpoint-up(md) {
    order: 1;
  }
  transform: rotate(180deg);
}

.arrowRight {
  order: 3;
  composes: arrow;
}

.indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  flex-wrap: wrap;
  width: 90%;
  padding: 0;
  @include media-breakpoint-up(md) {
    padding-top: 2rem;
  }
  height: 5%;
  margin: 0 auto;
}

.indicator {
  position: relative;
  height: 1rem;
  width: 1rem;
  padding: 1rem;
  cursor: pointer;
  z-index: 3;
  list-style-type: none;
  button {
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    padding: .5rem;
    border-radius: 50%;
    border: .1rem solid $brand-primary;
    background: rgba(255, 0, 0, .1);
  }
}

.bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.submit {
  width: 100%;
  margin-top: 10rem;
}

.submitTitle {
  background-color: $brand-primary;
  color: white;
  font-weight: 300;
  font-size: 2.5rem;
  letter-spacing: .2rem;
  margin: 0;
  @include media-breakpoint-up(md) {
    font-size: 4rem;
    display: inline-block;
  }
  padding: 2rem 4rem;

}

.inputs {
  display: flex;
  flex-direction: column;
  @include media-breakpoint-up(md) {
    flex-direction: row;
  }
}

.uploader {
  background-color: white;
  color: $gray-light;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 300;
  padding: 8rem 1rem 2rem;
}

.submitDetails {
  padding: 4rem;
  background-color: $gray-light;
  flex-grow: 1;
}

.detailHeadline {
  color: $brand-primary;
  font-weight: 300;
  font-size: 2rem;
}

.submitDropdown {
  background-color: white;
  border: 0.1rem solid #d9d9d9;
  height: 5rem;
  overflow: hidden;
  position: relative;
  max-width: 40rem;

  &:after {
    content: '';
    height: 1rem;
    width: 1rem;
    border-width: .5rem;
    border-style: solid;
    border-top-color: transparent;
    border-left-color: transparent;
    transform: rotate(45deg) translateY(-50%);
    border-bottom-color: $gray-dark;
    border-right-color: $gray-dark;
    position: absolute;
    right: 1.5rem;
    top: 40%;
  }
  select {
    -webkit-appearance: none;
    color: #737373;
    border: none;
    background-color: transparent;
    height: 100%;
    width: 120%;
    position: absolute;
    top: 0;
    left: 0;
    padding-left: 2rem;
  }
}

.anotherButton {
  cursor: pointer;
  width: 100%;
  background-color: $gray;
  border: none;
  text-transform: uppercase;
  color: white;
  line-height: 3;
  font-size: 1.6rem;
  font-weight: 300;
  transform-origin: center top;
  &:active {
    transform: scale(.99, .99)
  }
}
