/* All screen sizes */

/****************************************
* Root variables
****************************************/

:root {
  --fni-font-1: 'Source Sans Pro';
  --fni-font-2: 'Nautilus Pompilius';

  --fni-color-1: #083F83;
  --fni-color-2: #1167ac;
  --fni-color-3: #1f94cf;
  --fni-color-4: #6bb610;
  --fni-color-5: #F99E1C;

  --fni-checkmark-color: #C0450C;
  --fni-nav-toggle-color: #000000;
}

/****************************************
* Body
****************************************/

body {
  background: #f3f3f3 url('/images/layout/background_main.png');
  height: 100%;
}

body.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

/****************************************
* Typography
****************************************/

h2 {
  font: normal 700 25px/.9em var(--fni-font-1);
  color: var(--fni-color-1);
  text-transform: uppercase;
}

h3 {
  font: normal 600 20px/1.2em var(--fni-font-1);
  color: var(--fni-color-3);
}

.sponsors h3 {
  border-bottom: 2px solid #dfdfe1;
  padding-bottom: .25rem;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  color: #b7b7b9;
}

.staff h3,
h4 {
  font: normal 300 18px/1.2em var(--fni-font-1);
  color: var(--fni-color-3);
}

h5 {
  font: normal 600 18px/1.2em var(--fni-font-1);
  color: var(--fni-color-3);
}

p,
li,
td {
  font: normal 300 16px/1.4em var(--fni-font-1);
  color: #58595b;
}

.no-wrap	{
  white-space:nowrap;
}

hr {
  border-top: 4px dotted #d2d0d0;
}

a {
  color: var(--fni-color-4);
  font-weight: bold;
}

a svg {
  margin-right: 5px;
  width: 25px;
  height: 25px;
  fill: var(--fni-color-4);
}

a.blue {
  color: var(--fni-color-1);
}

a:hover {
  color: var(--fni-color-2);
}

a:hover svg {
  fill: var(--fni-color-2);
}

p + h3,
p + h4,
p + h5,
p + .button,
ul + h3,
ul + h4,
ul + h5,
img + h2,
.flex + h2,
.grid + h2,
.button + h4,
.accordion + h3,
.details-link + h3,
.articles + .button {
  margin-top: 2rem;
}

.bar {
  background-color: #dcf4fe;
  padding: 0 1rem;
}

ol li,
ul li {
  margin: 0 0 0.5rem 2rem;
}

h2 + .flex,
h2 + h3,
h3 + p,
h3 + ul,
h3 + ol,
h3 + form,
h3 + .flex,
h3 + #paypal-button-container,
h4 + p,
h4 + .flex,
h5 + p,
h5 + ul,
p + p,
p + ul,
p + ol,
p + .flex-links,
ul + .button,
img + .grid,
img + .button,
.grid + fieldset,
.flex + fieldset,
.button + .button,
h3 + .accordion,
p + .accordion {
  margin-top: 1rem;
}

h3 + h4 {
  margin-top: .5rem;
}

li > ul,
li > ol {
  margin: .5rem 0 .5rem 1rem;
}

/****************************************
* Buttons
****************************************/

.button {
  font: bold 14px/1em var(--fni-font-1);
  background-color: var(--fni-color-4);
  text-transform: uppercase;
  padding: 1rem;
  border-radius: 0;
}

.button:hover {
  background-color: var(--fni-color-2);
  color: #ffffff;
}

/****************************************
* Header
****************************************/

header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background-color: rgba(255, 255, 255, .7);
  width: 100%;
}

header .flex {
  flex-direction: column;
}

header .logo {
  margin: 0 auto;
  padding: 1rem;
}

header .logo img {
  width: 150px;
}

.header-padding {
  padding-top: 121px;
}

/****************************************
* Navigation
****************************************/

.nav-toggle {
  position: absolute;
  margin: 0 0 0 auto;
  top: 2rem;
}

nav {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: all .4s ease;
}

nav.on {
  max-height: 100vh;
}

nav ul {
  margin: 1rem 0 2rem 0;
  list-style-type: none;
}

nav li {
  text-align: center;
  margin: 0 auto;
  max-width: 305px;
}

nav li + li {
  margin-top: .5rem;
}

nav a {
  background-color: var(--fni-color-3);
  font-size: 16px;
  line-height: 1em;
  color: #ffffff;
  padding: .4rem 1rem;
  display: block;
}

nav a:focus,
nav a:hover {
  background-color: var(--fni-color-4);
  color: #ffffff;
}

nav a.alt {
  background-color: var(--fni-color-4);
  text-transform: uppercase;
}

nav a.alt:focus,
nav a.alt:hover {
  background-color: var(--fni-color-1);
  color: #ffffff;
}

/****************************************
* Billboard
****************************************/

.billboard {
  position: relative;
  background: url('/images/content/billboard.webp') center no-repeat;
  background-size: cover;
  height: calc(400px + (800 - 400) * (100vw - 320px) / (1400 - 320));
}

.billboard .wrapper {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.billboard h1 {
  font: normal normal 24px/1em var(--fni-font-2);
  font-size: calc(60px + (210 - 60) * (100vw - 320px) / (1140 - 320));
  text-shadow: 2px 2px 1.5px rgba(0, 0, 0, .5);
  text-transform: none;
  color: #ffffff;
}

.billboard h1 span {
  display: block;
  font-size: calc(24px + (82 - 24) * (100vw - 320px) / (1140 - 320));
  line-height: .3em;
}

/****************************************
* Accent
****************************************/

.accent-1 {
  background: rgba(6, 48, 99, .9) url('/images/layout/background_overlay.png');
}

.accent-1 h2 {
  color: #ffffff;
}

.accent-2 {
  background-color: #ffffff;
}

/****************************************
* Conference
****************************************/

#conference-slider {
  background-color: transparent;
  background-image: none;
  height: auto;
}

#conference-slider .slip-n-slide {
  height: auto;
}

#conference-slider .slip-n-slide > div > img {
  position: relative;
  top: 0;
  transform: none;
}

#conference-slider .slip-n-slide.directional .next svg,
#conference-slider .slip-n-slide.directional .previous svg {
  background-color: #efefef;
  border-radius: 50%;
  filter: none;
  fill: #000000;
  width: 40px;
  height: 40px;
  padding: 5px;
}

.icons > div {
	text-align:center;
	background-color: #ffffff;
	padding: 2rem;
	border-radius: 3px;
}

.icons > div > img {
	text-align:center;
	margin: 0 auto .5rem;
	width:70px;
	height:auto;
}

/****************************************
* Sponsors
****************************************/

.sponsors {
  position: relative;
}

.sponsors::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(6, 48, 99, .9) url('/images/layout/background_overlay.png');
  width: 100%;
  height: 4px;
}

.sponsors .accent-1 {
  padding: .5rem;
}

.sponsors h4 {
  border-bottom: 2px solid #dfdfe1;
  padding-bottom: .25rem;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  color: #b7b7b9;
}

.sponsors a {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.sponsors img {
  width: auto;
  height: auto;
  max-height: 60px;
}

/****************************************
* Into
****************************************/

.intro strong {
	font-size: 21px;
  line-height: 1.2em;
	font-weight: 600;
}

.intro ul {
  list-style-type: none;
  border-bottom: 1px solid #d3d3d3;
  margin: 0 0 1rem 1rem;
  padding-bottom: 1rem;
}

.intro li::before {
  position: absolute;
  top: 0;
  left: 0;
  content: '\f00c';
  font-family: 'Font Awesome';
  color: var(--fni-color-3);
  top: unset;
  padding: 0;
  margin-top: 3px;
  background-color: transparent;
}

.intro li {
  position: relative;
  margin: 0;
  text-align: left;
  padding-left: 1.5rem;
  padding-top: 0.5rem;
  font-size: 16px;
}

/****************************************
* Events
****************************************/

.events-title {
  background-color: var(--fni-color-3);
  border-radius: 3px 3px 0 0;
  padding: 1rem;
}

.events-title h3 {
  color: #ffffff;
  text-align: center;
}

.events {
  background-color: #ffffff;
  border-radius: 0 0 3px 3px;
  padding: 2rem;
}

/****************************************
* Board of directors
****************************************/

.staff-wrapper {
  max-width: 300px;
}

.staff {
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  border-radius: 3px;
  height: 100%;
  overflow: hidden;
}

.staff .image-wrapper {
  background-color: #efefef;
  aspect-ratio: 1;
  overflow: hidden;
}

.staff img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all .4s ease;
}

.staff .details {
  flex-grow: 1;
  padding: 1rem;
}

.staff > .button {
  width: 100%;
}

.staff p,
.staff h4 {
  text-align: center;
}

.staff h3 + p {
  margin-top: 0;
}

.staff hr {
  margin: .5rem 0;
}

/****************************************
* Overlay
****************************************/

.overlay {
  display: flex;
  position: fixed;
  justify-content: center;
  top: 0;
  right: 0;
  left: 0;
  z-index: 200;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(6, 48, 99, .9) url('/images/layout/background_overlay.png');
  width: 100%;
  height: 100%;
  padding: 1rem;
  overflow: auto;
}

.overlay .wrapper {
  position: relative;
  margin: auto;
  width: 100%;
  max-width: 500px;
  margin: auto;
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 5px;
}

.staff + .overlay .wrapper {
  max-width: 800px;
  text-align: left;
}

.overlay .close-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: transparent;
  padding: 0;
}

.overlay .close-overlay,
.overlay .close-overlay svg {
  width: 25px;
  height: 25px;
}

.overlay .close-overlay:hover svg {
  fill: #dd0000;
}

/****************************************
* Forms
****************************************/

label,
legend {
  display: block;
  margin-bottom: 4px;
  font: normal normal 14px/1.5em var(--fni-font-1);
  color: #58595b;
}

input[type="number"] {
  width: 80px;
}

input:not([type="submit"]) {
  height: 34px;
  font-size: 14px;
}

input[type="submit"] {
  padding: 0 1rem;
  font-size: 20px;
}

.additional {
  margin: .5rem 0 0 1.2rem;
}

.styled-select {
  margin-bottom: 1rem;
}

.payment-total-container {
  margin: 1rem 0;
}

.payment-total-container p {
  font-size: 22px;
  font-weight: normal;
  color: var(--fni-color-1);
}

/****************************************
* Articles
****************************************/

/* Hide articles based on screen size */
.articles .card:nth-child(3),
.articles .card:nth-child(4),
.articles .card:nth-child(5) {
  display: none;
}

.articles .card h4 {
  font-weight: bold;
  color: #c0450c;
  font-size: 20px;
}

.related-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  grid-gap: 1rem;
}

/****************************************
* Flexbox
****************************************/

.flex-links {
  display: flex;
  flex-flow: row wrap;
  gap: 1rem;
}

.flex-links a.button + a.button {
  margin-top: 0;
}

/****************************************
* Grid
****************************************/

.grid > div input {
  margin: 0;
}

/****************************************
* Accordion link
****************************************/

.accordion + .details-link,
.details-link + .accordion {
  border-top: 1px solid #d8d7d7;
}

.details-link {
  display: block;
  position: relative;
  padding: 24px 50px 24px 24px;
}

.details-link .toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 100%;
  background-color: var(--fni-color-4);
  width: 30px;
  height: 30px;
  color: #ffffff;
  cursor: pointer;
  transition: all .5s;
}

.details-link .toggle::after {
  content: '';
  position: absolute;
  display: inline-block;
  top: 50%;
  right: 52%;
  transform: rotate(-45deg) translate(50%, -50%);
  transform-origin: 100% 0;
  border: solid #ffffff;
  border-width: 0 3px 3px 0;
  padding: 3px;
  transition: all .4s ease;
}

/****************************************
* Footer
****************************************/

footer {
  background: #063063;
}

footer h3 {
  padding-top: 0;
}

footer hr {
  border-top: 4px dotted var(--fni-color-1);
  margin: .8rem 0;
}

footer p,
footer label {
  color: #ffffff;
  font-size: 14px;
}

footer label {
  line-height: 2em;
  margin-bottom: 0;
}

footer input,
footer textarea {
  background-color: rgba(255, 255, 255, .2);
  border: none;
  color: #ffffff;
}

footer textarea {
  flex-grow: 1;
}

footer a {
  color: var(--fni-color-4);
}

footer a:hover {
  color: #ffffff;
}

footer a.button:last-child {
  margin-bottom: 0;
}

footer img {
  margin: 0 auto;
  width: 100%;
  max-width: 300px;
}

/*********************************
* Attribution
**********************************/

.attribution {
  background-color: #021936;
  padding: .5rem;
}

.attribution a {
  color: #7dadd4;
  font-weight: normal;
  text-transform:none;
}

.attribution p {
  color: #6ca1cc;
  font-size: 12px;
  margin: 0;
}
