* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

::selection {
    color: #fff;
    background-color: #ff1f00;
}

html {
    background-color: #37474f;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* expand the body to cover all viewport height */
    max-width: 1280px;
    margin: auto;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 16px;
    color: #37474f;
    background-color: #f5f5f5;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
}

section {
    padding: 20px;
}

section h1 {
    margin: 1rem 0 2rem 0;
    font-size: 2.2rem;
}

section h1::before {
    content: '❱❱ ';
    font-size: 2.5rem;
    color: #ff1f00;
}

section h2 {
    margin-bottom: 1rem;
}

section .page-intro {
    margin-block-end: 2rem;
    font-size: 1.2rem;
}

form {
    width: 45%;
    margin: auto;
    border: solid 1px #BDBDBD;
    border-radius: 6px;
    padding: 20px;
    box-shadow: #BDBDBD 0 0 10px;
}

form h1 {
    margin-bottom: 40px;
    font-size: 1.8rem;
    text-align: center;
}

form p {
    margin-bottom: 15px;
}

form p label {
    display: inline-block;
    margin-bottom: 3px;
}

form .form-operations {
    margin: 20px 0 0 0;
    text-align: right;
}

select,
textarea,
input[type="text"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="tel"],
input[type="password"],
input[type="email"] {
    padding: 5px;
    width: 100%;
    border: solid 1px #BDBDBD;
    border-radius: 4px;
    outline-color: #ff1f00;
}

.button {
    display: inline-block;
    padding: 10px 10px;
    border: none;
    border-radius: 6px;
    outline: none;
    text-decoration: none;
    color: #fff;
    background-color: #ff1f00;
    font-size: 1rem;
    cursor: pointer;
}

.button:hover {
    background-color: #fb4128;
}

.button:active {
    background-color: #da1a00;
}

/* Page Not Found */
section.page-not-found {
    text-align: center;
}

section.page-not-found h1 {
    color: #ff1f00;
}

/* Access Denied */
section.access-denied {
    text-align: center;
}

section.access-denied h1 {
    color: #F44336;
}

.hint {
    color:#757575;
    font-size: smaller;
    font-style: italic;
}

.maintenance-mode {
    position: fixed;
    top: 0;
    padding: 0.5rem 1rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 4px 4px;
    color: #f44336;
    background-color: rgba(255, 235, 59, .9);
    font-size: smaller;
    white-space: nowrap;
    z-index: 1;
}

/* Header */
header {
    position: sticky;
    top: 0px;
    padding: 1rem 0;
    background-color: #37474F;
    z-index: 1;
}

header nav {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 10px;
    height: 40px;
}

header nav .hamburger {
    display: none;
    align-self: flex-end;
    margin-top: -2.2rem;
    padding: 0 1rem;
    outline: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
	cursor: pointer;
}

header .logo-wrapper {
    text-decoration: none;
    white-space: nowrap;
    color: #fff;
    font-size: 1.5rem;
}

header .logo{
    max-width: 64px;
    vertical-align: middle;
}

header .website-title {
    display: inline-block;
    margin-left: .5rem;
    vertical-align: middle;
}

header ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin-left: auto;
    line-height: 1;
}

header ul.language {
    margin-left: 1rem;
}

header ul li {
    margin: 0 2px;
    padding: 0 5px;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color .2s;
}

header ul.language a {
    padding: 10px 0;
}

header li:hover {
    background-color: #607D8B;
}

header li:active {
    background-color: #ff1f00;
}

header ul li.selected {
    background-color: #607D8B;
}

header ul.language li.selected {
    background-color: #ff1f00
}

header .icon {
    padding-left: 30px;
    background-position: left center;
    background-repeat: no-repeat;
}

header .icon.home {
    background-image: url('../img/home.png');
}

header .icon.products {
    background-image: url('../img/products.png');
}

header .icon.machines {
    background-image: url('../img/machines.png');
}

header .icon.contacts {
    background-image: url('../img/contacts.png');
}

header li a {
    display: inline-block;
    padding: 10px 10px;
    text-decoration: none;
    color: #E0E0E0;
}

/* Footer */
.footer {
	display: flex;
    padding: 20px;
    margin-top: auto; /* Keep the footer at the end of the page when page contents do not cover the viewport height */
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: #37474F;
}

.footer .logo {
	width: 150px;
}

.footer .left-column {
	align-self: flex-end;
}

.footer .left-column a {
    display: inline-block;
    color: #fff;
    text-align: center;
    text-decoration: none;
}

.footer .middle-column {
    margin-left: 50px;
	align-self: flex-end;
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
	transition: margin-left .2s;
}

.footer .site-links {
    margin-bottom: 40px;
	font-size: 1.2em;
}

.footer .contacts {
	font-size: 0.9rem;
    color: #cfe0e8;
}

.footer .contacts p {
    display: table-row;
    line-height: 1.5;
}

.footer .contacts span {
	display: table-cell;
	padding-right: 4px;
}

.footer .contacts a {
	margin-left: 10px;
    color: #cfe0e8;
    text-decoration: none;
}

.footer .contacts a:hover {
	color: #f5f5f5;
}

.footer .contacts .icon {
    padding: 5px 0 5px 26px;
    background-position: left center;
    background-repeat: no-repeat;
}

footer .contacts .email {
    background-image: url('../img/email.png');
}

footer .contacts .telephone {
    background-image: url('../img/telephone.png');
}

footer .contacts .mobile {
    background-image: url('../img/mobile.png');
}

footer .contacts .whatsapp {
    background-image: url('../img/whatsapp.png');
}

.footer .trademark {
    margin: 2rem 0;
    color: #dddddd;
    font-size: 1.2rem;
    text-align: center;
}

.footer .company-owner {
    font-style: italic;
    font-size: 0.9rem;
}

.footer .copyright {
	font-size: 0.8rem;
	color: #cfe0e8;
	transition: font-size .2s;
}

.footer .copyright a {
    color: #fff;
    text-decoration: none;
}

.footer .copyright a:hover {
    text-decoration: underline;
}

/* Home */
.page_home section h1 {
    margin: 2rem 0 3rem 0;
}

.banner-wrapper {
    position: relative;
    height: 400px;
    padding: 0;
}

.features-container {
    display: flex;
    flex-direction: column;
    padding: 0 8rem;
}

.features-container .feature {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 1rem 0;
}

.features-container .feature.alt {
    flex-flow: row-reverse;
}

.features-container .feature img {
    max-width: 300px;
    border-radius: 8px;
    box-shadow: #000 0 0 5px;
}

.features-container .feature .description {
    margin: 0 2rem;
    font-size: 1.2rem;
    color: #546e7a;
}

.features-container .feature .description h3 {
    margin-bottom: 1rem;
    font-weight: bold;
    font-size: 1.5rem;
    color: #37474f;
}

/* Products */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 1rem;
}

.cards-container .card {
    display: flex;
    position: relative;
    flex-direction: column;
    flex-basis: 30%;
    margin: 13px;
    padding: 10px;
    border-radius: 8px;
    color: #fff;
    background-color: #263238;
    box-shadow: #263238 2px 2px 5px;
}

.card h3 {
    padding: 10px;
    border-radius: 6px 6px 0 0;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 1px;
    line-height: 1;
    background-color: #01579B;
}

.card img {
    align-self: center;
    margin: 0 0 2rem 0;
    padding: 0;
    border-radius: 0 0 6px 6px;
    max-width: 100%;
    max-height: 300px;
}

.card .brief {
    margin-bottom: 1rem;
    color: #B0BEC5;
    font-size: 0.9rem;
    line-height: 1.5;
}

.card .more {
    margin-top: auto;
    padding: .5rem;
    cursor: pointer;
    outline: none;
}

.card .details {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    margin: 0;
    padding: 1rem 1rem 0 1rem;
    top: 2.9rem;
    left: 0;
    height: calc(100% - 3.7rem);
    width: 100%;
    background-color: rgba(38, 50, 56, .9);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: opacity .5s, visibility .5s;
}

.card .details p {
    margin-bottom: .5rem;
}

.card .more:focus + .details {
    visibility: visible;
    opacity: 1;
}

/* Machines */
.page_machines .card h3 {
    background-color: #ff1f00;
}

/* Contacts */
.contacts-trademark {
    margin: 1rem;
    text-align: center;
}

.contacts-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: 1rem;
}

.contacts-wrapper form {
    margin: initial;
}

.contacts-wrapper form button[type="submit"] {
    float: right;
}

.department-hours {
    padding: 1rem;
    border-radius: 6px;
    border: solid 1px #BDBDBD;
    box-shadow: #BDBDBD 0 0 10px;
    font-size: smaller;
}

.department-hours h2 {
    margin-bottom: 1rem;
    color: #ff1f00;
}

.department-hours div {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.department-hours .department {
    font-weight: bold;
    margin-bottom: 5px;
}

.more-contacts {
    display: table;
    width: 100%;
    margin-top: 2rem;
    font-size: smaller;
}

.more-contacts p {
    display: table-row;
}

.more-contacts label {
    display: table-cell;
    width: 1%;
    padding: 0 2rem .5rem 0;
    white-space: nowrap;
    color: #ff1f00;
}

.more-contacts label.spacer {
    padding-top: 1rem;
}

.more-contacts a {
    text-decoration: none;
    color: #37474f;
}

/* Message */
.message {
    position: fixed;
    top: 50px;
    z-index: 1;
    width: 90%;
    padding: 10px 20px;
    margin: auto;
    border: solid 5px #37474f;
    border-radius: 6px;
    line-height: 1.8;
    color: #37474f;
    background-color: #F5F5F5;
    max-width: 500px;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: #9E9E9E 0 0 10px;
}

.message .close {
    float: right;
    padding: 5px;
    border-radius: 50%;
    line-height: 0.9;
    color: #fff;
    background-color: #F44336;
    cursor: pointer;
}

.message.exception,
.message.error {
    border-color: #F44336;
}

.message.info {
    border-color: #2196f3;
}

.message.warning {
    border-color: #ff5722;
}

.message.success {
    border-color: #4CAF50;
}

/* Reponsive */
@media (max-width: 1024px) {
    .features-container {
        padding: 0 4rem;
    }

    .cards-container .card {
        flex-basis: 40%;
    }

    form {
        width: 80%;
    }
}

@media (max-width: 950px){
    header nav {
        flex-direction: column;
        align-items: stretch;
	}

	header nav .hamburger {
		display: inline-block;
	}

	header nav ul {
        display: block;
        visibility: hidden;
        padding: 10px 10px 0 10px;
        margin: 1.3rem -10px 0 -10px;
        background-color: rgba(38, 50, 56, .95);
        transition: visibility .3s; /* this delay gives some time for the nav item to receive click event */
    }

    header ul li {
        margin: 5px 0;
    }

    header ul.language li {
        width: auto;
    }

    header nav ul.language {
        visibility: hidden;
        margin: 0 -10px;
        padding: 1rem;
    }
    
    header ul.language li {
        display: inline-block;
        border: white 1px solid;
    }

    header nav .hamburger:focus~ul {
        visibility: visible;
    }
   
    
    header nav ul a {
        display: block;
    }

    header nav ul.language li a {
        padding: 10px 10px;
    }
    
	header nav~ul>li {
		margin: 0;
	}

    .footer {
		flex-direction: column;
	}

	.footer .left-column {
		align-self: center;
	}
	
	.footer .middle-column {
        flex-direction: column;
		margin: 1rem 0;
		align-self: center;
		align-items: center;
	}

	.footer .site-links {
		margin-bottom: 10px;
		text-align: center;
	}

	.footer .copyright {
        margin-top: 20px;
		text-align: center;
	}

	.footer .right-column {
		margin-top: 40px;
		align-self: center;
    }
}

@media (max-width: 850px){   
    .cards-container .card {
        flex-basis: 44%;
    }
}

@media (max-width: 800px) {
    header nav {
        font-size: .9rem;
    }

    header nav li a {
        padding: 10px 0;
    }

    .banner-wrapper {
        height: 300px;
    }

    section h1 {
        font-size: 2rem;
    }

    section h1::before {
        font-size: 2.3rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    section .page-intro {
        font-size: 1.1rem;
    }

    .features-container {
        padding: 0;
    }

    .contacts-wrapper {
        flex-direction: column;
    }

    .contacts-wrapper > * {
        align-self: center;
        margin-top: 2rem;
    }

    form {
        width: 100%;
    }
}

@media (max-width: 650px) {
    .banner-wrapper {
        height: 200px;
    }

    section h1,
    .page_home section h1 {
        margin: 1rem 0;
        font-size: 1.6rem;
    }

    section h1::before {
        font-size: 1.9rem;
    }

    section h2 {
        font-size: 1.3rem;
    }

    .features-container .feature,
    .features-container .feature.alt {
        margin: 2rem 0;
        flex-direction: column;
    }

    .features-container .feature .description {
        margin: 1rem;
        text-align: center;
    }

    .features-container .feature .description h3 {
        font-size: 1.3rem;
    }
    
    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .cards-container .card {
        max-width: 68%;
    }

    .cards-container .card img {
        align-self: stretch;
    }
}

@media (max-width: 510px) {
    section h1 {
        font-size: 1.2rem;
    }

    section h1::before {
        font-size: 1.5rem;
    }

    section h2 {
        font-size: 1.1rem;
    }

    section .page-intro {
        font-size: 1rem;
    }

    .features-container .feature .description {
        font-size: 1rem;
    }

    .features-container .feature .description h3 {
        font-size: 1.1rem;
    }

    .cards-container .card {
        max-width: 100%;
    }
}

@media (max-width: 375px) {
    .footer {
        padding: 20px 5px;
    }

    .footer .middle-column {
        margin: 1rem 0 0;
    }

    .footer .contacts {
        font-size: 0.7rem;
    }

    .footer .copyright {
        font-size: 0.7rem;
    }

    section {
        padding: 10px;
    }

    .cards-container .card {
        margin: 13px 0;
        max-width: 100%;
    }

    .cards-container .card .details {
        padding-top: .5rem;
        font-size: 0.8rem
    }
}