* {
    font-family: Apercu, serif;
}

.font-Krungthep {
    font-family: Krungthep, serif !important;
}

#top {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
}

a.primary-link {
    text-decoration: none;
    border: 1px solid black;
    padding: 5px;
    color: black;
    font-size: 1rem;
    margin: 0px;
    cursor: pointer;
}

a.primary-link.active, a.primary-link:hover {
    background: black;
    color: white;
}

.chip {
    color: white;
    background: black;
    border-radius: 20px;
    text-decoration: none;
    padding: 10px;
    margin: 3px;
    line-height: 20px;
    display:inline-block;
}

#tags {
    max-width: 600px !important;
    margin: auto;
    /* align-content: center; */
    text-align: justify;
    margin-top: 20px;
}

.tag {
    margin: 5px;
    line-height: 40px;
    display: inline-block;
    white-space: nowrap;
}

.modal-content {
    border: 1px solid black !important;
    border-radius: 0px;

}

.modal-header {
    height: 40px;
    text-transform: uppercase;
    border-bottom: 1px solid black;
    border-radius: 0px;
}

.modal-header .btn-close {
    border-left:1px solid black;
    border-radius: 0px;
    margin: 0px;
    margin-right: -17px;
    margin-top: -5px;
    height: 27px;
    color: black;
}

.card-header {
    background: white;
    color: black;
    font-weight: bold;
}

.card {
    border-radius: 0px;
    border: 1px solid black;
}

.card-body {
    max-width: 200px;
}

.tgme_widget_message.js-widget_message {
    margin-bottom: 10px;
}

.bubble_icon {
    display: none;
}

.tgme_widget_message_bubble {
    position: relative;
    border: 1px solid black !important;
    border-radius: 0px !important;
    background: #fff;
    padding: 12px 17px;
}

.container .col {
    max-width: 500px;
    margin: auto;
}

#results {
   /*
    display: grid;
     gap: 1rem;
     grid-auto-rows: 22rem;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    grid-auto-flow: dense;
    */
    columns: 2;
    margin: auto;
    max-width: 1000px;
}

.message {
    max-width: min(480px,80%);
    display: inline-block;
    margin-left: 10px;
}

.tgme_widget_message_grouped_wrap {
    display: block;
    margin: 12px -17px;
    min-width: auto !important;
    max-width: calc(100% + 34px) !important;
    overflow: hidden;
}


@media (max-width: 1000px) {
    #results {
        columns: 1;
        width: 480px;
    }
}
