/**
 * Main Styles CSS file.
 * @author Conor O'Brien
 * @version 1.0
 */

html, body {
    margin: 0;
    min-height: 100vh;
}

body {
    font-family: "Arial Black", sans-serif;
    background: #7fc0bf url("../images/BackgroundPill.png") repeat center;
    position: relative;
}

section#section3 p {
    margin: 2rem;
    font-weight: 200;
}

header {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    background-color: #f6ebe2;
}

main {
    min-height: 100%;
    overflow: visible;
    background-color: #f6ebe2;
}

header, main {
    border-right: solid black 3px;
    border-left: solid black 3px;
    margin-right: 4rem;
    margin-left: 4rem;
}

img#siteLogo {
    margin-left: 10px;
    padding: 3px 0;
    height: 80%;
    max-width: 140px;
    min-width: 50px;
    clear: right;
}

section[id^='section'] {
    padding-bottom: 1em;
    border-bottom: solid black 3px;
}

section#section4 p {
    margin-left: 1em;
    margin-right: 1em;
}

div.styleH {
    background: #f6ebe2 url("../images/syringePic.png") repeat-x center;
    margin-left: 10px;
    margin-right: 10px;
    text-align: center;
}

h2.centerHTag {
    display: inline-block;
    border: solid green 3px;
    background-color: #fff8f3;
    box-shadow: 4px 4px 4px #855b49;
    text-transform: uppercase;
    padding: 10px 10px;
}

h3.centerHTag {
    text-align: center;
}

hr.mainHR {
    margin-top: 0;
    margin-right: 10px;
    margin-left: 10px;
    border: 4px solid #80a780;
}

nav#pageViews {
    display: flex;
    flex-flow: row wrap;
    padding-right: 1em;
    padding-bottom: 1em;
    justify-content: space-evenly;
    margin-top: auto;
    margin-left: auto;
}

nav#pageViews button {
    margin-left: 8px;
}

img#subAbuseImg {
    display: block;
    border-radius: 1em;
    max-width: 30%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3em;
    box-shadow: 12px 12px 5px darkkhaki;
}

div#states {
    display: flex;
    flex-direction: column;
}

section.card {
    padding: 1rem 1rem;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: flex-start;
}

section.card h3 {
    display: inline-block;
    max-width: 100%;
    text-align: center;
    text-decoration-line: underline;
    margin-top: 0;
}

section.card p {
    font-size: smaller;
}

img.flagSize {
    width: 100%;
    display: inline-block;
}

.overlay {
    z-index: 10;
    background: #e9e9e9;
    position: absolute;
    padding: 30px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.5;
}

div.loader, section.loader {
    z-index: 11;
    top: 50%;
    opacity: 1.0;
    position: fixed;
    width: 100%;
    text-align: center;
}

section.loader {
    font-size: xxx-large;
    margin-top: 0px;
}

div.loader {
    left: calc(50% - 110px);
    border: 40px solid #98faf3;
    border-right: 40px solid #8eadff;
    border-bottom: 40px solid #769bff;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}