﻿html {
    font-size: 16px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0px;
    padding:0px;
    background-color: #f9f9f9;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
    vertical-align: middle;
}

th {
    background-color: #eee;
    font-weight: bold;
}

button {
    padding: 6px 12px;
    margin: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

    button:hover {
        background-color: #0056b3;
    }

td > div {
    font-size: 14px;
    line-height: 1.4;
}



/* Ensure the container fits the screen */
.table-container {
    margin: 0px;
    padding: 0px;
    width: 100%;
    overflow-x: auto; /* fallback for very small screens */
}

/* Force the table to shrink columns evenly to fit */
#summaryTable {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

    #summaryTable th,
    #summaryTable td {
        /*padding: 4px;
        font-size: 12px;*/
        word-wrap: break-word;
        text-align: center;
    }

    #summaryTable th div:first-child {
        font-size: 0.85em;
        color: #555;
        margin-bottom: 2px;
    }

    #summaryTable th div:last-child {
        font-weight: bold;
    }



/* Optionally reduce font-size on smaller screens */

@media screen and (max-width: 600px) {
    #summaryTable th,
    #summaryTable td {
        font-size: 11px;
        padding: 2px;

    }
    /* Explicitly override inherited styles */
    .single-cell {
        font-size: 20px !important;
    }

    .pana-cell {
        font-size: 14px !important;
    }
}






/* Table layout inside day cell */
.draw-table {
    margin: 0;
    padding: 0;
    border-spacing: 0;
    border-collapse: collapse;
    width: 100%; /* optional: helps expand to parent cell width */
}

/* Ensure the outer TD (weekly cell) has no extra padding */
#summaryTable td {
    padding: 0;
}

.pana-cell,
.single-cell {
    text-align: center;
    padding: 0; /* <- remove inner padding */
    border: none;
}

/* Base font sizes for mobile (default) */
.pana-cell {
    font-size: 1rem;
}

.single-cell {
    font-size: 2.25rem;
    font-weight: bold;
}

/* Responsive styling for medium and large screens 
@media screen and (min-width: 768px) {
    .pana-cell {
        font-size: 1em;
    }

    .single-cell {
        font-size: 36px;
    }
}
@media screen and (max-width: 400px) {
    .single-cell {
        font-size: 36px;
    }
}
    */
.market-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.market-button {
    background-color: blueviolet;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    white-space: nowrap;
    width: auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
}

    .market-button:hover {
        background-color: #3700b3;
    }

/* Smaller font and tighter button on narrow screens */
@media screen and (max-width: 600px) {
    .market-button {
        font-size: 12px;
        padding: 3px 6px;
        border-radius: 4px;
        box-shadow: none;
    }
}
