@keyframes loadingrotation {
  0% {transform: rotate(0turn);}
  25% {transform: rotate(0.25turn);}
  50% {transform: rotate(0.5turn);}
  75% {transform: rotate(0.75turn);}
  100% {transform: rotate(1turn);}
}

.loading::after {
  align-items: center;
  animation: loadingrotation 1s linear 0s infinite normal;
  content: '⭮';
  display: inline-flex;
  font-size: 20px;
  height: 25px;
  justify-content: center;
  /*
   * Empirically determined to be roughly the right amount of padding to center
   * the glyph properly (since the glyph itself isn't centered).
   */
  padding-bottom: 0.184em;
  width: 25px;
}

html, body {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  height: 100%;
  margin: 0;
  padding: 0;
}

a[name] {
  position: relative;
  top: -50px;
}

anchor[id] {
  position: relative;
  top: -50px;
}

form input + div.description {
  font-size: 85%;
}

form div.description.satisfied {
  color: var(--green) !important;
}

form div.description.satisfied::before {
  content: '✔ ';
}

form div.description.unsatisfied {
  color: var(--red) !important;
}

form div.description.unsatisfied::before {
  content: '✘ ';
}

form label.required::after {
  color: var(--red) !important;
  content: '*';
}

form .form-date:first-child:last-child,
form .form-datetime:first-child:last-child {
  width: calc(100% - 20px) !important;
}

form .form-date:first-child:last-child > .form-group > .form-input-field {
  max-width: calc(100.0%/3 - 20px) !important;
}

form .form-datetime:first-child:last-child > .form-group > .form-input-field {
  max-width: calc(100.0%/6 - 20px) !important;
}

form .form-date > label.required::after,
form .form-datetime > label.required::after {
  color: var(--red) !important;
  content: '*';
}

form .form-date > .form-group label.required::after,
form .form-datetime > .form-group label.required::after {
  content: '';
}

form .form-date > .form-group > .form-input-field,
form .form-datetime > .form-group > .form-input-field {
  margin: 0px 10px;
  max-width: calc(100.0%/3 - 20px);
}

form .form-group.group-3 > .form-input-field {
  width: calc(100.0%/3 - 20px) !important;
}

h2 {
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
}

input[type=file] {
  display: none;
}

input[type=file]::file-selector-button {
  display: none;
}

input[type=file]::-webkit-file-selector-button {
  display: none;
}

nav {
  z-index: 9001 !important;  /* Make sure that it floats above everything else */
}

nav:not(.custom-nav) .nav-tabs .nav-item {
  background-color: white;
  border-color: #e9ecef #e9ecef #dee2e6;
  border-radius: 55% 55% 0px 0px / 100% 100% 0px 0px;
  border-style: solid solid none solid;
  border-width: 2px;
  color: var(--dark-grey);
  font-variant: small-caps;
  font-size: 1.3rem;
  margin: 0px 10px 0px 0px;
  min-width: 100px;
  padding: 1rem 1rem 0.25rem 1rem;
  position: relative;
  text-align: center;
  vertical-align: bottom;
}

nav:not(.custom-nav) .nav-tabs .nav-item.active {
  background-color: var(--hmmt-red);
  border-color: white;
  color: white;
}

nav:not(.custom-nav) .nav-tabs .nav-item.active:hover {
  background-color: var(--hmmt-red);
  border-color: yellow;
  color: white;
}

nav:not(.custom-nav) .nav-tabs .nav-item.active::after {
  background-color: transparent;
  border-color: var(--hmmt-red);
  border-radius: 55% 55% 0px 0px / 100% 100% 0px 0px;
  border-style: solid solid none solid;
  border-width: 2px;
  content: '';
  height: calc(100% + 4px);
  left: -4px;
  position: absolute;
  top: -4px;
  width: calc(100% + 8px);
}

nav:not(.custom-nav) .nav-tabs .nav-item:hover {
  background-color: #e9ecef;
  border-color: var(--hmmt-grey);
  color: black;
}

nav#main-navbar {
  background-color: #ffffff;
	border-bottom: 1px solid #cccccc;
  margin-left: calc(50% - 49vw);
  margin-right: calc(50% - 49vw);
  padding-left: calc(49vw - 50%);
  padding-right: calc(49vw - 50%);
}

*[filetarget].styled {
  border: 1px black outset;
  border-radius: 15px;
  font-weight: normal;
  margin: auto;
  max-width: none;
  padding: 5px 10px;
}

.alert {
	padding: 8px;
}

.dropdown-backdrop {
  position: static;
}

.font-variant-normal {
  font-variant: normal;
}

.katex-display > .katex {
  white-space: pre-wrap !important;
}

.navbar {
	border-color: transparent;
	background-color: none;
	font-weight: 600;
	margin-bottom: 0;
}

.navbar-brand img {
	max-width: 50px;
	opacity: .6;
	margin-top: 5px;
}

.navbar-nav .dropdown:hover {
	font-weight: 600;
	color: var(--hmmt-red);
}

.photos #content-container {
	max-width: none;
}

.pill-check label {
  background: transparent;
  border: 1px solid;
  border-radius: 50rem;
  color: inherit;
  margin: 0.25rem;
  padding: 0.5rem;
}

.pill-check input:checked ~ label {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.rtl-layout {
  direction: rtl;
}

.rtl-layout > * {
  direction: revert;
}

.warning {
  background-image: -webkit-linear-gradient(-45deg, rgba(0, 0, 0, .04) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, .04) 50%, rgba(0, 0, 0, .04) 75%, transparent 75%, transparent);
  background-image: -moz-linear-gradient(-45deg, rgba(0, 0, 0, .04) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, .04) 50%, rgba(0, 0, 0, .04) 75%, transparent 75%, transparent);
  background-image: linear-gradient(135deg, rgba(0, 0, 0, .04) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, .04) 50%, rgba(0, 0, 0, .04) 75%, transparent 75%, transparent);
  background-size: 50px 50px;
  display: block;
  margin-bottom: 0pt;
  overflow: hidden;
  pointer-events: auto;
  transition: width 300ms linear;
  min-width: calc(0.45 * (100vw - var(--page-max-width)));
  white-space: nowrap;
  width: 9vw;
  z-index: 200;
}

.warning:hover {
  width: 100%;
}

.warning .highlighted {
  background-color: rgba(255, 50, 50, 0.9);
}

.warning .important {
  font-weight: bold;
}

section#banner img {
	width: 100%;
	padding: 5px 0 5px 0;
	border-bottom: 1px solid #cccccc;
}

#contact {
	float: right;
}

#contact .icon {
	margin-left: 10px;
	font-size: .8em;
}

#contact a {
	color: inherit;
}

#contact i {
	width: 10px;
}

#content-container {
	margin-left: auto;
	margin-right: auto;
	max-width: 600px;
}

#warning-container {
  pointer-events: none;
  position: fixed;
  width: 100vw;
  z-index: 999999999;
}

#debug-warning {
  background-color: #00CCA7 !important;
  color: #000000;
}

#masquerade-warning {
  background-color: #AA00CC !important;
  color: #FFFFFF;
}

section#footer {
	bottom: 0;
	height: 100px;
	width: 80vw;
	max-width: 1024px;
	border-top: 5px solid #ce5959;
	padding: 50px 3px 20px 3px;
}

section#footer .row {
	margin-left: 0;
}

section#footer h4 {
	color: #ce5959;
	font-size: 1em;
	text-transform: uppercase;
	font-weight: 600;
}

section#footer h6 {
	font-size: .8em;
}

section#footer .footnote {
	font-size: .8em;
	margin-left: 15px;
	margin-bottom: 10px;
}

section#footer .footer-links a{
	color: inherit;
	text-decoration: none;
}
section#footer .footer-links h6:hover{
	font-weight: bold;
	color: rgba(195, 62, 62, 1);
}

#footer li, #footer ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

#footer li.divider {
	margin: 40px 0 10px 0;
	border-bottom: 1px solid #aaaaaa;
}

#navbar-identity a{
	color: rgba(195, 62, 62, 1);
}

#page-wrapper {
	margin-left: auto;
	margin-right: auto;
	max-width: var(--page-max-width);
  position: relative;
	width: 80vw;
  z-index: 100;
}
