﻿html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    font-family: 'Nirmala UI', sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Nirmala UI', sans-serif !important;
}

* {
    font-family: 'Nirmala UI', sans-serif !important;
}

body::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
}

.full-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
    flex-wrap: wrap;
}

.left-ladder {
    flex: 1;
    background: url('../../Content/Images/website home page.png') no-repeat center center;
    background-size: cover;
}

.main-content {
    flex: 1.5;
    box-sizing: border-box;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    background-color: #F7EEDE;
}

#content-area {
    overflow-y: auto;
}

.main-content img {
    max-width: 100%;
    height: auto;
    padding: 10px;
    background-color: white;
}


.board-wrapper {
    flex: 2;
    background: url('../../Content/Images/background.png') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.board-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border: 4px solid #d4a95c;
    z-index: 2;
    position: relative;
}
/*
.search-box-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.search-box {
    width: 100%;
    background-color: #7D0A34;
    padding: 20px;
    color: white;
}

    .search-box input {
        border: 3px solid #5e0d26;
        border-radius: 0;
        padding: 5px;
    }
    */
.text-purple {
    color: #5e0d26;
}
/*
.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    padding: 0 30px;
    box-sizing: border-box;
}

    .search-row label {
        flex: 1;
        font-weight: bold;
        color: white;
        white-space: nowrap;
    }

    .search-row select,
    .search-row input {
        flex: 2;
        min-width: 0;
        max-width: 100%;
        padding: 6px 10px;
        box-sizing: border-box;
    }
    */
.info-div {
    border: 1px solid #007bff;
    padding: 15px;
    margin-top: 10px;
    background-color: #f1f1f1;
}

.text-muted {
    color: #7D0A34;
}

#default-content p {
    font-size: 16px;
    line-height: 1.6;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 0;
    width: 100%;
}

.grid-item img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Breakpoints */
@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .full-page {
        flex-direction: column;
    }

    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(9, 1fr);
    }

    .left-ladder {
        display: none;
    }

    .main-content {
        width: 100%;
        flex: none;
    }

    .board-wrapper {
        flex: none;
        width: 100%;
        height: auto;
        background-size: contain;
        background-position: center;
        padding: 10px;
    }

    .board-img {
        max-width: 100%;
        max-height: 80vh;
        object-fit: contain;
    }
    /*
    .search-row {
        flex-direction: column;
        gap: 8px;
        padding: 0;
    }

        .search-row label,
        .search-row input {
            width: 100%;
        }
        */
}


/* Hamburger icon */
.hamburger {
    cursor: pointer;
    position: fixed;
    top: 15px;
    left: 15px;
    background: #7D0A34;
    color: white;
    border-radius: 5px;
    z-index: 2000;
}

/* Mobile */
@media (max-width: 480px) {
    .hamburger {
        font-size: 15px;
        padding: 4px 8px;
    }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
    .hamburger {
        font-size: 17px;
        padding: 5px 10px;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .hamburger {
        font-size: 20px;
        padding: 6px 12px;
    }
}



/* Side menu styling */
.side-menu {
    height: 100%;
    width: 250px;
    position: fixed;
    background-image: url('Images/website home page.png');
    background-size: cover;
    left: -250px;
    padding-top: 100px;
    transition: 0.3s;
    z-index: 1999;
}

    .side-menu a {
        padding: 10px 20px;
        text-decoration: none;
        font-size: 18px;
        color: white;
        display: block;
        transition: 0.2s;
    }

        .side-menu a:hover {
            background-color: #7D0A34;
        }




.about-popup-container {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 3000;
    overflow-y: auto;
    padding: 20px;
    /* Flexbox ke liye */
    display: flex;
    flex-direction: column;
}

.about-popup-box {
    background: #F7EEDE;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    box-sizing: border-box;
    overflow: hidden;
}

/* Close button ko top-right me fix karna */
.about-popup-close {
    font-size: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #7D0A34;
}
/* Heading section fixed */
.about-popup-header {
    position: sticky;
    top: 0;
    background: #F7EEDE;
    padding: 15px 20px;
    border-bottom: 2px solid #e0d5c4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.about-popup-heading {
    color: #7D0A34;
    font-weight: bold;
    margin: 0;
}
/* Scrollable content */
.about-popup-content {
    padding: 20px;
    overflow-y: auto;
}
/* Responsive tweaks */
@media (max-width: 768px) {
    .about-popup-box {
        max-width: 90%;
        max-height: 80vh;
        padding: 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .about-popup-box {
        max-width: 95%;
        max-height: 75vh;
        padding: 10px;
        font-size: 13px;
    }

    .about-popup-close {
        font-size: 24px;
        top: 8px;
        right: 10px;
    }
}

.popup-container {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-box {
    padding: 6px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    position: relative;
    background-color: #F7EEDE;
    border: 2px solid #7D0A34;
    border-radius: 16px;
}

.popup-heading {
    color: #97244c;
    font-weight: 600;
}

.rule-number {
    color: #97244c;
    font-weight: 600;
}
/* Close button */
.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #7D0A34;
}

@media (max-width: 768px) {
    .main-content .main-logo {
        padding-left: 100px;
        padding-bottom: 10px;
        padding-top: 10px;
    }
}

.search-box-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}

.search-box {
    width: 100%;
    background-color: #7D0A34;
    padding: 15px;
    color: white;
    text-align: center;
}

    .search-box h5 {
        margin: 0 0 15px 0;
        font-size: 14px;
    }

.search-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .search-row label {
        font-size: 13px;
        font-weight: bold;
        color: #fff;
        white-space: nowrap;
    }

    .search-row input {
        flex: 1;
        max-width: 220px;
        padding: 6px 10px;
        border: none;
        border-radius: 4px;
        color: #000000;
    }


@media (max-width: 576px) {
    .search-row {
        flex-direction: column;
        align-items: stretch;
    }

        .search-row input {
            max-width: 100%;
        }
}

.board-wrapper {
    display: flex !important;
}

.board-wrapper-1 {
    display: none !important;
}


@media (max-width: 768px) {
    .board-wrapper {
        display: none !important;
    }

    .board-wrapper-1 {
        display: block !important;
    }
}
.board-wrapper-1 {
    background: url('../../Content/Images/background.png') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
@media (max-width: 768px) {
    .board-wrapper {
        display: none !important;
    }

    .board-wrapper-1 {
        display: flex !important;
        background: url('../../Content/Images/background.png') no-repeat center center;
        background-size: cover;
        position: relative;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    .main-content img {
        padding: 0px;
    }
}


