body {
    background-color: rgb(237, 237, 237);
    font-family: Arial, Helvetica, sans-serif;
    padding: 0px;
    overflow-y: visible !important;
  width: 100vw;
  overflow-x: hidden;
}
#wrap {
  box-sizing: border-box;
  overflow-y: scroll;
  overflow-x: hidden;
  height: calc(100vh - 100px);
  min-height: calc(100vh - 100px);
  width: 100%;
/*
    scroll-snap-type: y mandatory;
    scroll-snap-align:initial;
    scroll-padding: 0px;
    scroll-behavior:smooth;
*/
    /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; */
  transition: 400ms ease-out;
}
body.mobile #wrap {
  overflow-y: visible;
  height: auto;
  border: 0;
}

iframe {
  display: none;
}
body.mobile iframe {
  display: block;
  width: 100%;
  height: 100%;
}

body.mobile #youtube-video {
  width: 100%;
  height: calc((100vw / 16)*9 )
}

#v0 {
  box-sizing: border-box;
  position: fixed;
  bottom: 36px;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: calc(100vh - 50px);
  max-height: calc(100vh - 50px);
  object-fit: contain;
}

body.mobile #v0 { display: none; }
#set-height { display: block; }

section.container {
  box-sizing: border-box;

/*    scroll-snap-align: start;*/
  z-index: 1;
  position: relative;
  width: 100%;

  padding: 0rem;
}

.bouncy-arrow {
  position: absolute;
  bottom: 30px;
  right: 90px;
  color: var(--brand);
  animation: bounce 2s infinite;
}

body.mobile .bouncy-arrow { display: none; }

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
  }

  40% {
    -webkit-transform: translateY(-30px);
    -ms-transform: translateY(-30px);
    transform: translateY(-30px);
  }

  60% {
    -webkit-transform: translateY(-15px);
    -ms-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}

@keyframes bouncyarrow {
  0% { transform: translateY(0px); }
  20% { transform: translateY(-25px); }
  40% { transform: translateY(-0px); }
  50% { transform: translateY(-0px); }
  60% {transform: translateY(-10px);}
  80% { transform: translateY(-0px); }
  100% { transform: translateY(-0px); }
}

.content {
    /* position: sticky; */
    width: 100%;
    height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    margin: auto;
    justify-content: center;
    align-items: center;

    /* top: 33.3% */
}
body.mobile .content {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    margin: auto;
    justify-content: center;
    align-items: center;
}

section:nth-last-of-type(1) {
/*    height: 1200px;*/
}
section:nth-last-of-type(2) {
    height: 900px;
}
section:nth-last-of-type(3) {
    height: 900px;
}
section:nth-last-of-type(4) {
    height: 900px;
}
body.mobile section:nth-last-of-type(4) {
    height: auto;
}
section:nth-last-of-type(4) .content {
   height: 1050px;
   width: 100%;
   justify-content: left;
   margin: auto;
}
section:nth-last-of-type(4) .content {
  height: auto;
}
section:nth-last-of-type(5) {
    height: 1300px;
}


body.mobile section:nth-last-of-type(1),
body.mobile section:nth-last-of-type(2),
body.mobile section:nth-last-of-type(3),
body.mobile section:nth-last-of-type(4) {
  height: auto;
}
body.mobile section.container:nth-last-of-type(5) {
  display: none;
  height: 0;
}

section.container:nth-last-of-type(4) p {
  margin-bottom: 3rem;
}
.panel {
  position: relative;
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 2rem 4rem 4rem;
  width: 400px;
  box-shadow: -3px 5px 20px #00000033;

}
body.mobile .panel {
  border-radius: 0;
  padding: 2rem;
  width: 100%;
  margin: 0;
  
}
.panel video {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
.panel-clear {
  padding: 0;
  background: none;
  backdrop-filter: blur(0px);
  box-shadow: -3px 5px 20px #00000000;
  width: 100%;
  max-width: 1024px;
}
.panel-left {
    margin: auto auto auto 2rem;
}
.panel-right {
    margin: auto 2rem auto auto;
}
.panel-center {
    margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 720px;
  height: 280px;
}
.panel-center p + p {
  margin-top: 3rem;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #326c9d;
}

.panel-last {
  margin-top: -4rem;
  padding: 2rem;
  width: 720px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 2rem;
  grid-row-gap: 0rem;
  justify-content: center;
  align-items: center;
}
body.mobile .panel-last {
  grid-template-columns: 1fr;
  grid-row-gap: 1rem;
}


.panel-last > p.fm-logo,
.panel-last > p + p {
  grid-column: 1 / 2;
}

.panel-last > a {
  grid-column: 1 / 2;
}

.panel-last .show-video {
  grid-column: 2 / 3;
  grid-row: 1 / 4;
  background-image: url(../video/Why-Video-Cover.jpg);
  width: 300px;
  height: 168.75px;
  background-size: contain;
  margin: auto;
  box-shadow: -1px 3px 10px #326c9d55;
  cursor: pointer; 
}
.panel-last .show-video:hover {
  box-shadow: -1px 5px 20px #326c9d77;
}
body.mobile .panel-last .show-video {
  display: none;
}


.video-modal {
  position: fixed;
  top: 0px; left: 0px; right: 0px; bottom: 0px;
  background: #326c9ddd;
  display: none;
  justify-content: center;
  align-items: center;
}
.video-modal.open {
  display: flex;
}
.video-modal video {
  width: 80vw;
  max-width: 80%;
  max-height: 80%;
}
.video-modal button.video-modal-close {
  position: absolute;
  top: 100px;
  left: 95vw;
  color: #326c9d;
  font-size: 1.5rem;
  background: none;
  border: 0;
  padding: 1rem;
  background: white;
  border-radius: 2rem;
  outline: 1px solid #326c9d;
  z-index: 9;
  width: 2rem;
  height: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 200ms ease-in-out;
  cursor: pointer;
}
.video-modal button.video-modal-close:hover {
  transform-origin: center;
  transform: scale(1.2);
}
.modal-logo {
  position: absolute;
  top: 100px;
  left: 5vw;
  border-radius: 3rem;
  width: 3rem;
  height: 3rem;
  background-color: white;
  border: 5px solid white;
  background-image: url(../img/FM-Icon-Large-Blue.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  
}

  
.panel-last p.fmlogo {
  font-family: var(--font-logo);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 2.5rem;
  color: #326c9d;
  transform-origin: center;
  margin-bottom: 0rem;
  font-weight: 300;
}
.panel-last p.fmlogo span.bold { font-weight: 700; }
.panel-last p.fmlogo img {
  display: inline-block;
  height: 3rem;
  margin-right: 1.5rem;
  transform: scale(1.1);
}
.panel-last p {
  margin: auto 0;
}
.panel.panel-last a.button { 
  text-align: center; 
  margin: auto;
  width: 80%;
  border-radius: 2rem;
}

body .video-container {
  margin-top: -4rem;
}
body .video-container p {
  font-size: 1rem;
  margin: 0 auto 0.25rem;
  text-align: center;
  
}
body.mobile .video-container p {
  display: none;
}

.panel h1 {
    font-size: 2rem;
    color: cornflowerblue;
}
.panel p {
    color: #515151;
    font-weight: 400;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.25rem;
    line-height: 1.5;
}
.bold { font-weight: 500; }
.color { color: var(--brand); }

.panel a.button {
    display: inline-block;
    text-decoration: none;
    background: rgb(36, 129, 235);
    color: white;
    font-size: 1.2rem;
    margin-top: 1rem;
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: -1px 2px 5px #00000033;
}
.panel a.button:hover {
    background: rgb(10, 98, 198);
}

.panel-img img {
  width: 100%;
  object-fit: cover;
}
body .panel-img { display: none; }
body.mobile .panel-img {display: block; }

body.mobile #dots {display: none; }
#dots {
  position: fixed;
  bottom: 100px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  
}
.dot {
  border: 2px solid #00000019;
  padding: 0.5rem;
  border-radius: 1rem;
  box-shadow: 0 3px 5px #00000019;
}
.dot.prev {
  background: #00000019;
}
.dot.active {
  background: white;
  border: 2px solid #ffffff99;
  box-shadow: 0 0px 5px #ffffff99;
}

.icon {
  background-image: url(../clientstories/img/FM-Product-Icons.gif);
  display: inline-block;
  height: 5rem;
  width: 5rem;
  border-radius: 2.5rem;
  background-position: -5rem 0;
  background-size: cover;
  transform: translateY(1.5rem);
  margin-bottom: -0.5rem;
  margin-left: 0.5rem;
}
.icon-yf {
  background-position: -5rem 0;
}
.icon-is {
  background-position: -10rem 0;
  margin-bottom: 1rem;
}
.icon-pp {
  background-position: 0rem 0;
  margin-bottom: 1rem;
}
.icon-ps {
  background-position: -15rem 0;
  margin-bottom: 1rem;
}
.icon-fm {
  background-image: url(../img/Hero-Icon-v2.png);
  background-position: center;
  height: 360px;
  width: 240px;
  border-radius: 0;
  margin: -1rem 1rem -3rem -3rem;
}

/*
#footer {
  background: white;
  position: fixed;
  left: 0px;
  right: 0px;
  z-index: 998;
  transition: transform 200ms ease-out;
}

#footer.showing {}

#footer #footer-button {
  position: absolute;
  top: -8px;
  left: 0px;
  z-index: 999
  border: 10px solid hotpink;
  background: #8ea1b2;
  padding: 0.5rem 1rem;
  color: white;
  border-radius: 0 4px 0 0;
}
#footer #footer-button:hover {
  background: #326c9d;
}
*/

#v0.hidden {
  display: none !important;
}

#canvas-video {
  aspect-ratio: 1.986;
  
  
  box-sizing: border-box;
  position: fixed;
  bottom: 36px;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: calc(100vh - 50px);
  max-height: calc(100vh - 50px);
  object-fit: contain;
}