@charset "utf-8";

/* Basic Styles */
html, body {
    height: 100%;
}
body {
    margin: 0;
    padding: 0;
    background-color: #eee;
    background-image: url('../images/funky-lines.png');
    background-repeat: repeat;
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.5em;
    color: #777;
}
a {
    color: #4aaaa5;
    text-decoration: underline;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* Common Styles */
.wrapper {
    min-height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
}
img[class*="-left"] {
    margin: 0 1em 0.5em 0;
}
img[class*="-right"] {
    margin: 0 0 0.5em 1em;
}


/* Header */
header {
    background-color: white;
    border-bottom: 2px solid #ccc;
}
header h1 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 32px;
    font-weight: bold;
    line-height: 1.1em;
    background-color: #4aaaa5;
    color: white;
    margin: 0;
    padding: 27px 35px;
    cursor: default;
}
header .navbar {
    padding: 10px 0;
}
header .navbar .nav-link {
    color: #999;
    font-size: 18px;
    text-decoration: none;
    border-left: 1px solid #ddd;
}
header .navbar-expand .navbar-nav .nav-link {
    padding: 0 20px;
}
header .navbar .nav-link:hover {
    text-decoration: underline;
}
header .navbar .nav-link.active {
    font-weight: bold;
}
header .navbar .nav-link:first-child {
    border: none;
    padding-left: 0;
}
header .navbar .nav-link:last-child {
    padding-right: 0;
}
@media only screen and (min-width: 768px) {
    header h1 {
        display: inline-block;
    }
}
@media only screen and (max-width: 768px) {
    header .container {
        max-width: 100%;
    }
    header h1 {
        margin: 0 -15px;
    }
}


/* Main */
main section {
    background-color: white;
    border: 1px solid #ddd;
    padding: 10px 30px 30px;
    margin: 30px 0;
}
main section::after {
    content: '';
    display: block;
    clear: both;
}
main section h2 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 32px;
    font-weight: bold;
    line-height: 1.1em;
    color: #4aaaa5;
    margin: 0.83em 0;
    padding-bottom: 30px;
    border-bottom: 2px solid #ddd;
    cursor: default;
}
main section h3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.1em;
    color: #6f7c7c;
    margin: 0.83em 0;
    cursor: default;
}


/* Footer */
footer {
    height: 60px;
    background-color: #666;
    border-top: 8px solid #4aaaa5;
    box-sizing: border-box;
    color: #999;
    text-align: center;
    display: flex;
    align-items: flex-end;
}
footer .copyright {
    font-size: 12px;
    display: inline-block;
    margin: 0.5em 0;
    cursor: default;
}


/* Forms */

.btn-primary {
    background-color: #4aaaa5;
    border-color: #4aaaa5;
}
.btn-primary:hover {
    background-color: #1b817c;
}
textarea {
    min-height: 200px;
    min-width: 100%;
    max-width: 100%;
}
.form-control::placeholder {
    opacity: 0.5;
    transition: opacity 0.25s;
}
.form-control:focus::placeholder {
    opacity: 0;
}


/* Portfolio */
figure {
    position: relative;
    float: left;
    margin: 0 0 30px;
}
figure:hover {
    box-shadow: 0 0 5px #00000022;
}
figure img {
    max-width: 100%;
    height: auto;
}
figure figcaption {
    background-color: #4aaaa5;
    padding: 0.75em 0;
    position: absolute;
    bottom: 8px;
    width: 100%;
    color: white;
    font-family: Georgia, 'Times New Roman', Times, serif;
    text-align: center;
    transition: background 0.2s
}
figure:hover figcaption {
    background-color: #1b817c;
}
