@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Shadows+Into+Light&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@100..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alkatra:wght@400..700&display=swap');

:root {
    --raja-kalar: #D3364D;
    --bulu-kalar: #d87786;
    --boga-kalar: #f9f9f9;
    --kola-kalar: #333;
    --strikethrough-kalar: #888;
    --dhela-kalar: #f3f3f3;
    --border-kalar: #e0e0e0;
    --arranged-kalar: #ffe6a1;
    --received-kalar: #d3edbb;
    --xeujiya: #28a745;
}

body {
    font-family: "Poppins", sans-serif !important;
    margin: 0;
    background-color: var(--boga-kalar);
}

h1 {
    font-size: 24px;
    font-weight: 600;
}

a {
    color: var(--raja-kalar);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--raja-kalar) !important;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 15px;
}

figure {
    margin: 0;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* For a 4x6 postcard in portrait mode, width ~200*(4/6) = 133px */
.portrait {
    width: 133px;
}

/* For a 4x6 postcard in landscape mode (flipped), width ~200*(6/4) = 300px */
.landscape {
    width: 300px;
}

.img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border: 1px solid #aaa;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

figcaption {
    margin-top: 5px;
    font-size: 12px;
    text-align: center;
    word-wrap: break-word;
    width: 100%;
}

.tag {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    margin: 5px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    padding: 20px;
    box-sizing: border-box;
}

.modal img {
    max-width: 80%;
    max-height: 70%;
    border-radius: 8px;
}

.modal #modalImageContainer {
    max-width: 80%;
    max-height: 70%;
    border-radius: 8px;
    position: relative;
}

.modal #modalImageStamp {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
}

.modal-caption {
    margin-top: 8px;
    font-size: 16px;
    text-align: center;
}

.modal-tag-box {
    margin-top: 8px;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

/* Navigation Buttons as Circular Containers */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    cursor: pointer;
    user-select: none;
}

.nav-prev {
    left: 25px;
}

.nav-next {
    right: 25px;
}

#fotw-header {
    width: 100%;
    background: linear-gradient(135deg, var(--raja-kalar) 0%, var(--bulu-kalar) 100%);
    color: white;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

#header-container {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.fotw-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fotw-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fotw-header-left h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.fotw-header-left a {
    font-size: 16px !important;
    color: var(--boga-kalar);
}

.fotw-header-right nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.fotw-header-right nav ul li {
    margin-left: 25px;
}

.fotw-header-right nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.fotw-header-right nav ul li a:hover {
    color: var(--boga-kalar);
}


#fotw-container {
    display: flex;
    height: calc(100vh - 80px);
}

#lou-list-container {
    overflow-x: hidden;
    overflow-y: scroll;
    margin: 0px 20px;
}

/* Desktop / Tablet View */
@media (min-width: 768px) {
    #fotw-sheet-container {
        width: 60%;
        height: 100%;
        overflow: hidden;
    }

    #fotw-sheet-container iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

    #fotw-chartdiv {
        width: 40%;
        height: 100%;
    }

    #lou-chartdiv {
        width: 70%;
        height: 90vh;
    }

    #lou-list-container {
        width: 30%;
        height: 100%;
    }
}

/* Mobile View: stack vertically */
@media (max-width: 767px) {
    #fotw-container {
        flex-direction: column;
    }

    #fotw-sheet-container,
    #fotw-chartdiv {
        width: 100%;
        height: 50vh;
    }

    #fotw-sheet-container iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

    #lou-list-container,
    #lou-chartdiv {
        width: 100%;
        height: 50vh;
    }
}

/* Hide Menu Button on Desktop */
#fotw-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Responsive: Mobile View */
@media (max-width: 768px) {
    #fotw-header {
        padding: 10px;
    }

    .fotw-header-right nav ul li {
        margin-left: 0;
    }

    /* Hide Navigation by Default */
    .fotw-header-right nav {
        display: none;
        position: absolute;
        top: 60px;
        right: 10px;
        background: var(--bulu-kalar);
        border-radius: 5px;
        padding: 10px 20px 10px 10px;
    }

    .fotw-header-right nav ul {
        flex-direction: column;
        gap: 10px;
    }

    /* Show Hamburger Menu Button */
    #fotw-menu-toggle {
        display: block;
    }

    /* Show Menu When Active */
    .fotw-header-right nav.active {
        display: flex;
    }
}

.view-counter {
    position: absolute;
    left: 4rem;
    top: 21px;
    opacity: 0;
}


.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6rem;
    animation: fadeIn 1.5s ease-in-out;
}

.about-image {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--border-kalar);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    max-width: 600px;
    animation: slideIn 1.5s ease-in-out;
}

.intro-text-en {
    font-family: "Shadows Into Light", serif;
}

.about-text h1 {
    font-size: 2.5rem !important;
    color: var(--raja-kalar) !important;
    font-weight: 400;
    font-style: normal;
    display: inline-block;
    animation: fadeInUp 1s ease-out;
    margin: 0;
}

.about-text p {
    margin: 0.6rem 0;
    line-height: 1.6;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    margin-right: 1rem;
    text-decoration: none;
    color: var(--raja-kalar);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--bulu-kalar);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(30px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .about-container {
        align-items: center;
        text-align: center;
        padding: 1rem;
        gap: 1rem;
    }

    .about-image {
        margin-bottom: 1rem;
    }

    .about-text {
        max-width: 100%;
        padding: 0 1rem;
        text-align: left;
    }

    .about-text h1 {
        font-size: 1.5rem;
    }

    .about-text ul {
        padding-left: 1.2rem;
    }

    .social-links {
        text-align: center;
    }

    .social-links a {
        display: inline-block;
        margin-bottom: 0.5rem;
    }
}

.profile-image-wrapper {
    position: relative;
    display: inline-block;
}

.logo-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.img-container.more-offers {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dhela-kalar);
    min-height: 200px;
    text-align: center;
    margin: 0 1rem;
    cursor: pointer;
    transition: background-size 0.3s ease;
    background-image: url("images/018 Varadharaja Perumal Temple, Kanchipuram.jpg");
    background-position: 60% 29%;
    background-repeat: no-repeat;
    background-size: 500%;
}

.img-container.more-offers:hover {
    background-size: 550%;
}

.more-text {
    position: relative;
    z-index: 2;
}

.more-text a {
    font-weight: bold;
    color: var(--kola-kalar);
    text-decoration: none;
    font-size: 1.1rem;
}

.more-text a:hover {
    color: var(--raja-kalar);
}

.img-container.more-offers::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

/* for about page */
#about-page {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--dhela-kalar);
    color: var(--kola-kalar);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    /* overflow-x: hidden; */
}

.about-text {
    display: none;
}

.about-text.active {
    display: block;
}

.as-text {
    font-family: 'Anek Bangla', 'Nirmala UI', 'Arial Unicode MS', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

.intro-text-as {
    font-family: "Alkatra", system-ui;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.language-toggle-wrapper {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.lang-label {
    font-weight: 500;
}

.language-toggle-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.language-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: var(--border-kalar);
    border-radius: 22px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .4s;
}

.slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

.language-toggle-switch input:checked+.slider {
    background-color: var(--raja-kalar);
}

.language-toggle-switch input:checked+.slider::before {
    transform: translateX(20px);
}

#card-count {
    padding-top: 15px;
    text-align: center;
}

.stamp-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stamp-container img {
    height: 80%;
    object-fit: cover;
    cursor: pointer;
}

#checkMarkConatiner {
    visibility: hidden;
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    border: 2px solid var(--xeujiya);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.check-mark {
    color: var(--xeujiya);
    font-size: 14px;
}