/*
 Theme Name:   condmat
 Theme URI:    https://www.condmatjclub.org/
 Description:  A theme for the Journal Club for Condensed Matter Physics.
 Author:       Your Name
 Author URI:   https://www.condmatjclub.org/
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, one-column, two-columns, custom-header
 Text Domain:  condmat
*/

/* --- ORIGINAL THEME STYLES (DO NOT EDIT) ------------------------------- */
/*
   The following styles are from your original theme. We are using them
   as the base and overriding specific rules for responsive behavior below.
*/
html, body {
    margin: 0 auto 0;
    padding: 0;
    font-family: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif;
    font-size: x-small;
    text-align: center;
    background: #FFF;
    color: #252525
}

a {
    color: #B85D00;
    text-decoration: none
}

a:visited {
    color: #B85D00;
    text-decoration: none
}

a:hover {
    color: #B85D00;
    text-decoration: none
}

a img {
    border: none
}

img.c {
    display: block;
    margin-left: auto;
    margin-right: auto
}

img.r {
    float: right
}

img.l {
    float: left
}

.entry img {
    border: 1px solid #FFF;
    padding: 5px 5px 0 0;
    max-width: 98%;
    border: none
}

.entry a img {
    border: 0 solid #FFF;
    padding: 5px 5px 0 0;
    max-width: 98%
}

.entry a img:hover {
    border: 0 inset #FFF;
    padding: 5px 5px 0 0
}

hr {
    display: none
}

h1, h2, h3 {
    font-weight: bold;
    text-align: left;
    margin: 0
}

.ncol h2 {
    border-bottom: 1px solid #CCC;
    font-size: 14px
}

.archived h2 {
    font-size: 12px
}

.lnks h2 {
    border-bottom: 1px solid #CCC;
    font-size: 12px;
    width: 80%
}

.narchives h3 {
    margin: 25px 0 10px 0
}

.wcol h2 {
    font-size: 20px;
    margin-bottom: 20px
}

h2, h3, h2 a, h2 a:visited {
    color: #C00
}

h2 a:hover {
    color: #900;
    background-color: #EEE
}

.entry h2 {
    line-height: 1.3em
}

h3 {
    font-size: 13px
}

h5 {
    font-size: 15px;
    font-weight: bold;
    text-align: left;
    margin: 0
}

h6 {
    font-size: 10px;
    text-align: left;
    margin: 0
}

blockquote {
    background-color: #F7F7F7;
    border-left: 5px solid #000;
    padding: 10px 20px
}

blockquote:hover {
    background: #FFF
}

code, pre, kbd {
    font-family: 'Courier New', Courier, mono, Fixed, sans-serif;
    font-size: 1.1em;
    display: block
}

small {
    font-size: .9em;
    color: #06C;
    line-height: 2em
}

acronym, abbr {
    letter-spacing: .07em;
    border-bottom: 1px dashed #933;
    cursor: help
}

strike, del {
    text-decoration: line-through
}

/* --- Layout and Structure ------------------------------------------------- */
.navigation {
    margin: 10px 30px 20px 30px;
    padding: 0 10px 10px 0;
    font-weight: bold;
    font-size: 12px
}

.ncol .navigation {
    margin: 15px 0;
    font-size: 11px
}

.ar {
    float: right
}

.al {
    float: left
}

.ac {
    text-align: center;
    margin-left: auto;
    margin-right: auto
}

#content {
    margin: 0 auto;
    padding: 0;
    width: 780px;
    font-size: 11px;
    text-align: left;
    background-color: #fff
}

ul.archivesList {
    margin-left: 0;
    padding-left: 25px
}

ul.archivesList li {
    margin-bottom: .5em
}

#topbar {
    margin: 0;
    padding: 0;
    height: 40px;
    background: #2C2B29;
    border-top: 1px solid #666;
    border-bottom: 1px solid #fff;
    line-height: 33px;
    font-size: 12px
}

.navbar {
    display: block;
    margin: 0 auto;
    width: 780px;
    padding: 3px 1px 2px 1px
}

.navbar ul {
    display: inline;
    list-style-type: none
}

.navbar li {
    display: inline;
    list-style-type: none
}

.navbar a, .navbar a:visited {
    cursor: pointer;
    float: left;
    font-weight: normal;
    margin: 0 20px 3px 0;
    color: #fff
}

.navbar a:hover {
    color: #f90;
    background: none
}

#subbar {
    margin: 0;
    padding: 0;
    height: 25px;
    background-color: #eaeaea;
    border-bottom: 1px solid #ccc;
    line-height: 17px;
    font-size: 12px
}

.subnavbar {
    display: block;
    margin: 0 auto;
    width: 780px;
    padding: 3px 1px 2px 1px
}

.subnavbar ul {
    display: inline;
    list-style-type: none
}

.subnavbar li {
    display: inline;
    list-style-type: none
}

.subnavbar a, .subnavbar a:visited {
    cursor: pointer;
    float: left;
    font-weight: normal;
    margin: 0 20px 3px 0;
    color: #333
}

.subnavbar a:hover {
    color: #C00
}

#header {
    background: #000;
    border: 0 solid #CCC;
    height: 93px;
    margin: 0;
    text-align: center;
    width: 100%;
    color: #fff
}

#header h1 {
    text-indent: -5000px;
    background: url("./images/logo.gif") no-repeat;
    font-weight: bold;
    margin: 0 auto 0 auto;
    padding: 0;
    text-align: left;
    width: 817px;
    height: 94px
}

#header p {
    display: none;
    font-size: 10px;
    font-weight: bold;
    padding-left: 0;
    margin: 0 auto;
    text-align: left;
    width: 780px
}

.page {
    width: 100%;
    margin: 10px 0 0 0;
    padding: 0;
    border: 0 solid #CCC;
    background-color: #fff;
    text-align: left;
    float: left
}

.ncol {
    width: 65%;
    float: left
}

.ncol h1 {
    border-bottom: 1px dotted #999;
    padding: .5em 0 .25em 0;
    font-weight: bold;
    color: #666;
    background: #FFF;
    font-size: 200%
}

.ncol h2 {
    border-bottom: 1px solid #CCC;
    padding: .5em 0 .25em 0;
    font-weight: bold;
    background: #FFF;
    font-size: 20px
}

.ncol h3 {
    padding-top: 15px;
    font-size: 13px
}

#navcat {
    margin: 0;
    padding: 5px 5px 13px 5px;
    background: #fff;
    border-bottom: 1px dotted #7A8B8B
}

#navcat ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    list-style-image: none
}

#navcat ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    list-style-image: none
}

#navcat li {
    display: inline
}

.wcol {
    margin: 0 auto;
    width: 95%;
    padding: 20px 15px 10px 15px;
    line-height: 1.5em
}

.wrinkle {
    margin: 0;
    padding: 5px;
    text-align: left
}

/* --- Posts, Comments, and Widgets ----------------------------------------- */
.post {
    border-bottom: 1px solid #CCC;
    padding: 0;
    margin: 0 0 1em 0;
    text-align: justify
}

.post img {
    padding: 3px 0 0 0
}

.archived {
    padding: 20px 0 0 0
}

.postmetadata {
    width: 85%;
    margin: 25px 0 0 0;
    padding: 3px;
    color: #999;
    text-align: left;
    line-height: 17px;
    font-size: 10px
}

.wcol .postmetadata {
    width: 100%;
    margin: 25px 0 30px 0
}

.entry {
    font-size: 100%;
    line-height: 1.5em
}

.entry h5 {
    font-weight: bold;
    text-align: left;
    margin: 0;
    text-decoration: underline
}

.entry a {
    text-decoration: underline
}

.entry a:visited {
    text-decoration: underline
}

.entry a:hover {
}

.entry h2 {
    text-align: left;
    font-weight: bold;
    padding-top: .5em;
    padding-bottom: .5em;
    border-bottom: 1px solid #CCC
}

.entry ol li {
    list-style: decimal outside
}

.entry ul li {
    list-style-type: square
}

.entry form {
    text-align: left
}

.entry input {
    margin: 2px auto;
    font-size: 9px;
    padding: 0;
    background-color: #FFF;
    border: 1px solid #CCC
}

.entry input[value="Submit"] {
    font-size: 9px;
    cursor: pointer
}

.entry input[value="Submit"]:hover {
    background-color: #EFEDED
}

.searchbox {
    margin: 0 auto;
    margin-top: 30px;
    padding: 0;
    display: block;
    width: 360px;
    height: 50px
}

.searchbox #searchform {
    background: #FFF;
    margin: 14px auto;
    width: 400px;
    padding: 0;
    border: 1px solid #CCC
}

.searchbox #searchform #s {
    margin: 0 auto;
    padding: 1px;
    font-family: Verdana, Geneva, Arial, sans-serif;
    color: #666;
    font-size: 10px;
    width: 298px;
    height: 100%;
    border: none;
    background-color: #FFF
}

.searchbox #searchform #searchsubmit {
    border: none;
    margin: 0 auto;
    padding: 2px 0;
    font-family: Verdana, Geneva, Arial, sans-serif;
    color: #000;
    font-size: 10px;
    font-weight: bold;
    width: 96px;
    height: 100%;
    background-color: #FFF;
    border-left: 1px solid #CCC;
    cursor: pointer
}

.searchbox #searchform #searchsubmit:hover {
    background-color: #EFEDED;
    color: #998
}

.alt {
    background-color: #FFF;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000
}

.commentlist li, #commentform input, #commentform textarea {
    font: .9em 'Lucida Grande', Verdana, Arial, Sans-Serif
}

.commentlist li {
    font-weight: bold;
    font-size: 1.0em;
    padding: 5px 0 5px 5px;
    list-style-type: decimal
}

.commentlist cite, .commentlist cite a {
    font-weight: bold;
    font-style: normal;
    font-size: 1.1em
}

.commentlist p {
    font-weight: normal;
    line-height: 1.5em;
    text-transform: none
}

.commentlist p a {
    color: #998;
    text-decoration: underline
}

.commentlist p a:visited {
    color: #998;
    text-decoration: underline
}

.commentlist p a:hover {
    color: #8B0000;
    text-decoration: line-through
}

#commentform p {
    font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif
}

.commentmetadata {
    font-weight: normal
}

.permalink {
    margin: 0 1.8em 0 0;
    padding: 0 0 0 14px;
    background: url(images/permalink.gif) no-repeat center left
}

.commentslink {
    padding: 0 0 0 17px;
    background: url(images/commentslink.gif) no-repeat center left
}

#commentform {
    margin: 15px 0 30px 39px
}

#commentform input {
    font: .9em 'Lucida Grande', Verdana, Arial, Sans-Serif;
    width: 170px;
    padding: 2px;
    margin: 5px 5px 1px 0;
    border: 1px solid #000;
    border-right: 3px solid #000
}

#commentform textarea {
    font: .9em 'Lucida Grande', Verdana, Arial, Sans-Serif;
    width: 400px;
    padding: 2px;
    border: 1px solid #000;
    border-right: 3px solid #000
}

#commentform #submit {
    width: 408px;
    padding: 2px;
    background: #FFF;
    text-align: center;
    border: 1px solid #000;
    border-right: 3px solid #000;
    font-weight: bold;
    cursor: pointer
}

#commentform #submit:hover {
    background-color: #F8F8FF
}

#respond {
    margin: 0 0 0 39px
}

.footer {
    line-height: 17px;
    font-size: 95%;
    margin: 0 0 25px 0;
    padding: 1em 0 0 0;
    width: 100%;
    height: 80px;
    background: #FFF url("./images/footer_bg.png") 0 repeat-x;
    clear: both
}

.powered {
    margin: 5px auto;
    text-align: center
}

.powered a {
}

.authorcomment {
    background: #F8F8FF
}

#wp-calendar {
    empty-cells: show;
    margin: 0 0 0 -2px;
    width: 100%
}

#wp-calendar #next a {
    padding-right: 0;
    text-align: right
}

#wp-calendar #prev a {
    padding-left: 0;
    text-align: left
}

#wp-calendar a {
    display: block
}

#wp-calendar caption {
    text-align: center;
    width: 100%
}

#wp-calendar td {
    padding: 3px 0;
    text-align: center
}

#wp-calendar td.pad:hover {
    background-color: #fff
}

#wp-calendar #prev a {
    font-size: 9pt
}

#wp-calendar a {
    text-decoration: none
}

#wp-calendar caption {
    font: bold 1.3em 'Lucida Grande', Verdana, Arial, Sans-Serif;
    text-align: center
}

#wp-calendar th {
    font-style: normal;
    text-transform: capitalize
}

.sidebar {
    width: 35%;
    margin: 0;
    padding: 0;
    float: left;
    font-size: 10px;
    display: inline
}

.sidebar h2 {
    border-bottom: 3px solid #BBB;
    padding: .25em .5em .25em 1em;
    text-align: left;
    font-size: 1.2em;
    line-height: 2em;
    background: #EEE url(images/rightHeader_bg.gif) repeat-x
}

.sidebar h2.lnkname {
    margin: 0 0 -5px 10px;
    text-align: left;
    font-size: 10px;
    border: none
}

.sidebar ul {
    margin: 0 15px 30px 20px;
    padding: 0;
    list-style-type: none;
    list-style-image: none
}

.sidebar ul li {
    width: 100%;
    display: block
}

.sidebar ul li ul {
    margin: 10px 15px 10px 15px;
    list-style-type: none;
    list-style-image: none
}

.sidebar ul li ul li {
    font-size: 1.1em;
    color: #666;
    list-style-type: none;
    list-style-image: none;
    line-height: 1.4em;
    padding-bottom: .5em;
    padding-top: .5em;
    border-bottom: 1px solid #BBB
}

.sidebar ul li ul li a {
    font-weight: normal
}

.textwidget {
    width: 100%;
    float: right;
    clear: both;
    padding: 0;
    margin: 3px 0 10px 0
}

.search {
    margin-left: 10px
}

#search {
    background: #DDD;
    margin-top: 10px;
    margin-bottom: 10px
}

#search li {
    border-bottom: none;
    padding-top: .25em;
    padding-bottom: .25em
}

#subscribe2widget {
    padding-bottom: .5em;
    margin-bottom: 1em;
    background: #DDD
}

#search form {
    margin-left: 0;
    padding-left: 0;
    background: none
}

#search ul {
    margin-left: 10px;
    padding-left: 0
}

#king-login-1 {
    background: #DDD;
    padding-bottom: 1em
}

#king-login-1 form {
    margin: 10px
}

#tsearchform {
    margin-top: 1em
}

#linkcat-1, #linkcat-2 {
    padding-bottom: .5em;
    margin-bottom: 1em;
    background: #EEE
}

#king-login-1 a {
    margin-left: 15px;
    font-size: 1.1em;
    text-decoration: underline;
    background: none
}

#rss-1 {
    padding-bottom: .5em;
    margin-bottom: 1em;
    padding-bottom: 1em;
    background: #EEE
}

.contactform {
    padding-top: 1em;
    padding-bottom: 1em;
    background: #EEE;
    border-top: solid 1px #CCC
}

/* --- RESPONSIVE STYLES (EDIT BELOW THIS LINE) ---------------------------- */

/* Ensure images and other media scale fluidly */
.entry img, .entry a img, .ncol img, img, object, embed, video {
    max-width: 100%;
    height: auto;
}

/* Make the main content container fluid */
#content {
    width: 95%; /* Use a percentage for a fluid width */
    max-width: 780px; /* But don't let it get wider than the original design */
    margin: 0 auto; /* Keep it centered */
}

/* For screens smaller than 768px (e.g., tablets and phones) */
@media only screen and (max-width: 768px) {

    /* Make the columns stack on top of each other */
    .ncol, .sidebar {
        width: 100%; /* Make both columns full-width */
        float: none; /* Remove floating */
    }

    /* Adjust the header logo and navigation */
    #header h1 {
        background-size: contain; /* Shrink the logo to fit */
        height: 60px; /* Adjust the height for mobile */
    }

    .navbar {
        width: 100%;
        text-align: center;
        padding-top: 10px;
    }

    .navbar a, .navbar a:visited {
        float: none; /* Remove floating from nav links */
        display: inline-block; /* Make them sit side-by-side */
        margin: 0 10px;
    }

    /* Adjust other elements for better readability on small screens */
    body, html {
        font-size: 14px; /* Increase base font size for readability */
    }

    h2, .ncol h2, .wcol h2 {
        font-size: 1.2em;
        line-height: 1.3em;
    }

    .sidebar h2 {
        text-align: center;
    }

    .entry {
        font-size: 110%; /* Increase body text size */
    }

    /* Make search form and other elements fluid */
    .searchbox, #searchform, #commentform input, #commentform textarea, #commentform #submit {
        width: 100%;
        box-sizing: border-box; /* Include padding and border in the width */
        margin: 5px 0;
    }
    
    /* Adjust sidebar padding for mobile */
    .sidebar ul {
        margin: 0 15px 20px 15px;
    }
}

/* Breadcrumb styling */
#breadcrumbs {
    margin: 10px 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: #555;
    text-align: left; /* Adjust to center or right if needed */
}

#breadcrumbs li {
    display: inline;
}

#breadcrumbs .separator {
    color: #999;
}

#breadcrumbs a {
    text-decoration: none;
    color: #B85D00;
}

#breadcrumbs a:hover {
    text-decoration: underline;
}

/* Make sure the breadcrumbs are responsive */
@media only screen and (max-width: 768px) {
    #breadcrumbs {
        padding-left: 15px; /* Add padding for mobile screens */
    }
}
