html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: white;
    font-family: 'Quicksand', sans-serif;
    color: #333;
    font-size: 18px;
    margin: 0;
}

h1 {
    color: #333333;
    font-size: 2.5em;
}

h2 {
    
    color: #333333;
}

h3 {
    color: #ff6f00;
}

h4 {
    color: #662d91;
}

p {
    font-size: 1.0em;
    line-height: 1.6;
    font-weight: lighter;
}

@media screen and (max-width:800px){
    .title_section h1 {
        font-size: 2.0em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    h3 {
        font-size: 1.15em;
    }
    
    h4 {
        font-size: 1.0em;
    }
}

a {
    color:inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: inherit;
}

img {
    width: 100%;
    height: auto;
}

.mainbody {
    flex: 1 0 auto;
    width: 100%;
    margin-bottom: 10px;
}
.mainbody h2{
    padding-top:15px;
}


/* Make YouTube Video fill div and scale with it.*/
.iframe-container {
  padding-top:56.25%;
  overflow: hidden;
  width: 100%;
}

.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

.header_row {
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: none;
    padding-top: 10px;
    padding-bottom: 0px;    
}

.title_section {
    margin-bottom: 10px;
    margin-top: 15px;
}

.logo {
    flex: 0 0 auto;
    height: 75px;
    width: auto;
    max-width: 275px;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.author-image {
    width: 75px;
}

.sharebuttons {
    min-height:35px;
}

.published{
    min-height:75px;
    font-size: 0.85em;
    font-weight: lighter;
    line-height: 1.2;
    margin-bottom: 10px;
    margin-top: 15px;
    
}

input {
    width: 75%;
    display: inline-block;
    font-size: 0.75em;
}

button{
    display: inline-block;
}

/* uncomment when ads ready
@media screen and (max-width:799px){
    .adslot {
        min-height:300px;
    }
    
    .sideadslot {
        min-height:300px;
    }
}


@media screen and (max-width:5000px) and (min-width: 800px){
    .adslot {
        min-height:250px;
    }
    
    .sideadslot {
        min-height:600px;
    }
}

*/

#footer_row {
    flex-shrink: 0;
    width: 100%;
    min-height: 100px;
    margin-top: auto;  /* This helps push the footer down */
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: none;
    background-color: #111111;
    text-align: center;
}

.footer-link {
    min-height: 50px;
}

.footer-link a{
    color: #ffffff;
    font-weight:bold;
    font-size: 0.8em;
}

.footer-link:hover a{
    color: #cccccc;
}



/* image zoom effect */
.img-zoom {
  overflow: hidden; /* [1.2] Hide the overflowing of child elements */
}

/* [2] Transition property for smooth transformation of images */
.img-zoom img {
  transition: transform .5s ease;
}

/* [3] Finally, transforming the image when container gets hovered */
.img-zoom:hover img {
  transform: scale(1.25);
}

.header_row form input[type=submit] {
    margin: 0 0 0 5px;
    padding: 0 0 0 0;
    background: none;
    border: none;
    background: url(https://zinphandel.net/nosetdestination.com/img/search-icon.png) center top no-repeat;
    width: 17px;
    height: 18px;
    display: inline-block;
}

/* Control tracking pixels and small images */
img[width="1"][height="1"],
img[width="0"][height="0"],
img[height="1"][width="1"],
img[height="0"][width="0"] {
    width: 1px !important;
    height: 1px !important;
    display: inline !important;
    position: absolute !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.position-relative {
    position: relative;
}

.overlay-text {
    position: absolute;
    top:70%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 2.5rem; /* Default size */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Optional shadow for better readability */
}

/* Responsive font size for smaller screens */
@media (max-width: 768px) {
    .overlay-text {
        font-size: 1.8rem; /* Adjust size for tablets */
    }
}

@media (max-width: 480px) {
    .overlay-text {
        font-size: 1.5rem; /* Adjust size for mobile phones */
    }
}

@media (max-width: 400px) {
    .overlay-text {
        font-size: 1.2rem; /* Adjust size for mobile phones */
    }
}

.termly-display-preferences.btn-link {
    color: #fff;
    text-decoration: underline;
    padding: 0;
}

.termly-display-preferences.btn-link:hover,
.termly-display-preferences.btn-link:focus {
    color: #fff;
    opacity: 0.8;
}

.latest-articles {
    background-color: #d9d9d9;  
}

/* Table Styles */
.table-container {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.table {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.table thead th {
    background-color: #d9d9d9;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    padding: 0.75rem;
}

.table tbody td,
.table tbody th {
    padding: 0.75rem;
    vertical-align: middle;
    border: 1px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Menu/search form styles */
.menu {
    flex: 1;
}

.menu form {
    display: flex;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header_row {
        flex-direction: column;
    }
    
    .logo, .menu {
        width: 100%;
    }
}