/* ----------- GENERIC SETTINGS ------------- */
/* Landscape */

@media screen and (max-width: 900px) {

    .title-area {
        height: 75px;
    }

    .calendar {
        padding-left: 5px;
    }

    /* ---- general grid settings ---- */
    .grid {
        max-width: 310px;
    }

    .gutter-width {
        width: 0.5%;
    }

    .grid-item {
        margin-bottom: 0.5%;
    }

    /* ---- grid1-item ---- */
    .grid1--h1 {
        height: 62px;
    }

    .grid1--h2 {
        height: 80px;
    }

    .grid1--h3 {
        height: 30px;
    }


    /* ---- grid2-item ---- */
    .grid2--h1 {
        height: 55px;
    }

    .grid2--h2 {
        height: 62px;
    }

    .grid2--h3 {
        height: 38px;
    }

    .grid2--h4 {
        height: 45px;
    }

    /* ---- grid3-item ---- */
    .grid3--h1 {
        height: 40px;
    }

    .logo img {
        width: 80px;
        height: 80px;
    }

    .player .img {
        width: 40px;
        height: 40px;
    }

    .day-title {
        font-size: 70%;
    }

    .popup-content {
        font-size: 50%;
        line-height: 100%;
    }

    .snowflake {
        width: 10px;
        height: 10px;
    }

    .logo-area .tree {
        height: 5em;
    }
}


/* Portrait */
@media screen and (max-height: 900px) and (orientation: portrait) {

    body {
        background-image: url(../images/arkaplan-dikey.jpg);
        background-size: cover;
        background-repeat: no-repeat;
    }

    .container {
        height: 90%
    }

    .title-area {
        width: 100%;
        height: 22%;
        float: none;
        margin: auto;
        margin-bottom: 20px;
    }

    .title-area .title {
        width: 80%;
        height: 80%;
    }

    .tr .title-area .title {
        background-image: url(../images/title-vertical-tr.png);
    }

    .en .title-area .title {
        background-image: url(../images/title-vertical-en.png);
    }

    .title-area .start-button {
        width: 16%;
        margin-top: 4px;
    }

    .calendar {
        width: 95%;
        float: none;
        padding-left: 0px;
        margin: auto;
        margin-bottom: 20px;
    }

    .grid {
        max-width: 300px;
    }

    /* ---- grid1-item ---- */
    .grid1--h1 {
        height: 60px;
    }

    .grid1--h2 {
        height: 85px;
    }

    .grid1--h3 {
        height: 35px;
    }


    /* ---- grid2-item ---- */
    .grid2--h1 {
        height: 60px;
    }

    .grid2--h2 {
        height: 65px;
    }

    .grid2--h3 {
        height: 45px;
    }

    .grid2--h4 {
        height: 50px;
    }

    /* ---- grid3-item ---- */
    .grid3--h1 {
        height: 50px;
    }

    .logo-area {
        float: none;
        margin: auto;
        width: 100%;
        height: 100%;
    }

    .logo .img {
        width: 70px;
        height: 70px;
    }

    .logo-extras {
        display: flex;
        width: 100%;
        margin: auto;
        padding-top: 10px;
        position: absolute;
        bottom: 0;
    }

    .logo-area .tree {
        width: 15%;
    }

    .logo-extras>div {
        flex: 1;
        /*grow*/
    }

    .player,
    .langchange,
    .fbshare_but {
        padding-top: 10px;
    }

    .popup {
        background-image: url(../images/popup/popup-arkaplan-dikey.jpg);
    }

    .popup-content {
        position: unset;
        width: 95%;
        left: 0%;
        right: 0%;
        margin: auto;
        font-size: 65%;
        float: none;
    }

    .popup-title {
        float: none;
        width: 80%;
        padding-top: 45px;
        margin: auto;
    }

    .day-title {
        padding-bottom: 5px;
        text-align: center;
    }

    .image-title {
        padding-left: 0em;
        width: 50%;
        margin: auto;
        display: block;
    }

}

/* ----------- Large Landscape Screens ----------- */
@media screen and (max-width: 1400px) and (min-height: 650px) and (orientation: landscape) {
    .title-area {
        height: 120px;
    }

    .calendar {
        padding-left: 10px;
    }

    /* ---- general grid settings ---- */
    .grid {
        max-width: 450px;
    }

    /* ---- grid1-item ---- */
    .grid1--h1 {
        height: 90px;
    }

    .grid1--h2 {
        height: 140px;
    }

    .grid1--h3 {
        height: 40px;
    }


    /* ---- grid2-item ---- */
    .grid2--h1 {
        height: 90px;
    }

    .grid2--h2 {
        height: 100px;
    }

    .grid2--h3 {
        height: 60px;
    }

    .grid2--h4 {
        height: 70px;
    }

    /* ---- grid3-item ---- */
    .grid3--h1 {
        height: 70px;
    }

    .logo img {
        width: 120px;
        height: 120px;
    }

    .popup-title {
        padding-top: 120px;
    }

    .logo-area .tree {
        height: 5em;
    }
}

/* ----------- Large Portrait Screens ----------- */
@media screen and (max-width: 1050px) and (min-height: 812px) and (orientation: portrait) {

    body {
        background-image: url(../images/arkaplan-dikey.jpg);
        background-size: cover;
        background-repeat: no-repeat;
    }

    .container {
        height: 90%
    }

    .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);
    }

    .en .title-area .title {
        background-image: url(../images/title-vertical-en.png);
    }

    .title-area .title {
        width: 80%;
        height: 70%;
    }

    .title-area .start-button {
        width: 18%;
        margin-top: 4px;
    }

    .calendar {
        width: 95%;
        float: none;
        padding-left: 0px;
        margin: auto;
        margin-bottom: 20px;
    }

    .grid {
        max-width: 400px;
    }


    /* ---- grid1-item ---- */
    .grid1--h1 {
        height: 80px;
    }

    .grid1--h2 {
        height: 120px;
    }

    .grid1--h3 {
        height: 60px;
    }


    /* ---- grid2-item ---- */
    .grid2--h1 {
        height: 90px;
    }

    .grid2--h2 {
        height: 102px;
    }

    .grid2--h3 {
        height: 63px;
    }

    .grid2--h4 {
        height: 75px;
    }

    /* ---- grid3-item ---- */
    .grid3--h1 {
        height: 70px;
    }

    .logo-area {
        float: none;
        margin: auto;
        width: 100%;
        height: 100%;
    }

    .logo {
        float: none;
        margin: auto;
    }

    .logo img {
        width: 100px;
        height: 100px;
    }

    .logo-extras {
        display: flex;
        width: 100%;
        margin: auto;
        padding-top: 10px;
        position: absolute;
        bottom: 0;
    }

    .logo-extras>div {
        flex: 1;
        /*grow*/
    }

    .logo-area .tree {
        width: 15%;
    }

    .player,
    .langchange,
    .fbshare_but {
        padding-top: 10px;
    }

    .popup-title {
        float: none;
        width: 80%;
        margin: auto;
    }

    .day-title {
        padding-bottom: 5px;
        text-align: center;
        font-size: 130%;
    }

    .image-title {
        padding-left: 0em;
        width: 50%;
        margin: auto;
        display: block;
    }

    .popup-content {
        position: unset;
        width: 95%;
        left: 0%;
        right: 0%;
        margin: auto;
        padding-top: 0px;
        font-size: 100%;
        float: none;
    }
}

@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: 20px;
    }

    .title-area .title {
        width: 70%;
        height: 70%;
    }

    .title-area .start-button {
        width: 15%;
        margin-top: 4px;
    }

    .logo-area {
        float: none;
        margin: auto;
        width: 100%;
        height: 100%;
    }

    .logo .img {
        width: 70px;
        height: 70px;
    }

    .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 (max-height: 375px) and (max-width: 850px) {

    .calendar-title {
        font-size: 40%;
    }

    .player .img {
        width: 30px;
        height: 30px;
    }

    .popup-title {
        padding-top: 40px;
    }

    .logo-area .tree {
        height: 5em;
    }
}

/* Portrait */

@media screen and (min-width: 375px) and (max-width: 450px) and (max-height: 1100px) and (orientation: portrait) {

    .title-area .title {
        width: 70%;
        height: 65%;
    }

    .grid {
        max-width: 270px;
    }

    /* ---- grid1-item ---- */
    .grid1--h1 {
        height: 55px;
    }

    .grid1--h2 {
        height: 75px;
    }

    .grid1--h3 {
        height: 35px;
    }


    /* ---- grid2-item ---- */
    .grid2--h1 {
        height: 55px;
    }

    .grid2--h2 {
        height: 60px;
    }

    .grid2--h3 {
        height: 36px;
    }

    .grid2--h4 {
        height: 41px;
    }

    /* ---- grid3-item ---- */
    .grid3--h1 {
        height: 43px;
    }

    .player .img {
        width: 30px;
        height: 30px;
    }

    .popup-content {
        font-size: 65%;
    }
}


/* ----------- Modern Plus Size Phones ----------- */

/* Portrait and Landscape */
@media screen and (min-height: 400px) and (max-height: 500px) and (max-width: 850px) {

    /* ---- general grid settings ---- */
    .grid {
        max-width: 340px;
    }

    .popoup-title {
        padding-top: 50px;
    }

    .logo-area .tree {
        height: 5em;
    }
}

/* Portrait */

@media screen and (min-width: 400px) and (max-height: 850px) and (orientation: portrait) {

    .title-area .title {
        width: 70%;
        height: 70%;
    }

    .player,
    .langchange,
    .fbshare_but {
        padding-top: 20px;
    }
}

/* ----------- iPhone 5 and earlier ----------- */

/* Landscape */
@media only screen and (max-height: 320px) and (max-width: 568px) {

    .grid {
        max-width: 250px;
    }

    /* ---- grid1-item ---- */
    .grid1--h1 {
        height: 50px;
    }

    .grid1--h2 {
        height: 70px;
    }

    .grid1--h3 {
        height: 30px;
    }


    /* ---- grid2-item ---- */
    .grid2--h1 {
        height: 50px;
    }

    .grid2--h2 {
        height: 55px;
    }

    .grid2--h3 {
        height: 35px;
    }

    .grid2--h4 {
        height: 40px;
    }

    /* ---- grid3-item ---- */
    .grid3--h1 {
        height: 40px;
    }

    .player .img {
        width: 30px;
        height: 30px;
    }

    .popup-title {
        padding-top: 30px;
    }

    .day-title {
        font-size: 100%;
    }

    .popup-content {
        font-size: 60%;
    }

    .logo-area .tree {
        height: 5em;
    }
}

/* Portrait */
@media only screen and (min-width: 200px) and (max-height: 640px) and (orientation: portrait) {

    .calendar {
        margin-bottom: 5px;
    }

    .grid {
        max-width: 250px;
    }

    /* ---- grid1-item ---- */
    .grid1--h1 {
        height: 50px;
    }

    .grid1--h2 {
        height: 70px;
    }

    .grid1--h3 {
        height: 30px;
    }


    /* ---- grid2-item ---- */
    .grid2--h1 {
        height: 50px;
    }

    .grid2--h2 {
        height: 55px;
    }

    .grid2--h3 {
        height: 35px;
    }

    .grid2--h4 {
        height: 40px;
    }

    /* ---- grid3-item ---- */
    .grid3--h1 {
        height: 40px;
    }

    .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: 100%;
        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: 60%;
        height: 60%;
    }

    .title-area .start-button {
        width: 16%;
    }

    .grid {
        max-width: 280px;
    }
}

/* Landscape */
@media only screen and (min-device-width: 320px) and (max-device-height: 480px) and (orientation: landscape) {

    .logo-area .tree {
        height: 5em;
    }
}
