body {
  background-color: white;
  color: black;
}
#root {
  font-family:  ui-serif,'Times New Roman', Times;
  width:70%;
  max-width: 650px;
  margin: auto;
}

p{
  font-size: 13px;
}

h1{
  font-size: 24px;
}

/* IMG size is 60% */
img{
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 60%;
}

/*image caption center and adjust width*/
.content p:has(img + em){
  text-align: center;
  width: 60%;
  margin: auto;
  color: gray;

  img{
    width: 100%;
  }
}

a:any-link{
  color: blue;
}

#title {
  font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, 
  helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
  margin-left:auto;
  margin-right: auto;
  text-align: center;
}
#title h1 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, 
  helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
  font-size: 30px;
  background-color: black;
  color: white;
}

#title a{
 color: blue;
}

/* Style to create a horizontal list on navbar*/
ul.horizontal-list {
  font-size: 14px;
  margin-top: 5px;
  margin-bottom: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap:10px;
}

ul.horizontal-list li {
  text-decoration: underline;
}

/*index / main page */
#content{
  margin-left: auto;
  margin-right: auto;
}

/* single post */
.content p{
  font-size: 14px;
  text-indent: 2em;
}

time{
  color: black;
}
.summary{
  margin-bottom: 0;
  padding: 0;
}
 nav {
  margin: 15px 0;
}
h1.title {
  margin: 1.3rem 0 0 0;
  font-size: 14px;
}
h3.subtitle {
  color: black;
  font-weight: normal;
  font-size: 13px;
  padding-left: 2%;
  margin: 0;
}
div.post-meta {
  margin-top: 1.3rem;
}

.pagination{
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

footer{
  font-size: x-small;
  margin-top: 100px;
  text-align: center;
}
footer p{
  font-size: 10px;
}

#postsByDate  {
  list-style: none;
}
#postsByDate .date {
  width: 60px;
}
#postsByDate div, #postsInOneGroup div {
  display: inline-block;
}
#terms {
  list-style: none;
}
#terms .term {
  background-color: #ddd;
  border-radius: 10px;
  display: inline-block;
  margin: 2px;
  padding: 8px;
}


.posttitle{
  font-size: 24px;
  margin-bottom: 0;
}


.nav li{
display: inline;
}

.post-meta-detailed, .post-meta-detailed time{
  font-size: 12px;
  color: gray;
}
.post-meta-detailed a{
  color: red;
}

@media (max-width: 768px){
  #root{
    width: 80%;
  }
  img{
    width:95%;
  }
  /*image caption center and adjust width*/
  .content p:has(img + em){
    width: 95%;
    img{
      width: 100%;
    }
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

  #title {
    flex-direction: row;
    text-align: center;
  }
  #title .text {
    margin-left: 10px;
  }
  #title h1 {
    font-size: 45px;
  }
  #title h3 {
    font-size: 25px;
  }
}
