/*******************************/
/*   BASICS                    */
/*******************************/
body{
    font-family:Roboto, sans-serif;
    margin:0;
    padding: 0;
    height: auto;
    width: 100%;
    overflow-x: hidden;
    line-height: normal;
}

*,
*:before,
*:after{
    box-sizing :border-box;
}

*{
    -webkit-overflow-scrolling: touch;
}

p{
    padding:0;
    margin:0;
}
a{
    color: inherit;
    text-decoration: none;
    cursor:pointer;
}
img{
    max-width: 100%;
}


/*******************************/
/*   LAYOUT                    */
/*******************************/


/***************/
/* HEADER AREA */
/***************/
.header{
    position: fixed;
    width: 100%;
    /*background: #CE3E0C;*/
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    padding: 0 30px;
    background: white;
}


/*  Brand   */
.brand{
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.brand-logo{
    position: relative;
    width: 222px;
}
.brand-logo svg{
    width: 200px;
}
.brand-baseline{
    color: #1d1d1c;
    font-weight: 300;
    font-size: 13px;
    position: relative;
    padding-left: 15px;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.brand-baseline:before{
    content: "";
    display: block;
    position: absolute;
    left: 0;
    height: 38px;
    width: 1px;
    background: #979797;
}


/***************/
/* MAIN    */
/***************/

.main{
    position: relative;
    width: 100%;
    min-height: calc(100vh - 70px);
    padding: 30px;
    top:70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.35s ease-in;
}
.main-container{
  position: relative;
  max-width: 560px;
}

/***************/
/* INTRO    */
/***************/
.introArea{
  text-align: center;
}
.introArea-title{
  font-size: 40px;
  font-weight: 900;
  margin: 10px auto 25px;
  max-width: 500px;
}
.introArea-description strong{
  font-weight: 600;
}
.introArea-image{
  width: 115px;
}

/***************/
/* INPUT AREA    */
/***************/
.inputArea{
  margin: 40px 0;
  text-align: center;
}
.inputArea-field{
  width: 100%;
  max-width: 350px;
  margin: auto;
}
.inputArea-label{
  font-size: 12px;
  opacity: 0.5;
  margin: 20px auto;
}

.inputArea-button{
  display: block;
  font-size: 13px;
  background: #ef6446;
  margin: 25px auto 0;
  border: 0;
  outline: none;
  padding: 15px 30px;
  color: white;
  font-weight: 900;
  cursor: pointer;
}

#inputError{
  color : red;
  font-weight: 900;
  font-size: 12px;
  margin-top: 10px;
  visibility: hidden;
}


/***************/
/* DATE FIELD   */
/***************/

.dateField {
  display : flex;
  align-items: center;
  justify-content: flex-start;
  font-size : 23px;
  padding : 5px;
  background: #f3f3f3;
  border-radius: 10px;
}

.dateField-separator{
  display: block;
  width: 1px;
  background: #c5c4c4;
  height: 25px;
  position: relative;
  transform-origin: 50% 50%;
  transform: rotate(20deg);
}

.dateField input{
  background: inherit;
  border : 0;
  outline : none;
  display : inline-block;
  padding: 8px;
  font-family : inherit;
  font-size : 20px;
  text-align: center;
  width: 100px;
  width: 100%;
  font-weight: 900;
}

/* Remove default style for number input */
.dateField input::-webkit-outer-spin-button,
.dateField input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.dateField input[type=number] {
  -moz-appearance: textfield;
}

/***************/
/* POP UP   */
/***************/
.popUp{
  position: fixed;
  width:100%;
  height: 100vh;
  left:0;
  top:0;
  z-index: 9;
  display: none;
}
.popUp-overlay{
  position: absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background: rgba(51, 51, 51, 0.6);
  opacity: 0;
  transition: all 0.3s;
}
.popUp-content{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.popUp-card{
  background: white;
  border-radius: 20px;
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.25);
  width: 300px;
  max-width: 100%;
  padding: 20px;
  max-height: 100%;
  height: 430px;
  margin-top: 15vh;
  transform: translate(0, 75vh);
  transition: all 0.3s cubic-bezier(.58,.01,.19,1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  pointer-events: all;
}

.popUp.isOpen .popUp-overlay{
  opacity: 1;
}

.popUp.isOpen .popUp-card{
  transform: translate(0, 0vh);
}

.popUp-closeButton{
  outline: none;
  font-size: 13px;
  background: #fff;
  padding: 10px 15px;
  cursor: pointer;
  border : solid 1px #ef6446;
  color: #ef6446;
  transform: scale(1);
  transition: all 0.2s;
}


/***************/
/* RESULT AREA   */
/***************/
.resultArea{
  text-align: center;
}
.resultArea-reminder{
  font-size: 12px;
  color: #545353;
}
.resultArea-date{
  font-size: 20px;
  color: #ef6446;
  font-weight: 900;
  margin-bottom: 25px;
}
.resultArea-text{
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 10px;
}


/***************/
/* FOOTER AREA   */
/***************/
.footerArea{
  font-size: 11px;
  text-align: center;
}
.footerArea p {
  margin-bottom: 10px;
  opacity: 0.5;
}


/*/_____________________________________/*/
/*/          RESPONSIVE PART            /*/

@media screen and (max-width: 1000px) {
    .header{
      padding: 0 20px;
    }
  .main{
    padding: 20px;
    padding-top: 6vh;
  }
}

/***************/
/* Medium device : tablet   */
/***************/
@media screen and (max-width: 850px) {

}


/***************/
/* Small device : phone   */
/***************/
@media screen and (max-width: 600px) {

    .brand-logo:after{
        display: none;
    }
    .brand-baseline{
        position: absolute;
        left: 20px;
        top: 73%;
        padding: 0;
        margin: 0;
    }
    .brand-baseline:before{
        display: none;
    }

    .main-container{
      max-width: 300px;
    }

    .introArea-title{
      font-size: 20px;
      line-height: 1.2;
    }

    .introArea-description{
      font-size: 12px;
    }

    .introArea-image {
      width: 80px;
    }

    .inputArea-label{
      font-size: 10px;
      margin: 12px auto;
    }

    .inputArea-button{
      font-size: 12px;
      margin: 20px auto 0;
    }

    .dateField input{
      font-size: 16px;
    }

    .popUp-content{
      padding: 30px;
    }
    .popUp-card{
      margin-top: 0;
    }
    .popUp-overlay{
      background: rgba(51, 51, 51, 0.85);
    }

}


/***************/
/* Very Small height device : old phone   */
/***************/
@media screen and (max-width: 350px) {

  .introArea-title{
    font-size: 20px;
    line-height: 1.2;
  }

  .introArea-description{
    font-size: 11px;
  }

  .introArea-image {
    width: 65px;
  }

  .popUp-card{
    max-height: 70vh;
  }

  .inputArea {
    margin: 30px 0;
  }

}


/***************/
/* small device large height  */
/***************/
@media screen and (min-height: 800px) {
    body.Mobile.Safari .main{
        padding-bottom: 92px;
    }
}


