/* ----------- GENERIC SETTINGS ------------- */
/* Landscape */
@media screen and (max-width: 900px) {
  .title-area {
    height: 6rem;
  }
  .calendar {
    padding-left: 5px;
  }
  /* ---- general grid settings ---- */
  .grid {
    max-width: 270px;
  }
  .gutter-width {
    width: 0.5%;
  }
  .grid-item {
    margin-bottom: 0.5%;
    border: 2px solid var(--main-bg-color);
  }
  .grid1--h1 {
    height: 90px;
  }
  .grid1--h2 {
    height: 112px;
  }
  .logo img {
    width: 80px;
    height: 80px;
  }
  .logo-extras {
    padding-top: 15px;
  }
  .player {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .player .img {
    width: 40px;
    height: 40px;
  }
  .day-title {
    font-size: 95%;
  }
  .popup-title {
    padding-top: 20px;
  }
  .popup-content {
    font-size: 50%;
    line-height: 100%;
  }
  .story {
    padding-bottom: 8px;
  }
  .activity {
    padding-bottom: 20px;
  }
  .bible-verse {
    padding-bottom: 8px;
  }
  .silence {
    font-size: 170%;
  }
}
/* Portrait */
@media screen and (orientation: portrait) {
  /*    .day-loop(@i) when (@i > 0) {

        .popup.day-@{i} {
            background-image: url("../images/popup/@{i}-gun-v.png");
        }

        .day-loop(@i - 1);
    }

    .day-loop(10);*/
  .popup {
    background-image: url("../images/popup/popup-bg-vertical.png");
  }
  .notyet {
    width: 70%;
  }
}
/* Portrait */
@media screen and (max-height: 900px) and (orientation: portrait) {
  .container {
    height: 95%;
  }
  .title-area {
    width: 100%;
    height: 22%;
    float: none;
    margin: auto;
    margin-bottom: 1rem;
  }
  .title-area .title {
    width: 70%;
    height: 58%;
  }
  .tr .title-area .title {
    background-image: url(../images/title-vertical-tr.png);
    background-size: contain;
  }
  .en .title-area .title {
    background-image: url(../images/title-vertical-en.png);
  }
  .title-area .start-button {
    width: 12%;
    margin-top: 0.3rem;
  }
  .calendar {
    width: 95%;
    float: none;
    margin: auto;
    margin-bottom: 2rem;
  }
  .grid {
    max-width: 270px;
  }
  .grid1--h1 {
    height: 90px;
  }
  .grid1--h2 {
    height: 123px;
  }
  .logo-area {
    float: none;
    margin: auto;
    width: 100%;
  }
  .logo img {
    width: 4rem;
    height: 4rem;
  }
  .logo-extras {
    display: flex;
    width: 100%;
    margin: auto;
    padding-top: 10px;
    position: absolute;
    bottom: 0;
  }
  .logo-extras > div {
    flex: 1;
    /*grow*/
  }
  .player,
  .langchange,
  .fbshare_but {
    padding-top: 10px;
  }
  .popup-title {
    position: unset;
    margin: auto;
    padding-top: 60px;
  }
  .popup-content {
    position: unset;
    height: 60%;
    left: 0%;
    right: 0%;
    margin: auto;
    padding-top: 0px;
    font-size: 60%;
  }
  .activity {
    padding-bottom: 70px;
  }
}
/* ----------- Large Landscape Screens ----------- */
@media screen and (max-width: 1400px) and (min-height: 650px) and (orientation: landscape) {
  .title-area {
    height: 12rem;
  }
  .calendar {
    padding-left: 10px;
  }
  .grid {
    max-width: 390px;
  }
  .gutter-width {
    width: 0.5%;
  }
  .grid-item {
    margin-bottom: 0.5%;
    border: 2px solid var(--main-bg-color);
  }
  .grid1--h1 {
    height: 130px;
  }
  .grid1--h2 {
    height: 183px;
  }
  .logo img {
    width: 120px;
    height: 120px;
  }
  .day-title {
    font-size: 170%;
  }
  .popup-content {
    font-size: 90%;
  }
  .activity {
    padding-bottom: 50px;
  }
}
/* ----------- Large Portrait Screens ----------- */
@media screen and (max-width: 1050px) and (min-height: 812px) and (orientation: portrait) {
  .container {
    height: 95%;
  }
  .title-area {
    width: 100%;
    height: 25%;
    float: none;
    margin: auto;
    margin-bottom: 20px;
  }
  .tr .title-area .title {
    background-image: url(../images/title-vertical-tr.png);
    background-size: contain;
  }
  .en .title-area .title {
    background-image: url(../images/title-vertical-en.png);
  }
  .title-area .title {
    width: 60%;
    height: 50%;
  }
  .title-area .start-button {
    width: 9%;
    margin-top: 4px;
  }
  .calendar {
    width: 95%;
    float: none;
    padding-left: 0px;
    margin: auto;
    margin-bottom: 20px;
  }
  .grid {
    max-width: 330px;
  }
  .grid1--h1 {
    height: 110px;
  }
  .grid1--h2 {
    height: 142px;
  }
  .logo-area {
    float: none;
    margin: auto;
    width: 100%;
  }
  .logo {
    float: none;
    margin: auto;
  }
  .logo img {
    width: 5rem;
    height: 5rem;
  }
  .logo-extras {
    display: flex;
    width: 100%;
    margin: auto;
    padding-top: 10px;
    position: absolute;
    bottom: 0;
  }
  .logo-extras > div {
    flex: 1;
    /*grow*/
  }
  .player,
  .langchange,
  .fbshare_but {
    padding-top: 10px;
  }
  .popup-title {
    position: unset;
    float: none;
    margin: auto;
    padding-top: 100px;
  }
  .day-title {
    font-size: 140%;
  }
  .popup-content {
    position: unset;
    width: 90%;
    height: 60%;
    left: 0%;
    right: 0%;
    margin: auto;
    padding-top: 0px;
    font-size: 80%;
  }
}
@media screen and (max-width: 1050px) and (min-height: 1024px) and (orientation: portrait) {
  .grid {
    max-width: 360px;
  }
  .grid1--h1 {
    height: 120px;
  }
  .grid1--h2 {
    height: 163px;
  }
  .day-title {
    font-size: 180%;
  }
  .popup-title {
    position: unset;
    float: none;
    margin: auto;
    padding-top: 130px;
  }
  .popup-content {
    font-size: 110%;
  }
}
@media screen and (max-width: 1050px) and (min-height: 1366px) and (orientation: portrait) {
  .grid {
    max-width: 420px;
  }
  .grid1--h1 {
    height: 140px;
  }
  .popup-title {
    padding-top: 160px;
  }
}
@media screen and (max-width: 770px) and (min-height: 800px) and (orientation: portrait) {
  .title-area {
    width: 100%;
    height: 22%;
    float: none;
    margin: auto;
    margin-bottom: 2rem;
  }
  .title-area .title {
    width: 60%;
    height: 55%;
  }
  .title-area .start-button {
    width: 10%;
    margin-top: 4px;
  }
  .logo-area {
    float: none;
    margin: auto;
    width: 100%;
  }
  .logo .img {
    width: 4rem;
    height: 4rem;
  }
  .logo-extras {
    display: flex;
    width: 100%;
    margin: auto;
    padding-top: 10px;
    position: absolute;
    bottom: 0;
  }
  .logo-extras > div {
    flex: 1;
    /*grow*/
  }
}
/* ----------- Modern Phones ----------- */
/* Portrait and Landscape */
@media screen and (min-height: 300px) and (max-height: 375px) and (max-width: 850px) {
  .calendar-title {
    font-size: 40%;
  }
  .grid {
    max-width: 210px;
  }
  .grid1--h1 {
    height: 70px;
  }
  .player .img {
    width: 30px;
    height: 30px;
  }
  .day-title {
    font-size: 75%;
  }
  .popup-content {
    font-size: 65%;
  }
}
/* Portrait */
@media screen and (min-width: 375px) and (max-width: 450px) and (max-height: 1100px) and (orientation: portrait) {
  .title-area .title {
    width: 63%;
    height: 55%;
  }
  .grid {
    max-width: 210px;
  }
  .grid1--h1 {
    height: 70px;
  }
  .grid1--h2 {
    height: 122px;
  }
  .player .img {
    width: 30px;
    height: 30px;
  }
}
/* ----------- Modern Plus Size Phones ----------- */
/* Portrait and Landscape */
@media screen and (min-height: 400px) and (max-height: 500px) and (max-width: 850px) {
  .grid {
    max-width: 255px;
  }
  .grid1--h1 {
    height: 85px;
  }
}
/* Portrait */
@media screen and (min-width: 400px) and (max-height: 850px) and (orientation: portrait) {
  .title-area .title {
    width: 65%;
    height: 55%;
  }
  .player,
  .langchange,
  .fbshare_but {
    padding-top: 20px;
  }
  .popup-title {
    padding-top: 80px;
  }
  .popup-content {
    font-size: 65%;
  }
  .day-title {
    font-size: 115%;
  }
}
/* ----------- Galaxy Fold ----------- */
/* Landscape */
@media only screen and (max-height: 280px) and (max-width: 653px) {
  .title-area .title {
    width: 65%;
  }
  .title-area .start-button {
    width: 25%;
  }
  .grid {
    max-width: 180px;
  }
  .grid1--h1 {
    height: 60px;
  }
  .day-title {
    font-size: 75%;
  }
  .popup-content {
    font-size: 55%;
  }
  .logo img {
    width: 50px;
    height: 50px;
  }
  .logo-extras {
    padding-top: 2px;
  }
  .player .img {
    width: 25px;
    height: 25px;
  }
  .langchange {
    font-size: 80%;
  }
}
/* ----------- iPhone 5 and earlier ----------- */
/* Landscape */
@media only screen and (max-height: 320px) and (max-width: 568px) {
  .grid {
    max-width: 195px;
  }
  .grid1--h1 {
    height: 65px;
  }
  .grid1--h2 {
    height: 101px;
  }
  .player .img {
    width: 30px;
    height: 30px;
  }
  .day-title {
    font-size: 75%;
  }
  .popup-content {
    font-size: 55%;
  }
}
/* Portrait */
@media only screen and (min-width: 200px) and (max-height: 653px) and (orientation: portrait) {
  .calendar {
    margin-bottom: 5px;
  }
  .grid {
    max-width: 195px;
  }
  .grid1--h1 {
    height: 65px;
  }
  .grid1--h2 {
    height: 101px;
  }
  .logo img {
    width: 50px;
    height: 50px;
  }
  .logo-extras {
    padding-top: 2px;
  }
  .player .img {
    width: 25px;
    height: 25px;
  }
  .langchange {
    font-size: 80%;
  }
  .day-title {
    font-size: 75%;
    line-height: 100%;
  }
}
/* ----------- iPhone 4 and 4S ----------- */
/* Portrait */
@media only screen and (min-device-width: 200px) and (max-device-height: 480px) and (orientation: portrait) {
  .title-area .title {
    width: 55%;
    height: 50%;
  }
  .title-area .start-button {
    width: 10%;
  }
  .grid {
    max-width: 150px;
  }
  .grid1--h1 {
    height: 50px;
  }
  .grid1--h2 {
    height: 81px;
  }
}
/* Landscape */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (orientation: landscape) {
  .grid {
    max-width: 210px;
  }
  .grid1--h1 {
    height: 70px;
  }
  .grid1--h2 {
    height: 81px;
  }
}
