﻿@font-face {
    font-family: 'HindVadodara';
    src: url('../fonts/HindVadodara-Regular.ttf');
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'HindVadodara';
    background: #fff;
    letter-spacing: 0.5px;
}

.calendar-popup {
    display: none;
    position: absolute;
    top: 180px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.calendar-wrapper {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 10px;
    box-sizing: border-box;
    flex-direction: column;
    background-color: #fff;
}

.calendar-container {
    width: 100%;
    max-width: 1180px;
    margin: auto;
    padding: 15px 40px;
    background-color: #fff;
    background-image: url('../Images/border_pattern.svg'), url('../Images/border_pattern.svg');
    background-repeat: repeat-y, repeat-y;
    background-position: left top, right top;
    background-size: 25px auto, 25px auto;
    border-top: 4px solid #8b0000;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #8b0000;
    color: white;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.calendar-month {
    font-size: 22px;
    font-weight: bold;
}

.LunarMonth {
    font-size: 22px;
}

.btnprevnext {
    padding: 5px 18px;
    border: none;
    border-radius: 5px;
    background: #f9c33b;
    color: #000;
    font-size: 18px;
}

    .btnprevnext:hover {
        background: #e0bb60;
    }

table.calendar {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate !important;
    border-spacing: 4px !important;
}


    table.calendar th {
        background-color: #8b0000;
        border: 1px solid #fff;
        color: white;
        padding: 8px 0;
        text-align: center;
        font-size: 19px;
        border-radius: 12px;
    }

table.calendar {
    border-spacing: 6px !important;
}

    table.calendar td {
        border: 1px solid #8b0000;
        vertical-align: top;
        height: 180px;
        padding: 8px;
        cursor: pointer;
        background-color: rgb(44 13 5 / 3%);
        border-radius: 12px;
    }

        table.calendar td:hover {
            box-shadow: 0 3px 8px rgba(0,0,0,0.3);
            transform: translateY(-2px);
            border: 2px solid #8b0000;
        }

.date-cell {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.date-number {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -120%);
    font-weight: bold;
    font-size: 24px;
}

.tithi {
    position: absolute;
    right: 2px;
    font-size: 14px;
    text-align: right;
}

.tooltip-container {
    position: absolute;
    top: 32px;
    right: 10px;
    z-index: 20;
    display: inline-block;
    cursor: pointer;
}

.festival-small-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.festival {
    position: absolute;
    bottom: 0px;
    left: 5px;
    right: 5px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 14px;
}

.scroll-track {
    display: inline-block;
    white-space: nowrap;
    animation: scrollLeft 15s linear infinite;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.bank-icon {
    width: 16px;
}

.fest.red {
    color: red;
}

.fest.black {
    color: black;
}

.sunrise {
    position: absolute;
    bottom: 54px;
    left: 2px;
    font-size: 14px;
}

.sunset {
    position: absolute;
    bottom: 54px;
    right: 2px;
    font-size: 14px;
}

.moonsign {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
}

.nakshtra {
    position: absolute;
    bottom: 21px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    white-space: nowrap;
    text-align: center;
}

.sunrise img,
.sunset img {
    vertical-align: middle;
    margin: 5px;
    margin-bottom: 0px;
}

td.today {
    background-color: #d1ecf1 !important;
}

td.sunday {
    background-color: #ffe6e6 !important;
}

#infoPopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.panchang-box {
    width: 100%;
    max-width: 650px;
    background: #e9d6a7;
    padding: 20px;
    position: relative;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
    border: 4px solid #c49a5a;
    margin: auto;
}

    .panchang-box::before,
    .panchang-box::after {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 125%;
        height: 25px;
        background: url('../Images/popup_handle.png') no-repeat center;
        background-size: 100% 30px;
    }

    .panchang-box::before {
        top: -12px;
    }

    .panchang-box::after {
        bottom: -18px;
    }

.panchang-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

    .panchang-header .left {
        display: flex;
        align-items: center;
    }

.moon-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.moon-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

    .moon-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.popup-title p {
    margin: 2px 0;
    font-size: 18px;
    color: #521804;
    line-height: 1.8rem;
}

.popup-title {
    width: 100%;
    text-align: left;
}

.date-card {
    position: relative;
    width: 100px;
    flex-shrink: 0;
}

.calendar-img {
    width: 100%;
    height: auto;
    display: block;
}

.date {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -45%);
    text-align: center;
    width: 100%;
}

.month {
    font-size: 15px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1.1px;
}

.day {
    font-size: 24px;
    font-weight: bold;
    color: #8b0000;
}

.year {
    font-size: 15px;
    color: #333;
}

.popup-small-icon {
    width: 35px;
    height: 35px;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: black;
    margin: 0 12px;
    background: #fff;
    border: none;
}

    .nav-arrow.left {
        left: -1px;
    }

    .nav-arrow.right {
        right: -1px;
    }

    .nav-arrow:hover {
        color: black;
    }

.icon {
    width: 80px;
    margin-right: 10px;
}

.title {
    font-weight: bold;
    font-size: 20px;
    text-align: center;
}


.subtitle {
    font-size: 13px;
}

.content-box {
    border: 4px solid #c49a5a;
    padding: 10px;
    background: #f3e2b8;
}

.row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.col {
    width: 48%;
    font-size: 17px;
    letter-spacing: 0.5px;
}

    .col h4 {
        color: #b30000;
        font-size: 20px;
        font-weight: bold;
    }

    .col p {
        margin: 5px 0;
        color: #521804;
    }

.close-btn {
    position: absolute;
    top: 10px;
    right: -50px;
    font-size: 20px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    line-height: 32px;
    text-align: center;
    background-color: #fff;
    border-radius: 50%;
    border: 2px solid #c49a5a;
    font-weight: bold;
    color: #8b0000;
    transition: 0.3s;
}

    .close-btn:hover {
        background: #8b0000;
        color: #fff;
    }

.calendar-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.festival-list {
    display: none;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px 40px;
}

.content-section {
    background: #fffdf7;
    border: 2px solid #f9c33b;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

    .content-section h3 {
        margin: 0 0 12px;
        padding: 12px 16px;
        font-size: 20px;
        line-height: 1.4;
        color: #8b0000;
        background: linear-gradient(90deg,#fff4c2,#ffffff);
        border-left: 5px solid #f9c33b;
        border-radius: 10px;
        font-weight: 700;
    }

    .content-section p {
        margin: 0 0 24px;
        padding: 0 4px;
        font-size: 17px;
        line-height: 1.9;
        color: #333;
        text-align: justify;
    }

        .content-section p b,
        .content-section span {
            color: #8b0000;
            font-weight: 600;
        }

    .content-section h3:not(:first-child) {
        margin-top: 24px;
    }

@media (max-width: 1024px) {

    .calendar-container {
        padding: 10px;
        background-image: none;
        border: 2px solid #8b0000;
    }

    table.calendar td {
        height: 170px;
        padding: 5px;
    }

    table.calendar th {
        font-size: 18px;
    }

    .tithi, .nakshtra, .festival, .sunrise, .sunset {
        font-size: 13px;
    }

    .bank-icon {
        width: 14px;
    }

    .date-number {
        font-size: 20px;
    }

    .tooltip-container {
        top: 30px;
        right: 8px;
    }
}

@media (max-width: 700px) {

    table.calendar {
        grid-template-columns: repeat(7, 1fr);
    }

        table.calendar td {
            height: 145px;
            padding: 3px;
        }

    .date-number {
        top: 44%;
        font-size: 18px;
    }

    .sunrise,
    .sunset {
        font-size: 12px;
        bottom: 47px;
    }

    .nakshtra {
        bottom: 19px;
    }

    .tithi,
    .moonsign,
    .nakshtra, .festival {
        font-size: 12px;
    }


    .panchang-box::before {
        top: -20px;
    }

    .panchang-box {
        max-width: 75%;
        padding: 15px;
    }


    .col {
        width: 100%;
        font-size: 16px;
        letter-spacing: 0.8px;
    }

        .col h4 {
            font-size: 18px;
        }

    .close-btn {
        top: 10px;
    }

    .content-container {
        margin: 20px auto;
        padding: 0 10px;
    }

    .content-section {
        padding: 18px;
        border-radius: 12px;
    }

        .content-section h3 {
            font-size: 18px;
            padding: 10px 12px;
            line-height: 1.5;
        }

        .content-section p {
            font-size: 15px;
            line-height: 1.8;
            margin-bottom: 18px;
        }
}

@media (max-width: 750px) {
    .calendar-wrapper {
        padding: 30px 0;
    }

    .calendar-container {
        padding: 6px;
    }

    table.calendar th {
        font-size: 14px;
    }

    table.calendar td {
        height: 95px;
        padding: 2px;
    }

    .date-number {
        bottom: 20px;
    }

    .sunset, .moonsign, .nakshtra, .sunrise, .festival, .tooltip-container {
        display: none;
    }

    .tithi {
        font-size: 12px;
        bottom: 2px;
        right: 0;
        text-align: center;
        line-height: 0.9rem;
        padding: 1px;
    }

    .calendar-header {
        flex-direction: column;
        gap: 5px;
    }

    .bank-icon {
        width: 12px;
    }

    .btnprevnext {
        font-size: 16px;
        padding: 2px 10px;
    }

    .row {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }


    .festival-list {
        display: block;
        padding: 10px;
        background: #f5f5f5;
    }

    .festival-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px;
        margin-bottom: 10px;
        background: #8b0000;
        border-radius: 8px;
    }

    .festival-date {
        width: 60px;
        text-align: center;
        background: #f9c33b;
        border-radius: 8px;
        padding: 5px;
        font-weight: bold;
        flex-shrink: 0;
        font-size: 15px;
        line-height: 1.4rem;
    }

    .festival-name {
        font-size: 14px;
        color: #fff;
    }

    .heading h2 {
        color: #8b0000;
        font-size: 22px;
        text-align: center;
        padding-bottom: 5px;
    }

    .panchang-box {
        padding: 12px;
        border-width: 2px;
        max-width: 90%;
    }

    .panchang-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .content-box {
        padding: 8px;
    }

    .close-btn {
        top: 10px;
        right: 5px;
    }

    .moon-section {
        flex-direction: row;
        gap: 10px;
    }

    .popup-title p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {

    .content-section {
        padding: 14px;
    }

        .content-section h3 {
            font-size: 16px;
            padding: 8px 10px;
            border-left-width: 4px;
        }

        .content-section p {
            font-size: 14px;
            line-height: 1.7;
        }
}
