/*
 * Globals
 */

p {
  font-family: "RidleyGrotesk-Bold", sans-serif;
}

h1 {
  font-family: "ekamai", sans-serif;
  font-size: 73px;
  letter-spacing: 0.2rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h2 {
  font-family: "ekamai", sans-serif;
  font-size: 47px;
  letter-spacing: 0.2rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h3 {
  font-family: "ekamai", sans-serif;
  font-size: 34px;
  letter-spacing: 0.15rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.display-1 {
  font-size: 3.75rem;
  line-height: 3.5rem;
  letter-spacing: 0.2rem;
}

@media (min-width: 992px) {
  .display-1 {
    font-size: 4.75rem;
    line-height: 4.3rem;
    letter-spacing: 0.2rem;
  }
}

/*
 * Base structure
 */
html {
  /*background-color: #0071bc;*/
}

body {
  /*background-color: #0071bc;*/
}

html, body {
  background: url(images/blueBk_wArt.jpg) repeat-y center top;
  background-color:#0071bc;
  /*background-size: cover;*/
  /*min-height: 1700px;*/
}

@media (min-width: 992px) {
  .sgBackground {
    background: url(images/blueBk_wArt.jpg) no-repeat center center;
    background-size: cover;
    /*min-height: 900px;*/
  }
}

.h-90 {
  height: 90% !important;
}

.main {
  /*height: calc(100% - 51px);
  min-height: 1200px;*/
}

@media (min-width: 992px) {
  .main {
    /*height: calc(100% - 51px);
    min-height: 720px;*/
  }
}

.cover-container {
  /* max-width: 42em; */
  width: 100%
}

/* Pick -o- Font */
.ekamai {
  font-family: "ekamai", sans-serif;
  font-weight: 400;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*
 * Header
 */

.nav-masthead .nav-link {
  color: rgba(255, 255, 255, .5);
  border-bottom: .25rem solid transparent;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
  border-bottom-color: rgba(255, 255, 255, .25);
}

.nav-masthead .nav-link+.nav-link {
  margin-left: 1rem;
}

.nav-masthead .active {
  color: #fff;
  border-bottom-color: #fff;
}


.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

.b-example-divider {
  width: 100%;
  height: 3rem;
  background-color: #0000001a;
  border: solid rgba(0, 0, 0, 0.15);
  border-width: 1px 0;
  box-shadow:
    inset 0 0.5em 1.5em #0000001a,
    inset 0 0.125em 0.5em #00000026;
}

.b-example-vr {
  flex-shrink: 0;
  width: 1.5rem;
  height: 100vh;
}

.bi {
  vertical-align: -0.125em;
  fill: currentColor;
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.btn-bd-primary {
  --bd-violet-bg: #712cf9;
  --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
  --bs-btn-font-weight: 600;
  --bs-btn-color: var(--bs-white);
  --bs-btn-bg: var(--bd-violet-bg);
  --bs-btn-border-color: var(--bd-violet-bg);
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: #6528e0;
  --bs-btn-hover-border-color: #6528e0;
  --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-bg: #5a23c8;
  --bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle {
  z-index: 1500;
}

.bd-mode-toggle .bi {
  width: 1em;
  height: 1em;
}

.bd-mode-toggle .dropdown-menu .active .bi {
  display: block !important;
}

.borderDecoTop {
  height: 51px;
  width: 100%;
  background: url(images/border-art-top.svg) repeat-x top center;
}

.borderDecoBottom {
  height: 51px;
  width: 100%;
  background: url(images/border-art-bottom.svg) repeat-x bottom center;
}

footer {
  position: relative;
  bottom: 0;
  width: 100%;
  height: 51px;
}

#questionInput {
  /*width: 80%;
  min-width: 280px;
  padding: 12px;*/
}

@media (min-width: 992px) {
  #questionInput {
    /*width: 80%;
    min-width: 500px;
    padding: 12px;*/
  }
}

.styled-input {
  display: flex;
  align-items: center;
  border: 2px solid #f12a37;
  border-radius: 60px;
  overflow: hidden;
  max-width: 600px;
  background: white;
  position: relative;
  z-index: 1;
  /*margin-bottom: 15px;*/
  margin:0 auto 15px;
}

.styled-input .icon {
  background: #f12a37;
  color: white;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
}

.styled-input input {
  border: none;
  flex: 1;
  font-size: 32px;
  padding: 0 20px;
  font-size: 1.3rem;
  font-family: "ekamai", sans-serif;
  letter-spacing: 0.05rem;
  outline: none;
  color: #00558d;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.styled-input input::placeholder {
  color: #ccc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 992px) {
  .styled-input {
    display: flex;
    align-items: center;
    border: 2px solid #f12a37;
    border-radius: 60px;
    overflow: hidden;
    min-width: 460px;
    background: white;
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
  }

  .styled-input .icon {
    background: #f12a37;
    color: white;
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
  }

  .styled-input input {
    border: none;
    flex: 1;
    font-size: 32px;
    padding: 0 20px;
    font-size: 1.8rem;
    font-family: "ekamai", sans-serif;
    letter-spacing: 0.05rem;
    outline: none;
    color: #00558d;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}
@media (min-width: 1200px) {
  .styled-input {
    min-width: 500px;
  }
}
@media (min-width: 1400px) {
  .styled-input {
    min-width: 580px;
  }
}


#askButton {
  background-color: #f12a37;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 50px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease;
  font-family: ridleygrotesk-bold, sans-serif;
  font-size: 1.2rem;
}

#askButton:hover {
  background-color: rgba(231, 76, 60, 1);
}

#answerBox {
  position: absolute;
  top: 35%;
  left: 50%;
  margin-left: -150px;
  margin-top: -130px;
  /* background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); */
  padding: 40px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  text-align: center;
  font-family: "ekamai", sans-serif;
  font-size: 2rem;
  line-height: 2.2rem;
  letter-spacing: 0.05rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #00558d;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0 solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  /* margin-top: 20px; */
  z-index: 1; /* adjust to 1 from 9 to put behind snow */
}

/* Snow animation */
.snowflake {
  position: fixed;
  top: -10px;
  color: #fff;
  font-size: 1em;
  user-select: none;
  animation: fall linear infinite;
}

@keyframes fall {
  to {
    transform: translateY(110vh);
  }
}


/* Shake animation snowglobe */
.shake {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0% {
    transform: translate(0);
  }

  25% {
    transform: translate(-4px, 4px);
  }

  50% {
    transform: translate(4px, -4px);
  }

  75% {
    transform: translate(-4px, 4px);
  }

  100% {
    transform: translate(0);
  }
}

.snowglobe {
  position: relative;
  /*min-width: 400px;*/
  width:390px;
  z-index: 10;
  margin-left:-15px;
  margin-right:auto;
}
@media (min-width: 420px) {
  .snowglobe {
    position: relative;
    width:400px;
    z-index: 10;
    margin-left:auto;
    margin-right:auto;
  }
}
@media (min-width: 992px) {
  .snowglobe {
    position: relative;
    width:520px;
    z-index: 10;
  }
}

.snowglobe img {
  position: relative;
  z-index: 1;
}

.snowglobe-shadow {
  position: relative;
  min-width: 300px;
  min-height: 98px;
  z-index: 0;
  background: url(images/snowglobe-shadow.svg) no-repeat center center;
  background-size: contain;
  margin-top: -88px;
  margin-left:auto;
  margin-right:auto;
}

@media (min-width: 992px) {
  .snowglobe-shadow {
    position: relative;
    min-width: 400px;
    min-height: 98px;
    z-index: 0;
    background: url(images/snowglobe-shadow.svg) no-repeat center center;
    background-size: contain;
    margin-top: -98px;
    margin-left:auto;
    margin-right:0;
  }
}
@media (min-width: 1200px) {
  .snowglobe-shadow {
    margin-top: -98px;
    margin-left:50px;
    margin-right:0;
  }
}
@media (min-width: 1400px) {
  .snowglobe-shadow {
    margin-top: -98px;
    margin-left:0;
    margin-right:0;

  }
}

/* .overGlobe {
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.1em;
    padding: 20px;
    border-radius: 50%;
} */

.text-dkBlue {
  color: #00558d;
}

.btn-primary {
  background-color: #00558d;
  border-color: #00558d;
  color: #fff;
  border-radius: 50px;
  font-family: ridleygrotesk-bold, sans-serif;
  font-size: 1.2rem;
  padding: 12px 30px;
}

.btn-secondary {
  background-color: #f12a37;
  border-color: #f12a37;
  color: #fff;
  border-radius: 50px;
  font-family: ridleygrotesk-bold, sans-serif;
  font-size: 1.2rem;
  padding: 12px 30px;
}

.questionBox {
  position: relative;
  width:100%;
}
@media (min-width: 992px) {
  .questionBox {
    position: relative;
    width:auto;
  }
}


.questionBox input {
  position: relative;
  z-index: 2;
}

.shakeBug {
  position: absolute;
  bottom: 120px;
  width: 220px;
  height: auto;
  left: 50%;
  margin-left: -350px;
}
@media (min-width: 1200px) {
  .shakeBug {
    position: absolute;
    bottom: 120px;
    width: 220px;
    height: auto;
    left: 50%;
    margin-left: -440px;
  }
}

/* This creates the circular mask over the glass area */
.globe-glass {
  position: absolute;
  top: 40%;
  left: 50%;
  margin-left: -150px;
  margin-top: -150px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 5;
  pointer-events: none;

    clip-path: polygon(
      50% 0%,            /* top center */
      69% 3%,            /* approx upper right */
      85% 12%,           /* right upper curve */
      95% 27%,           /* right mid curve */
      100% 43%,          /* right side curve */
      100% 58%,          /* start flat bottom */
      100% 87.5%,        /* bottom right corner */
      87.5% 87.5%,       /* bottom flat right */
      62.5% 87.5%,       /* bottom flat center right */
      37.5% 87.5%,       /* bottom flat center left */
      12.5% 87.5%,       /* bottom flat left */
      0% 87.5%,          /* bottom left corner */
      0% 58%,            /* left side curve */
      0% 43%,            /* left mid curve */
      5% 27%,            /* left upper curve */
      15% 12%            /* left upper left */
    );

    -webkit-clip-path: polygon(
      50% 0%, 
      69% 3%, 
      85% 12%, 
      95% 27%, 
      100% 43%, 
      100% 58%, 
      100% 87.5%, 
      87.5% 87.5%, 
      62.5% 87.5%, 
      37.5% 87.5%, 
      12.5% 87.5%, 
      0% 87.5%, 
      0% 58%, 
      0% 43%, 
      5% 27%, 
      15% 12%
    );
}

/* This styles the actual snowflakes */
.inner-snowflake {
  position: absolute;
  background-color: #fff;
  border-radius: 50%;
  z-index: 6;
  pointer-events: none;
  opacity: 1;
  /* Increase to full opacity for better visibility */
  animation: inner-fall linear forwards;
  /* Keep the animation */
  filter: blur(1px);
}

@media (min-width: 992px) {
  .globe-glass {
    /* Half of the new width (360 / 2 = 180) */
    margin-left: -200px; 
    
    /* You might need to tweak this top number to move the circle up/down */
    margin-top: -200px; 
    
    /* Reduced from 400px to tighten the area */
    width: 400px;
    height: 400px;
    
    /*clip-path: circle(50% at 50% 50%);
    -webkit-clip-path: circle(50% at 50% 50%);*/
  }

  /* You also need to match the answer box size so text stays centered */
  #answerBox {
    margin-left: -180px; /* Match globe-glass margin-left */
    margin-top: -170px;  /* Match globe-glass margin-top */
    width: 360px;        /* Match globe-glass width */
    height: 360px;       /* Match globe-glass height */
  }
}

@keyframes inner-fall {
  to {
    top: 100%;
    /* Fall to the bottom of the globe; overflow: hidden clips it */
  }
}

