@import url('../assets/styles/theme.css');

@media screen and (min-width: 320px) {

    /* Connection & Register - section */

    main article:nth-child(1) {
        display: flex;
        justify-content: space-around;
        align-items: center;
        font-size: 18px;
        height: 65px;
        width: 100%;
        background-color: var(--second-color);
    }

    main article:nth-child(1) div:nth-child(1) > a {
        font-weight: bold;
    }

    main article:nth-child(1) div:nth-child(2) {
        background-color: var(--first-color);
        border-radius: 50px;
        padding: 2px 10px 2px 10px;
    }

    main article:nth-child(1) div:nth-child(2) > a {
        color: var(--second-color);
    }

    main article:nth-child(1) div:nth-child(2) > a:hover {
        color: var(--fourth-color);
    }

    /* Road Landscape - section */

    main article:nth-child(2) div:nth-child(1) {
        height: 170px;
        background-color: var(--first-color);
    }

    main article:nth-child(2) div:nth-child(1) img {
        height: 100%;
        width: 100%;
        border-top: 2px solid var(--first-color);
        border-bottom: 2px solid var(--first-color);
    }

    /* Trip Request - section */

    main section:nth-child(3) {
        width: 100%;
        background-color: var(--second-color);
    }

    main section:nth-child(3) p {
        font-size: 23px;
        padding: 5px 0 5px 20px;
    }

    main section:nth-child(3) > div {
        height: 55px;
        text-align: center;
        margin: 12px 0 0 0;
    }

    main section:nth-child(3) > div a { 
        border: 1px solid var(--first-color);
        padding: 8px;
        border-radius: 20px;
        font-size: 21px;
        background-color: var(--third-color);
    }

    main section:nth-child(3) > div a:hover {
        background-color: var(--fourth-color);
        color: var(--first-color);
    }

    /* Additional Information - section */

    main section:nth-child(4) {
        width: 100%;
        background-color: var(--first-color);
        border-top: 2px solid var(--first-color);
    }

    main section:nth-child(4) p {
        text-align: center;
        text-align: justify;
        color: var(--second-color);
        font-size: 17px;
        padding: 10px 5% 10px 5%;
    }

    main section:nth-child(4) div:nth-child(2),
    main section:nth-child(4) div:nth-child(4) {
        height: 170px;
        width: 100%;
    }

    main section:nth-child(4) div:nth-child(2) img,
    main section:nth-child(4) div:nth-child(4) img {
        height: 100%;
        width: 100%;
        padding: 8px;
    }

    main section:nth-child(4) p:nth-child(3),
    main section:nth-child(4) p:nth-child(5) {
        padding-top: 2px;
    }

    /* Form - section */

    main section:nth-child(5) {
        display: flex;
        height: 570px;
        width: 100%;
        background-color: var(--fourth-color);
        border-top: 2px solid var(--first-color);
    }

    main section:nth-child(5) > div {
        height: 95%;
        width: 95%;
        margin: auto;
        background-color: var(--first-color);
        border-radius: 5%;
    }

    main section:nth-child(5) > div > div:nth-child(1) {
        display: flex;
        justify-content: center;
        margin: 10px 0 10px 0;
    }

    main section:nth-child(5) > div > div:nth-child(1) > p {
        font-size: 19px;
        padding-top: 3px;
    }

    main section:nth-child(5) label {
        font-size: 17px;
    }

    main section:nth-child(5) input {
        height: 32px;
    }

    #contact-us > div:first-child,
    #contact-us > div:nth-child(5) {
        display: flex;
        justify-content: space-between;
    }

    #contact-us > div:first-child > div,
    #contact-us > div:nth-child(5) > div {
        padding: 0 7% 0 7%;
    }

    #contact-us > div:nth-child(1) div:nth-child(1) > input:nth-child(3),
    #contact-us > div:nth-child(1) div:nth-child(2) > input:nth-child(3),
    #contact-us > div:nth-child(2) > input:nth-child(3),
    #contact-us > div:nth-child(3) > input:nth-child(3),
    #contact-us > div:nth-child(4) > input:nth-child(3) {
        width: 100%;
        cursor: text;
    }

    #contact-us > div:nth-child(4) > input:nth-child(3) {
        height: 70px;
    }

    #contact-us > div:nth-child(5) > div:nth-child(1) > input {
        cursor: text;
    }

    #contact-us > div:nth-child(5) div:nth-child(1) > input:nth-child(3),
    #contact-us > div:nth-child(5) div:nth-child(2) > input:nth-child(3) {
        width: 100%;
    }

    #contact-us > div:nth-child(5) > div:nth-child(2) {
        display: flex;
    }

    #contact-us > div:nth-child(5) > div:nth-child(2) > div:nth-child(2) {
        text-align: justify;
    }

    #contact-us > div:nth-child(5) > div:nth-child(2) > div:nth-child(1) > input {
        height: 15px;
        width: 15px;
    }

    #contact-us > div:nth-child(5) > div:nth-child(2) > div:nth-child(2) > p {
        font-size: 11.5px;
        padding: 13px 5px 0 5px;
    }

    #contact-us-section p,
    #contact-us-section label {
        color: var(--second-color);
    } 

    #contact-us-section input {
        color: var(--first-color);
        font-size: 16px;
    }

    #contact-us > div:nth-child(6) > input {
        width: 100%;
        background-color: var(--third-color);
        color: var(--first-color);
    }

    #contact-us > div:nth-child(6) > input:hover {
        border: 2px solid var(--first-color);
        box-shadow: 0 0 10px var(--fourth-color);
    }

    #contact-us input {
        border-radius: 8px;
        padding-left: 5px;
    }

    #contact-us > div:nth-child(2),
    #contact-us > div:nth-child(3),
    #contact-us > div:nth-child(4),
    #contact-us > div:nth-child(6) {
        padding: 7.5px 7% 0 7%;
    }

}

@media screen and (min-width: 349px) {

    main section:nth-child(4) p {
        font-size: 18px;
    }
}

@media screen and (min-width: 399px) {

    main article:nth-child(2) div:nth-child(1),
    main section:nth-child(4) div:nth-child(2),
    main section:nth-child(4) div:nth-child(4) {
        height: 220px;
    }

    main section:nth-child(5) label {
        font-size: 17px;
    }

    main section:nth-child(5) input {
        height: 30px;
    }

    #contact-us > div:nth-child(4) > input:nth-child(3) {
        height: 80px;
    }

    #contact-us > div:nth-child(5) > div:nth-child(2) > div:nth-child(2) > p {
        font-size: 13px;
    }
}

@media screen and (min-width: 449px) {

    main section:nth-child(4) p {
        font-size: 19px;
    }
}

@media screen and (min-width: 499px) {

    main article:nth-child(2) div:nth-child(1),
    main section:nth-child(4) div:nth-child(2),
    main section:nth-child(4) div:nth-child(4) {
        height: 240px;
    }

    main section:nth-child(4) p {
        font-size: 20px;
    }

    #contact-us-section {
        height: 570px;
    }

    main section:nth-child(5) label {
        font-size: 18px;
    }

    main section:nth-child(5) input {
        height: 35px;
    }

    main section:nth-child(5) > div:first-child > div:first-child > p {
        font-size: 23px;
    }

    #contact-us > div:nth-child(4) > input:nth-child(3) {
        height: 80px;
    }

    #contact-us > div:nth-child(5) > div:nth-child(2) > div:nth-child(2) > p {
        font-size: 14px;
    }
}

@media screen and (min-width: 549px) {

    main article:nth-child(2) div:nth-child(1),
    main section:nth-child(4) div:nth-child(2),
    main section:nth-child(4) div:nth-child(4) {
        height: 260px;
    }

    main section:nth-child(3) p {
        font-size: 25px;
    }

    main section:nth-child(4) p {
        font-size: 21px;
    }

    #contact-us-section {
        height: 550px;
    }
}

@media screen and (min-width: 649px) {

    main article:nth-child(2) div:nth-child(1),
    main section:nth-child(4) div:nth-child(2),
    main section:nth-child(4) div:nth-child(4) {
        height: 300px;
    }

    #contact-us-section {
        height: 570px;
    }

    main section:nth-child(5) label {
        font-size: 19px;
    }

    main section:nth-child(5) input {
        height: 40px;
    }

    #contact-us > div:nth-child(6) > input {
        font-size: 18px;
    }
}

@media screen and (min-width: 749px) {

    main article:nth-child(1) div > a {
        font-size: 26px;
    }

    main article:nth-child(2) div:nth-child(1),
    main section:nth-child(4) div:nth-child(2),
    main section:nth-child(4) div:nth-child(4) {
        height: 320px;
    }

    main section:nth-child(3) p {
        font-size: 26px;
    }

    main section:nth-child(4) p {
        font-size: 23px;
    }

    #contact-us-section {
        height: 580px;
    }

    #contact-us > div:nth-child(5) > div:nth-child(2) > div:nth-child(2) > p {
        font-size: 16px;
    }
}

@media screen and (min-width: 799px) {

    body {
        background-image:  url("../img/Fixed_Background.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }

    main {
        margin: 0 20% 0 20%;
    }

    article,
    section {
        border-right: 2px solid var(--first-color);
        border-left: 2px solid var(--first-color);
    }

    main article:nth-child(2) div:nth-child(1) {
        background-color: var(--first-color-opac);
    }

    main article:nth-child(2) div:nth-child(1) img {
        padding: 0 8px 0 8px;
    }

    main section:nth-child(4) {
        background-color: var(--first-color-opac);
    }

    #contact-us-section {
        height: 630px;
    }
}

@media screen and (min-width: 899px) {

    #contact-us-section {
        height: 630px;
    }
}

@media screen and (min-width: 1099px) {

    main {
        margin: 0 25% 0 25%;
    }

    main article:nth-child(2) div:nth-child(1),
    main section:nth-child(4) div:nth-child(2),
    main section:nth-child(4) div:nth-child(4) {
        height: 350px;
    }

    #contact-us-section {
        height: 630px;
    }
}

@media screen and (min-width: 1599px) {

    main {
        margin: 0 30% 0 30%;
    }
}