@media only screen and (max-width: 575px) {
  #cover .timer .days,
  #cover .timer .hours,
  #cover .timer .mins,
  #cover .timer .secs {
    width: 150px;
    display: inline-block;
    margin-left: 6px;
    text-align: center;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.5);
  }

  #login_page .captcha_wrapper {
    padding: 0;
    max-width: unset;
  }

  #partners div.row div a {
    margin: 0 auto;
    height: 80vh;
    width: 80vw;
  }
  #buy_now a.btn {
    display: block;
    background: #0980ff;
    color: #fff;
    width: 100%;
    height: 12vh;
    font-size: 18px;
    padding: 17px;
    margin: 0 auto;
  }
  #information div.container-fluid div.row div h2 {
    font-weight: 700;
    font-size: 37px;
    text-align: center;
  }
  #information div.container-fluid div.row div p {
    font-weight: 200;
    font-size: 28px;
    text-align: center;
  }
  #information .image {
    height: 100vw;
    width: 100vw;
  }
  footer p {
    font-size: 12px;
  }
}

@media only screen and (max-width: 350px) {
  /*Mini phones*/
  header div.header_text_row p {
    font-size: 25px;
  }
  #leaflet p.download {
    font-size: 16px;
  }
  header div.header_num_wrapper p {
    font-size: 30px;
  }
  #direct_patient .coloum_aligned_left {
    padding-right: 0px !important;
  }
}

@media only screen and (min-width: 517px) and (max-width: 600px){
 .page_wrapper{
    margin-top: 11%;
 }
}


@media only screen and (max-width: 450px) {
  #register_page form button, #direct_patient form button {
    width: 70%;
  }

  #direct_patient form button {
    font-size: 22px;
  }

  #register_page .dr_type_wrapper {
    padding: 0 !important;
  }

  /*   #main_page div.row{
    display: inline-block;
  } */
}

@media only screen and (max-width: 350px) {
  #register_page .generic_input {
    font-size: 18px;
  }

  #direct_patient button {
    font-size: 18px;
  }
}

@media only screen and (max-width: 767px) and (min-width: 576px) {
  #cover .timer .days,
  #cover .timer .hours,
  #cover .timer .mins,
  #cover .timer .secs {
    width: 150px;
    display: inline-block;
    margin-left: 6px;
    text-align: center;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.5);
  }

  #partners div.row div a {
    margin: 0 auto;
    height: 80vh;
    width: 80vw;
  }
  #buy_now a.btn {
    display: block;
    background: #0980ff;
    color: #fff;
    width: 100%;
    height: 12vh;
    font-size: 18px;
    padding: 17px;
    margin: 0 auto;
  }
  #information div.container-fluid div.row div h2 {
    font-weight: 700;
    font-size: 37px;
    text-align: center;
  }
  #information div.container-fluid div.row div p {
    font-weight: 200;
    font-size: 28px;
    text-align: center;
  }
  #information .image {
    height: 100vw;
    width: 100vw;
  }
  #information .buffer {
    display: block;
  }
  footer p {
    font-size: 12px;
  }
}

@media only screen and (min-width: 650px) {
  .logo {
    width: 80%;
  }

  #main_page .logo {
    /* width: 50%; */
    margin: 0 auto;
  }

  footer .logo:nth-child(1) {
    width: 50%;
    margin: 0;
  }

  #register_page {
    margin: 0;
  }

  #assafmedia_logo {
    width: 100%;
  }

  .page_container {
    /* overflow-y: hidden; */
  }
}


@media (min-width: 801px) {
  /*Tablets Desktops And anything thats not a mobile really*/
  body {
    overflow: hidden;
  }
  .jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-title {
    line-height: normal;
  }
  div.container {
    max-width: 680px;
  }

  footer div.footer_container {
    left: calc((100vw - 680px) / 2);
  }
}
@media only screen and (max-device-height: 1023px) and (max-device-width: 850px) and (orientation: landscape) {
  div.container.header_container img {
    max-width: 100px;
  }
  header div.header_text_row p {
    font-size: 32px;
  }
  body {
    overflow: hidden;
    -webkit-overflow-scrolling: auto;
  }
  #login_page,
  #direct_patient,
  #contact_representative,
  #register_page,
  #leaflet,
  #representative,
  #main_page {
    height: calc(100% - 125px) !important;
    -webkit-overflow-scrolling: touch;
  }
  #splash_screen div.page_container {
    margin: 0;
    padding-top: 20px;
    padding-top: 20px;
  }
  #splash_screen div.logo_row.row img {
    max-width: 100%;
    display: block;
    width: auto;
    max-height: 100px;
    margin: 0px auto;
  }
  .footer_container {
    display: none !important;
  }
  #splash_screen {
    background-position: center;
  }
  header {
    padding: 0;
  }
}

@media only screen and (max-width: 1199px) and (min-width: 768px) {
  #cover .timer .days,
  #cover .timer .hours,
  #cover .timer .mins,
  #cover .timer .secs {
    width: 150px;
    display: inline-block;
    margin-left: 6px;
    text-align: center;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.5);
  }
  #partners div.row div a {
    margin: 0 auto;
    height: 80vh;
    width: 80vw;
  }
  #information .buffer {
    display: block;
  }
}

@media only screen and (max-width: 650px) and (min-width: 500px) {
  /* #main_page {
    margin: 0;
    height: calc(85% - 60px - 100px);
  } */

  footer .logo:nth-child(1) {
    width: 70%;
    margin: 0 0 auto 0;
  }
}

@media only screen and (min-width: 650px) {
  .logo {
    width: 80%;
  }

  /* #main_page .logo {
    width: 50%;
    margin: 0 auto 0 0;
  } */

  footer .logo:nth-child(1) {
    width: 50%;
    margin: 0;
  }

  #register_page {
    margin: 0;
  }

  #assafmedia_logo {
    width: 100%;
  }

  /* .page_container {
    overflow-y: hidden;
  } */
}

@media only screen and (max-width: 650px) {
  #assafmedia_logo {
    width: 85%;
  }
}

@media (min-width: 801px) {
  /*Tablets Desktops And anything thats not a mobile really*/
  body {
    overflow: hidden;
  }
  .jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-title {
    line-height: normal;
  }
  #splash_screen, #splash_screen.splash2 {
    background-image: url(../images/splash_background_desktop2.jpg);
    /* background: linear-gradient(to bottom, #A9F0FF, #00446F); */
  }
}
@media only screen and (max-device-height: 1023px) and (max-device-width: 767px) and (orientation: landscape) {
  div.container.header_container img {
    max-width: 100px;
  }

  body {
    overflow: hidden;
    -webkit-overflow-scrolling: auto;
  }
  #login_page,
  #direct_patient,
  #contact_representative,
  #register_page,
  #leaflet,
  #representative,
  #main_page {
    height: calc(100% - 100px - 30px) !important;
    -webkit-overflow-scrolling: touch;
  }
  #splash_screen div.page_container {
    margin: 0;
    padding-top: 20px;
    padding-top: 20px;
  }
  #splash_screen div.logo_row.row img {
    max-width: 100%;
    display: block;
    width: auto;
    max-height: 100px;
    margin: 0px auto;
  }
  .footer_container {
    display: none !important;
  }
  #splash_screen {
    background-position: center;
  }
}

@media (min-width: 1025px) {
  /* big landscape tablets, laptops, and desktops */
  section {
    overflow: hidden;
  }
  header div.header_text_row p {
    font-size: 48px;
  }
  header div.header_num_wrapper p {
    font-size: 55px;
  }
  header div.header_icons_logo_wrapper img {
    max-height: 50px;
  }
  header {
    max-height: none;
  }
  #leaflet p.download,
  #main_page p.download {
    font-size: 28px;
  }

  .page_wrapper {
    height: auto;
  }
}


/* 
IDK what all of the above stuff does with all the max and min pixels 
but from here we're gonna work with aspect ratio like God intended.
*/



@media only screen and (min-aspect-ratio: 55/100) and (max-aspect-ratio: 85/100) {
    
  .somatuline_logo_wrapper{
    margin: 7vh 0;
  }
/* 
  #main_page{
    overflow: hidden;
    display: block;
    max-height: 37%;
    width: 73vw;
    margin-top: -7vh;
  } */
  /* #main_page .action_rows{
    height: fit-content;
    max-height: 10vh;
  }

  #main_page .page_container {
    overflow-y: hidden;
  } */

  #register_page{
    margin-top: -6vh;
  }
}

@media only screen and (min-aspect-ratio: 68/100) and (max-aspect-ratio: 100/100) {
  /* #main_page{
    overflow: hidden;
    margin: -7vh auto;
    max-height: 41%;
  } */

}


@media only screen and (min-aspect-ratio: 1/1) {
  /* #main_page{
    width: fit-content;
    margin: -7vh auto;
  }
  #main_page .action_rows{
    height: fit-content;
  }
  
  #main_page .logo{
    width: 100%;
  } */

}


@media only screen and (min-aspect-ratio: 19/10) {
  .somatuline_logo_wrapper{
    margin: 7vh 0;
  }
  .logo{
    width: 69%;
  }

}

@media only screen and (min-aspect-ratio: 70/100) and (max-aspect-ratio: 100/100) {
  #splash_screen{
    background-position: top;
  }

}

body.phoneLandscape{
  overflow-y: scroll;
  height: 100vh !important;
}


body.phoneLandscape section{
  height: auto;
}


body.phoneLandscape footer{
  position: relative;
  margin-top: 17vh;
}