html, body{
  height: 100%;
  font-family: Staatliches;
}

h1 {
  font-size: 2em;
  margin: 10px;
  padding: 5px;
}

h2 {
  text-align: center;
  font-size: 2em;
  margin: 10px;
  padding: 5px;
}

p {
  font-size: 1.25em;
  margin: 10px;
  padding: 5px;
}

body {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-content: center;
  color: #FFFFFF;
  margin: 0;
  background-image:url('../images/3ce69531311986a8a78f1e093f53df3d.gif');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main div {
  width: 80%;
  height: 50%;
  /* background-color: rgb(0, 29, 82); */
}

.content-div {
  width: 80%;
  height: 100%;
  background-color: rgb(0, 29, 82);
}

main img {
  width: 100%;
  height: 100%;
}

footer {
  margin: 0 auto 0 auto;
  width: 80%;
  padding-top: 0!important;
  border-top: 1px solid #FFFFFF;
  flex-shrink: 0;
  background-color: rgb(0, 29, 82);
}

video {
  margin-bottom: 20px;
}

nav ul {
  display: flex;
  flex-direction: row;
  list-style-type: none;
}

nav {
  display: flex;
  width: 100vw;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: #2194c9;
  overflow: auto;
  z-index: 1;
}

nav a {
  font-family: Staatliches;
  color: #f2f2f2;
  float: right;
  font-size: 1.5em;
  padding: 14px 16px;
  text-align: center;
  text-decoration: none;
}

nav a:hover {
  background-color: #dddddd;
  color: #000000;
}

nav a:active {
  background-color: #f2f2f2;
  color: #FFFFFF;
}

nav a:focus {
  background-color: #f2f2f2;
  color: #FFFFFF;
}

nav .current_page {
  background-color: #dddddd;
  color: #000000;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

figcaption {
  padding: 30px 0 30px 0;
  text-align: center;
  background-color: rgb(0, 29, 82);
}

header p {
  font-size: 30px;
  margin: 10px;
  padding: 5px;
}

#header1 {
  margin-top: 75px;
}

a.skip {
  left:-999px;
  position:absolute;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
  z-index:-999;
}

a.skip:focus {
  color: #fff;
  background-color:#000;
  left: auto;
  top: auto;
  width: 30%;
  height: auto;
  overflow:auto;
  margin: 10px 35%;
  padding:5px;
  border-radius: 15px;
  border:4px solid white;
  text-align:center;
  font-size:1.2em;
  z-index:999;
}

button {
  font-family: Staatliches;
  font-size: 1.5em;
  color: white;
  background-color: rgb(0, 29, 82);
  margin-top: 20px;
}

.home-image {
  height: 100%;
}

.facts-header {
  padding-bottom: 20px;
}

/* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-card {
  /* background-color: transparent; */
  width: 80%;
  height: 80vh;
  perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
  background-color: rgb(0, 29, 82);
  color: black;
}

/* Style the back side */
.flip-card-back {
  background-color:  rgb(0, 29, 82);
  color: white;
  transform: rotateY(180deg);
}

.flip-card-back h1 {
  color: white;
  background: rgb(0, 29, 82);
}

.flip-card-back p {
  color: white;
  background: rgb(0, 29, 82);
}

/* Callout box - fixed position at the bottom of the page */
.callout {
  position: fixed;
  bottom: -150px;
  right: 0px;
  margin-left: 20px;
  max-width: 300px;
}

/* Callout header */
.callout-header {
  height: 10%;
  padding: 25px 15px;
  background: rgb(0, 29, 82);
  font-size: 1.5em;
  color: white;
  border-radius: 5px 5px 0 0;
}

/* Callout container/body */
.callout-container {
  padding: 15px;
  background-color: white;
  color: black;
  height: 25%;
  border-radius: 0 0 5px 5px;
}

/* Close button */
.closebtn {
  position: absolute;
  top: 5px;
  right: 40px;
  color: white;
  background: rgb(0, 29, 82);
  font-size: 60px;
  cursor: pointer;
}

/* Change color on mouse-over */
.closebtn:hover {
  color: lightgrey;
}

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

.sticky + .content {
  padding-top: 60px;
}

/* Style the buttons that are used to open and close the accordion panel */
.accordion {
  background-color: white;
  color: rgb(0, 29, 82);
  cursor: pointer;
  padding: 18px;
  width: 80%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
  margin-top: 0!important;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .accordion:hover {
  background-color: #ccc;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  width: 80%;
  background-color: white;
  color: rgb(0, 29, 82);
  display: none;
  overflow: hidden;
}

.accordian-list {
  position: relative;
}

/* MEDIA QUERIES */

@media only screen and (max-width: 1024px) {

  main div {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  footer {
    width: 100%;
  }

  nav a {
    font-size: 2em;
    display: inline-block;
  }

  .flip-card {
    height: 60vh;
  }

  .callout {
    right: 13%
  }

  .closebtn {
    right: -20px;
  }

  #header1 {
    margin-top: 115px;
  }

}

@media only screen and (max-width: 540px) {

  nav {
    display: table;
    height: 130px;
  }

  nav a {
    font-size: 2em;
    padding: 2px 4px;
  }

  nav h1 {
    font-size: 2em;
    padding: 0;
  }

  .flip-card {
    height: 35vh;
  }

  #header1 {
    margin-top: 135px;
  }

}
