* {
    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;
    padding: 10px 20px;
    flex-wrap: wrap; 
    margin-top: 105px; 
}

.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: 100px;
}

.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;
}

h2:hover{
    color: #3557ff;
}

h1:hover{
    color: #3557ff;
}

.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;
}

.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);
}
  

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

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

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

.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;
}

.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;
    
}

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

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

#backToTopBtn {
    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;
}

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

#lottery-btn1 {
    background-color: #000080;
    color: white;
    border: none;
    margin-left: 10px;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    width: 70%;
}

.lottery-container {
    background: white;
    padding: clamp(20px, 5vw, 40px);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    margin: 0 auto;
    margin-top: 20px;
    max-width: 1117px;
    border: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.descriptiontovedic{
    text-align: left;
    margin-left: 20px;
}

#lotterymaster{
    display: none;
}

.ornament {
    margin: clamp(15px, 3vw, 20px) 0;
    display: flex;
    justify-content: center;
    
}

.lucky-numbers {
    font-size: clamp(1.1em, 4vw, 1.5em);
    margin: clamp(15px, 3vw, 20px) 0;
    padding: 0 10px;
    word-wrap: break-word;
}

.numbers-display {
    margin-top: 10px;
    font-weight: bold;
}

.input-group {
    margin: clamp(10px, 2vw, 15px) 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 0 clamp(10px, 2vw, 20px);
}

.input-group label {
    font-size: clamp(1em, 3vw, 1.2em);
    flex: 1 1 auto;
    text-align: left;
    min-width: 200px;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.input-group input {
    width: clamp(60px, 15vw, 80px);
    padding: 8px;
    font-size: clamp(0.9em, 2.5vw, 1.1em);
    border: 1px solid #ccc;
    border-radius: 4px;
}

.input-group input::-webkit-outer-spin-button,
.input-group input::-webkit-inner-spin-button {
    margin: 0;
}

.pencil-icon {
    font-size: clamp(1em, 3vw, 1.2em);
    color: #666;
    cursor: pointer;
    user-select: none;
}

button {
    background-color: navy;
    color: white;
    border: none;
    padding: clamp(10px, 2.5vw, 12px) clamp(20px, 4vw, 25px);
    font-size: clamp(1em, 3vw, 1.1em);
    border-radius: 5px;
    cursor: pointer;
    margin-top: clamp(15px, 3vw, 20px);
    transition: all 0.3s ease;
    width: clamp(200px, 80%, 300px);
}

button:hover {
    background-color: #000080;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

.ornament svg {
    width: min(90%, 200px);
    height: auto;
}

label{
    margin-left:100px ;
}

.card-description {
    flex: 1;
    border-radius: 8px;
    padding: 15px;
    font-style: normal;
    font-size: 16px;
    line-height: 1.5;
    color: #333333;
    margin-top: 15px;
}

.card-description p {
    margin-bottom: 5px;
    font-size: 16px;
    margin-top: 15px;
}

.card-description ul {
    
    margin-left: 100px;
    
}

.card-description li {
    margin-bottom: 5px;
    font-style: normal;
    font-size: 16px;
    line-height: 1.8;
    gap:10px;
    
    
}
.card {
    border-radius: 8px;
    padding: 15px;
    gap: 20px;
    background-color: #ffffff;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    max-width: 975px;
    gap: 20px;
    font-size: 16px;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
    }

    .lottery-container {
        background: #2d2d2d;
        border-color: #4a4a4a;
    }

    h1, .lucky-numbers {
        color: #ffffff;
    }

    .input-group label {
        color: #ffffff;
    }

    .input-group input {
        background-color: #3d3d3d;
        color: #ffffff;
        border-color: #4a4a4a;
    }

    .pencil-icon {
        color: #bbbbbb;
    }

    button {
        background-color: #0044cc;
    }

    button:hover {
        background-color: #0055ff;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .lottery-container {
        padding: 25px;
    }

    .input-group {
        padding: 0 15px;
    }
}

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

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

    .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;
    }

    .card {
        flex-direction: column;
        
      }

      .card-content,
      .card-description {
        width: 100%;
      }

      .card ul {
        font-size: 14px; 
        gap: 5px; 
        margin-left: 10px;
    }
    
    .card ul li {
        padding: 6px 10px; 
    }
    
}

@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;
    }

    .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;
    }

    .card {
        width: 100%;
        padding: 15px;
    }
    .card ul {
        font-size: 12px; 
        gap: 5px;
    }

    .card ul li {
        padding: 5px 8px; 
    }
    .lottery-container {
        padding: 15px;
    }

    .input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .input-container {
        justify-content: flex-end;
    }

    .input-group label {
        text-align: left;
        margin-bottom: 5px;
        margin-left:1px ;
    }

    button {
        width: 100%;
        margin-top: 20px;
    }
}

.download-button {
    text-align: center; 
    /* margin: 20px  auto;  */
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 0px;
}

.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; 
    }
}

.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: 15px;
    gap: 20px;
    background-color: #ffffff;
    margin-left: 6%;
    display: flex;
    flex-direction: column;
    width: 907px;
    gap: 20px;
    font-size: 16px;
    width: 90%;
    /* margin: 0 auto; */
    margin-top: 50px;
    text-align: center;

}

h4{
    margin-top: 70px;
}