html {
    font-family: Helvetica, Verdana, Arial, sans-serif;
    font-size: 100%;
    min-width: 280px;
    height: 100%;
}

body, html {
    width: 100%;
}

/**********
 * Header *
 **********/

header {
    background-color: #2F2C59;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

header {
    background-image: url(../img/logo_02.png);
    background-size: contain;
    background-repeat: no-repeat;
}

header div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    min-height: 100px;
}

header div #title {
    color: rgba(0, 0, 0, 0);
    font-size: 2.3rem;
    font-weight: bolder;
    min-width: 100px;
}

header div #tel {
    display: none;
}

nav {
    width: 100%;
    height: 100%;
    margin:auto;
}

nav ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
}

nav ul li {
    width: 100%;
    text-align: center;
}

nav ul li a {
    display: block;
    padding: 10px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    font-size: 1.2rem;
}

nav ul li a:hover, nav ul li a:focus {
    background-color: #92AE64;
    transition: all 0.10s ease-in;
}

nav ul #active-page {
    color: white;
    background-color: #92AE64;
}

/**********
 *  Main  *
 **********/

article {
    color: rgb(41, 42, 88);
    font-size: 1.2rem;
    padding: 5%;
    line-height: 1.45rem;
    text-align: center;
}

article:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.05);    
}

article:first-child {
    padding-top: 50px;
}

article h1 {
    color: #333;
    font-weight: bolder;
    margin-bottom: 60px;
    line-height: 2.3rem;
    font-size: 2.9rem;
    color: rgb(33, 61, 129);
}

article h2 {
    color: #222;
    margin-bottom: 20px;
    font-size: 2.7rem;
    line-height: 2.3rem;
    font-weight: bolder;
}

article:first-child #subtitle {
    color: #222;
    font-size: 2.3rem;
    line-height: 2.3rem;
    font-weight: 400;
    margin-bottom: 40px;
}

article img {
    object-fit: contain;
    max-width: 90%;
    margin-top: 20px;
    margin-bottom: 20px;
}

article img.imagelink {
    border: 4px solid white;
}

article img.imagelink:focus, article img.imagelink:hover {
    padding: 0px;
    margin: 0px;
    border: 4px solid #333;
}

article a img {
    margin: 0px;
}

article:nth-child(2) h2 {
    font-size: 2.2rem;
}

article p {
    font-size: 1.5rem;
    line-height: 1.7rem;
    text-align: justify;
    text-justify: distribute;
    hyphens: auto;
    padding-bottom: 30px;
}

article .button {
    width: 200px;
    margin: auto;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

article .button a, article form input[type=submit] {
    margin-top: 20px;
    display: block;
    background-color: #2F2C59;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 
                0 6px 20px 0 rgba(0,0,0,0.19);
}

article .button a:hover, 
article .button a:focus, 
article form input[type=submit]:focus, 
article form input[type=submit]:hover {
    background-color: #92AE64;
}

/**********
 * Footer *
 **********/

footer {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-color: #2F2C59;
    font-size: 0.84rem;
}

footer address {
    margin: 15px;
    text-align: center;
    margin-right: 5%;
    margin-left: 5%;
}

footer em {
    font-style: normal;
    font-size: 1rem;
    text-align: center;
    font-weight: bold;
    color: #92AE64;
}

footer ul li {
    font-style: normal;
    font-weight: bold;
    color: white;
    list-style-type: none;
}

/****************
 * Contact form *
 ****************/

form {
    max-width: 600px;
    padding: 10px;
    margin: auto;
}

form h1 {
    text-align: center;
}

form p {
    margin: auto;
    max-width: 700px;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

form label {
    text-align: left;
    width: 30%;
}

form input, form textarea {
    margin: auto;
    display: inline-block;    
    box-sizing: border-box;
    width: 90%;
    max-width: 240px;
}

form input, form label {
    display: inline-block;
}

form input, form textarea {
    width: 240px;
    border: 1px solid grey;
}

form label {
    font-family: arial;
    font-size: 16px;
    font-weight: bold;
}

form input {
    margin-bottom: 10px;
    margin-top: 5px;
}

/*****************
 * Media queries *
 *****************/

@media screen and (min-width: 340px) {

    nav ul li a {
        text-align: right;
        padding-right: 10%;
    }

}

@media screen and (min-width: 450px) {

    nav ul {
        flex-direction: row;
    }

    nav ul li a {
        text-align: center;
    }

}

@media screen and (min-width: 700px) {

    nav ul {
        flex-direction: row;
    }

    nav ul li a {
        text-align: center;
    }

    nav ul #active-page {
        color: white;
        background-color: #92AE64;
    }

    header div #tel {
        display: block;
        text-decoration: none;
        color: white;
        font-weight: bold;
        font-size: 1.5rem;
        padding: 10px;
        border: 2px solid white;
        height: 26px;
        margin-top: 35px;
        margin-right: 10%;
        font-family: Calibri, 'Trebuchet MS', sans-serif;
    }

    header div #tel:hover, header div #tel:focus {
        background-color: white;
        color: #2F2C59;
        transition: all 0.25s ease-in;
    }

    header div #tel:before {
        content: "☎";
        font-weight: 400;
    }

}

@media screen and (min-width: 700px) {

    article p {
        max-width: 700px;
        margin: auto;
    }

    nav {
        max-width: 75ch;
        height: 100%;
        margin:auto;
    }

    nav ul li a {
        background-color: rgba(0, 0, 0, 0);
    }

    article div {
        text-align: left;
    }

    article img {
        margin: 5px;
        width: 350px;
        margin-right: 30px;
    }

    main[id=row_layout] article {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    main[id=row_layout] article p {
        max-width: 500px;
    }

}