/* Containers */

.container {
    width: 70%;
    margin: 0px auto;
}

.wide {
    width: 90%
}

main {
    background-image: url("img/background.webp");
    background-size: cover;
    min-height: 100vh;
    padding: 15px;
}

.section {
    margin-top: 3em;
    margin-bottom: 3em;
}

/* Common text */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a:link,
a:visited,
li {
    color: rgb(37, 37, 37);
}

a:hover {
    color: rgb(102, 102, 102);
}

html {
    font-size: 20px;
}

p,
a,
li {
    font-family: "Roboto", Geneva, Verdana, sans-serif;
    font-size: 1.2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
    margin: 0.5em 0.1em;
}

h1 {
    font-size: 6rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

a:link,
a:visited {
    text-decoration: none;
}

.center {
    text-align: center;
}

/* Header */

header {
    background-color: rgb(36, 95, 255);
    padding: 0px 2em;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

header>* {
    /* For em unit to work */
    font-size: 1em;
}

header h1 {
    font-size: 2em;
    margin: 0px 0.5em;
}

header nav>a {
    font-size: 1em;
}

nav {
    margin: 0px;
}

nav a {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin: 0px 0px;
    padding: 0px 1em;
    line-height: 2.5em;
    font-weight: normal;
    display: inline-block;
}

header h1,
nav a:link,
nav a:visited {
    color: whitesmoke;
}

nav a:hover,
nav a.selected {
    background-color: rgba(0, 0, 0, 0.25);
}

nav a:hover {
    color: rgb(168, 168, 168);
}

nav a {
    transition: background-color ease-out 100ms, color ease-out 100ms;
}

/* Main */

.title * {
    margin: 0px;
}

.image,
.image-large,
.image-huge {
    margin: 10px;
    border: 2px solid rgb(44, 44, 49);
    border-radius: 4px;
}

.image {
    width: 350px;
    max-width: 30%;
    margin: 20px;
}

.image-large {
    width: 600px;
    max-width: 50%;
}

.image-huge {
    width: 800px;
    max-width: 80%;
    box-shadow: 0px 0px 30px rgb(88, 88, 131);
}

img.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.left {
    float: left;
}

.right {
    float: right;
}

.contacts-list {
    width: 1000px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.contacts-list>div {
    text-align: center;
    margin: 10px 0px;
    width: 250px;
}

i {
    background-color: whitesmoke;
    width: 48px;
    height: 48px;

    display: block;
    mask-size: cover;
    margin: 0px auto;
}

.icon-mail,
.icon-phone,
.icon-x,
.icon-facebook {
    filter: brightness(0.15);
}

.icon-mail {
    mask-image: url(img/icon-mail.webp);
}

.icon-phone {
    mask-image: url(img/icon-phone.webp);
}

.icon-x {
    mask-image: url(img/icon-x.webp);
}

.icon-facebook {
    mask-image: url(img/icon-facebook.webp);
}

.description-flex,
.description-flex-reverse {
    display: flex;
    align-items: center;
}

.description-flex {
    flex-direction: row;
}

.description-flex-reverse {
    flex-direction: row-reverse;
}

.description {
    padding: 0px 30px;
}

.service-list {
    display: flex;
    justify-content: center;
}

.service-list>div {
    border-radius: 15px;
    width: 30%;
    margin: 0% 0.5%;
    box-shadow: 0px 2px 5px black;
    background: linear-gradient(180deg, rgba(36, 95, 255, 1) 0%, rgba(36,
                95,
                255, 1) 40%, rgb(243, 243, 243) 41%);
}

.service-list>div h4 {
    color: white;
}

.service-list>div * {
    text-align: center;
}

/* Footer */

footer {
    background-color: rgb(37, 41, 46);
    padding: 5px 50px;
    font-size: 1rem;
}

footer * {
    color: whitesmoke;
}

footer p {
    font-size: 1em;
}

.footer-hr {
    border: none;
    height: 3px;
    margin: 0px;
}

/* Misc */

body {
    margin: 0px;
}

hr {
    margin: 30px 0px;
    border: 1px solid #1C1F2E;
    background-color: #1C1F2E;
}

.visible-narrow {
    display: none;
}

/* Responsivity */

/* 1. Large devices */
@media (max-width: 1200px) {
    html {
        font-size: 16px;
    }

    .image {
        width: 350px;
        max-width: 50%;
    }

    .image-large {
        width: 350px;
    }

    .image {
        width: 350px;
        max-width: 30%;
    }

    .service-list>div {
        background: linear-gradient(180deg, rgba(36, 95, 255, 1) 0%, rgba(36,
                    95,
                    255, 1) 32%, rgb(243, 243, 243) 33%);
    }
}

/* 2. Medium devices */
@media (max-width: 992px) {
    html {
        font-size: 14px;
    }

    .image-large {
        width: 400px;
        max-width: 80%;
    }

    .description-flex,
    .description-flex-reverse {
        flex-direction: column-reverse;
    }

    .visible-narrow {
        display: block;
    }
}

/* 3. Small devices */
@media (max-width: 760px) {
    header {
        display: block;
        padding: 0px 0px;
        font-size: 12px;
    }

    footer {
        font-size: 0.75rem;
    }

    header h1 {
        padding: 5px;
    }

    html {
        font-size: 16px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    .container {
        width: 90%;
    }

    .wide {
        width: 100%;
    }

    .image {
        max-width: 80%;
    }

    .image-large {
        max-width: 90%;
    }

    .image-huge {
        max-width: 100%;
    }

    .service-list {
        align-items: center;
        flex-direction: column;
    }

    .service-list>div {
        width: 80%;
        margin: 3% 0.5%;
        background: linear-gradient(180deg, rgba(36, 95, 255, 1) 0%, rgba(36,
                    95,
                    255, 1) 30%, rgb(243, 243, 243) 31%);
    }

    .center-slim {
        float: none;
        margin: 0px auto;
        display: block;
    }

    .center-text-slim {
        text-align: center;
    }
}

/*@media screen and (min-width: 499px) {
    .visible-narrow {
        display: none;
    }
}

@media screen and (max-width: 500px) {

    h1,
    h2,
    h3 {
        text-align: center;
    }

    .image {
        float: none;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 25px;
    }

    h3 {
        font-size: 20px;
    }

    nav a {
        font-size: 16px;
        padding: 10px 15px;
    }

    p,
    li,
    a {
        font-size: 15px;
    }

    .image-large {
        max-width: 80%;
    }

    .container {
        width: 100%;
        min-width: auto;
        max-width: none;
    }

    .description-flex,
    .description-flex-reverse {
        flex-direction: column-reverse;
    }
}*/