/* =======================================
            CONTAINER DEFINITIONS
======================================== */

body {
    background-color: var(--pri);
    padding: 0px;
}

.invert {
    background-color: var(--sec);
    color: var(--pri);
}
.invert h1,.invert h2,.invert h3,
.invert h4,.invert h5,.invert h6,
.invert p, .invert ul, .invert ol {
    color: var(--pri);
}

/* To be used inside inverted background */
.revert {
    background-color: var(--pri);
    color: var(--sec);
}
.revert h1,.revert h2,.revert h3,
.revert h4,.revert h5,.revert h6,
.revert p,.revert ul,.revert ol  {
    color: var(--sec);
}

/* Container Headings */
.container > h1,
.container > h2,
.container > h3,
.container > h4 {
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* =======================================
            NAME HEADINGS
======================================== */

.name, h1.name, h2.name, h3.name, h4.name {
    font-family: 'Dosis', sans-serif;
	  text-transform: uppercase;
    font-weight: 400
}

.signature {
    font-family: 'Dosis', sans-serif;
    font-size: 5em;
    line-height: 0.9;
    font-weight: 200;
}

/* =======================================
            PARAGRAPHS
======================================== */

p, ul, ol {
    hyphens: auto;
    line-height: 1.6;
}
@media (min-width: 400px) { p, ul, ol { line-height:1.7; } } 
@media (min-width: 600px) { p, ul, ol { line-height:1.75; } } 
@media (min-width: 850px) { p, ul, ol { line-height:1.8; } } 

/* =======================================
            FOOTERS
======================================== */

.footer-subtext {
    font-size: 0.8em;
}

/* =======================================
            IMAGES
======================================== */

img.circular {
	border-radius: 50%;
}

img.desaturate {
    -webkit-filter: grayscale(50%);
    -moz-filter:    grayscale(50%);
    -ms-filter:     grayscale(50%);
    -o-filter:      grayscale(50%);
}

img.decontrast {
    -webkit-filter: contrast(50%);
    -moz-filter:    contrast(50%);
    -ms-filter:     contrast(50%);
    -o-filter:      contrast(50%);
}

img.debright {
    -webkit-filter: brightness(40%);
    -moz-filter:    brightness(40%);
    -ms-filter:     brightness(40%);
    -o-filter:      brightness(40%);
}

/* =======================================
            LINKS
======================================== */

a, .close {
    color: inherit;
    opacity: 0.5;
}

a:hover, a:focus, 
.close:hover, .close:focus {
    color: inherit;
    opacity:0.75;
}

a.hover, a.focus {
    text-decoration: underline;
}

/* =======================================
     LOADING / ERROR MESSAGES
======================================== */

.non-content {
  text-align:center; 
  margin: 0 auto;
}

.non-content .header {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.non-content .header h1, 
.non-content .header h2, 
.non-content .header h3, 
.non-content .header h4 {
  margin-top: 0px;
  margin-bottom: 0px;
}

/* For loading screen */
#hourglass.rotate-45 {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

#hourglass.rotate-90 {
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
}

#hourglass.rotate-135 {
  -webkit-transform: rotate(135deg);
  -moz-transform: rotate(135deg);
  -o-transform: rotate(135deg);
  -ms-transform: rotate(135deg);
  transform: rotate(135deg);
}

/* =======================================
     MODALS
======================================== */

.modal-bf {
  max-height: 80vh;
  overflow-y: auto;
}

/* Adjust Background */
.modal-content {
  background-color: var(--pri);
}

/* Adjust Line Colors */
.modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1)
}

/* Adjust Text */
.modal-footer {
  font-size: 0.8em;
  color: var(--font-color-50);
}

/* ======================================
            POPOVERS
======================================== */
/* For body */
.popover {
    background-color: var(--pri);
    font-family: var(--font-family);
    color: var(--font-color);
    box-shadow: inherit;
    z-index: 10;
    border-radius: 0;
}

/* For arrow color */
.popover.right .arrow:after { border-right-color: var(--pri); }
.popover.bottom .arrow:after { border-bottom-color: var(--pri); }
.popover.left .arrow:after { border-left-color: var(--pri); }
.popover.top .arrow:after { border-top-color: var(--pri); }

.popover-title, .popover-header {
    background-color: rgba(0,0,0,0);
    font-family: var(--heading-family);
    color: var(--heading-color);
    border-bottom: 1px solid rgba(0,0,0,0.2);
}