body {
    margin-left: auto;
    margin-right: auto;
    /* overflow: scroll; */
}

.articles {
    width: 100%;
    display: inline-block;
    min-width: 100%;
}

.view {
    width: 70%;
    margin: auto;
}


#news-table {
    margin: 0 auto;
    table-layout: fixed;
    width: 100%;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    border: 0.2em solid #ddd;
    width: 100%;
}

table.dataTable tbody td {
    padding: 0.5em 0.7em!important;
}

td {
    background: transparent !important;
    color: black !important;
    text-align: left;
    padding: 0.4em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    vertical-align: top;
    padding: 1em;
    height: 100%;
}

table thead th{
    padding: 0px!important;
}

.table-row:nth-child(odd) {
    background-color: rgba(0, 31, 51, 0.25);
}


.table-row td{
    position:relative;
}

.table-row {
    text-align: left;
}

.image-th{
    width: 12em;
}

.td-image {
    vertical-align: middle;
    padding: 0.4em;
    align-content: center;
    justify-content: center;
    /* display: flex; */
}

.image {
    align-content: center;
    justify-content: center;
    display: flex;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    vertical-align: top;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

p{
    margin:0;
}
a{
    color: #0c46f7;
}

.circle-container{
position: absolute; 
  bottom: 0; 
  right: 0; 
  display: flex; 
  flex-wrap: wrap; 
  margin-right:0.3em;
  margin-bottom: 0.3em;
}





.link-option{
    font-size: 1em;
    text-decoration: none;
    color: darkblue;
    font-weight: bold;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.link-option:hover {
    opacity: 0.5;
}

.search {
    height: 5%;
}

.search-form {
    float: right;
    margin: 0;
    box-sizing: border-box;
}

.search input[type='text'] {
    border: 1px solid black;
    padding: 4px 8px 7px 6px;
    border-right: none;
}

.search-form button {
    padding: 5px 8px 6px 6px;
    border: 1px solid black;
    border-left: none;
    float: right;
}

#search-button {
    float: right;
}

#search-button:hover {
    color: #a3c2c2;
    text-shadow: 0.3px 0.3px 0.4px dimgrey;
    user-select: none;
    cursor: pointer;
}

.search-input {
    float: left;
    margin-right: 10px;
}

.search-input label{
    display: block;
    font-weight: bold;
    text-align: left;
}

.data-title {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0;
    padding: 0;
    color: black;
}

.data-people {
    font-weight: bold;
    color: darkblue;
    cursor: pointer;
}

.data-people:hover {
    text-shadow: 0.3px 0.3px 0.4px dimgrey;
}

.checkbox-category {
    display: none;
}

.button-wrapper {
    color: white;
    padding: 1em;
    border: 1px inset transparent;
    margin: 2px;
    vertical-align: middle;
    border-radius: 50%;
    box-sizing: border-box;
    transform: scale(0.9)
}

.button-wrapper:hover {
    cursor: pointer;
    border: 1px inset silver;
    padding: 1em;
    opacity: 0.8;
}

.button-wrapper:focus {
    outline: none;
}

.circle {
    width: 2.5em;
    height: 2.5em;
    padding: 0.1em;
    border: none;
    border-radius: 50%;
    float: right;
    margin-right: 0.3em;
    margin-bottom: 0.3em;
    /* position: absolute;
    right: 0;
    bottom: 0; */
    color: white;
    outline: none;
}

.category-icon {
    max-width: 1.5em;
    max-height: 1.5em;
}

.circle-raddish { background-color: #89023E}
.circle-red { background-color: #C33149}
.circle-orange { background-color: #E4572E}
.circle-yellow { background-color: #F3A712}
.circle-green { background-color: #519872}
.circle-blue { background-color: #98D2EB}
.circle-darkblue { background-color: #29335C}
.circle-purple { background-color: #7D5BA6}

.tooltip {
    font-size: 13px;
}

#load-div {
    align-content: center;
    justify-content: center;
    display: flex;
}

#load-more {
    padding: 5px;
    outline: none;
    border: 1px solid midnightblue;
    border-radius: 3px;
    background: transparent;
    color: midnightblue;
    font-weight: bold;
}


@media screen and (max-width:768px){
    .data-info{ display: none;}
    .image-th{
        width: 5em!important;
    }
    .data-date {
        font-size: 12px;
        display:none;
    }
    .data-people{
        font-size: 12px;
        display:none;
    }
    .read-more{
        display:none;
    }
    .people-list{
        font-size: 12px;
        display:none;
    }
    .circle-container{
        position: relative;
        float: right;
    }
}

/* 1) Table cells should size to content */
td { 
    height: auto;              /* was 100% */
  }
  
  /* 2) Make the cell the flex container, not the image */
  .td-image {
    display: flex;             /* was commented out */
    align-items: center;
    justify-content: center;
    padding: 0.4em;
  }
  
  /* 3) Make the actual image block-level, no percentage height */
  .image {
    display: block;            /* was display:flex */
    max-width: 100%;
    height: auto;              /* was height: 100% */
    width: auto;               /* let intrinsic width govern; or keep 100% if desired */
    object-fit: contain;       /* safe now because we’re not forcing a % height */
    padding-top: 0.5em;
    padding-bottom: 0.5em;
  }
  
  /* (optional) Ensure the right column width stays reasonable */
  .image-th { width: 12em; }
  
  /* (optional) If you still need a Safari-only safeguard */
  @supports (-webkit-touch-callout: none) {
    .image { height: auto !important; }
  }
  