body {
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 16px;
    overflow-y: auto; /* Ensure body handles scrolling */
}

.header {
    font-size: 28px;
    text-align: center;
    padding: 15px 0;
}

.sub-header {
    font-size: 22px;
    margin-bottom: 25px;
}

.scroller {
    background-color: #ffffff;
    color: #0d8211;
    text-align: center;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid #0d8211;
    border-bottom: 1px solid #0d8211;
}

.scroller p {
    margin: 0;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    font-size: 18px;
}

.scroller:hover p {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.box-container {
    margin: 20px auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: left;
    font-size: 17px;
}

.box-container.styled-textbox a {
    color: green !important;
    text-decoration: underline;
}

.box-container.styled-textbox a:hover {
    color: darkgreen !important;
    text-decoration: none;
}

.styled-textbox textarea {
    width: calc(100% - 22px);
    padding: 12px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
    min-height: 180px;
    display: block;
    margin: 0 auto;
}

.styled-textbox textarea::placeholder {
    color: #999;
    opacity: 1;
}

.styled-textbox textarea:focus::placeholder {
    opacity: 0;
}

.button-container {
    text-align: center;
    margin-top: 15px;
}

.button-container button {
    margin: 8px;
    padding: 14px 35px;
    font-size: 20px;
    border: none;
    border-radius: 5px;
    background-color: #0f7402;;
    color: #ffffff;
    cursor: pointer;
}


/* Add this for the hover effect */
.button-container button:hover {
    background-color: #e06834; /* Orange color on hover */
}
  

.result-box {
    margin: 20px auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: left;
    font-size: 17px;
}

.footer {
    width: 100%;
    background-color: #333333;
    color: #ffffff;
    text-align: center;
    padding: 12px 0;
    flex-shrink: 0;
    font-size: 16px;
}

.tick {
    color: #4caf50; /* Green color for tick */
    font-size: 22px;
}

.cross {
    color: #f44336;
    font-size: 22px;
}

#toggleIcon {
    color: green; /* Green color for information icon */
    font-size: 1.2em;
    cursor: pointer;
}

.footer a .fas.fa-home {
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer a:hover .fas.fa-home {
    color: #cccccc;
}

/* Media queries for mobile devices */
@media (max-width: 900px) {
    .box-container, .result-box {
        width: 95%;
        max-width: 95%;
    }

    /* Ensure tick and information icons are green on mobile */
    .tick {
        color: #4caf50 !important; /* Force green color for tick */
    }

    #toggleIcon {
        color: green !important; /* Force green color for information icon */
    }

    /* Portrait mode */
    @media (orientation: portrait) {
        body {
            font-size: 18px;
        }
        .header {
            font-size: 30px;
        }
        .sub-header {
            font-size: 24px;
        }
        .scroller p {
            font-size: 20px;
        }
        .styled-textbox textarea {
            font-size: 20px;
        }
        .button-container button {
            font-size: 22px;
        }
        .result-box {
            font-size: 19px;
        }
    }

    /* Landscape mode */
    @media (orientation: landscape) {
        body {
            font-size: 20px;
        }
        .header {
            font-size: 32px;
        }
        .sub-header {
            font-size: 26px;
        }
        .scroller p {
            font-size: 22px;
        }
        .styled-textbox textarea {
            font-size: 22px;
            min-height: 200px;
        }
        .button-container button {
            font-size: 24px;
        }
        .result-box {
            font-size: 21px;
        }
    }
}