@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

html {
    font-family: 'Open Sans', sans-serif;
    min-height: 100%;
    --pad: calc(max(50vw - 30rem, 10px));
    padding: 0;
    margin: 0;
}

body {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

main {
    /*margin-left: var(--pad);
    margin-right: var(--pad);*/
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    flex-grow: 10000;
    margin-bottom: 30px;
}

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

h2, h3, h4 {
    margin-bottom: 0;
}

p {
    max-width: 40rem;
    padding-left: 10px;
    padding-right: 10px;
}

nav {
    /* background by SVGBackgrounds.com */
    background-image: url("background.svg");
    background-size: cover;
    background-attachment: fixed;
    color: white;
    width: 100%;
    margin-top: 0;
}

nav h1 {
    font-size: 2rem;
    text-transform: uppercase;
}

.side-by-side {
    display: flex;
    margin: auto;
    max-width: 70rem;
    flex-wrap: wrap;
    justify-content: center;
}

.side-by-side > * {
    margin: 10px;
}

.side-by-side p {
    max-width: 30rem;
}

a.button {
    /* background by SVGBackgrounds.com */
    background-image: url("background.svg");
    background-size: cover;
    background-attachment: fixed;
    color: white;
    border-radius: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-decoration: none;
}

.links {
    margin: 0;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    align-items: flex-end;
    flex-grow: 1000;
}

.links div ul {
    list-style-type: none;
}

nav a, nav p {
    color: white;
    padding: 0;
}

nav p {
    margin: 10px;
    font-weight: bold;
}

nav a {
    margin-left: 10px;
    font-weight: normal;
}

nav a:hover {
    text-decoration: italic;
}

nav div.side-by-side {
    justify-content: space-between;
}

.side-by-side img {
    margin: auto;
    padding: 5px;
}

.footer {
    color: white;
    /* background by SVGBackgrounds.com */
    background-image: url("background.svg");
    background-size: cover;
    background-attachment: fixed;
    padding: 10px;
}

.center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.profile p, .profile h3 {
    text-align: left;
    margin: 10px;
    padding: 10px;
}

.profile img {
    flex-grow: 10000;
    width: 140px;
    height: auto;
    border-radius: 10px;
    margin-top: 20px;
}

.footer p {
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer {
    display: flex;
    flex-direction: column;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

.mail {
    color: white;
    text-decoration: none;
    text-align: right;
    align-self: flex-end;
}
