@import url('https://fonts.googleapis.com/css?family=Exo+2');

* {
    margin: 0;
    padding: 0;
}

.bg-light {
    background: #fff;
}

.center {
    text-align: center;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: #eee;
    height: auto;
}

main {
    max-width: 960px;
    margin: auto;
    box-shadow: 30px 0px 40px rgba(0,0,0,0.2),
        -30px 0px 40px rgba(0,0,0,0.2)
}

#landing {
    background: #fff;
}

#landing-text {
    display: flex;
    flex: 0 1 40vw;
    height: 50vh;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

#landing-text h1 {
    font-weight: 400;
    font-size: 1.6rem;
    text-transform: uppercase;
}

#landing-text img {
    width: 160px;
}

#landing-text p {
    color: rgb(110, 110, 110);
}

#landing-text p.message {
    padding: 2rem 0 0.5rem 0;
    color: rgb(231, 22, 22);
}

#landing-text .btn,
#learn-how .btn,
#promo .btn {
    padding: 0.5rem 2rem;
    margin-top: 2rem;
    border: 1px solid #ccc;
    border-radius: 25px;
    display: inline-block;
    text-decoration: none;
    color: #444;
    transition: background 500ms ease;
}

#landing-text .btn:hover,
#learn-how .btn:hover,
#promo .btn:hover,
#request .btn:hover {
    background: #f4f4f4;
}

#landing-image {
    background: url(../img/landing.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 50vh;
    flex: 0 1 60vw;
}

#landing-image .cloud-element {
    display: inline-block;
    min-width: 120px;
    padding: 0.5rem 1.2rem;
    border: 0.1rem solid rgba(250,250,250,0.7);
    border-radius: 15px;
    background: rgba(240,240,240,0.5);
    text-align: center;
    font-weight: 400;
    color: rgba(255,255,255,1);
}

#login {
    display: grid;
    grid-row-gap: 4px;
    grid-template-rows: repeat(3, 1fr);
    margin-top: 15px;
    list-style-type: none;
    width: 100%;
}

#login input {
    box-sizing: border-box;
    padding: 0.2rem 0.4rem;
    width: 100%;
    font-size: 1.2rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

main {
    position: relative;
}

main section {
    padding: 1rem;
    min-height: 10vh;
}

main > section:nth-child(odd) {
    background: #fff;
}

main section h3.title {
    margin-bottom: 0.5rem;
    padding-bottom: 0.1rem;
    padding-left: 0.5rem;
    letter-spacing: 0.1rem;
    color: rgba(181, 45, 45, 0.87);
    border-bottom: 2px solid rgba(181, 45, 45, 0.87);
}

main section h3.rate {
    margin: 1rem 0.5rem 0.5rem 0.7rem;
}

main section div.grid {
    margin-top: 0.5rem;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

main section table {
    width: 100%;
    table-layout: fixed;
	border-collapse: collapse;
}

main section th {
    text-align: left;
}

main section table thead th {
    padding-bottom: 0.3rem;
    border-bottom: #444 2px solid;
}

main section table tfoot th {
    border-top: #444 2px solid;
}

main section table td {
    padding-bottom: 0.2rem;
    border-bottom: #444 1px solid;
}

main section table td.line {
    text-align: center;
    vertical-align: middle;
    height: 150px;
}

main section .hint {
    margin-top: 0.5rem;
    text-align: right;
}

main section .btn {
    padding: 0.5rem 2rem;
    margin-top: 2rem;
    border: 1px solid #ccc;
    border-radius: 25px;
    display: inline-block;
    text-decoration: none;
    color: #444;
    transition: background 500ms ease;
}

main section .btn:hover {
    background: #f4f4f4;
}

main section table tr.status_3 td {
    color: #aaa;
}

main section input[type=text],
main section input[type=email],
main section input[type=number],
main section input[type=date],
main section textarea {
    border: none;
    background: rgba(255,255,255,0);
    font-size: 0.9rem;
}

main section input[type=text],
main section input[type=email],
main section textarea {
    width: 100%;
    font-style: italic
}

main section table thead select {
    width: 98%;
}

main section textarea {
    resize: none;
}

.feedback input[type=number],
.feedback input[type=submit] {
    padding: 0.5rem 0.3rem;
    margin-top: 1rem;
    border: 1px solid #ccc;
    border-radius: 25px;
    display: inline-block;
    text-decoration: none;
    color: #444;
}
.feedback input[type=number] {
    width: 200px;
}
.feedback input[type=submit] {
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    transition: background 500ms ease;
}
.feedback input[type=submit]:hover {
    background: #f4f4f4;
}

#error {
    position: absolute;
    width: 100%;
    margin: 1rem auto;
    padding: 5.1rem 0;
    text-align: center;
    letter-spacing: 0.2rem;
    color: red;
    background: #fff;
    border: solid 1px red;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    z-index: 9;
}

.pagination {
    list-style-type: none;
}
.pagination li {
    display: inline;
    box-sizing: border-box;
    border: 1px solid #444;
    padding: 0.2rem 0.5rem;
}
.pagination li a {
    text-decoration: none;
    color: #444;
}

#request ul {
    position: relative;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

#request li {
    box-sizing: border-box;
}

#request input[type="text"],
#request input[type="number"],
#request select {
    box-sizing: border-box;
    padding: 0.2rem 0.4rem;
    width: 100%;
    font-size: 1.2rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#request select {
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-indent: 1px;
    text-overflow: '';
}

#request input[type="number"] {
    text-align: center;
}

#request .request_head {
    display: grid;
    grid-row-gap: 4px;
    grid-template-rows: repeat(2, 1fr);
    margin-bottom: 4px;
}

#request .origin {
    position: relative;
}

#request #cargo_section > ul:nth-child(even){
    border-top: 1px dashed #444;
    border-bottom: 1px dashed #444;
    padding-top: 0.5rem;
    margin-bottom: 0.5rem;
}

#request .cargo .cross1,
#request .cargo .cross2 {
    padding: 0.3rem 0.2rem;
    font-size: 0.8rem;
}

#request .cargo .space {
    visibility: hidden;
    font-size: 0.01rem;
    padding: 0;
}

#request .cargo .package {
    grid-area: package;
}

#request .cargo .qty {
    grid-area: qty;
}

#request .cargo .length {
    grid-area: length;
}

#request .cargo .width {
    grid-area: width;
}

#request .cargo .cross1 {
    grid-area: cross1;
}

#request .cargo .height {
    grid-area: height;
}

#request .cargo .cross2 {
    grid-area: cross2;
}

#request .cargo .space {
    grid-area: space;
}

#request .cargo .weight {
    grid-area: weight;
}

#request .cargo {
    display: grid;
    grid-gap: 4px;
    grid-template-areas:
        'package package package package qty'
        'length cross1 width cross2 height'
        'weight weight weight weight weight';
}

#request .request_controls {
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}
#request .request_controls > div {
    text-align: center;
    margin-top: 1rem;
}

#request .request_controls .btn {
    min-width: 9rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid #ccc;
    border-radius: 25px;
    display: inline-block;
    text-decoration: none;
    font-size: 1.1rem;
    color: #444;
    background: #fff;
    transition: background 500ms ease;
}

#request .request_controls .btn:hover {
    background: #f4f4f4;
}

#request .origin .result {
    position: absolute;
    background: #fff;
    z-index: 99;
}

#request .origin input[type="text"], .result {
    width: 100%;
    box-sizing: border-box;
}

#request .result p {
    padding: 0.3rem 0.8rem;
    border: 1px solid #CCC;
    border-bottom: none;
    cursor: pointer;
    font-size: 1.1rem;
}

#request .result p:hover {
    background: #f2f2f2;
}

#request .result p .service {
    font-size: 0.00001rem;
}

#footer {
    padding-top: 2rem;
    margin: 1rem auto 0 auto;
    text-align: center;
}

#footer p {
    text-align: center;
    margin-top: 0.6rem;
}

#footer ul {
    list-style-type: none;
    margin-bottom: 1.2rem;
}

#footer li {
    margin-bottom: 0.2rem;
}

#footer ul a {
    
    text-decoration: none;
    color: #444;
}

#footer ul li.delimiter {
    visibility: hidden;
    height: 0.01rem;
}

#privacy h3 {
    margin: 1.5rem 0 0.2rem 0;
}
#privacy p {
    margin-top: 0.8rem;
    line-height: 1.2rem;
    text-align: justify;
}

@media(min-width: 500px) {
    #landing {
        display: flex;
    }
     
    #landing-text,
    #landing-image {
        height: 87vh;
    }

    #landing-text img {
        width: 250px;
    }

    #footer ul li {
        display: inline;
    }

    #footer ul li.delimiter {
        visibility: visible;
    }

    header {
        display: grid;
        grid-gap: 20px;
        grid-template-columns: 1fr 2fr;
        align-items: center;
        height: 80px;
        padding: 4vh 30px;
        background: #fff;
    }
    
    header > div {
        margin: 0 auto;
    }

    header #logo {
        text-align: center;
    }
    header nav {
        text-align: right;
    }

    header nav ul {
        list-style-type: none;
    }

    header nav ul li {
        display: inline;
        margin-left: 0.6rem;
    }

    header nav ul a {
        display: inline;
        text-decoration: none;
        color: #444;
    }

    #schedule .container,
    #learn-how .container,
    #promo .slide {
        display: grid;
        grid-gap: 20px;
        grid-template-columns: repeat(3, 1fr);
    }

    #schedule .container > div,
    #learn-how .container > div {
        margin: 0 auto 0.5rem auto;
        padding: 0 1rem;
        border-top: none;
    }
    .slider {
        position: relative;
        overflow: hidden;

        min-height: 180px;
    }

    #promo .slide {
        display: grid;
        grid-gap: 20px;
        grid-template-columns: repeat(3, 1fr);
    }

    #promo .slide .card {
        border-right: 1px dotted #444;
        border-top: none;
    }

    #promo .card.last {
        border-right: none;
    }

    #request .request_head .name {
        grid-area: name;
    }
    
    #request .request_head .email {
        grid-area: email;
    }

    #request .request_head .origin {
        grid-area: origin;
    }
    
    #request .request_head .destination {
        grid-area: destination;
    }

    #request .request_head {
        display: grid;
        grid-gap: 0.5rem;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(1, 1fr);
        grid-template-areas:
            'origin destination';
        margin-bottom: 0.5rem;
    }

    #request .cargo {
        grid-row-gap: 0.5rem;
        grid-template-areas:
            'package package package package package space qty'
            'length cross1 width cross2 height space weight';
    }

    #request #cargo_section > ul:nth-child(even){
        border-top: 1px dashed #444;
        border-bottom: 1px dashed #444;
        margin-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    #request .cargo .space {
        visibility: visible;
        padding: 0.3rem 0.2rem;
        font-size: 0.8rem;
    }
}

/* landscape */
@media(max-height: 500px) {
    #landing-text .btn {
        display: none;
    }
}