h3{
    text-align: center;
    font-size: 35px;
    font-family: Calibri;
}

.search-bar {
    height: auto;
    margin: 0;
    font-size: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: montserrat,sans-serif;
    justify-content: center;
    position: relative;
    width: 100%
}

.large-search-box {
    width: 48vw;
    max-width: 850px;
    height: 140px;
    border: 1px solid #24228b;
    padding: 10px;
    resize: vertical;
    font-family: montserrat,sans-serif;
    font-size: 20px;
    border-radius: 10px
}

.search-button {
    background-color: #4206b3fa;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    font-family: montserrat,sans-serif;
    transition: background-color .3s,color .3s;
    align-self: flex-end
}

.search-button:disabled {
    background-color: #666;
    color: #ccc;
    cursor: not-allowed
}

.logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
    max-width: 180px;
    margin-left: 0;
    margin-top: -100px
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #000;
    background-color: rgba(0,0,0,.4);
    padding-top: 60px;
    justify-content: center;
    align-items: center
}

.modal-content {
    margin-top: -100px;
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 700px;
    max-width: 95%;
    font-size: 20px;
    border-radius: 10px
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: 700;
    margin-top: -15px
}

.close:hover,.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer
}

.modal button {
    margin-top: 20px
}

.right-column .close-button {
    display: none
}

.bottomcontainer {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 0;
    box-sizing: border-box
}

.word-count {
    align-self: flex-start;
    font-size: 14px
}

.search-note {
    font-size: 14px;
    margin-bottom: 20px
}

.progress-container {
    display: none;
    width: 820px;
    max-width: 95%;
    padding: 5px;
    background-color: #f3f3f3;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,.2);
    margin-bottom: 10px
}

.progress-bar,.progress-bar-summary {
    height: 22px;
    width: 0%;
    background-color: #552986;
    border-radius: 3px;
    transition: width .4s ease-in-out
}

.progress-text,.progress-text-summary {
    text-align: center;
    color: #000;
    line-height: 20px;
    font-size: 18px
}

.progress-container-summary {
    display: none;
    width: 95%;
    padding: 5px;
    background-color: #f3f3f3;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,.2);
    margin-top: 10px
}

#summaryTextArea {
    max-width: 100%;
    width: 100%;
    height: 500px;
    margin-top: 20px;
    border: 1px solid #ccc;
    padding: 10px;
    overflow: auto;
    font-family: calibri,sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.2;
    white-space: pre-wrap
}

#chatbox {
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 20px;
    font-family: calibri,sans-serif
}

#chat-log,#user-input {
    font-family: calibri,sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.2;
    white-space: pre-wrap
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    max-width: 800px
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    max-width: 850px;
    margin: 0 auto
}

th,td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #ddd
}

th {
    background-color: #f2f2f2
}

.custom-select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.1)
}

.icon-button {
    background: 0 0;
    border: none;
    cursor: pointer;
    width: 35px;
    height: auto;
    margin-right: 5px
}

.dropdown,.dropdown-jurisdiction {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.dropdown button,.dropdown-jurisdiction button {
    background-color: #fff;
    color: #636a70;
    text-decoration: underline;
    font-size: 14px;
    margin-left: 0;
    padding: 10px;
    border-style: none;
    cursor: pointer;
    text-align: left;
}

.container {
    width: 97%;
    height: fit-content;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #fff;
    padding: 20px;
    box-shadow: none;
    overflow-y: auto
}

.left-column {
    flex: 1 1 50%;
    margin-top: 20px;
    padding: 0
}

.right-column {
    flex: 1 1 40%;
    margin-top: 60px;
    margin-left: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,.1);
    display: none
}

.right-column form {
    margin-bottom: 10px
}

.right-column button {
    display: inline-block;
    padding: 10px 20px;
    margin: 0;
    background-color: #3d0077;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color .3s
}

.right-column button:hover {
    background-color: #2a0055
}

.right-column button:disabled {
    background-color: #7c797c;
    cursor: not-allowed
}

.right-column button i {
    margin-right: 5px
}

.selected-case {
    margin-top: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px
}

.dropdown-container,.dropdown-container-jurisdiction {
    position: relative;
    display: inline-block
}

.dropdown-content-jurisdiction {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,.2);
    z-index: 1;
    min-width: 155px;
    border-radius: 5px;
    font-size: 14px;
    border: 1px solid #24228b;
    right: flex
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 240px;
    box-shadow: 0 8px 16px rgba(0,0,0,.2);
    z-index: 1;
    right: 0
}

.dropdown-content a {
    color: #000;
    padding: 12px 16px;
    font-size: 14px;
    text-decoration: none;
    display: block
}

.dropdown-content a:hover {
    background-color: #f1f1f1
}

.dropdown-content-jurisdiction label {
    display: block;
    padding: 4px;
    cursor: pointer
}

.dropdown-content label:hover {
    background-color: #f1f1f1
}

.dropdown:hover .dropdown-content,.dropdown-jurisdiction:hover .dropdown-content-jurisdiction {
    display: block
}

.hidden {
    display: none
}

.red-button {
    padding: 8px 16px;
    cursor: pointer;
    background-color: #cd4031;
    color: #fff;
    font-size: 14px;
    transition: color .3s,background-color .3s;
    position: relative;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    margin-right: 10px
}

.red-button:hover {
    color: #fff;
    background-color: #c0392b
}

.instructions {
    font-size: 18px
}

.usercontrols {
    display: flex;
    align-items: center;
    width: 97%;
    visibility: hidden;
    margin: auto;
    max-width: 850px
}

.pagination {
    flex-basis: 100%;
    text-align: right;
    max-width: 850px;
    margin: 0 auto
}

.step-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 10px
}

.step-links a {
    padding: 10px 20px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 2px;
    color: #333;
    transition: background-color .3s ease
}

.step-links a:hover {
    background-color: #f2f2f2
}

#aiFeaturesCheckbox {
    margin-right: 10px;
}

.aiFeaturesLabel {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-bottom: 5px;
    margin-top: 13px;
}

#aiFeaturesCheckbox {
    margin-right: 5px;
}

@media(max-width: 1100px) {
    body,html,.search-bar,.bottomcontainer {
        margin:0;
        padding: 0;
        width: 100%;
        max-width:850px
    }
    h3{
        margin-top: 10px; 
        margin-bottom: 10px;
    }
    .pagination {
        font-size: clamp(9px,3.2vw,16px)
    }

    form#searchForm {
        width: 100%;
        margin: 0 auto
    }

    .search-bar {
        font-size: 16px;
        width: 95%;
        margin: 0 auto;
    }

    .betatestenddate {
        font-size: 12px;
        display: block;
        text-align: left
    }

    .container {
        width: 100%;
        height: fit-content;
        padding: 10px;
        align-items: center;
        overflow-y: auto;
        box-sizing: border-box;
        margin-top: 0px;
    }

    .large-search-box,.legislation-act-box {
        width: 100%;
        max-width: 850px;
        box-sizing: border-box;
        margin: 0 auto;
        font-size: 14px
    }

    .progress-text {
        font-size: 14px
    }

    .search-button {
        width: auto;
        margin-left: auto;
        margin-right: 0;
        font-size: 14px;
        padding: 10px 20px
    }

    .custom-select {
        max-width: 42vw;
        font-size: 11px
    }

    .logo {
        width: 35%;
        padding-right: 10px;
        display: none
    }

    .modal-content {
        width: 80%;
        font-size: 16px
    }


    .dropdown-content, .dropdown-content-jurisdiction {
        font-size: 12px; 
    }
    .dropdown, .dropdown-jurisdiction {
        margin-left: 0px; 
    }
    .dropdown button, .dropdown-jurisdiction button{
        padding: 2px;
        font-size: 13px;
    }
    
    .prevsearch-button {
        padding: 10px;
        font-size: 12px
    }

    .word-count {
        font-size: 12px
    }

    .progress-container,.progress-container-summary {
        width: 95%
    }

    .search-note {
        font-size: 12px
    }

    .suggestion-item {
        font-size: 13px
    }

    .instructions {
        font-size: 16px
    }

    table {
        width: 97%;
        border-collapse: collapse;
        font-size: clamp(8px,2.7vw,14px);
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 3px;
        box-sizing: border-box
    }

    th:nth-child(6),th:nth-child(7),td:nth-child(2),td:nth-child(3) {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-all;
        hyphens: auto;
        min-width: 30px
    }

    .idcolumn {
        width: 11vw
    }

    .titlecolumn {
        min-width: 25vw;
        max-width: 40vw
    }

    .yearcolumn {
        display: none
    }

    .right-column {
        display: none;
        position: fixed;
        width: 90vw;
        height: 90vh;
        top: 0;
        left: 0;
        background-color: #fff;
        z-index: 10;
        padding: 10px;
        box-sizing: border-box;
        overflow-y: auto;
        font-size: clamp(9px,3vw,16px)
    }

    .right-column button {
        padding: 10px;
        font-size: clamp(9px,3vw,16px)
    }

    .right-column .close-button {
        display: block;
        padding: 10px 20px;
        background-color: #c00;
        color: #fff;
        text-align: center;
        width: 50px;
        border: none;
        border-radius: 5px;
        position: absolute;
        top: 10px;
        right: 10px;
        cursor: pointer
    }

    #summaryTextArea {
        width: 95%;
        height: 95%;
        font-size: clamp(9px,3vw,16px)
    }

    .aiFeaturesLabel {
        font-size: 12px;
        max-width: 40vw;
        justify-content: flex-end;
        margin-bottom:5px;
        margin-top: 0px;
    }
}