/* ======= General Styles ======= */
html {
  width: 100vw;
  overflow-x: hidden;
}

body {
  display: none;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #F2F2F2;
    color: #222;
  }

/* ======= Typography ======= */
h1 {
    font-size: 3.25rem;
    font-weight: 700;
  }
h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

/* =======  Buttons =======  */
.btn-primary{
  background-color: #3363AC;
  color: #FFF;
  border: 0;
}
.btn-primary:hover{
  background-color: #0181C6;
}
.btn-outline{
  border: 2px solid #0181C6;
  color: #000;
}
.btn-outline:hover{
  background-color: #3363AC;
  border: 2px solid #3363AC;
  color: #FFF;
}
.btn-primary.white{
  background-color: #FFF;
  color: #3363AC;
  border: #FFF;
}
.btn-primary, .btn-outline-light {
  padding: 0.5em 1.25em;
  font-size: 1rem;
  border-radius: 4px;
}
.btn-outline-light{
  border: 2px solid #FFF;
}
.btn-outline-light:hover, .btn-outline-light:not(:disabled):not(.disabled):active{
  color: #3363AC;
}
.btn-support {
  position: absolute;
  top: 20px;
  right: calc( 40px - (100vw - 100%) );
}
.btn-pagination{
    width: 39px;
    height: 39px;
    border-radius: 40px;
    background-color: #E6F2F9;
    color: #3363AC;
    font-size: 1.5em;
    line-height: 1;
    padding: 0;
}
.btn-pagination:hover{
  background-color: #3363AC;
  color: #FFF;
}
.btn-pagination.previous-step{
  margin-right: 10px;
}
.logo.large {
  width: 420px;
  margin-bottom: 30px;
}
.active{
  display: block !important;
}

/* =======  HEADER =======  */
header{ 
  background-color: #0181C6; /* Blue background color */
  color: white;
  margin: 0 auto;
  padding: 20px 40px;
  height: 8vh;
}
header .logo{
  width: 250px;
}
img#headerLogo {
  width: 100%;
}

/* ======= MODAL ======= */
.modal-dialog{
  max-width: 800px;
}
.modal-content{
  background: #FFF;
  border-radius: 0px;
  box-shadow: 0px 2px 20px 0px rgba(0, 0, 0, 0.25);
  padding: 80px;
}
.modal-header{
  padding: 0;
  border: 0;
}
.modal-body{
  padding: 0;
}
.btn-close{
  background: transparent;
  border: 0px;
}
.modal-content h5{
  font-weight: bold;
  font-size: 2.5em;
}
.contactModal{
  width: 100%;
}
.modalIcon{
  float: left;
  background: #0181C6;
  color: #FFF;
  border-radius: 100px;
  padding: 0.75em 1em;
  margin-right: .75em;
}
.contactModal p{
  margin-top: .5em;
}
.supportLink a{
  color: #000;
  text-decoration: underline;
}
.supportLink a:hover{
  color: #0181C6;
}

/*  =======  Show / Hide Section Magic ======= */
#welcomeScreen{
  display: none;
}
#welcomeScreen .sidebar{
  display: none;
}
.chapter{
  display: none;
}
.chapter.active{
  display: block !important;
}

/* =======  Welcome Screen =======  */
.welcomeScreen {
  height: 92vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  background-color: #0181C6; /* Blue background color */
  color: white;
}
.welcomeContent{
  padding-bottom: 10vh;
}
p.instructionText{
  color: #FFF;
  font-weight: 400;
  font-size: 1.25em;
  padding-bottom: 2em;
}
.welcomeActionButtons button{
  width: auto;
  min-width: 260px;
  margin-bottom: 1em;
  font-size: 1.125em;
}
.welcomeScreen ul.dropdown-menu.show{
  width: auto;
  min-width: 260px;
  padding: 0;
  box-shadow: 0px 8px 12px 0px rgba(0, 0, 0, 0.25);
}
.dropdown-menu li a{
  text-align: center;
  color: #3363AC;
  padding: 10px;
}
.dropdown-item:focus, .dropdown-item:hover{
  background: #3363AC;
  color: #FFF;
}

/* =======  SIDEBAR NAVIGATION =======  */
.sidebar {
  height: 100%;
  color: #3363AC;
  padding: 4em 0 0 40px;
  position: relative;
  display: none;
}
.sidebar .nav {
  list-style-type: none;
  padding-left: 0;
  padding-right: 20px;
}
.sidebar .nav-link {
  color: #3363AC;
  margin-bottom: 10px;
  padding: 12px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s, color 0.3s;
}
.sidebar .nav-link:hover {
  background-color: #3363AC;
  border-radius: 4px;
  color: #ecf0f1;
}
.sidebar .nav-link.active {
  background-color: #3363AC;
  border-radius: 4px;
  color: white;
}
.sidebar .nav-link.active:hover {
  background-color: #3363AC;
  border-radius: 4px;
}

/* =======  TABBED NAVIGATION =======  */
.chapter-tabs .nav-tabs {
  border-bottom: none;
  margin-bottom: 20px;
}
.chapter-tabs .nav-item {
  margin-right: 10px;
}
.chapter-tabs .nav-link {
  color: #3363AC;
  border: none;
  border-radius: 20px;
  background-color: #E6F2F9;
  transition: background-color 0.3s, color 0.3s;
  text-decoration: none;
  font-size: .9em;
  padding: .75em 1.25em;
  line-height: 1;
}
.chapter-tabs .nav-link:hover {
  background-color: #3363AC;
  color: #FFF;
}
.chapter-tabs .nav-link.active {
  background-color: #3363AC;
  color: white;
  border-color: #3363AC;
}
.chapter-tabs .nav-link.active:hover {
  background-color: #0056b3;
}

/* =======  MAIN CONTENT =======  */
.chapter{
  background: #FFF;
  border-radius: 8px;
  padding: 40px;
  margin: 40px 40px 40px 0;
}
.breadcrumb{
  background: none;
  padding: 0;
  color: #3363AC;
  font-weight: bold;
  margin-bottom: .5em;
}
.step-image-container {
  position: relative;
  display: inline-block;
}
.step-image {
  width: 100%;
  border-radius: 8px;
}
.step-image-container .row{
  margin-left: 0;
  margin-right: 0;
}
.hotspot {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: hotspotBreathing 2s ease-in-out infinite;
}

@keyframes hotspotBreathing {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  }
}

.hotspot.default {
  background-color: #3363AC;
  box-shadow: 0 0 15px rgba(51, 99, 172, 0.6);
}

.hotspot.alternateColor {
  background-color: #CCE6F4;
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.55);
}
.hotspot.black {
  background-color: #000000;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}
.hotspot.white {
  background-color: #CCE6F4;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}
.hotspot .tooltip {
  visibility: hidden;
  position: absolute;
  background: #222;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  white-space: normal;
  opacity: 0;
  min-width: 160px;
  transition: visibility 0s, opacity 0.3s ease-in-out;
}
.hotspot .tooltip.tooltipwhite{
  background: #FFF;
  color: #222;
}
.hotspot .tooltip.tooltipwhite a{
  color: #3363AC; 
}

.hotspot[data-tooltip-position="top"] .tooltip {
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
}

.hotspot[data-tooltip-position="bottom"] .tooltip {
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.hotspot[data-tooltip-position="left"] .tooltip {
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
}

.hotspot[data-tooltip-position="right"] .tooltip {
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
}

.hotspot:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.hotspot .tooltip a{
  color: #FFF;
  text-decoration: underline;
}
.hotspotnumber{
  color: #FFF;
  font-weight: bold;
  text-align: center;
  display: block;
  font-size: 1em;
  border: 0;
  background: #0181C6;
  font-weight: bold;
  line-height: 1.75;
  border-radius: 40px;
  width: 28px;
  height: 28px;
}
.hotspotnumber .bi{
  line-height: 1.25;
  font-size: 1.5em;
}
.content-section {
  display: block;
  padding: 1em;
  border-radius: 8px;
}
.content-section ol{
  margin-bottom: 0;
  margin-left: .8em;
  font-size: .85em;
}
.content-section.highlighted {
  outline: 2px solid #0181C6;
  box-shadow: 0 0 10px rgba(1, 129, 198, 0.5);
  animation: pulse-glow .75s ease-in-out;
}

@keyframes pulse-glow {
  0% {
      box-shadow: 0 0 5px rgba(1, 129, 198, 0.5);
  }
  50% {
      box-shadow: 0 0 10px rgba(1, 129, 198, .75);
  }
  100% {
      box-shadow: 0 0 5px rgba(1, 129, 198, 0.95);
  }
}

.tooltipNumber{
  position: absolute;
  background: #CCE6F4;
  color: #3363AC;
  font-weight: bold;
  text-align: center;
  padding: 5px;
  line-height: 1.25;
  border-radius: 40px;
  width: 28px;
  height: 28px;
  margin-left: -.5em;
}

p.tooltipContext{
  margin-left: 2em;
  margin-bottom: 0;
}
.note{
  font-size: .9em;
  padding: .5em 0;
  color: #777;
}

.stepPagination{
  width: 100%;
  text-align: right;
  margin-top: 2em;
}
.chapter-tabs{
  position: relative;
}

.chapter-tabs-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling for mobile */
}

.nav-tabs {
  display: inline-flex; /* Prevent wrapping and make it scrollable */
  flex-wrap: nowrap; /* Prevent items from wrapping */
}

.nav-item {
  white-space: nowrap; /* Prevent individual items from breaking */
}
.chapter-tabs-wrapper::-webkit-scrollbar {
  display: none; /* Hide the scrollbar for cleaner UI on mobile */
}
.arcade-step {
  position: relative;
  display: block;
}
.arcade-section .carousel-caption{
  position: absolute;
  z-index: 10;
  padding-top: 40px;
  padding-bottom: 40px;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, rgba(6, 6, 7, 0.00) 0%, #1d3a65 100%);
  width: 100%;
  left: 0;
  bottom: 0;
}
.carousel-control-next, .carousel-control-prev{
  opacity: 1;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.carousel-control-next:focus, .carousel-control-next:hover, .carousel-control-prev:focus, .carousel-control-prev:hover{
  opacity: 1;
}

.arcade-section .carousel-control-next-icon, .arcade-section .carousel-control-prev-icon{
  background: none;
  border-radius: 40px;
  width: 40px;
  height: 40px;
  background-color: #E6F2F9;
  color: #3363AC;
  font-size: 2.5em;
  line-height: 1;
  padding: 0;
}
.arcade-section .carousel-control-next-icon:hover, .arcade-section .carousel-control-prev-icon:hover{
background-color: #3363AC;
color: #FFF;
}

.tooltipNumber.bluedot{
  width: 15px;
  height: 15px;
  background-color: #0181C6;
  border-radius: 20px;
  margin: 0.25em 0 0 -.125em;
}

/* ======= Minor Edits ======= */

.noMarginRow {
  margin-right: 0 !important;
}

/* Media query for screens 1024px and smaller */
@media (max-width: 1024px) {

  header .logo{
    width: 200px;
  }
  button, .btn, .btn-primary.white, .welcomeActionButtons button, .dropdown-menu li a{
    font-size: .95em;
  }
  .btn-support{
    padding: 0.3em 1.25em;
  }
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
    margin-bottom: 0.25em;
  }
  .modal-content h5{
    font-size: 2rem;
  }
  .modal-content{
    padding: 50px;
  }
  .sidebar{
    padding: 1.5em 0 0 20px;
  }
  .chapter{
    padding: 20px;
    margin: 20px 20px 20px 0;
    overflow: hidden;
  }
  .col-9.arcade-step {
    max-width: 100%;
    width: 100%;
    flex: 0 0 100%;
  }
  .col-3.step-content {
    max-width: 100%;
    width: 100%;
    flex: 0 0 100%;
    padding-top: 1em;
  }
  .content-section{
    margin-bottom: 0;
  }
  .sidebar .nav-link{
    padding: 8px;
    font-size: .95em;
  }
  .breadcrumb{
    font-size: .85em;
  }
  .chapter-tabs .nav-tabs{
    margin: 0em 0em 1em 0em;
  }
  .chapter-tabs .nav-item{
    margin-bottom: 1em;
  }
  .chapter-tabs .chapter-tabs-wrapper::after{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    height: 11em;
    width: 50px; /* Adjust this to control the fade width */
    pointer-events: none; /* Allow clicks to pass through the fade */
    background: linear-gradient(to left, white, rgba(242, 242, 242, 0));
  }
  .sidebar .chapter-tabs-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    height: 5em;
    width: 50px; /* Adjust this to control the fade width */
    pointer-events: none; /* Allow clicks to pass through the fade */
    background: linear-gradient(to left, #F2F2F2, rgba(255, 255, 255, 0));
  }
}

/* Media query for screens 768px and smaller */
@media (max-width: 768px) {
  .col-9.chapter {
    max-width: 100%;
    width: 100%;
    flex: 0 0 97%;
    margin: 0 0 0 10px;
    }
  /* Sidebar adjustments for horizontal navigation */
  .sidebar {
    padding: 20px 0 15px 0px;
  }
  .sidebar .nav {
    display: flex; 
    flex-wrap: nowrap; 
    justify-content: space-around; 
    flex-direction: unset !important;
  }
  .sidebar .nav .nav-item {
    display: inline-block; 
    padding: 0 10px;
  }
  .sidebar .nav .nav-link {
    padding: 10px 15px;
    display: inline-block; 
    text-align: center; 
    font-size: 0.9rem; 
  }
}
