@require './Layout.styl';

.PressInput {
  background: #eaeaea;
  border-color: #bdbdbd;
  height: 45px;
  font-size: 15px;
  width: 100%;
  font-family: Lora;
  font-style: italic;
}

.PressList {
  margin-top: 50px;
}

.PressItem {
  position: relative
  width: 180px;
  height: 180px;
  display: inline-block;
  vertical-align: top;
  margin: 0 10px 10px 0;
  border: 1px solid #777;
  background: #fff;

  &Bg {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
  }

  &Link {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 1px solid #777;
    bottom: -1px;
    right: -1px;
    box-sizing: border-box;
    padding: 0px 3px;
    cursor: pointer;
  }
}

.TitleLink {
  cursor: pointer;
}

.RequestForm {
  position: relative;
  padding: 16px;
  box-sizing: border-box;
  cursor: pointer;

  &Close {
    position: absolute;
    top: 0;
    right: -36px;
  }
}

.FormRow {
  margin: 0 0 8px;
}

.FormSubmit {
  font-family: Lora;
  font-size: 16px;
  color: #bdbdbd;
  letter-spacing: 2px;

  border: none;
  cursor: pointer;
  text-decoration: underline;

  &:hover {
    border: none;
    background: none;
    color: #bdbdbd;
  }
}

.Sended {
  color: #00f;
  opacity: 0;
  transition: opacity .4s;
  padding: 0 0 0 16px;
  font-size: 13px;

  &Show {
    opacity: 1;
  }
}

@media only screen  and (min-device-width : 320px)  and (max-device-width : 568px) and (orientation:portrait){

  .Nav {
    width: 55vw;
    margin: 4vh auto;
    padding: 16px 0;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;

    &Wrap {
      position: absolute;
      background: #fff;
      z-index: 20;
    }

    &ActiveItem {
      border-bottom: none;
      font-size: 5vw;
    }

    &Item {
      height: 0;
      font-size: 4vw;
      visibility: hidden;
      padding: 0;
      background: #fff;


      &Show {
        height: auto;
        visibility: visible;

        &:first-of-type {
          margin-top: 4vh;
        }
      }
    }

    &Part {
      width: 50%;
      text-align: center;
      position: relative;
      height: 4vh;
    }
  }
}


@media only screen  and (min-device-width : 320px)  and (max-device-width : 568px) and (orientation:portrait){
  .PressList {
    text-align: center;
  }

  .PressItem {
    width: 43.5vw;
    height: 42vw;
  }
}
