body{
 background-image: url("../resources/3to1layout/bg.png");
 background-size: 100% 100%;
 background-repeat: no-repeat;
}

#mainContentsContainer{
  width: 90vw;
  max-width: 1200px;
  min-height: 100vh;
  margin: 0 auto;
}

#sectionHeader, #sectionBody{
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
}

#headerLeftContainer, #bodyLeftContainer{
  width: 75%;
  background-color: #EFEFEF;
}

#headerRightContainer, #bodyRightContainer{
  width: 25%;
  padding: 0;
}

#bodyLeftContainer > div, #bodyRightContainer > div{
  width: 90%;
  margin: 35px auto 25px auto;
  height: 20px;
  font-size: 12pt;
  font-weight: 100;
}

#bodyRightContainer > div{
  width: 100%;
  margin: 15px auto;
  display: none;
  /* for publication & SP index */
}

#mainArticleContainer{
  width: 90%;
  margin: 0 auto;
}

#mainArticleContainer *{
  letter-spacing: -0.05em;
  font-size: 10pt;
  line-height: 1.6;
  text-align: justify;
}

#mainArticleContainer pre{
  white-space: pre-wrap;
}

#bodyRightContainer > * {
  width: 84%;
  margin: 0 auto;
}

#bodyRightContainer > ul{
  margin: 35px auto 0 auto;  
}

#bodyRightContainer > ul > li{
  border: 1px solid #aaa;
  list-style: none;
  margin-bottom: 20px;
  text-align: center;
  padding-top: 15px;
}

#bodyRightContainer > ul > li.pager{
  text-align: center;
  border: none;
  cursor: pointer;
}

#bodyRightContainer > ul > li img.samplePicture{
  width: 88%;
  height: auto;
}

#bodyRightContainer > ul > li pre.title{
  width: 88%;
  margin: 10px auto 10px auto;
  font-size: 8pt;
  line-height: 1.5;
  white-space: pre-wrap;
}

/*
 * for content.html
 */
#bodyLeftContainer img{
  width: 100%;
  height: auto;
  margin: 0 0 30px 0;
}

#bodyLeftContainer img.border{
  border: 1px solid #ddd;
}


#headImage{
  width: 100%;
  height: auto;
  margin-bottom: 30px;
}

.twoColumnBox{
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.twoColumnBox > div{
  width: 48%;
}

#mainArticleContainer h1{
  font-size: 14pt;
  padding-left: 15px;
  padding-right: 15px;
}

#mainArticleContainer h2{
  font-size: 12pt;
  padding-left: 15px;
  padding-right: 15px;
  margin-top: 30px;
}

#mainArticleContainer p,
#mainArticleContainer pre{
  padding-left: 15px;
  padding-right: 15px;
}  

.twoColumnBox > div:first-child p,
.twoColumnBox > div:first-child pre,
.twoColumnBox > div:first-child dl,
.twoColumnBox > div:first-child h1,
.twoColumnBox > div:first-child h2{
  padding-left: 15px!important;
  padding-right: 0!important;
}


.twoColumnBox > div:last-child p,
.twoColumnBox > div:last-child pre,
.twoColumnBox > div:last-child dl,
.twoColumnBox > div:last-child h1,
.twoColumnBox > div:last-child h2{
  padding-left: 0!important;
  padding-right: 15px!important;
}

hr{
  border-top: 0.5px solid #C6C6C6;
  margin: 20px 0;
}

#mainArticleContainer .topics{
  font-size: 11.5pt;
  color: #007ae4;
}

.toc *{
  margin-left: 0;
  padding-left: 0;
}

.toc ul{
  margin-top: 10px;
  margin-bottom: 0;    
}

.toc li{
  list-style: none;
  padding: 0 0 0 3em;
  text-indent: -2.3em;
}

.indentedPassage{
  margin: 20px 0;
}

.indentedPassage > p{
  text-indent: 1em;
  margin-top: 0;  
  margin-bottom: 0;  
}

.indentedPassage > aside{
  text-indent: -1.6em;
  margin-left: 3em;
}

.textRight{
  width: 100%;
  text-align: right;
}

#mainArticleContainer .smallerLetter{
  font-size: 8pt;
}

#bodyLeftContainer .imageInPassage{
  width: 80%;
  margin: 30px auto 0 auto;
  display: block;
}

#mainArticleContainer .descriptionWithImageInPassage{
  width: 70%;
  margin: 10px auto 0 auto;  
}

#mainArticleContainer .citation{
  margin: 10px 50px 10px 50px;
}

#mainArticleContainer .footnote{
  text-indent: -30px;
  margin-left: 45px;
}

@media screen and (max-width: 800px){
  body{
   background-image: none;
   background-color: #EFEFEF;
  }
  
  #mainContentsContainer{
    width: 100vw;
  }
  
  #headerLeftContainer{
    width: 100%;
  }
  
  #bodyLeftContainer{
    width: 94%;
    margin: 0 auto;
  }
  
  #headerRightContainer, #bodyRightContainer{
    display: none;
  }
  
  #bodyLeftContainer > div{
    width: 100%;
    margin: 15px auto 15px auto;
  }
  
  #mainArticleContainer{
    width: 100%;
  }
  
  #mainArticleContainer *{
    font-size: calc(6pt + 2vw);
  }
  
  .twoColumnBox{
    display: block;
  }
  
  .twoColumnBox > div{
    width: 100%;
  }
  
  .twoColumnBox > div:first-child p,
  .twoColumnBox > div:first-child pre,
  .twoColumnBox > div:first-child dl,
  .twoColumnBox > div:first-child h1,
  .twoColumnBox > div:first-child h2{
    padding-left: 0!important;
  }
  
  
  .twoColumnBox > div:last-child p,
  .twoColumnBox > div:last-child pre,
  .twoColumnBox > div:last-child dl,
  .twoColumnBox > div:last-child h1,
  .twoColumnBox > div:last-child h2{
    padding-right: 0!important;
  }
}