/*!
Theme Name: theme test1
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: theme-test1
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

theme test1 is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/* =========================================
   NEWS DETAIL PAGE (SINGLE POST) CENTERING
   ========================================= */
body.single-post main.site-main {
    max-width: 800px; /* Locks the article to a comfortable reading width */
    margin: 40px auto; /* The 'auto' forces it perfectly into the center */
    padding: 0 20px; /* Keeps text from touching the screen edges on phones */
    box-sizing: border-box;
}

/* Ensure images inside the article stay inside the box */
body.single-post main.site-main img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Ensure tables inside the article don't break the layout */
body.single-post main.site-main table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

/* Forces ALL text to use Noto Sans Khmer naturally without !important */
body.single-post main.site-main p,
body.single-post main.site-main li,
body.single-post main.site-main div,
body.single-post main.site-main span,
body.single-post main.site-main .entry-content {
    font-family: 'Noto Sans Khmer', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
}
/* =========================================
   STICKY FOOTER FIX (FORCE TO BOTTOM)
   ========================================= */
#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Tells the page to be at least the height of the screen */
}

.site-content,
.site-main {
    flex-grow: 1; /* Acts like a spring, expanding to fill empty space and pushing the footer down */
}