@charset "utf-8";

html {
    font-size: 100%;
    scroll-behavior: smooth;
}
body {
	font-family: sans-serif;
}
section{
    border-bottom: 1px solid #e0c7b2;
    background: #dbddf3;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #fffcdc, #dbddf3);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #fffcdc, #dbddf3); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
section:nth-child(odd){
    background: #c6e7f0;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #EAECC6, #c6e7f0);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #EAECC6, #c6e7f0); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
p {
    line-height: 2.7;
}
h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}
h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}
h1,
h2 {
    text-align: center;
}
hr {
    margin: 4rem auto;
}

/* Layout */
.wrapper {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background-color: #1a439c;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 15;
}
header .wrapper {
    max-width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header a,
header button {
    color: white;
    font-size: 1.2rem;
}
header img {
    width: 15%;
}
.btn-menu {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: .5rem 1rem;
}
.main-nav {
    background-color: #1a439c;
    width: 0;
    position: absolute;
    z-index: 2;
    top: 50px;
    right: 0;
    overflow: hidden;
    transition: .5s;
}
.main-nav li {
    text-align: center;
    margin: 2rem 0;
}
.main-nav a {
    display: block;
}
.main-nav.open-menu {
    width: 100%;
}

/* HERO */
#hero {
    background-image: url(../img/top-main2.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
}
/*
.main_imgBox {
    height: 100vh;
    overflow: hidden;
    position: relative;
}
.main_img {
    z-index: 10;
    opacity: 0;
    width: 100%;
    height: 100vh;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    left: 0;
    top: 0;
    -webkit-animation: anime 36s 0s infinite;
    animation: anime 36s 0s infinite;
}
.main_img:nth-of-type(2) {
    -webkit-animation-delay: 6s;
    animation-delay: 6s;
}

.main_img:nth-of-type(3) {
    -webkit-animation-delay: 12s;
    animation-delay: 12s;
}
.main_img:nth-of-type(4) {
    -webkit-animation-delay: 18s;
    animation-delay: 18s;
}
.main_img:nth-of-type(5) {
    -webkit-animation-delay: 24s;
    animation-delay: 24s;
}
.main_img:nth-of-type(6) {
    -webkit-animation-delay: 30s;
    animation-delay: 30s;
}
@keyframes anime {
    0% {
          opacity: 0;
      }
      8% {
          opacity: 1;
      }
      17% {
          opacity: 1;
      }
      25% {
          opacity: 0;
          transform: scale(1.2) ;
           z-index:9;
      }
      100% { opacity: 0 }
}
*/
#hero .wrapper{
    max-width: 95%;
    display: flex;
    justify-content: flex-end;
}
#hero h1 {
    margin-top: 6rem;
    mix-blend-mode: overlay;
    z-index: 14;
}

/* ABOUT */
#about {
    padding: 4.8rem 1rem;
}
#about h1 {
    font-size: 2.2rem;
    margin-bottom: 4rem;
}
#about p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}
.about-table {
    width: 100%;
}
.about-table th,
.about-table td {
    display: block;
    line-height: 1.5;
    padding: 12px;
}
.about-table th {
    border-bottom: 2px dotted black;
}
.truck-cnt {
    border-bottom: 1px solid black;
}

/* OFFICE */
#office {
    padding: 4.8rem 1rem;
}
#office h2 {
    margin-top: 4rem;
}
#office .wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.branch{
    width: 350px;
    margin: 8px;
    border-width: 1px;
    border-color: #1a439c;
    border-right-style: dotted;
    border-bottom-style: dotted;
}
.gmap {
    height: 0;
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
}
.gmap iframe {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
}
.content {
    padding: 8px;
}
.content p {
    line-height: 1.8;
}

/* SAFETY */
#safety {
    padding: 4.8rem 1rem;
}
#safety h1 {
    margin-bottom: 4rem;
}
#safety ul {
    list-style: disc;
}
#safety ol {
    list-style: decimal;
}
#safety li {
    margin-top: 2rem;
    margin-bottom: 2rem;
}
#safety .right {
    margin-left: 2rem;
}

/* FOOTER */
footer {
    width: 100%;
    background-color: #1a439c;
    color: rgb(218, 218, 218);
}
footer .wrapper {
    padding: 30px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
footer address {
    width: 350px;
    padding: 30px 0 30px 2rem;
}
footer p {
    line-height: 1.8;
}
footer .banner {
    width: 350px;
    padding: 30px 0 30px 2rem;
}
footer .jump {
    animation: fluffy 3s ease 10;
}
@keyframes fluffy {
    0% { transform:translateY(0) }
    5% { transform:translateY(0) }
    10% { transform:translateY(0) }
    20% { transform:translateY(-15px) }
    25% { transform:translateY(0) }
    30% { transform:translateY(-15px) }
    50% { transform:translateY(0) }
    100% { transform:translateY(0) }
}
footer #copyright {
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid #b2d3e0;
    background-color: #0c3181;
    color: #b2cee0;
}

/* DESKTOP SIZE */
@media (min-width: 800px) {

    /* Header */
    .btn-menu {
        display: none;
    }
    .main-nav {
        width: 100%;
        position: static;
        display: flex;
    }
    .main-nav li {
        margin: 0 0 0 1.5rem;
    }

    /* HERO */
    #hero h1 {
        font-size: 6rem;
        margin-top: 6rem;
    }

    /* ABOUT */
    .about-table th,
    .about-table td {
        display: table-cell;
        border-bottom: 1px solid black;
    }
    .truck-cnt {
        text-align: right;
    }

    /* FOOTER */
    footer address,
    footer .banner {
        border-left: 1px solid #774831;
    }
}
