h1 {
    color: white;
    background-color: #7171d1;
    padding: 10px 10px;
    border-radius: 4px;
}

h2 {
    background-color: #d1d1f1;
    padding: 5px 10px;
    border-radius: 4px;
}

p {
    margin-left: 0.5em;
    margin-right: 0.5em;
}

.red {
    color: red;
}

.blue {
    color: dodgerblue;
}

.cyan {
    color: cyan;
}

.cimg {
    margin: 10px auto 10px;
    display: block;
}

/* https://www.w3schools.com/howto/howto_css_responsive_header.asp */

* {box-sizing: border-box;}

body {
    max-width: 70em;
    margin: auto;
    font-family: Arial, Helvetica, sans-serif;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

/* Style the header with a grey background and some padding */
.header {
    overflow: hidden;
    background-color: #717191;
    padding: 10px 10px;
}

h1.title {
    /*
    color: black;
    background-color: white;
    padding: 10px 10px;
    */
}

.content {
    padding: 10px 10px;
}

/* Style the header links */
.header a {
    float: left;
    color: black;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-size: 18px;
    line-height: 25px;
    border-radius: 4px;
}

/* Style the logo link (notice that we set the same value of line-height and font-size to prevent the header to increase when the font gets bigger */
.header a.logo {
    color: white;
    font-size: 25px;
    font-weight: bold;
}

/* Style the active/current link */
.header a.active {
    background-color: dodgerblue;
    color: white;
}

/* Style the inactive links */
.header a.inactive {
    color: white;
}

/* Change the background color on mouse-over */
.header a:hover {
    background-color: #ddd;
    color: black;
}

/* Float the link section to the right */
.header-right {
    float: right;
}

.buttons {
    text-align: center;
}

.button {
    color: white;
    background-color: #717191;
    padding: 12px;
    border: none;
    text-decoration: none;
    font-size: 18px;
    line-height: 25px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.button:hover {
    background-color: dodgerblue;
}

/* Add media queries for responsiveness - when the screen is 500px wide or less, stack the links on top of each other */
@media screen and (max-width: 500px) {
    .header a {
        float: none;
        display: block;
        text-align: left;
    }
    .header-right {
        float: none;
    }
}

/* https://www.freecontactform.com/form-guides/html-email-form */

#contact-form {
    display:block;
}

.contact-body {
    margin: 0;
    font-family: -apple-system, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    background-color: #a1a1e1;
    padding: 30px;
    padding-bottom: 10px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    margin-left: 3em;
    margin-right: 3em;
    border-radius: 8px;
}

.contact-form-group {
    margin-bottom: 1rem;
}

.contact-input-group {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: stretch;
    align-items: stretch;
    width: 100%;
}

.contact-form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    outline: none;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.contact-form-control:focus {
    border: 1px solid #313131;
}

select.contact-form-control[size], select.contact-form-control[multiple] {
    height: auto;
}

textarea.contact-form-control {
    font-family: -apple-system, Arial, sans-serif;
    height: auto;
}

.contact-form-trap {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

label.contact-label {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.contact-btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .contact-btn {
        transition: none;
    }
}

.contact-btn:hover {
    color: #212529;
    text-decoration: none;
}

.contact-btn:focus, .contact-btn.focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.contact-btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.contact-btn-primary:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

.contact-btn-primary:focus, .contact-btn-primary.focus {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

.contact-btn-lg, .contact-btn-group-lg>.contact-btn {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: 0.3rem;
}

.contact-btn-block {
    display: block;
    width: 100%;
}

.contact-btn-block+.contact-btn-block {
    margin-top: 0.5rem;
}

input[type="submit"].contact-btn-block, input[type="reset"].contact-btn-block, input[type="button"].contact-btn-block {
    width: 100%;
}

/* Contact bar */

/* Style the contact bar with a grey background and some padding */
.contact {
    overflow: hidden;
    /*background-color: #717191;*/
    background-color: #a9a9d9;
    text-align: center;
    margin-left: 3em;
    margin-right: 3em;
    border-radius: 8px;
}

/* Style the contact links */
.contact a {
    float: center;
    color: black;
    font-weight: bold;
    text-align: center;
    /*padding: 4em;*/
    text-decoration: none;
    border-radius: 4px;
}

/* Change the background color on mouse-over */
.contact a:hover {
    color: white;
    background-color: dodgerblue;
}

/* Readonly checkboxes */
input[type="checkbox"] {
    pointer-events: none;
}
