/* ----------- iPhone 4 and 4S ----------- */


/* Portrait and Landscape */

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) {
    #questions li {
        position: relative;
        padding-left: 15px;
    }
    a:link.questions-list {
        padding-left: 0px;
    }
    a.questions-list::before {
        position: absolute;
        left: 0;
    }
    .home-set {
        background: #fff url(../images/new/Background-300.jpg);
        background-size: cover;
        background-position: 90%;
        background-repeat: no-repeat;
        height: auto;
        overflow: scroll;
    }
    /* #front-text p {
        color: #ddd;
    }
    #front-text h1 {
        color: #ffffff;
    }
    #front-text h2 {
        color: #ffffff;
    }
    #front-text h3 {
        color: #ffffff;
    } */
    #result-right {
        display: none;
    }
    #result-bottom {
        display: block;
    }
    #results-img-on-pc {
        display: none;
    }
    #results-img-on-mobile {
        display: block;
        background: url("../images/new/Bottom_Answer.jpg") no-repeat;
        background-position: bottom;
        background-size: contain;
        padding: 10px 10px 100px 320px;
    }
}


/* Portrait */

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) {
    a.button-image::before {
        top: 230%;
    }
    #wrapper {
        width: 100% !important;
    }
    .home-set {
        background: #fff url(../images/new/Background-300.jpg);
        background-size: cover;
        background-position: 85%;
        background-repeat: no-repeat;
        height: auto;
        overflow: scroll;
    }
    #newsletterform {
        margin-bottom: 100px !important;
    }
    /* QUESTIONs  part */
    .content {
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
    }
    /*#questionsContainer {
      width: 100%;
    }*/
    .img-bottom {
        width: 37%;
    }
    #questionNav {
        margin-bottom: 30px !important;
        width: 300px;
    }
    .questionNavButton {
        margin-bottom: 15px;
    }
    .img-bottom-set1 {
        margin-top: -850px;
    }
    /*.question {
      width: 100% !important;
    }*/
    .set-mobile-question {
        width: 500px;
    }
    #questions ul.images {
        display: grid;
        grid-template-columns: 10px 10px 10px;
        grid-column-gap: 100px;
    }
    #questions ul.images li {
        padding: 10px;
        font-size: 150%;
    }
    .image-list {
        width: auto;
        max-height: 120px;
    }
    #questionsContainer {
        height: 700px;
    }
    .result-image {
        width: 100%;
    }
    .image-results {
        width: 100%;
    }
    .image-right {
        width: 100%;
    }
    #stilarter ul {
        text-align: center;
    }
    #stilarter ul li {
        display: inline-block;
    }
    #graph {
        background: url(../images/graph320.jpg) no-repeat left center;
        width: auto;
    }
    .bar {
        width: 25px;
    }
    .legend {
        width: 95px;
        font: bold 8px "Crimson Text", sans-serif;
    }
    .logo {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .img-bottom-set {
        margin-top: -1000px;
    }
}


/* Landscape */

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) {
    .home-set {
        overflow: scroll;
    }
}


/* ----------- iPhone 5, 5S, 5C and 5SE ----------- */


/* Portrait and Landscape */

@media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (-webkit-min-device-pixel-ratio: 2) {
    .home-set {
        background: #fff url(../images/new/Background-300.jpg);
        background-size: cover;
        background-position: 85%;
        background-repeat: no-repeat;
        height: auto;
        overflow: scroll;
    }
    #questions li {
        position: relative;
        padding-left: 15px;
    }
    a:link.questions-list {
        padding-left: 0px;
    }
    a.questions-list::before {
        position: absolute;
        left: 0;
    }
    /* #front-text p {
        color: #666666;
    }
    #front-text h1 {
        color: #666666;
    }
    #front-text h2 {
        color: #666666;
    }
    #front-text h3 {
        color: #666666;
    } */
    /* .btn-primary-outline {
        border-color: #666666;
    }
    .btn-front {
        color: #666666 !important;
    } */
    #result-right {
        display: none;
    }
    #result-bottom {
        display: block;
        margin-top: 50px;
        border-top: 1px solid #ddd;
        padding-top: 20px;
    }
    #results-img-on-pc {
        display: none;
    }
    #results-img-on-mobile {
        display: block;
        background: url("../images/new/Bottom_Answer.jpg") no-repeat;
        background-position: bottom;
        background-size: contain;
        padding: 10px 10px 100px 320px;
    }
}


/* Portrait */

@media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) {
    a.button-image::before {
        top: 155%;
    }
    #wrapper {
        width: 100% !important;
    }
    #newsletterform {
        margin-bottom: 100px !important;
    }
    /* QUESTIONs  part */
    .content {
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
    }
    /*#questionsContainer {
      width: 100%;
    }*/
    .img-bottom {
        width: 36%;
    }
    #questionNav {
        margin-bottom: 30px !important;
        width: 300px;
    }
    .questionNavButton {
        margin-bottom: 15px;
    }
    .img-bottom-set1 {
        margin-top: -850px;
    }
    /*.question {
      width: 100% !important;
    }*/
    .set-mobile-question {
        width: 280px;
    }
    #questions ul.images {
        display: grid;
        grid-template-columns: 10px 10px 10px;
        grid-column-gap: 80px;
    }
    #questions ul.images li {
        padding: 5px;
    }
    .image-list {
        width: auto;
        max-height: 120px;
        max-width: 50px;
    }
    #questionsContainer {
        max-height: 700px;
    }
    .result-image {
        width: 100%;
    }
    .image-results {
        width: 100%;
    }
    .image-right {
        width: 100%;
    }
    #stilarter ul {
        text-align: center;
    }
    #stilarter ul li {
        display: inline-block;
    }
    #graph {
        background: url(../images/graph320.jpg) no-repeat left center;
        width: auto;
    }
    .bar {
        width: 20px;
    }
    .legend {
        width: 30px;
        font: bold 8px "Crimson Text", sans-serif;
        padding-right: 0px;
        margin-left: 9px;
        /* position: absolute; */
        display: inline-block;
    }
    .logo {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .img-bottom-set {
        margin-top: -1000px;
    }
    /* Results */
    #stilarter ul li a {
        width: 125px;
    }
    .tab-results {
        display: grid;
        grid-template-columns: 10px 10px 10px;
        grid-column-gap: 100px;
        column-count: 2;
        font-size: 9px;
    }
}


/* Landscape */

@media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) {
    .home-set {
        overflow: scroll;
    }
}


/* ----------- iPhone 6, 6S, 7 and 8 ----------- */


/* Portrait and Landscape */

@media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (-webkit-min-device-pixel-ratio: 2) {
    #result-right {
        display: none;
    }
    #result-bottom {
        display: block;
        margin-top: 50px;
        border-top: 1px solid #ddd;
        padding-top: 20px;
    }
    #results-img-on-pc {
        display: none;
    }
    #results-img-on-mobile {
        display: block;
        background: url("../images/new/Bottom_Answer.jpg") no-repeat;
        background-position: bottom;
        background-size: contain;
        padding: 100px 100px 100px 100px;
    }
    #questions li {
        position: relative;
        padding-left: 15px;
    }
    a:link.questions-list {
        padding-left: 0px;
    }
    a.questions-list::before {
        position: absolute;
        left: 0;
    }
}


/* Portrait */

@media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) {
    a.button-image::before {
        top: 220%;
    }
    #wrapper {
        width: 100% !important;
    }
    .home-set {
        background: #fff url(../images/new/Background-300.jpg);
        background-size: cover;
        background-position: 85%;
        background-repeat: no-repeat;
        height: auto;
        overflow: scroll;
    }
    #newsletterform {
        margin-bottom: 100px !important;
    }
    /* QUESTIONs  part */
    .content {
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
    }
    /*#questionsContainer {
      width: 100%;
    }*/
    .img-bottom {
        width: 45%;
    }
    #questionNav {
        margin-bottom: 30px !important;
        width: 300px;
    }
    .questionNavButton {
        margin-bottom: 15px;
    }
    .img-bottom-set1 {
        margin-top: -850px;
    }
    /*.question {
      width: 100% !important;
    }*/
    .set-mobile-question {
        width: 280px;
    }
    #questions ul.images {
        display: grid;
        grid-template-columns: 10px 10px 10px;
        grid-column-gap: 100px;
    }
    #questions ul.images li {
        padding: 5px;
    }
    .image-list {
        width: auto;
        max-height: 120px;
        max-width: 80px;
    }
    #questionsContainer {
        max-height: 700px;
    }
    .result-image {
        width: 100%;
    }
    .image-results {
        width: 100%;
    }
    .image-right {
        width: 100%;
    }
    #stilarter ul {
        text-align: center;
    }
    #stilarter ul li {
        display: inline-block;
    }
    #graph {
        background: url(../images/graph320.jpg) no-repeat left center;
        width: auto;
    }
    .bar {
        width: 25px;
    }
    .legend {
        width: 30px;
        font: bold 8px "Crimson Text", sans-serif;
        padding-right: 30px;
        margin-left: 19px;
    }
    .logo {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .img-bottom-set {
        margin-top: -1000px;
    }
    /* Results */
    #stilarter ul li a {
        width: 155px;
    }
}


/* Landscape */

@media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) {
    .home-set {
        overflow: scroll;
    }
}


/* ----------- iPhone 6+, 7+ and 8+ ----------- */


/* Portrait and Landscape */

@media only screen and (min-device-width: 414px) and (max-device-width: 736px) and (-webkit-min-device-pixel-ratio: 3) {
    #result-right {
        display: none;
    }
    #result-bottom {
        display: block;
        margin-top: 50px;
        border-top: 1px solid #ddd;
        padding-top: 20px;
    }
    #results-img-on-pc {
        display: none;
    }
    #results-img-on-mobile {
        display: block;
        background: url("../images/new/Bottom_Answer.jpg") no-repeat;
        background-position: bottom;
        background-size: contain;
        padding: 100px 100px 100px 100px;
    }
    #questions li {
        position: relative;
        padding-left: 15px;
    }
    a:link.questions-list {
        padding-left: 0px;
    }
    a.questions-list::before {
        position: absolute;
        left: 0;
    }
}


/* Portrait */

@media only screen and (min-device-width: 414px) and (max-device-width: 736px) and (-webkit-min-device-pixel-ratio: 3) and (orientation: portrait) {
    a.button-image::before {
        top: 220%;
    }
    #wrapper {
        width: 100% !important;
    }
    .home-set {
        background: #fff url(../images/new/Backgroundlarge.jpg);
        background-size: cover;
        background-position: top right;
        background-repeat: no-repeat;
        overflow: scroll;
    }
    #newsletterform {
        margin-bottom: 100px !important;
    }
    /* QUESTIONs  part */
    .content {
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
    }
    /*#questionsContainer {
      width: 100%;
    }*/
    .img-bottom {
        width: 45%;
    }
    #questionNav {
        margin-bottom: 30px !important;
        width: 300px;
    }
    .questionNavButton {
        margin-bottom: 15px;
    }
    .img-bottom-set1 {
        margin-top: -850px;
    }
    /*.question {
      width: 100% !important;
    }*/
    .set-mobile-question {
        width: 280px;
    }
    #questions ul.images {
        display: grid;
        grid-template-columns: 10px 10px 10px;
        grid-column-gap: 100px;
    }
    #questions ul.images li {
        padding: 5px;
    }
    .image-list {
        width: auto;
        max-height: 120px;
        max-width: 80px;
    }
    #questionsContainer {
        max-height: 700px;
    }
    .result-image {
        width: 100%;
    }
    .image-results {
        width: 100%;
    }
    .image-right {
        width: 100%;
    }
    #stilarter ul {
        text-align: center;
    }
    #stilarter ul li {
        display: inline-block;
    }
    #graph {
        background: url(../images/graph320.jpg) no-repeat left center;
        width: auto;
    }
    .bar {
        width: 25px;
    }
    .legend {
        width: 30px;
        font: bold 8px "Crimson Text", sans-serif;
        padding-right: 30px;
        margin-left: 19px;
    }
    .logo {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .img-bottom-set {
        margin-top: -1000px;
    }
    /* Results */
    #stilarter ul li a {
        width: 155px;
    }
}


/* Landscape */

@media only screen and (min-device-width: 414px) and (max-device-width: 736px) and (-webkit-min-device-pixel-ratio: 3) and (orientation: landscape) {
    .home-set {
        overflow: scroll;
    }
}


/* ----------- iPhone X ----------- */


/* Portrait and Landscape */

@media only screen and (min-device-width: 375px) and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 3) {
    #result-right {
        display: none;
    }
    #result-bottom {
        display: block;
        margin-top: 50px;
        border-top: 1px solid #ddd;
        padding-top: 20px;
    }
    #results-img-on-pc {
        display: none;
    }
    #results-img-on-mobile {
        display: block;
        background: url("../images/new/Bottom_Answer.jpg") no-repeat;
        background-position: bottom;
        background-size: contain;
        padding: 100px 100px 100px 100px;
    }
    #questions li {
        position: relative;
        padding-left: 15px;
    }
    a:link.questions-list {
        padding-left: 0px;
    }
    a.questions-list::before {
        position: absolute;
        left: 0;
    }
}


/* Portrait */

@media only screen and (min-device-width: 375px) and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 3) and (orientation: portrait) {
    a.button-image::before {
        top: 220%;
    }
    #wrapper {
        width: 100% !important;
    }
    .home-set {
        background: #fff url(../images/new/Backgroundlarge.jpg);
        background-size: cover;
        background-position: top right;
        background-repeat: no-repeat;
        overflow: scroll;
    }
    #newsletterform {
        margin-bottom: 100px !important;
    }
    /* QUESTIONs  part */
    .content {
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
    }
    /*#questionsContainer {
      width: 100%;
    }*/
    .img-bottom {
        width: 45%;
    }
    #questionNav {
        margin-bottom: 30px !important;
        width: 300px;
    }
    .questionNavButton {
        margin-bottom: 15px;
    }
    .img-bottom-set1 {
        margin-top: -850px;
    }
    /*.question {
      width: 100% !important;
    }*/
    .set-mobile-question {
        width: 280px;
    }
    #questions ul.images {
        display: grid;
        grid-template-columns: 10px 10px 10px;
        grid-column-gap: 100px;
    }
    #questions ul.images li {
        padding: 5px;
    }
    .image-list {
        width: auto;
        max-height: 120px;
        max-width: 80px;
    }
    #questionsContainer {
        max-height: 700px;
    }
    .result-image {
        width: 100%;
    }
    .image-results {
        width: 100%;
    }
    .image-right {
        width: 100%;
    }
    #stilarter ul {
        text-align: center;
    }
    #stilarter ul li {
        display: inline-block;
    }
    #graph {
        background: url(../images/graph320.jpg) no-repeat left center;
        width: auto;
    }
    .bar {
        width: 25px;
    }
    .legend {
        width: 30px;
        font: bold 8px "Crimson Text", sans-serif;
        padding-right: 30px;
        margin-left: 19px;
    }
    .logo {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .img-bottom-set {
        margin-top: -1000px;
    }
    /* Results */
    #stilarter ul li a {
        width: 155px;
    }
}


/* Landscape */

@media only screen and (min-device-width: 375px) and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 3) and (orientation: landscape) {
    .home-set {
        overflow: scroll;
    }
}