* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    
    color: #333;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-color: #050066; */
    padding: 10px 20px;
    flex-wrap: wrap; 
    margin-top: 105px; 
    margin-bottom: 30px;
}

.logo, .info {
    flex-shrink: 0;
}

.logo {
    margin-left: 370px;
}

.info {
    margin-right: 370px;
}

.home-icon {
    width: 80px;
    height: auto;
    transition: transform 0.3s, opacity 0.3s;
}

.title {
    text-align: center;
    margin-bottom: 20px;
    margin-right: 550px;
    margin-left: 110px;
}

.title h1 {
    font-size: 36px;
    color: #3557ff;
    margin: 0;
}

.title p {
    font-size: 18px;
    color: #3557ff;
    margin: 5px 0 0;
}

.info-icon:hover, .home-icon:hover, .logo-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.navbar {
    display: flex;
    justify-content: center; 
    align-items: center;
    background-color: #00157c; 
    padding: 0.5rem 1rem;
    height: 95px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    font-size: large;
    font-weight: bold;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links > li {
    position: relative;
    margin: 0 1rem;
    list-style: none;
}

.card1 ul {
    list-style-type: none; 
    margin-left: 0px; 
    padding: 0; 
}

.nav-links > li > a {
    color: #fff;
    padding: 0.5rem 1rem;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    background-color: #ffffff; 
    color: #050066c9; 
    border-radius: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #050066;
    min-width: 200px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    color: #fff;
    padding: 0.8rem 1rem;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none; 
}

.dropdown-menu li a:hover {
    background-color: #ffffff; 
    color: #050066c9; 
    border-radius: 5px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.nav-links > .dropdown > a {
    position: relative;
    padding-right: 1.5rem; 
}

.nav-links > .dropdown > a::after {
    content: "▼"; 
    font-size: 12px;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    transition: transform 0.3s ease; 
}

.dropdown:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
}
  

  @media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 0.5rem;
        height: auto;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-links > li {
        width: 100%;
        margin: 0.5rem 0;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .info{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-right: 0;
    }
    .info-section {
        padding: 15px;
    }
  }

  footer {
    background-color: #00157c;
    color: white;
    padding: 20px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    /* text-align: center; */
}

.center-footer p {
    margin: 0;
    font-size: 14px;
    text-align: center;
    color: white;
    margin-top: 10px;
}

.center-footer a {
    color: #ffffff;
    text-decoration: none; 
}

.center-footer a:hover {
    color: red; 
}

.center-footer a{
    color: #ffffff;
}

.bottom-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.left-footer, .right-footer {
    font-size: 14px;
}

.left-footer{
    margin-left: 50px;
}

.right-footer{
    margin-right:50px;
}

.privacy-link {
    color: white;
    text-decoration: none;
    margin-right: 10px;
}

.social-icon {
    width: 24px;
    height: 24px;
    margin-left: 10px;
    
}

.container1 {
    width: 100%;
    max-width: 1117px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0px;
   
}

.Vedicchartheadings,.Vedicchartheadings1{
    margin: 0 auto; 
    text-align: center; 
    max-width: 90%; 
}

.container1 ul {
    padding: 5px 5px 5px 10px;
}

.card1 {
    border: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    background-color: #ffffff;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%; 
    font-size: 16px;
}



.info-section {
    background-color: #050066;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%; 
    max-width: 650px;
}

@media (max-width: 1024px) {
    .card1 {
        font-size: 14px; 
        gap: 15px;
    }
    .info-section {
        width: 85%;
    }
}

@media (max-width: 768px) {
    .container1 {
        flex-direction: column; 
        gap: 15px;
    }
    .card1 {
        font-size: 14px;
        width: 100%; 
    }
    .info-section {
        padding: 15px;
        width: 90%; 
    }
}




@media (max-width: 480px) {
    .card1 {
        font-size: 12px; 
        padding: 10px;
        gap: 10px;
    }
    .info-section {
        padding: 10px;
        width: 95%; 
    }

    
}

h2:hover{
    transform: scale(1.01);
    color: #3557ff;
}
h2 {
    align-items: center;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.info-item label {
    color: #fff;
    font-size: 14px;
}

.info-item input {
    border: 1px solid #333;
    padding: 5px;
    border-radius: 5px;
    font-size: 14px;
    width: 60%;
}

.gender-section {
    margin-top: 15px;
    text-align: center;
}

.gender-section label {
    color: #fff;
    font-size: 14px;
}

.gender-section input {
    margin-left: 5px;
}

.button-section1 {
    /* display: flex; */
   
    margin: 20px auto;
    width: 80%;
    max-width: 400px;
    
}
#save-btn1{
    position: relative;
    left:50%;
    transform: translate(-50%, -50%);

}

button {
    background-color: #050066;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    width: 48%;
}
#returnToTopBtn { 
    display: none; 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    z-index: 1000; 
    font-size: 24px; 
    background-color: #050066; 
    color: white; 
    border: none; 
    border-radius: 50%; 
    width: 50px; 
    height: 50px; 
    cursor: pointer; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); 
    transition: opacity 0.3s ease; 
} 

#returnToTopBtn:hover { 
    background-color: red; 
}


button:hover {
    background-color: #061a99;
}

footer {
    background-color: #050066;
    color: white;
    padding: 20px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    /* text-align: center; */
}

.center-footer p {
    margin: 0;
    font-size: 14px;
    text-align: center;
    color: white;
    margin-top: 10px;
}

.center-footer a {
    color: #ffffff;
    text-decoration: none; 
}

.center-footer a:hover {
    color: red; 
}

.footer-nav a:hover, .privacy-link:hover {
    color: red;
}
.center-footer a{
    color: #ffffff;
}

.bottom-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.left-footer, .right-footer {
    font-size: 14px;
}

.privacy-link {
    color: white;
    text-decoration: none;
    margin-right: 10px;
}

.social-icon {
    width: 24px;
    height: 24px;
    margin-left: 10px;
    
}
.title {
    text-align: center;
    font-size: clamp(20px, 5vw, 24px);
    margin-bottom: 20px;
}

.info-card, .chart-card {
    border: 2px solid navy;
    
    /* border: 0px 4px 8px rgba(0, 0, 0, 0.1); */
    border-radius: 15px;
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(15px, 3vw, 20px);
    margin-bottom: 20px;
    /* width: 100%; */
   
}
#lagna-chart{
    display: none;
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

hr{
    height: 0.3px;
    background-color: black;
    border: none;
}
#result{
    display: none;
}
@media (min-width: 600px) {
    .info-grid {
        grid-template-columns: 200px 1fr;
    }
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

@media (min-width: 600px) {
    .info-row {
        flex-direction: row;
        align-items: center;
    }
}

.info-label {
    font-weight: bold;
    min-width: 120px;
}

.info-value {
    flex: 1;
}

.gender-options {
    display: flex;
    gap: 20px;
}

.radio-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.radio-container input[type="radio"] {
    width: 16px;
    height: 16px;
}

.zodiac-button {
    background-color: navy;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 20px auto 0;
    width: fit-content;
}

.chart-container {
    padding: 10px;
    /* max-width: 100%; */
    width:100%;    
    /* display: flex; */
}

@media(max-width:768px){
    .chart-container{
        width: 100%;
        height: auto;
        font-size: 0.1rem;
    }
}

.chart-containermain{
        display:flex;
        justify-content: space-around;
        align-items: center;
        flex-wrap: wrap;
            
}

.descriptionsection{
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
   
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    border: 1px solid black;
    margin: 20px auto;
    padding: 10px;
    aspect-ratio: 1.1;
    min-width: 280px;
    max-width: 450px;


}

.chart-cell {
    border: 1px solid black;
    padding: clamp(5px, 2vw, 10px);
    text-align: center;
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 1000;
}

.diagonal-text {
    position: absolute;
    transform: rotate(-45deg);
    transform-origin: center;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    /* font-size: 6px; */
}

.diagonal-text1 {
    position: absolute;
    transform: rotate(45deg);
    transform-origin: center;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    /* font-size: 6px; */
}

.center-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.zodiac-symbol {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 5px;
}

.zodiac-title {
    font-size: clamp(16px, 4vw, 18px);
    font-weight: bold;
    /* margin: 15px 0; */
    /* width: 45%; */
    text-align: center;
    
}

.zodiac-titlemain {
    font-size: clamp(16px, 4vw, 18px);
    font-weight: bold;
    /* margin: 15px 0; */
    /* width: 45%; */
    text-align: center;
    padding: 0.7rem;
    background-color: #050066;
    color: #fff;
    
}

.zodiac-titlemain :hover{
    color: #e91022d2;
}



.description {
    font-size: clamp(14px, 3vw, 16px);
    line-height: 1.6;
    width: 100%;
}

.description p {
    margin-bottom: 15px;
    margin-top: 15px;
}




@media (max-width: 480px) {
    .home-icon, .logo-icon {
        width: 35px;
        height: 35px;
    }

    h1 {
        font-size: 20px;
    }

    .playstore-logo img {
        width: 100px;
    }

    .footer-nav a, .privacy-link, .right-footer p {
        font-size: 12px;
    }

    footer p {
        font-size: 10px;
    }
    .chart-cell{
        font-size: 7px;
    }

}
@media (max-width: 768px) {
    .header-content {
        flex-direction: column; 
        padding: 10px; 
        margin-top: 290px;
        
        
    }
    .logo {
        margin-left: 0; 
        margin-bottom: 10px; 
        margin-top:14px;
    }
    .info {
        margin-right: 0; 
        margin-top: 10px; 
    }
    .title {
        margin-right: 0; 
        margin-bottom: 15px; 
        margin-left: 10px;
    }
    .title h1 {
        font-size: 28px; 
    }
    .title p {
        font-size: 16px; 
    }
    .home-icon {
        width: 50px; 
    }
    .playstore-logo img {
        width: 140px;
    }
    .chart-cell{
        font-size: 7px;
    }


    /* .diagonal-text{
        font-size: 4px;
    }
    .diagonal-text1{
        font-size: 4px;
    } */
}

@media (max-width: 480px) {
    .header-content {
        padding: 5px; 
    }
    .title h1 {
        font-size: 24px; 
    }
    .title p {
        font-size: 14px; 
    }
    .home-icon {
        width: 40px; 
    }
    .playstore-logo img {
        width: 100px;
    }
    /* .diagonal-text{
        font-size: 2px;
    }
    .diagonal-text1{
        font-size: 2px;
    } */
}



@media (max-width: 480px) {
    .header-content {
        padding: 5px; 
    }
    .title h1 {
        font-size: 24px; 
        margin-right:10px ;
    }
    .title p {
        font-size: 14px; 
    }
    .home-icon {
        width: 40px; 
    }
    .playstore-logo img {
        width: 100px;
    }
    .chart-cell{
        font-size: 5px;
    }
}

.playstore-logo {
    display: flex;
    justify-content: center;
    margin-top: 0px;
    margin-left: 0px;
}

.playstore-logo img {
    width: 190px;
}
@media (min-width: 600px) {
    .downloadapp {
        max-width: 50%;
        padding: 30px;
    }
}


.download-button {
    text-align: center; 
    margin: 20px auto; 
}

.download-button .button {
    display: inline-block;
    text-decoration: none; 
    background-color: #00157c; 
    color: white; 
    padding: 19px 24px; 
    border-radius: 5px; 
    font-size: 16px; 
    font-family: Arial, sans-serif; 
    font-weight: bold; 
    transition: background-color 0.3s ease, transform 0.2s ease; 
}

.download-button .button:hover {
    background-color: #050066; 
}

.download-button .button:active {
    transform: scale(0.98); 
}

@media (max-width: 768px) {
    .download-button .button {
        font-size: 14px;
        padding: 10px 20px; 
    }
}


.card2{
    border: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    gap: 20px;
    background-color: #ffffff;
    margin-left: 3%;
    display: flex;
    flex-direction: column;
    width: 1177px;
    gap: 20px;
    font-size: 16px;
    width: 95%;
    /* margin: 0 auto; */
    margin-top: 20px;
    text-align: center;

}
