/*

Theme Name: My First Blog Theme
Author: ChiaYu Lin
Author URI: chiayulin.com
Description: A custom Bootstrap WordPress theme
Version: 2.1.1

*/

:root {
    --white: #fff;
    --black: #2d2d2d;
    --primary: #D05A6E;
    --secondary: #3f4245;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --lightgray: #eeeeee;
    --dark: #434242;
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --font-normal: 1em;
    --font-small: 0.8125rem;
    --sidebar-width: 280px;
    --content-max-width: 860px;
}

*,
*::before,
*::after {
    box-sizing: border-box
}

body {
    font-family: var(--font-family-sans-serif);
    padding-top: 80px;
}

h1,
h2,
h3,
h4,
h6 {
    color: var(--black);
}

h5 {
    color: var(--black);
    margin: 2rem 0;
}

a {
    color: var(--primary);
}

button {
    padding: 0;
    margin: 0;
}

p {
    color: var(--secondary);
    opacity: 0.9;
    font-weight: 200;
    margin: 1rem 0;
}

/* nav */
.custom-nav-bar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 80px;
    padding: 10px;
    z-index: 1000;
}

.custom-nav-bar .navbar-brand {
    font-size: 1.6rem;
}

.custom-nav-items {
    margin: 10px 0;
}

.custom-nav-items .nav-item a {
    color: var(--black);
    text-decoration: none;
    margin: 0 5px;
}

ul.navbar-nav.custom-nav-items .nav-item a:hover {
    color: var(--primary);
}

ul.navbar-nav.custom-nav-items .current-menu-item a {
    color: var(--primary);
}

.custom-nav-toggler,
.search-toggler {
    border: none;
}

.custom-nav-toggler:focus,
.search-toggler:focus {
    box-shadow: none;
}

/* Search */
.search-container {
    background: #F9F9F9;
    border: 1px solid white;
    border-radius: 20px;
}

.search-container button {
    text-align: center;
    background: none;
    border: none;
    margin-left: 10px;
    padding: 4px
}

.search-container input {
    height: 30px;
    font-size: 0.9rem;
    padding: 5px;
    margin-left: -5px;
}

.search-bar {
    background: transparent;
    border: none;
}

.search-submit i {
    text-align: center;
}

.search-bar:focus {
    outline: white;
}

#navbarSupportedContent li {
    padding: 5px;
}

.tag {
    font-size: 0.7rem;
    margin-left: 5px;
}

.tag a {
    display: inline-block;
    text-decoration: none;
    margin: auto 2px;
}

.heading {
    border-bottom: 1px solid var(--lightgray);
    padding: 15px;
    text-align: center;

}

.image-container {
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: cover;
}


.post {
    min-height: 400px;
    overflow: hidden;
    box-shadow: 0 5px 5px rgb(228, 228, 228);
    border-radius: 10px;
    margin-bottom: 25px;
}

.post-item {
    cursor: pointer;
}

.post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body {
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.read-share-buttons {
    display: flex;
    justify-content: space-between;
}

.button {
    display: flex;
    justify-content: center;
    justify-items: center;
    align-self: flex-end;
    background-color: var(--primary);
    width: 80px;
    height: 30px;
    line-height: 30px;
    border: none;
    border-radius: 6px;
    color: var(--white);
    letter-spacing: 0.1rem;
}

.more-link {
    text-decoration: none;
    font-size: var(--font-small);
}

.social-buttons a {
    display: inline-block;
    margin: 10px 5px 0 5px;
    text-decoration: none;
    color: var(--secondary);
    opacity: 0.8;
}

.social-buttons a:hover {
    color: var(--primary);
}

.content .post .title {
    font-size: 1.275rem
}

/* feature-image */
.featured-image img {
    width: 100%;
    height: auto;
    margin: 1rem 0;
}

.feature-image {
    width: 500px;
    height: 300px;
}

figure img {
    margin: 1rem 0;
}

/* table of content */

.content .table-of-contents li {
    list-style-type: none;
    margin-top: 20px;
}

.content .table-of-contents li a {
    color:var(--primary)
}

.content .table-of-contents ul {
    padding-left: 0;
    margin: 3rem 0;
}

/* About-Page */

.profile-image {
    width: 150px;
    height: 150px;
    padding: 20px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.self-intro div {
    margin: 0 20px;
}

.bio p {
    padding-left: 25px;
}

.email-me {
    text-decoration: none;
    font-size: 0.9rem;
}
/* pagination */

.page-numbers {
    list-style-type: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.no-margin {
    margin: 0;
    padding: 0;
}

.page-numbers .prev {
    margin-left: auto;
}

.page-numbers li a,
.page-numbers li span.current {
    display: inline-block;
    width: 45px;
    aspect-ratio: 1;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
}

.page-numbers li a {
    text-decoration: none;
    border: 1px solid var(--white);
    color: var(--black);
}

.page-numbers li span.current {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--white);
}

.page-numbers li a:hover:not(.prev):not(.next):not(.current) {
    background-color: var(--primary);
    color: #fff;
}

.page-numbers .prev,
.page-numbers .next {
    padding: 10px 15px;
    border: 2px solid var(--lightgray);
}

.page-numbers .prev:hover,
.page-numbers .next:hover {
    border: 2px solid var(--primary);
}

/* loading-spinner */
#loading-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer {
    margin-top: 100px;
    background-color: var(--primary);

}

.footer p {
    color: var(--white);
    margin: auto;
}

.related-posts {
    border-top: 1px solid var(--lightgray);
    margin-top: 100px;
}

.related-posts-title {
    text-align: center;
    margin: 50px;
}

.related-posts ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 10px 10px;
    padding: 0;
}

.related-posts ul li {
    margin: 15px;
    border-top-right-radius: 20px;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 5px 5px rgb(228, 228, 228);
}

.related-posts ul li:hover {
    transform: scale(1.08);
}

.related-posts ul li div:last-child {
    margin: 20px 0;
    text-align: center;
}

.related-posts ul li.post-item div img {
    width: 100%;
    height: 206px;
    border-top-right-radius: 20px;
    object-fit: cover;
    object-position:center;
}

.post-details a {
    text-decoration: none;
    color: var(--black);
}

.post-details a:hover {
    color: var(--primary);
}

@media (min-width: 1025px) {
    .custom-nav-bar {
        padding-right: 450px;
        padding-left: 450px;
    }

    .post {
        flex-direction: row;
    }

    .post-body {
        height: 400px;
        padding: 50px;
    }

    .intro {
        min-height: 200px;
    }

    .custom-nav-items a {
        padding: 10px 8px;
    }

    .heading {
    margin-top: 70px;
    padding: 25px;
    text-align: center;
    }

    #navbarSupportedContent {
        display: flex;
    }

    #searchSupportedContent {
        display: flex;
        justify-content: flex-end;
    }

    .page-numbers li a,
    .page-numbers li span.current {
        margin: 0 10px;
    }

    .related-posts ul {
    flex-direction: row;
    }

    .related-posts ul li {
    width: calc(100% / 3);
    }

}
