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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #1C1D27;
    color: #FFFFFF;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px; /* Scrollbar ka width */
}

::-webkit-scrollbar-track {
    background: transparent; /* Track ka background transparent hoga */
}

::-webkit-scrollbar-thumb {
    background-color: #A097C9; /* Thumb ka color #A097C9 */
    border-radius: 6px; /* Thumb ko thoda rounded banaye */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #8E7DC3; /* Thumb ka color jab hover karenge */
}


/* .stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 15% 60%, white, transparent);
    background-size: 200% 200%;
    background-position: 0 0, 40% 60%, 130% 270%, 70% 100%, 20% 150%, 90% 40%, 50% 180%;
    opacity: 0.5;
    animation: twinkle 8s ease-in-out infinite;
} */

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.container {
    max-width: 600px;
    width: 90%;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.hidden {
    display: none;
}

.logo {
    margin-bottom: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.7px;
    color: #A097C9;
}

.logo h1:hover{
    color: #A097C9;
    /* text-shadow: 0 0 25px rgba(169, 116, 255, 0.5); */
}

.logo a{
   text-decoration: none;
}

.moon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.content {
    margin-top: 20px;
}

.question {
    font-size: 1rem;
    margin-bottom: 25px;
    font-weight: 300;
    letter-spacing: -0.2px;
}

.time-selector {
    background-color: transparent;
    border: 0.1px solid #A097C9;
    border-radius: 15px;
    padding: 30px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.time-selector:hover {
    border-color: #A097C9;
    /* box-shadow: 0 0 20px rgba(169, 116, 255, 0.5); */
}

.selector-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-picker {
    height: 80px;
    width: 80px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    scroll-behavior: auto;
}

.scroll-picker::-webkit-scrollbar {
    display: none;
}

.scroll-picker:active {
    cursor: grabbing;
}

.scroll-picker-item {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #FFFFFF;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0.3;
}

.scroll-picker-item.active {
    opacity: 1;
    transform: scale(1.1);
}

.label {
    font-size: 0.8rem;
    color: #A097C9;
    font-weight: 100;
}

.separator {
    font-size: 1xrem;
    font-weight: 200;
    margin-bottom:0px;
}

.btn {
    background-color: #A097C9;
    color: #040B2C;
    border: none;
    padding: 10px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
    letter-spacing: -0.4px; 
}

.btn:hover {
    background-color: #A097C9;
    box-shadow: 0 0 25px rgba(169, 116, 255, 0.5);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.divider {
    margin: 40px 0;
}

.results-content {
    margin-top: 30px;
}

.results-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #A097C9;
    
}

.info-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 300;
}

.info-text strong {
    color: #A097C9;
    font-weight: 600;
}

.times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.time-box {
    background-color: transparent;
    border: 2px solid #A097C9;
    border-radius: 10px;
    padding: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.time-box:hover {
    background-color: rgba(183, 168, 225, 0.15);
    transform: scale(1.05);
}

.time-box:active {
    transform: scale(0.98);
}

.copy-indicator {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #A097C9;
    color: #040B2C;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.copy-indicator.show {
    opacity: 1;
    animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

.time-box.suggested {
    background-color: rgba(183, 168, 225, 0.15);
    border-color: #A097C9;
}

.suggested-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background-color: #A097C9;
    color: #040B2C;
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sleep-cycles {
    font-size: 0.95rem;
    margin-top: 30px;
    margin-bottom: 30px;
}

.adsbygoogle {
    background-color: rgba(183, 168, 225, 0.055);
    border: 1px solid rgba(183, 168, 225, 0.15);
    border-radius: 8px;
    min-height: 90px;
    margin: 20px auto;
    max-width: 100%;
}

footer {
    margin-top: 20px;
    font-size: 0.75rem;
    opacity: 0.6;
    font-weight: 300;
}

footer a {
    color: #e5dfff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

.policy-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.policy-content .btn {
    display: block;
    margin: 0 auto;
}

.policy-content h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #A097C9;
    text-align: center;
}

.policy-text {
    background-color: #272635;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    max-height: 400px;
    overflow-y: auto;
}

.policy-text::-webkit-scrollbar {
    width: 8px;
}

.policy-text::-webkit-scrollbar-track {
    background: #272635;
    border-radius: 10px;
}

.policy-text::-webkit-scrollbar-thumb {
    background: #A097C9;
    border-radius: 10px;
}

.policy-text::-webkit-scrollbar-thumb:hover {
    background-color: rgba(183, 168, 225, 0.15);
}

.policy-text h3 {
    color: #A097C9;
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.policy-text h3:first-child {
    margin-top: 0;
}

.policy-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.9;
}

@media (max-width: 418px){
     .scroll-picker {
        
        width: 60px;
    }

    .scroll-picker-item {
        padding: 0;
        font-size: 1.5rem;
    }
}

@media (max-width: 300px) {
    .logo h1 {
        font-size: 1rem;
    }


    .time-selector {
        padding: 20px 10px;
        gap: 10px;
        max-width: 90%;
    }

    .scroll-picker {
        height: 60px;
        width: 60px;
    }

    .scroll-picker-item {
        height: 60px;
        font-size: 1.5rem;
    }

    .separator {
        font-size: 1.5rem;
    }

    .times-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn {
        font-size: 0.95rem;
        padding: 12px 30px;
    }

    .ad-top, .ad-bottom {
        max-width: 100%;
        height: 60px;
    }

    .ad-footer {
        max-width: 100%;
        height: 50px;
    }
}

