:root {
  --theme-yellow: #d2bf84;
  --theme-orange: #d47d0b;
  --theme-sidebar: #f7f0db;
  --theme-navyblue: #2c284b;
  --theme-light: #edf8fd;
  --form-shade: #6c627a73;
  --theme-person1: #C7E3E5;
  --theme-person2: #DBCFDD;
  --theme-header2: #E3DCC2;
  --theme-error: rgb(243, 67, 67);
  --theme-body: #f2efe3;
  --theme-cream: #f4f3e1de;
  --theme-offwhite: #efeadf;
  --theme-text-normal: #343030;
}

body.dark-mode {
  --theme-yellow: #d2bf84;
  --theme-orange: #eeab53;
  --theme-sidebar: #f7f0db;
  --theme-navyblue: #fffdfa;
  --theme-light: #34575e;
  --form-shade: #6c627a73;
  --theme-person1: #C7E3E5;
  --theme-person2: #DBCFDD;
  --theme-header2: #E3DCC2;
  --theme-error: rgb(243, 67, 67);
  --theme-body: #26485b;
  --theme-cream: #315364;
  --theme-offwhite: #1f3e57;
  --theme-text-normal: #eef4f3;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  background-color: var(--theme-body) !important;
  -webkit-print-color-adjust:exact !important;
  print-color-adjust:exact !important;
  color: var(--theme-text-normal);
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE 10+ */
  user-select: none;
}

.bg-theme {
  background: linear-gradient(0deg,rgba(247, 246, 205, 0.01) 0%, rgba(230, 249, 255, 0.42) 100%);
  /* background: linear-gradient(to bottom, #f7e099 0%, #ffad00e0 100%); */
}

.normal-text-theme {
  color: var(--theme-text-normal) !important;
}

.active {
  font-weight: bold;
}

.bg-sidenav {
  background-color: var(--theme-sidebar);
}

.bg-sky {
  background-color: var(--theme-light) !important;
}

.bg-theme-light {
  background-color: var(--theme-cream);
}

#mainNav .btn {
  flex-grow: 1;
  flex-basis: 0;
}

.zodiac-tab {
  color: var(--theme-text-normal);
}

.toggle-btn-sm {
  width: 4em;
  padding: 0em;
  border: none;
  outline: none;
}

.zodiac-round-lg > img {
  max-height: 18em;
}

#nakshatras-wrap .zodiac-square:hover {
  color: var(--theme-light);
  background-color: var(--theme-orange);
  border: 1px solid var(--theme-orange);
  border-radius: 5px;
}

#nakshatras-wrap .zodiac-square:active {
  color: var(--theme-light);
  background-color: var(--theme-navyblue);
  border: 1px solid var(--theme-navyblue);
  border-radius: 5px;
}

.color-themeblue {
  color: var(--theme-navyblue);
}

.color-torange {
  color: var(--theme-orange);
}

.activenav-inverse {
  background-color: var(--theme-cream) !important;
  color: var(--theme-text-normal);
}

.bg-form-shade {
  background-color: var(--form-shade);
}

.max-height-2 {
  max-height: 2em;
}

.active-nav, .active-nav .normal-text-theme {
  background-color: var(--theme-navyblue) !important;
  color: var(--theme-light) !important;
}

.active-zodiac {
  background-color: var(--theme-light) !important;
}

.sign-features {
  font-size: 1.2em;
}

.pointer {
  cursor: pointer;
}

.border-skytheme {
  border: 3px solid var(--theme-navyblue);
  border-radius: 21px;
}

.border-yellowtheme {
  border: 3px solid var(--theme-orange);
  border-radius: 21px;
}


/*------------------left-navbar------------------*/
#navbar {
  position: sticky;
  top: 4.8rem;
  overflow: hidden;
}

/* Navbar links */
#navbar a {
  display: block;
  color: #0467F1;
  padding: 1px;
  text-decoration: none;
  border-bottom: 0.01em solid #decfff;
}


/*-------------------date-picker-----------------*/
.date-picker {
  border: 1px solid #eeab53;
  border-radius: 5px;
  background-color: #fff;
  padding: 3px 5px;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.1);
  width: 190px;
}

.date-label {
  display: block;
  color: var(--theme-navyblue);
}

.service-item {
  width: 4rem;
  height: 4rem;
}

.zodiac-round {
  display: flex;
  align-items: stretch;
  justify-content: center;
  border: 1px solid transparent;
  width: 5.2em;
  height: 5.2em;
  border-radius: 3em;
  background-color: var(--theme-navyblue);
}

.zodiac-round:hover {
  background-color: var(--theme-light);
}

.zodiac-square {
  display: flex;
  align-items: stretch;
  justify-content: center;
  border: 1px solid transparent;
  background-color: var(--theme-navyblue);
  color: var(--theme-light);
  width: 5.5em;
  height: 5.5em;
  border-radius: 0.4em;
}

.panchang-img {
  max-height: 5em;
  width: auto;
}

.h-60 {
  min-height: 60vh;
  max-height: 65vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.h-42 {
  min-height: 40vh;
  max-height: 42vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.zodiac-round-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  width: auto;
  z-index: 1000;
  max-height: 25em;
  border-radius: 20em;
}

.hero {
  background-image: url("/static/images/bg.svg");
  background-repeat: no-repeat;
}

.copy-right {
  text-align: center;
}

.image {
  max-width: 100%;
}

.footer {
  padding: 30px 30px 20px 30px;
  color: var(--theme-navyblue);
  border-top: 1px solid var(--theme-navyblue);
}

.border-zodiac {
  border-bottom: 0.8em ridge var(--theme-orange);
  border-radius: 1.2em;
}

.footer-logo {
  max-height: 1.5em;
  height: 1.5em;
}

.footer-addr h2 {
  margin-top: 1.3em;
  font-size: 15px;
  font-weight: 400;
}

.nav-title {
  font-weight: 500;
  font-size: 15px;
}

.title {
  color: var(--theme-text-normal);
}

.footer ul {
  list-style: none;
  padding-left: 0;
}

.footer li {
  line-height: 2em;
}

.footer a {
  text-decoration: none;
}

.nav-ul a {
  color: var(--theme-navyblue);
}

.d-grid {
  display: grid;
}

a.link-unavailable {
  pointer-events: none;
  color: gray !important;
  cursor: default !important;
  text-decoration: line-through !important;
}

.paragraph {
  text-align: justify;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  color: #f8f4f4;
}

.legal-links {
  display: flex;
  align-items: center;
}

.social {
  height: 2.5em;
}

::-webkit-scrollbar {
  width: 10px;
  scrollbar-width: thin;
}

::-webkit-scrollbar-track {
  border-radius: 7px;
  background-color: #696680af;
  border: 1px solid #37325d;
}

::-webkit-scrollbar-thumb {
  border-radius: 7px;
  background-color: #2c284b;
}


.left-arrow,
.right-arrow {
  width: 0;
  height: 0;
  margin: 9px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.right-arrow {
  border-left: 25px solid var(--theme-navyblue);
}
.left-arrow {
  border-right: 25px solid var(--theme-navyblue);
}

.main-margin {
  margin-top: 8rem !important;
}


/* --- autocomplete --- */
.autocomplete {
  position: relative;
  display: inline-block;
}

.autocomplete-items {
  position: absolute;
  border: 2px solid #fff;
  border-radius: 8px;
  z-index: 99;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 13em;
  overflow-y: auto;
  overflow-x: hidden;
}

.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff; 
  border-bottom: 1px solid #ebebeb; 
}

/*when hovering an item:*/
.autocomplete-items div:hover {
  background-color: var(--theme-orange); 
}

.autocomplete-active {
  background-color: var(--theme-navyblue) !important; 
  color: #ffffff; 
}

#ephem-date {
  border: 2px solid var(--theme-orange);
  border-radius: 7px;
  min-height: 2.3em;
  padding: 4px;
  color: #2c284b;
}

.select-wrapper {
  height: 50px;
  overflow-y: visible;
}

.select {
  min-height: 50px;
}

.btn-size {
  justify-content: center;
  align-items: center;
  min-width: 8rem;
}

.btn-height {
    max-height: 2.5rem;
}

.margins-4 {
  margin-left: 2em;
  margin-right: 0.2em;
}


/* tools-page */
.tool-square {
  justify-content: center;
  border: 1px solid transparent;
  background-color: var(--theme-navyblue);
  color: #fff;
  width: fit-content;
  padding: 0.5em;
  margin: 0.5em;
  height: 3em;
  border-radius: 0.4em;
}

.tool-square:hover {
  color: var(--theme-light);
  background-color: var(--theme-orange);
  border: 1px solid var(--theme-orange);
  border-radius: 5px;
}

.tool-square:active {
  color: #fff;
  background-color: var(--theme-navyblue);
  border: 1px solid var(--theme-navyblue);
  border-radius: 5px;
}

.table-layout-fixed {
  table-layout: fixed;
}

.thumbnail {
  max-height: 18em;
  overflow: hidden;
  border: 1px solid #f2efe3;
  border-radius: 4px;
}


/* radio-toolbar  */
.radio-toolbar {
  display: flex;
  margin: 0.5em;
}

.radio-toolbar input[type="radio"] {
  opacity: 0;
  position: fixed;
  width: 0;
}

.radio-toolbar label {
  display: inline-flex;
  border: 1px solid transparent;
  background-color: var(--theme-light);
  border-radius: 0.4em;
  color: var(--theme-text-normal);
  padding: 10px 20px;
  width: fit-content;
  padding: 0.5em;
  margin: 0.5em;
  height: 3em;
}

.radio-toolbar label:hover {
  color: var(--theme-light);
  background-color: var(--theme-orange);
  border: 1px solid transparent;
  border-radius: 0.4em;
}

.radio-toolbar input[type="radio"]:focus + label {
  color: #fff;
  background-color: var(--theme-navyblue);
  border: 1px solid transparent;
  border-radius: 0.4em;
}

.radio-toolbar input[type="radio"]:checked + label {
  color: #fff;
  background-color: var(--theme-orange);
  border: 1px solid transparent;
  border-radius: 0.4em;
}

.premium-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #F5E551;
    color: #12263A;
    border-radius: 50px;
    height: 47px;
    width: 47px;
    position: absolute;
    bottom: 0px;
    right: -35px;
    font-size: 1em;
    font-weight: 500;
    line-height: 1;
}

.report-btn {
  min-width: 10em;
}
/* ------------------------captcha----------------------------*/
.captcha input {
  /* height: calc(1.5em + .75rem + 2px); */
  max-width: 5rem;
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  margin-left: 3px;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.captcha legend {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--theme-text-normal);
}

.captcha input:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 .2rem var(--form-shade);
}

.captcha fieldset {
  display: flex;
  align-items: center;
}

/* ----------------porutham----------------- */

.round_div {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  width: 10em;
  height: 10em;
  border-radius: 5em;
}

.rectangle_div {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  width: 12em;
  height: 5em;
  padding: 1rem;
  border-radius: 1em;
}

.boxed-items {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 1.5em;
}

.bg-sub-header {
  background-color: var(--theme-header2)
}

.bg-boy {
  background-color: var(--theme-person1);
}

.bg-girl {
  background-color: var(--theme-person2);
}

.bg-torange {
  background-image: linear-gradient(135deg, #ffc209 40%, #ffa937) !important;
}

.txt-highlight {
  background-color: #f2efc7;
}

/*------------colour codes----------------*/
.bg-violet {
  background-color: #D1C9E4;
}

.bg-indigo {
  background-color: #C2CEEA;
}

.bg-teal {
  background-color: #B4E4E4;
}

.bg-red {
  background-color: #F8A0A7;
}

.bg-amber {
  background-color: #F6FFD6;
}

.bg-earth {
  background-color: #D7C2C1;
}

.bg-coral {
  background-color: #FDD19B;
}

.bg-pearl {
  background-color: #DFE1CC;
}

.bg-green {
  background-color: #DCFFD6;
}


/*-----------------------inputs---------------------------*/
.form-control:invalid:not(:focus):not(:placeholder-shown) {
  border: 1px solid rgb(243, 67, 67);
}

.form-control:focus {
  outline: none
}

.form-control:invalid:focus {
  outline: none
}

.ephem-table td {
  color: var(--theme-text-normal);
}

/*------------------------------support -------------------------*/

details {
    margin-bottom: 1rem;
    border: 1px solid #777e87;
    border-radius: 0.4rem;
    overflow: hidden;
}

summary {
    display: block;
    padding: 1rem 1.5rem;
    background-color: var(--theme-light);
    color: var(--theme-navyblue); 
    font-weight: 600;
    cursor: pointer;
    outline: none;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease-in-out;
}

summary:hover {
    background-color: var(--theme-offwhite);
}

summary::marker {
  content: '';
}

/* Custom arrow for summary */
summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.2s ease-in-out; /* Smooth rotation */
}

details[open] summary::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg); /* No rotation needed for minus */
}

details[open] summary {
    border-bottom: 1px solid #f0e2e2;
}

.accordion-content {
    padding: 1rem 1.5rem;
    background-color: var(--theme-body);
    color: var(--theme-text-normal);
    line-height: 1.6;
}

/* Basic animation for content reveal (optional, but nice) */
details[open] .accordion-content {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*  svg chart  */
.svg-container, .svg-container svg {
  width: 200px;
  height: 200px;
}

.svg-container-mini, .svg-container-mini svg{
  width: 180px;
  height: 180px;
}

/*Small devices (landscape phones, 576px and up)*/
@media (max-width: 576px) {
.svg-container, .svg-container svg {
  width: 250px;
  height: 250px;
}
.svg-container-mini, .svg-container-mini svg {
  max-width: 210px;
  max-height: 210px;
}

.round_div {
  width: 7em !important;
  height: 7em !important;
}

.rectangle_div {
  width: 7em !important;
  height: 6em !important;
}
}

 /* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

.svg-container, .svg-container svg {
  width: 300px;
  height: 300px;
}
.svg-container-mini, .svg-container-mini svg {
  max-width: 280px;
  max-height: 280px;
}
}

/* // Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

.svg-container .svg-container svg{
  width: 350px;
  height: 350px;
}
.svg-container-mini, .svg-container-mini svg {
  max-width: 300px;
  max-height: 300px;
}
}

/* // X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

.svg-container, .svg-container svg{
  width: 400px;
  height: 400px;
}
.svg-container-mini, .svg-container-mini svg {
  max-width: 350px;
  max-height: 350px;
}
}


@media print {
  body {
    margin: 0;
    padding: 5px;
  }

  .d-print-none {
    display: none;
  }

  .container {
    width: 100%;
    min-width: 100% !important;
  }

  .svg-container, .svg-container svg{
    width: 450px !important;
    height: 450px !important;
  }

  .col-md-6 {
      float: left;
      width: 50% !important;
      max-width: 50% !important;
  }

  .col-md-4 {
    float: left;
    width: 33.333333% !important;
    max-width: 33.333333% !important;
  }

  img.contained-image {
    max-width: 100%;
    height: auto;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .page-break-avoid {page-break-inside: avoid;}
}

/*------------------loader------------------------*/

.loading {
  width: 80px;
  height: 40px;
  border-radius: 100px 100px 0 0;
  position: relative;
  overflow: hidden;
}

.loading:before {
  content: "";
  position: absolute;
  inset: 0 0 -100%;
  background: 
    radial-gradient(farthest-side,var(--theme-orange) 80%, #c0ced0) left 70% top    20%/15px 15px,
    radial-gradient(farthest-side,var(--theme-navyblue) 92%,#0000) left 65% bottom 19%/12px 12px,
    radial-gradient(farthest-side,var(--theme-light) 92%,#0000) left 70% bottom 20%/15px 15px,
    linear-gradient(#c0ced0 50%,var(--theme-navyblue) 0);
  background-repeat: no-repeat;
  animation: loader 2s infinite;
}

@keyframes loader {
  0%,20%   {transform: rotate(0)}
  40%,60%  {transform: rotate(.5turn)}
  80%,100% {transform: rotate(1turn)}
}


.loading-text {
  width: fit-content;
  font-weight: 100;
  font-family: sans-serif;
  font-size: 25px;
  clip-path: inset(0 100% 0 0);
  animation: text-loader 2s steps(11) infinite;
}

.loading-text:before {
  content:"Generating Report..."
}
@keyframes text-loader {to{clip-path: inset(0 -1ch 0 0)}}


/*---------------------------carousel------------------------------*/

.ff-container {
  position: relative;
  overflow: hidden;
}


.css-carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smooth sliding transition */
}

.css-carousel-item {
    min-width: 100%; /* Each item takes full width */
    box-sizing: border-box;
    background-color: #ffffff88;
    color: #323b43;
    text-align: center;
    padding: 3em 4em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Styling for blockquotes within the carousel */
.css-carousel-item blockquote {
    margin: 0;
    padding: 0;
    font-size: 1.3rem; /* Larger font for quotes */
    line-height: 1.6;
    color: #313a41;
    font-style: italic;
    position: relative;
    padding-bottom: 20px; /* Space for citation */
}

.css-carousel-item blockquote p {
    margin-bottom: 15px;
    position: relative; /* Ensure text is above pseudo-element */
    z-index: 1;
}

.css-carousel-item blockquote footer {
    font-size: 1rem;
    color: #6c757d;
    margin-top: 10px;
    display: block; /* Ensure footer is on its own line */
    position: relative;
    z-index: 1;
}

.css-carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.css-carousel-indicators label {
    display: block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}


.css-carousel-indicators label:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Hidden radio buttons to control slide visibility */
.css-carousel-radio {
    display: none;
}

/* Logic for sliding based on radio button checked state */
#slide1:checked ~ .css-carousel-slides {
    transform: translateX(0%);
}
#slide2:checked ~ .css-carousel-slides {
    transform: translateX(-100%);
}
#slide3:checked ~ .css-carousel-slides {
    transform: translateX(-200%);
}

/* Active indicator styling */
#slide1:checked ~ .css-carousel-indicators label:nth-child(1),
#slide2:checked ~ .css-carousel-indicators label:nth-child(2),
#slide3:checked ~ .css-carousel-indicators label:nth-child(3) {
    background-color: #007bff; /* Bootstrap primary blue */
}

/* Navigation controls */
.css-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1.5rem;
    line-height: 1;
    user-select: none;
    transition: background-color 0.3s ease;
    display: none; /* Hide all by default, show based on checked state */
}

.css-carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.css-carousel-control-prev {
    left: 10px;
}

.css-carousel-control-next {
    right: 10px;
}

/* Show specific navigation controls based on the active slide */
/* Slide 1 is active */
#slide1:checked ~ .css-carousel-control.prev-for-slide1,
#slide1:checked ~ .css-carousel-control.next-for-slide1 {
    display: block;
}
/* Slide 2 is active */
#slide2:checked ~ .css-carousel-control.prev-for-slide2,
#slide2:checked ~ .css-carousel-control.next-for-slide2 {
    display: block;
}
/* Slide 3 is active */
#slide3:checked ~ .css-carousel-control.prev-for-slide3,
#slide3:checked ~ .css-carousel-control.next-for-slide3 {
    display: block;
}

/* Hide controls if only one slide */
.css-carousel-container:has(.css-carousel-item:only-child) .css-carousel-control {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .css-carousel-item {
        padding: 30px 15px;
    }
    .css-carousel-control {
        padding: 8px 12px;
        font-size: 1.2rem;
    }
    .css-carousel-item blockquote {
        font-size: 1.2rem;
    }
    .css-carousel-item blockquote::before {
        font-size: 3rem;
        top: -10px;
    }
}


/*----------------Toggle Button-----------------------*/
.night {
  margin: 0 auto;
  font-size: 30%;
  position: relative;
  height: 5em;
  width: 7em;
  border-radius: 6em;
  background: #423966;
}

.day{
  background: #FFBF71;
}

.moon {
  position: absolute;
  display: block;
  border-radius: 50%;
  top: -0em;
  left: 2.5em;
  transform: rotate(-20deg);
  width: 4em;
  height: 4em;
  background: #423966;
  box-shadow: -2em 0 0 0 #fff;
}

.sun {
  top: 0.9em;
  left: 3em;
  width: 3em;
  height: 3em;
  background: #fff;
  box-shadow: 0 0 6px 2px #fff700,   /* smaller, softer inner glow */
  0 -5em 0 -2.7em #fff700,
  3.5em -3.5em 0 -3em #fff700,
  5em 0 0 -2.7em #fff700,
  3.5em 3.5em 0 -3em #fff700,
  0 5em 0 -2.7em #fff700,
  -3.5em 3.5em 0 -3em #fff700,
  -5em 0 0 -2.7em #fff700,
  -3.5em -3.5em 0 -3em #fff700;
}


.page-margin {
  margin-top: 5px;
  margin-bottom: 5px;
}

img.contained-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  page-break-inside: avoid;
}

.autocomplete-items div {
  color: #141212dd !important;
}