
/* Optional: Add a media query for responsiveness */
@media (max-width: 768px) {
    /* Header: stack logo + nav */
    .header {
        flex-direction: column;
        align-items: center;
    }

    .header-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Room selector buttons */
    .roomsHeader-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Room details: image above text */
    .desc-container {
        flex-direction: column;
    }

    .text-col {
        padding-left: 0;
    }

    .row {
        flex-direction: column; /* Stacks columns vertically on small screens */
    }
}

html {
    font-size: 115%;
}

.desc-container {
    display: flex;
    width: 100%;
    gap: 20px;
    align-items: stretch;
}

.image-col, .text-col {
    flex: 1;
}

    .image-col img {
        width: 90%;
        height: 90%;
        object-fit: cover;
        display: block;
        margin-left: 50px;
    }

.text-col {
    padding: 15px;
    margin-left: 10px;
}

.dateselected {
    margin-left: 50px;
}

.date_select_col ol {
    list-style: decimal;
    padding-left: 1.2em;
    margin: 0;
}

.date-select-item {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 15px;
    width: 80%;
    height: 100%;
    margin-left: 90px;
    padding: 30px;
    text-align: left;
    background-color: #fafafb;
}

    .date-select-item ul {
        list-style-type: none;
    }

input:disabled {
    background-color: #efefef;
    cursor: default;
}

.rules ul, .rules ol {
    display: block;
    line-height: 1.5;
}

ol.bookrm {
    padding-left: 3.75rem;
}

ol.rules {
    padding-left: 3.75rem;
}

.header {
    overflow: hidden;
    padding: 5px 5px;
    border-bottom: 1px solid lightgrey;
}

    .header a {
        float: left;
        color: #3e2b2f;
        text-align: center;
        padding: 10px;
        text-decoration: none;
        font-size: 18px;
        line-height: 40px;
        border-radius: 4px;
    }

        .header a.logo {
            font-size: 25px;
            font-weight: bold;
            margin-left: 60px;
            padding: 40px 15px 0 20px;
        }

        .header a.active {
            background-color: rgba(231, 93, 42, 0.90);
            color: #ffffff;
        }

.header-right {
    float: left;
    color: #ffffff;
    padding: 25px;
}

    .header-right a:hover {
        background-color: rgba(0, 98, 67, 1);
        color: #fffff0;
    }

h1.bkhead {
    font-size: 3rem;
}

h1.bkhead, h2.bkhead, h3.bkhead, h4.bkhead {
    margin-left: 50px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 10px;
}

h3 {
    margin-bottom: 0.25rem;
    margin-top: 0.5rem;
}

a {
    color: #00708d;
    font-weight: 600;
    text-decoration: none;
}

.mainPageTable {
    margin-left: 80px;
    border: solid 1px #a7a8aa;
    width: 25%;
    color: #0c2639;
    padding: 2px;
    table-layout: fixed;
}

    .mainPageTable th, td {
        text-align: center;
        vertical-align: middle;
        border: solid 1px #a7a8aa;
        word-wrap: break-word;
        overflow: hidden;
    }

    .mainPageTable th {
        padding: 5px;
        background-color: #f9f9f9;
        font-size: 18px;
    }

    .mainPageTable td {
        padding: 5px;
        font-size: 16px;
        background-color: #ffffff;
    }

.booked {
    background-color: #f0f2f8;
}

.partial {
    background-color: #e6ffff;
}

.open {
    background-color: #ffffff;
}

.card-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 500px;
    margin: 20px auto;
}

.card {
    background: #fffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .card:hover {
        box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    }

.card-row {
    padding: 5px 0;
}

    .card-row ul {
        display: flex;
        margin-right: 10px;
    }

    .card-row li {
        margin-right: 10px;
    }

[type='text'], [type='password'] {
    flex: 0 0 auto !important;
}

.btn {
    float: right;
    margin-right: 35px;
    border: 2px solid #efefef;
    border-radius: 8px;
    box-shadow: 2px 4px #888888;
}

    .btn:hover {
        background-color: rgba(0, 98, 67, 1);
        color: #ffffff;
        border: 2px solid #0b8261;
        box-shadow: 2px 4px #a7a8aa;
    }

[type='submit'] {
    padding: 8px;
}

label {
    font-size: 1rem;
}

.errmess, .leavemess {
    color: #990033;
    font-weight: 600;
    font-style: italic;
    font-size: 0.75rem;
}

.joinmess {
    color: #5b6770;
    font-weight: 600;
    font-style: italic;
    font-size: 0.75rem;
}

.roomsheader-btn {
    float: left;
    margin-left: 45px;
    padding: 10px;
    border: 1px solid #a7a8aa;
    border-radius: 6px;
}

    .roomsheader-btn:hover {
        background-color: rgba(231, 93, 42);
        border: 1px solid #aca39a;
    }

    .roomsheader-btn a:hover {
        color: #ffffff;
    }

.mybooklog {
    margin-left: 50px;
}

    .mybooklog ul li {
        display: inline-block;
    }

p.intro {
    margin-left: 60px;
}

#ButtonListBookings.btn {
    float: left;
    border: 2px solid #efefef;
    border-radius: 8px;
    box-shadow: 2px 4px #888888;
}

    #ButtonListBookings.btn:hover {
        background-color: rgba(0, 60, 113, 1);
        color: #ffffff;
        border: 2px solid #00283c;
        box-shadow: 2px 4px #5b6770;
    }

#TableComplete, #TableInComplete, #TablePast th, td {
    text-align: center;
    vertical-align: middle;
    border: solid 1px #a7a8aa;
    word-wrap: break-word;
    overflow: hidden;
}

#TableComplete, #TableInComplete, #TablePast th {
    padding: 5px;
    background-color: #f9f9f9;
    font-size: 18px;
}

#TableComplete, #TableInComplete, #TablePast td {
    padding: 5px;
    font-size: 16px;
}

.dashboard {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

    .dashboard .column {
        flex: 1;
        display: flex;
        flex-direction: column;
        max-width: 300px;
    }

        .dashboard .column .bheader {
            text-align: center;
            margin-bottom: 10px;
            font-size: 1.1em;
            font-weight: bold;
        }
        /* Optional: make tables take full column width */
        .dashboard .column asp\:Table {
            width: 100%;
        }
/*used for dealing with the two tables 'list 1' & 'list 2' in groups page*/
.column2 {
    /*float: left;*/
    padding: 10px;
}

.list-container {
    display: flex; /* Forces children to sit side-by-side */
    flex-wrap: wrap; /* Allows wrapping only on very small screens */
    align-items: flex-start; /* Aligns them to the top */
}

.btn.mybookings {
    float: none !important;
    display: block;
    text-align: right;
    margin-left: 75px;
    margin-bottom: 50px;
}

.btn.bkcont {
    float: left;
    margin-left: 55px;
}

tbody tr:nth-child(even)   {
    background-color: #ffffff;
}

.codeuse {
    margin-left: 50px;
}

blockquote, blockquote p {
    margin: 0 2rem 1rem;
    line-height: 1.55;
    color: #36454F;
    border-left: none;
}
