@import url('reset.css');

/* ==================================================
   General
================================================== */

body {
    background-color: #dfd;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #000;
}

hr {
    border: 1px solid #000;
    border-top: none;
    margin: 20px 6px 0;
}

a {
    color: #474;
    text-decoration: underline;
}

/* ==================================================
   Navigation bar
================================================== */

nav {
    background-color: #4e4;
    position: fixed;
    top: 0;
    width: 100%;
}

nav ul {
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;
    max-width: 600px;
    margin: 0 auto;
}

nav ul li {
    text-align: center;
    height: 40px;
    line-height: 40px;
}

nav a {
    font-weight: bold;
    color: #060;
    text-decoration: none;
}

/* ==================================================
   Content
================================================== */

main {
    background-color: #fff;
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    margin-top: 40px;
    font-size: 3em;
    line-height: 100px;
    text-align: center;
    font-weight: bold;
}

h2 {
    font-size: 1.6em;
    line-height: 50px;
    text-align: center;
    font-weight: bold;
}

h3 {
    line-height: 30px;
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
}

p {
    line-height: 1.1rem;
    margin: 6px;
}

img, video {
    display: block;
    margin: 0 auto;
}

strong, b {
    font-weight: bold;
}

/* =========================
   Intro
========================= */

div#intro p {
    text-align: center;
}

/* =========================
   Services
========================= */

section#services > p {
    text-align: center;
}

article.modality {
    background: #afa;
    margin: 8px;
    padding: 8px;
}

article.monthly {
    background: #ffa;
}

article.modality p:first-of-type {
    color: #070;
    font-weight: bold;
}


article.modality p:first-of-type strong {
    color: #000;
}

/* =========================
   Contact
========================= */

section#contact > p {
    text-align: center;
}

section#contact ul {
    margin-top: 20px;
}

section#contact ul li {
    text-align: center;
    line-height: 1.1rem;
    margin: 6px;
}

/* =========================
   Portfolio
========================= */

section#portfolio > p {
    text-align: center;
}

div.portfolio_container {
    background: #afa;
    margin: 8px;
    padding: 8px 8px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

article.portfolio_item img {
    width: 256px;
    height: 224px;
}


article.portfolio_item a {
    color: #252;    
}

article.portfolio_item h4 {
    line-height: 1.1rem;
    margin: 6px;
    text-align: center;
    font-weight: bold;
}

/* ==================================================
   Footer
================================================== */

div.footer_icons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 140px;
    margin: 20px auto 0;
}

div.footer_icons img {
    width: 32px;
}

footer p {
    font-size: 0.8em;
    line-height: 40px;
    text-align: center;
    margin-bottom: 0;
}