@media screen and (max-height: 1600px) {
    .s1-image {
        height: 40%;
    }
}

@media screen and (max-height: 1200px) {
    .s1-image {
        height: 55%;
    }
}

@media screen and (max-width: 1860px) {
    .s3-view {
        height: 550px;
    }
}

@media screen and (max-width: 1800px) {
    .s3-view {
        height: 540px;
    }
}

@media screen and (max-width: 1740px) {
    .s3-view {
        height: 530px;
    }
}


@media screen and (max-width: 1680px) {
    .s3-view {
        height: 520px;
    }
}

@media screen and (max-width: 1620px) {
    .s3 {
        padding: 65px;
    }

    .s3-view {
        height: 510px;
    }

    .s3-details h3 {
        font-size: 18px;
    }
}

@media screen and (max-width: 1560px) {
    .s3-view {
        height: 490px;
    }
}

@media screen and (max-width: 1500px) {
    .s3 {
        padding: 55px;
    }

    .s3-view {
        height: 480px;
    }

    .s3-details h3 {
        font-size: 17px;
    }

    .s3-details-p {
        font-size: 14px;
    }

    .s3-details-p2 {
        font-size: 14px;
    }
}

@media screen and (max-width: 1440px) {
    .s1-layout h2 {
        background-color: transparent;
        font-size: 32px;
        margin: 0rem 0rem 0rem 0rem; /* top right bottom left */
    }

    .s1-layout p {
        font-size: 16px;
        margin: 2rem 2rem 0rem 2rem;
    }

    .s2-layout h2 {
        font-size: 32px;
    }

    .s2-layout p {
        font-size: 16px;
    }

    .s3-view {
        height: 455px;
    }

    .s3-details h3 {
        font-size: 15px;
        margin-top: 32px;
    }

    .s3-details-p {
        margin-top: 32px;
    }

    .s3-details-p2 {
        margin-top: 10px;
    }
}

@media screen and (max-width: 1380px) {
    .s3 {
        padding: 45px;
    }

    .s3-view {
        height: 440px;
    }

    .s3-details h3 {
        font-size: 14px;
        margin-top: 32px;
    }

    .s3-details-p {
        font-size: 13px;
        margin-top: 32px;
    }

    .s3-details-p2 {
        font-size: 13px;
        margin-top: 9px;
    }

    .s4-layout {
        margin-left: 14rem;
        margin-right: 14rem;
    }
}

@media screen and (max-width: 1320px) {
    .s3-view {
        height: 425px;
    }

    .s3-details h3 {
        font-size: 13px;
    }

    .s3-details-p {
        font-size: 12px;
    }

    .s3-details-p2 {
        font-size: 12px;
    }

    .s4-layout {
        margin-left: 12rem;
        margin-right: 12rem;
    }

    .s4-layout h2 {
        font-size: 30px;
    }

    .s4-layout p {
        font-size: 17px;
    }

    .s4-form-input {
        flex-shrink: 0;
        min-width: 60%;
    }
}

@media screen and (max-width: 1260px) {
    .s3 {
        padding: 35px;
    }

    .s3-view {
        height: 410px; 
    }
}

@media screen and (max-width: 1200px) {
    .s3-view {
        height: 400px;
    }
}

@media screen and (max-width: 1140px) {
    .s3 {
        padding: 30px;
    }

    .s3-view {
        height: 390px;
    }
}

@media screen and (max-width: 1080px) {
    .s3-view {
        height: 380px;
    }

    .s3-details h3 {
        font-size: 12px;
    }

    .s3-details-p {
        font-size: 11px;
    }

    .s3-details-p2 {
        font-size: 11px;
    }

    .s4-layout {
        margin-left: 12rem;
        margin-right: 12rem;
    }

    .s4-layout h2 {
        font-size: 28px;
    }

    .s4-layout {
        margin-left: 10rem;
        margin-right: 10rem;
    }

    .s4-layout p {
        font-size: 16px;
    }

    .s4-form-input {
        flex-shrink: 0;
        min-width: 65%;
    }
}

@media screen and (max-width: 1020px) {
    .s1 {
        background-color: transparent;
        max-height: 87vh;
    }

    .s1-layout h2 {
        background-color: transparent;
        font-size: 28px;
        margin: 0rem 0rem 0rem 0rem; /* top right bottom left */
    }

    .s1-layout p {
        font-size: 13px;
        margin: 2rem 2rem 0rem 2rem;
    }

    .s1-layout button {
        font-size: 1.1rem;
        margin: 2.5rem 0rem 0rem 0rem;
        padding: 1rem 1.75rem;
    }

    .s1-image {
        max-height: 60%;
        max-width: 50%;
    }

    .s2 {
        padding: 72px 8rem;
    }

    .s2-layout h2 {
        font-size: 28px;
    }

    .s2-layout p {
        font-size: 14px;
    }

    .s3 {
        padding: 25px;
    }

    .s3-view {
        height: 370px;
    }

    .s3-details h3 {
        font-size: 11.5px;
    }

    .s3-details-p {
        font-size: 11px;
    }

    .s3-details-p2 {
        font-size: 11px;
    }

    .s4-layout {
        margin-left: 8rem;
        margin-right: 8rem;
    }

    .s4-layout h2 {
        font-size: 28px;
    }

    .s4-layout p {
        font-size: 15px;
    }

    .s4-form-input {
        flex-shrink: 0;
        min-width: 65%;
    }
}

@media screen and (max-width: 960px) {
    .s3 {
        /*flex-direction: column;*/
    }

    .s3-view {
        height: 345px;
    }

    .s3-details h3 {
        font-size: 11px;
        margin-top: 28px;
    }

    .s3-details-p {
        font-size: 10px;
        margin-top: 28px;
    }

    .s3-details-p2 {
        font-size: 10px;
        margin-top: 7px;
    }

    .s4-layout {
        margin-left: 6rem;
        margin-right: 6rem;
    }

    .s4-layout h2 {
        font-size: 24px;
    }

    .s4-layout p {
        font-size: 15px;
    }

    .s4-form-input {
        flex-shrink: 0;
        min-width: 60%;
    }
}

@media screen and (max-width: 900px) {
    .s3 {
        padding: 25px;
    }

    .s3-view {
        height: 310px;
    }

    .s3-details h3 {
        font-size: 10px;
        margin-top: 20px;
    }

    .s3-details-p {
        font-size: 9px;
        margin-top: 20px;
    }

    .s3-details-p2 {
        font-size: 9px;
        margin-top: 7px;
    }

    .s4-layout {
        margin-left: 4rem;
        margin-right: 4rem;
    }

    .s4-layout h2 {
        font-size: 24px;
    }

    .s4-layout p {
        font-size: 15px;
    }

    .s4-form-input {
        flex-shrink: 0;
        min-width: 60%;
    }
}

@media screen and (max-width: 840px) {
    .s3-view {
        height: 300px;
    }

    .s3-details h3 {
        font-size: 10px;
        margin-top: 20px;
    }

    .s3-details-p {
        margin-top: 20px;
        font-size: 9px;
    }

    .s3-details-p2 {
        font-size: 9px;
        margin-top: 6px;
    }

    .s4-layout {
        margin-left: 3rem;
        margin-right: 3rem;
    }

    .s4-layout h2 {
        font-size: 24px;
    }

    .s4-layout p {
        font-size: 15px;
    }

    .s4-form-input {
        flex-shrink: 0;
        min-width: 60%;
    }
}

@media screen and (max-width: 780px) {
    .s3 {
        padding: 20px;
    }

    .s3-view {
        height: 290px;
    }
}


@media screen and (max-width: 720px) {
    header {
        background-color: white;
        display: inline-block;
        text-align: center;
    }

    .logo img {
        height: 32px;
        margin-bottom: 0px;
        margin-left: 0px;
    }

    nav {
        align-items: center;
        display: block;
        margin-right: 0px;
    }

    nav ul {
        display: inline-flex;
    }

    nav li {
        margin: 2.5em 2.5em;
    }

    nav a {
        font-size: 18px;
    }

    canvas {
        max-height: 100%;
        opacity: 1.0;
    }

    .s1 {
        background-color: transparent;
        max-height: 59vh;
    }

    .s1-layout {
        background-color: transparent;
        max-width: 100%;
    }

    .s1-layout p {
        background-color: transparent;
        font-size: 14px;
        margin: 3rem 1rem 0rem 1rem;
        padding: 0;
    }

    .s1-image {
        display: none;
    }

    .s2 {
        padding: 50px 8px;
    }

    .s2-layout h2 {
        font-size: 21px;
    }

    .s2-layout p {
        font-size: 14px;
    }

    .s3 {
        padding: 25px;
    }

    .s3-view {
        height: 280px;
    }

    .s3 h2 {
        font-size: 21px;
    }

    .s3-details {
        bottom: 0px;
    }
}

@media screen and (max-width: 414px) {
    .logo img {
        height: 34px;
    }

    nav li {
        margin: 2.75em 1.25em;
    }

    nav a {
        font-size: 17px;
    }

    .s1-layout button {
        font-size: 18px;
    }

    .s2-layout button {
        font-size: 18px;
    }

    .s3 {
        padding: 20px;
    }

    .s3-layout {
        flex-direction: column;
    }
    
    .s3-view {
        height: 420px;
        width: 100%;
    }

    .s3-details h3 {
        font-size: 17px;
    }

    .s3-details-p {        
        font-size: 13px;
    }

    .s3-details-p2 {
        font-size: 13px;
    }

    .s3-details button {
        font-size: 18px;
    }

    .s4-layout {
        background-color: transparent;
        margin-left: 20px;
        margin-right: 20px;
    }

    .s4-layout h2 {
        font-size: 19px;
        margin-bottom: 20px;
        padding-top: 39px;
    }

    .s4-layout p {
        font-size: 15px;
        line-height: 1.5;
    }

    form {
        background-color: transparent;
        margin: 39px auto;
    }

    input[type="email"] {
        font-size: 12px;
        width: 100%;
    }

    .s4-form-input {
        max-width: 100%; 
    }

    .s4-form-input button[type="button"] {
        font-size: 14px;
        height: 49px;
    }

    .s4-line {
        margin-top: 4rem;
        margin-bottom: 2rem;
    }

    .s4-footer {
        background-color: transparent;
        margin-bottom: 2rem;
    }

    .s4-row {
        background-color: transparent;
        display: flex;
        flex-wrap: wrap-reverse;
    }

    .s4-text {
        background-color: transparent;
        font-size: 20px;
        margin: 0;
        padding: 0;
        text-align: center;
        width: 100%;
    }

    .s4-text2 {
        background-color: transparent;
        margin: 0;
        padding: 0;
        margin-top: 12px;
        margin-bottom: 12px;
        text-align: center;
        width: 100%;
    }

    .s4-social {
        background-color: transparent;
        width: 100%;
    }

    .s4-social li {
        
    }

    .s4-social a {

    }
}

@media screen and (max-width: 375px) {
    .logo img {
        height: 32px;
    }

    nav li {
        margin: 2.25em 1.25em;
    }

    nav a {
        font-size: 15px;
    }
}


@media screen and (max-width: 320px) {
    .logo img {
        height: 28px;
    }

    nav li {
        margin: 2.25em 1em;
    }

    nav a {
        font-size: 14px;
    }

    .s1 {
        background-color: transparent;
        max-height: 78vh;
    }

    .s1-layout h2 {
        font-size: 32px;
    }

    .s2 {
        padding: 39px 8px;
    }

    .s2-layout h2 {
        font-size: 18px;
    }

    .s2-layout p {
        font-size: 13px;
    }
}