 @font-face {
    font-family: escuela;
    src: url('../fonts/Escuela-Bold.otf');
  }

body {
  font-family: escuela;
  font-style: normal;
  color: #fff;
  background-color: #162252;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

main{
  background-color: #162252;
  background-image: url("../media/top-bg.webp");
  background-repeat: no-repeat;
  background-size: cover;
  border-top-left-radius: 50% 30px;
  border-top-right-radius: 50% 30px;
  margin-top: -30px;
}
.top{
  background-color: #51A8C7;
  width: 100%;
  padding: 10px 0 40px 0;
  /*  */
}
.top img{
  width:40px;
  display: block;
  margin: 0 auto;
  
}
.container{
  max-width: 750px;
}
.ellipse {
    margin-top: 15px;
}

.w-20 {
  width: 20% !important;
}
.form-control {
  border-radius: 20px;
}
.fs-tiny {
  font-size: 12px;
}
.btn-jaffa {
  border-radius: 32px;
  background: #0E4998;
  color: white;
}
.form-width {
  max-width: 800px;
  display:  flex;
  justify-self: center;
  flex-direction: column;
}
.top-max {
  max-width: 910px;
}
.jaffa-max {
  max-width: 200px;
}
.copyright-text {
    font-size: 16px;
    font-weight: 900;
    font-family: 'escuela';
    letter-spacing: 1px;
  }

  .short-terms {
      font-size: 9px;
  }
.form-check-input {
  border-radius: 50% !important;
  width: 22px;
  height: 22px;
}
.form-check-label{
  font-size: 16px;
}
.form-check .form-check-input {
    margin-left: -32px;
}
.form-check {
    padding-left: 32px;
}
.form-check-label{
  line-height: 1.2;
}

.f-19{
  font-size: 16px;
}
.cta-slide{
  font-size: 19px;
  background:  url("../media/orange-texture-600.webp") ;
  background-clip: text;           /* Standard property */
  -webkit-background-clip: text;   /* Safari/Chrome */
  -webkit-text-fill-color: transparent; /* Safari/Chrome */
  color: transparent; /* fallback */
  margin-bottom: 19px;
}



.slider-container {
  width: 100%;
  max-width: 800px;
}
.slider-labels {
    position: absolute;
    top: 64px;
    width: 100%;
    left: 13px;
    font-size: 22px;
    pointer-events: none;
}
.slider-track-orange-wrapper {
    margin-bottom: 37px;
}
#results-bar{
  margin-bottom: 10px;
}
.slider-track {
  height: 65px;
  width: 99%;
  top: 50px;
}
.form-floating>.form-control-plaintext~label, .form-floating>.form-control:focus~label, .form-floating>.form-control:not(:placeholder-shown)~label, .form-floating>.form-select~label{
  top: -4px;

}

.form-floating>label{
  color: #0E4998;
  top: -3px;
}
.slogan-img{
  max-width: 300px;
}
.slider-track img{
  width: 135px;
  margin-right: 20px;
}

.slider-track-orange {
    position: relative;
    height: 65px;
    background-image: url(../media/orange-texture-600.webp);
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 34px;
    width: 99%;
    margin: 0 auto;
}
.slider-handle {
    position: absolute;
    top: 50%;
    width: 30vw;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 200px;
    user-select: none;
    transition: transform 0.1s ease;
}

.slider-handle:active {
cursor: grabbing;
transform: translate(-50%, -50%) scale(1.05);
}
.preference {
text-align: center;
margin-top: 10px;
font-size: clamp(14px, 2vw, 18px);
}

.btn-primary{
  width: 240px;
  background-image: url(../media/button-bg.webp);
  background-size: 100%;
  background-position: 8px 0px;
  box-shadow: 3px 4px 4px 2px rgba(0, 0, 0, 0.6);
  height: 40px;
  border-radius: 20px;
  color: white;
  font-size: 20px;
  text-shadow: 1px 2px 6px rgba(0, 0, 0, 1);
  padding-top: 3px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-primary:hover{
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.8);
  box-shadow: 1px 2px 2px 2px rgba(0, 0, 0, 0.4);
}


@media (min-width: 768px) {
  .btn-primary {
    width: 323px;
    font-size: 27px;
    height: 54px;
    border-radius: 27px;
  }

  .copyright-text {
    font-size: 18px;
  }
  .f-19{
    font-size: 19px;
  }
  .cta-slide{
    font-size: 38px;
  }

  .slider-track {
    top: 76px;
  }

  .slider-labels {
    top: 90px;
  }

  .form-check-label {
    font-size: 19px;
  }
}
@media screen and (max-width: 800px) {
  /* .slider-track {
    height: 100px !important;
  }
  .results-handle img {
    width: 100% !important;
  } */
}
@media screen and (max-width: 600px) {
  .w-20 {
    width: 30% !important;
  }
  .w-25 {
    width: 75% !important;
  }
  .w-50 {
    width: 75% !important;
  }
  .w-75 {
     width: 100% !important;
  }
  .fs-1 {
    font-size: 36px !important;
  }
  .fs-3 {
    font-size: 22px !important;
  }
  .fs-4 {
    font-size: 16px !important;
  }
  .fs-5 {
    font-size: 12px !important;
  }
  .legal {
    font-size: 14px !important;
  }
  /* .slider-track {
    height: 75px !important;
  }
  .results-handle img {
    width: 80% !important;
  } */
  /* .top {
background-image: url("../media/mobile-bg.webp");
  } */
}
/* @media screen and (max-width: 500px) {
  .slider-track {
    height: 65px !important;
  }
  .results-handle img {
    width: 70% !important;
  }
}
@media screen and (max-width: 400px) {
  .slider-track {
    height: 55px !important;
  }
  .results-handle img {
    width: 60% !important;
  }
} */
 .slider-labels-2{
  font-size: 18px;
  letter-spacing: 1px;
 }
.white-cake {
    top: 1px;
    position: absolute;
    left: calc(50% - 32px);
    transition: all 1.6s 
    cubic-bezier(0.4, 0, 0.2, 1);
    width: 65px;
}
/* Results bar styles */
.results-bar {
    position: relative;
    height: 120px;
     background-image: url(../media/orange-texture-600.webp);
    border-radius: 34px;
    background-repeat: no-repeat;
    background-size: cover;
}

.results-handle {
    position: absolute;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.results-handle img {
    width: 120%;
    height: 100%;
}

/* Animation styles */
.fade-transition {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-up {
    opacity: 0;
    transform: translateY(-20px);
}

.slide-down {
    opacity: 0;
    transform: translateY(20px);
}

.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Mobile responsive results bar */
@media screen and (max-width: 500px) {
    .results-bar {
        height: 65px;
    }
}