/* CSS reset */
* {
    margin: 0;
    padding: 0;
    position: relative;
    box-sizing: border-box;
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
}

/* HTML tag styles */

html,
body {
    height: 100%;
}

body {
    background-image: url('../images/background.png');
    color: #777;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
}

h1 {
    color: #fff;
    background-color: #4aaaa5;
    float: left;
    line-height: 80px;
    padding: 0 40px;
}

h2 {
    color: #4aaaa5;
}

p {
    line-height: 2;
    margin-bottom: 25px;
}

hr {
    margin: 30px 0;
    border: 1px solid #ccc;
}

li {
    float: right;
    list-style: none;
    line-height: 80px;
}

nav a {
    color: #777;
    text-decoration: none;
    padding: 15px;
    width: 100%;
    height: 100%;
}

nav a:visited {
    color: #777;
    text-decoration: none;
}

nav a:hover {
    background-color: #4aaaa5;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    transition: 200ms linear;
}

nav a:active {
    text-decoration: underline;
}

form,
input,
label,
textarea {
    width: 100%;
    color: #777;
    line-height: 2;
}

input,
textarea {
    border: 1px solid #ddd;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 15px;
}

button {
    color: #fff;
    background-color: #4aaaa5;
    padding: 10px 30px;
    border-style: none;
    font-size: 16px;
}

button:hover {
    border-radius: 20px;
    transition: 200ms linear;
    cursor: pointer;
}

button:active {
    text-decoration: underline;
}

figure {
    position: relative;
    width: 300px;
    margin: 30px;
}

figcaption {
    text-align: center;
    position: absolute;
    background-color: #4aaaa5;
    color: #fff;
    padding: 10px 0 10px 0;
    bottom: 15px;
    width: 100%;
}

figure .github {
    position: absolute;
    right: 2px;
    top: 2px;
    color: #444;
}

figure .github:hover {
    color: purple;
}

header,
footer {
    width: 960px;
    margin: 0 auto;
}

/* CSS class styles */

.header,
.footer {
    padding-left: calc(100vw - 100%);
}

.header {
    height: 80px;
    background-color: #fff;
    border-bottom: 2px solid #ccc;
}

.footer {
    height: 60px;
    background-color: #666;
    border-top: 8px solid #4aaaa5;
    flex-shrink: 0;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    outline: none;
}

.footer a {
    text-decoration: none;
}

.footer i {
    color: #ddd;
    margin: 10px 5px 0px 5px;
}

.footer i:hover {
    color: #fff;
}

.content {
    width: 960px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
}

.flex-container {
    flex: 1 0 auto;
    flex-wrap: wrap;
    padding-left: calc(100vw - 100%);
}

.mail {
    text-decoration: none;
    color: #fff;
}

/* Tag ID styles */

#photo {
    float: left;
    height: 240px;
    margin-right: 30px;
    margin-bottom: 30px;
    border-radius: 20px;
}

#portfolio {
    display: flex;
    flex-wrap: wrap;
}
