.merriweather-300 {
  font-family: "Merriweather", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

body {
	font-family: 'Arial', sans-serif;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	color: #333;
	background-image: url('/img/scenery.svg');
	background-position: center -50px;
	background-repeat: no-repeat;
    background-clip: padding-box;
	max-width: 800px;
	margin: auto;
	max-height: 450px;
}

/* body.move {
    background-position: -800px -50px;
} */

/* body.bg-reset {
    background-position: 800px -50px;
    background-image: none;
    transition: background-position 0s;
} */

body.bg-unit {
    /* transition: background-position 0.5s; */
    /* background-position: center -50px; */
    background-image: url('/img/unit.svg');
}

header {
    padding: 10px;
    text-align: center;
    color: #333;
}

header .container {
    display: flex;
    align-items: last baseline;
    position: relative;
}

.container h2 {
    margin: 0;
}

#company {
    display: flex;
    align-items: center;
}

#logo {
    width: 64px;
    aspect-ratio: 1;
}

#company_name {
    text-align: left;
    margin-left: 8px;
}

#company_name h1 {
    margin: 0;
    font-size: 2.6em;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: #b90034;/*  #ff7800; */
}

#company_name h2 {
    margin: 0;
    font-size: 1.1em;
    font-family: 'Arial Narrow';
    padding-bottom: 10px;
    letter-spacing: 0.3px;
    color: #124f73;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes flyInRightFade {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0%);
        opacity: 1;
    }
}

nav {
    width: 65%;
    font-family: 'Roboto', sans-serif;
    animation: fadeIn 1.0s ease-in 5s;
    animation-fill-mode: both;
    z-index: 1;
}

nav #menu_icon {
    display: none;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    padding-left: calc(100% - 420px);
}

nav a {
    text-decoration: none;
    margin: 0 15px;
    color: #888;
}

nav a:hover {
    text-decoration: underline;
}

nav a.active {
	text-decoration: underline;
	color: #333;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
	text-decoration-color: #e36b00;
}

section {
    padding: 0 10px;
}

section.hero {
    min-height: 310px;
}

.hero .container {
	padding: 4px 16px;
	/* background-color: #fff5; */
	border-radius: 6px;
	width: fit-content;
    max-width: 60%;
}

.hero .call-to-act {
    display: none;
}

.hero .call-to-act.show {
    display: block;
}

.hero .call-to-act h2 {
    font-size: 1.6em;
    color: #030053;
    font-family: 'Roboto Slab', sans-serif;
    text-shadow: 2px 2px 2px #1cccff;
    animation: fadeIn 1.0s ease-in 0s;
    animation-fill-mode: both;
}

.hero .call-to-act p:nth-child(2) {
    font-size: 1.4em;
    animation: fadeIn 0.5s ease-in 1.5s;
    animation-fill-mode: both;
}

.hero .actions p:first-child {
    width: 100%;
    font-size: 1.0em;
    font-family: 'Nunito';
    margin: 0 0 4px;
    animation: fadeIn 1.0s ease-in 3s;
    animation-fill-mode: both;
}

.hero .actions p:nth-child(4) {
    font-size: 0.8em;
    font-style: italic;
    font-family: 'Nunito';
    margin: 4px;
    animation: fadeIn 1.0s ease-in 3s;
    animation-fill-mode: both;
}

.hero .actions {
    display: flex;
    flex-wrap: wrap;
    animation: fadeIn 1.0s ease-in 3s;
    animation-fill-mode: both;
}

.actions a {
	text-decoration: none;
	display: flex;
	padding: 8px 12px;
	background-color: #0158ff;
	border-radius: 8px;
	color: #fff;
	font-size: 1.2em;
    align-items: center;
    box-shadow: 2px 2px 4px #888;
    min-width: 120px;
    justify-content: center;
}

.actions a:nth-child(2) {
    text-shadow: 2px 2px 2px #555;
}

.actions a:nth-child(3) {
    margin-left: 8px;
    background-color: #00d74a;
    text-shadow: 2px 2px 2px #6466ed;
}

.actions a > svg {
    margin-right: 8px;
}

#about, #products, #services, #contact {
    font-size: 1.2em;
    font-family: 'Nunito', sans-serif;
}

section:not(.hero) .container {
    text-align: justify;
}

section:not(.hero) .container h3 {
    margin: 12px 12px 0;
}

section:not(.hero) .container p {
    margin: 4px 12px 20px;
}

#product-grid {
    display: flex;
    flex-wrap: wrap;
}

.product {
    display: inline-block;
    width: 29%;
    margin: 5px 0 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    font-size: 1.0em;
    transition: transform 0.2s;
}

.product:hover {
    transform: scale(1.05);
}

.product img {
    display: none;
    max-width: 100%;
    border-radius: 5px;
}

.product p {
    font-size: 0.9em;
}

#contact-options > div > p {
    margin: 4px 0 4px 12px;
    font-size: 0.9em;
}

#hours > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 6px 12px;
    font-size: 0.9em;
}

#hours > div > div {
    display: flex;
    align-items: center;
    margin: 6px 0;
    min-width: 60%;
}

#hours span:first-child {
    display: inline-block;
    min-width: 180px;
}

#map iframe{
    width: calc(100% - 24px);
    margin: 12px;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    font-size: 0.8em;
}

@media only screen and (max-width:820px) {
    body {
        background-size: cover;
    }
}

@media only screen and (max-width:740px) {
    nav {
        position: absolute;
        top: 0;
        right: 10px;
    }

    nav > #menu_icon {
        display: block;
        width: 40px;
        fill: #aaa;
        position: absolute;
        top: 8px;
        right: 0;
    }

    nav > #menu_icon:hover {
        fill: #333;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 36px;
        right: 0;
        width: max-content;
        text-align: left;
        padding: 10px;
        margin: 0;
        background-color: #a7ecff;
        border-radius: 4px;
        border: 1px solid #25b5c4;
    }

    nav > #menu_icon:hover + ul,
    nav > ul:hover {
        display: block;
    }

    nav li {
        padding: 16px 0;
    }

    .hero .container {
        max-width: 65%;
    }
}

@media only screen and (max-width:640px) {
    body.bg-reset {
        background-position: center -50px;
        background-image: url('/img/scenery2.svg');
    }
    body, body.bg-unit {
        background-image: url('/img/scenery2.svg');
        max-height: 400px;
    }
    header {
        padding: 10px 10px 0;
    }
    section.hero {
        padding: 5px;
        min-height: 250px;
    }

    .hero .container {
        width: auto;
        max-width: none;
        padding: 5px 10px;
    }

    .hero .call-to-act h2 {
        font-size: 1.2em;
    }

    .hero .call-to-act p:nth-child(2) {
        font-size: 1.0em;
        margin: 16px 0;
    }

    .hero .call-to-act p:nth-child(3) {
        width: 75%;
    }

    #about {
        font-size: 1.0em;
    }

    section:not(.hero) .container h3 {
        margin: 8px 8px 0;
    }

    section:not(.hero) .container p {
        margin: 4px 8px 16px;
    }

    .product {
        width: 100%;
        margin: 10px 5px;
    }

    #hours > div {
        font-size: 0.8em;
    }

    #map iframe {
        margin: 0;
        width: 100%;
    }
}