/*
#####  Color Palette by Paletton.com
#####  Palette URL: http://paletton.com/#uid=30f0u0kllllaFw0g0qFqFg0w0aF


*** Primary color:

   shade 0 = #AA5939 = rgb(170, 89, 57) = rgba(170, 89, 57,1) = rgb0(0.667,0.349,0.224)
   shade 1 = #FFC2AA = rgb(255,194,170) = rgba(255,194,170,1) = rgb0(1,0.761,0.667)
   shade 2 = #D4886A = rgb(212,136,106) = rgba(212,136,106,1) = rgb0(0.831,0.533,0.416)
   shade 3 = #803315 = rgb(128, 51, 21) = rgba(128, 51, 21,1) = rgb0(0.502,0.2,0.082)
   shade 4 = #551800 = rgb( 85, 24,  0) = rgba( 85, 24,  0,1) = rgb0(0.333,0.094,0)

*** Secondary color (1):

   shade 0 = #29506D = rgb( 41, 80,109) = rgba( 41, 80,109,1) = rgb0(0.161,0.314,0.427)
   shade 1 = #718EA4 = rgb(113,142,164) = rgba(113,142,164,1) = rgb0(0.443,0.557,0.643)
   shade 2 = #496D89 = rgb( 73,109,137) = rgba( 73,109,137,1) = rgb0(0.286,0.427,0.537)
   shade 3 = #123652 = rgb( 18, 54, 82) = rgba( 18, 54, 82,1) = rgb0(0.071,0.212,0.322)
   shade 4 = #042037 = rgb(  4, 32, 55) = rgba(  4, 32, 55,1) = rgb0(0.016,0.125,0.216)

*** Secondary color (2):

   shade 0 = #609732 = rgb( 96,151, 50) = rgba( 96,151, 50,1) = rgb0(0.376,0.592,0.196)
   shade 1 = #BAE397 = rgb(186,227,151) = rgba(186,227,151,1) = rgb0(0.729,0.89,0.592)
   shade 2 = #8ABD5F = rgb(138,189, 95) = rgba(138,189, 95,1) = rgb0(0.541,0.741,0.373)
   shade 3 = #3E7213 = rgb( 62,114, 19) = rgba( 62,114, 19,1) = rgb0(0.243,0.447,0.075)
   shade 4 = #224C00 = rgb( 34, 76,  0) = rgba( 34, 76,  0,1) = rgb0(0.133,0.298,0)


#####  Generated by Paletton.com (c) 2002-2014

*/

@import url('https://fonts.googleapis.com/css?family=Noto+Sans');
@import url('https://fonts.googleapis.com/earlyaccess/notosansjapanese.css');
@import url('https://fonts.googleapis.com/css?family=Noto+Serif&subset=latin-ext');
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300&subset=latin-ext');
/*
@font-face {
  font-display: swap;
  font-family: 'Noto Serif CJK JP';
  src: url('/fonts/NotoSerifCJKjp-Regular.otf');
}
*/
body {
  padding:0;
  margin: 0;
  background-color: #500;
  background-image: url("yamanote.png");
  color: white;
  font-family: 'Noto Sans', NotoSans, 'Noto Sans Japanese', 'Noto Sans CJK JP', sans-serif;
  font-size: 16px;
}

#chartcontainer {
  width: 100%;
  position: relative;
}

#chart {
  font-size: 200%;
  padding: 0.2em 0;
  position: relative;
  margin: 0;
  margin-top: 1em;
  text-align: center;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  display: block;
  overflow: hidden;
  font-size: 0;
}

#chain {
  content: ' ';
  height: 0.6rem;
  display: block;
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: 50%;
  top: calc(50% - 0.3rem);
  width: 100%;
  background-color:  #910;
  background-image: linear-gradient(0deg, #910, #b30);
}

#chart a {
    font-size: 32px;
    color: #3E7213;
    display: inline-block;
    background-color: #D4886A;
    border-radius: 50%;
    width: 3em;
    height: 3em;
    text-align: center;
    vertical-align: top;
    border: 0.1em inset #AA5939;
    text-decoration: none;
    z-index: 1;
    position: relative;
    text-shadow: 0.05em 0.05em 0.2em #252;
    white-space: nowrap;
    margin: 0 0.3em;
}

#chart a.selected {
  background-color: #190;
  border-color: #190;
  color: #fe9;
}

#chart a#homelnk{
  background-color: #718EA4;
  color: #551800;
  border-color: #718EA4;
}


#chart a#homelnk.selected {
  background-color: #042037;
  color: #BAE397;
  border-color: #042037;
}

#chart a .romaji {
  display: none;
  line-height: 1;
  margin-top: calc(50% - 1.1em);
}


#chart a .kanji {
  display: block;
  margin-top: calc(50% - 0.5em);
  line-height: 1;
}

#chart a .kanji2 {
  font-size: 140%
}

#chart a .kanji4 {
  margin-top: calc(50% - 0.95em); 
}

#chart a:hover .kanji {
  display: none;
}

#chart a:hover .romaji {
  display: block;
}

#chart a .romaji4 {
  font-size: 95%;
}

#chart a .romaji5 {
  font-size: 80%;
}

#chart a .romaji6 {
  font-size: 75%;
}

#chart a .romaji8 {
  font-size: 60%;
}

#chart.reverse a .romaji {
  display: block;
}
#chart.reverse a .kanji {
  display: none;
}
#chart.reverse a:hover .romaji {
  display: none;
}
#chart.reverse a:hover .kanji {
  display: block;
}


#content > section p {
  text-align: justify;
  hyphens: auto;
}

#content > section a {
  color: #BAE397;
  text-decoration: none;
}

#content > section a:hover {
  text-decoration: underline;
}

#content > section aside {
  float: right;
  margin: 0 0 0.5em 0.5em;
  width: 20rem;
  border-style: none none solid solid;
  border-width: thin;
  border-color: #123652;
  padding: 1em;
  font-size: 90%;
  background-color: #718EA4;
  position: relative;
  clear: right;
}

#content > section aside::after {
  content: ' ';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent transparent #123652 #123652;
  border-width: 0.5em;
}

#content > section aside a {
  color: #BAE397;
  text-shadow: 0 0 0.1em #224C00;
}

#content > section aside h2 {
  font-size: 100%;
  font-family: inherit;
  color:  #123652;
  margin: 0;
  font-weight: bold;
}

#content > section img.fullwidth {
    display: block;
    width: 100%;
    margin: 0.5em auto;
}

#content > section img.left {
    max-width: 35%;
    margin: 0.5em;
    float: left;
}
#content > section img.left.next {
    clear: left;
}


#content > section img.right {
    max-width: 35%;
    margin: 0.5em;
    float: right;
}

#content > section img.right.next {
    clear: right;
}


#content h1,
#content h2,
#content h3,
#content h4 {
  font-weight: normal;
  font-family: 'Noto Serif', 'Noto Serif CJK JP', serif;
}

#content h1 {
  color: #FFC2AA;  
  font-size: 200%;
  margin-top: 0;
  margin-bottom: 0.5em;
}

#content h2 {
  font-size: 170%;
  color: #D4886A;
  margin-bottom: 0;
}

#content .poi {
	clear: both;
}

#content h2 span.poiId {
    color: #FFC2AA;
    text-shadow: 0.05em 0.05em 0.1em #803315;
}

#content h3 {
  color: #551800;
  margin-bottom: 0;
}

#content p {
  font-size: 14px;
}

#content section > p:first-of-type {
  font-size: 16px;
}

#content section:after {
  content: ' ';
  display: block;
  height: 0;
  overflow: hidden;
  clear: both;
}

#content aside.station {
  position: relative;
  text-align: center;
  width: 8em;
  color: #042037;
}
aside.station .writing {
  font-size: 500%;
  writing-mode: vertical-rl;
  margin: 0 auto;
  display: block;
  width: 1.3em;
  font-family: 'Noto Serif CJK JP', 'Noto Serif', sans-serif;
  color: #224C00;
  white-space: nowrap;
}
aside.station .meaning, aside.station .reading {
  position: absolute;
  writing-mode: vertical-rl;
  top: 0;
  bottom: 0;
  font-family: 'Noto Serif', sans-serif;
  font-size: 130%;
  max-width: 1ex;
  line-height: 1;
  word-break: break-all;
}
aside.station .meaning {
  left: 30%;
  left: calc(50% - 3em)
}
aside.station .reading {
  right: 30%;
  right: calc(50% - 3.5em)
}

#content aside.jy {
  width: 10em;
  background-color: #3E7213;
  border: none;
  padding: 0;
  text-align: center;
  height: 9em;
}

aside.jy .head {
  color: #3E7213;
  background-color: white;
  margin: 0.2em;
  font-weight: bold;
}

aside.jy .number {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 600%;
  line-height: 1.1;
}

#content aside.jy:after {
  display: none;
}

aside#timer > * {
  font-size: 200%;
}
aside#timer .multilangsuffix {
  display: inline-block;
  vertical-align: bottom;
  color: #FFC2AA;
}
aside#timer .multilangsuffix > span {
  display: block;
  text-align: center;
  line-height: 1;
}
aside#timer .multilangsuffix > span[lang="ja"] {
  font-size: 60%;
}
aside#timer .multilangsuffix > span[lang="fi"] {
  font-size: 40%;
}

#content > section p > ruby {
  color: #718EA4;
}

#content > section aside p > ruby {
  color: inherit;
}

#content > section aside > a > img {
    max-width: 100%;
    display: block;
}


#content > section {
  max-width: 60em;
  margin: 1em auto;
  background-color: rgba(127,127,127,0.5);
  padding: 0.5em;
}
#content > section > footer {
  font-size: 12px;
  color: #FFC2AA;
  border-top: thin solid #AA5939;
  clear: both;
}
#content rt {
  font-size: 80%;
}

#root > footer {
    text-align: center;
    font-size: 70%;
    border-top: thin solid #910;
    max-width: 60rem;
    margin: 1em auto;
    padding-top: 0.5em;
    color: #AA5939;
}

#root > footer a {
    color: #FFC2AA;
    text-decoration: none;
}
#root > footer a:hover {
  color: #803315;  
}


.footer-left {
  display: inline-block;
  max-width: 40em;
}
.footer-right {
  display: inline-block;
  vertical-align: top;
  font-size: 300%;
  margin-left: 1em;
}

table.sortable {
  background-color: rgba(0,0,0,0.3);
  border: thin solid #551800;
  margin: 1em;
  min-width: 50%;
  border-collapse: collapse;
}

table.sortable thead {
  background-color: #551800;
  text-align: left;
}
table.sortable thead th {
  border: thin solid #AA5939;
  color: #FFC2AA;
}

table.sortable th, table.sortable td {
  padding: 0.2em 0.5em;
}

table.sortable tbody td {
  border: thin solid #803415;
}

.mapContainer {
  width: 100%;
  height: 40em;
  box-shadow: 0.2em 0.2em 0.2em #551800;
}

.mapContainer.stationMapContainer {
    width: 80%;
    width: calc(100% - 10em);
    height: 25em;
}

.mapContainer > .map {
  width: 100%;
  height: 100%;
}

.infoWindowContainer {
  width: 20em;
}

.infoWindowContainer .jrId {
    color: white;
    background-color: #3E7213;
    font-size: 200%;
    width: 1.3em;
    height: 1.3em;
    text-align: center;
    padding: 0.1em;
    float: left;
    margin-right: 0.2em;
    margin-bottom: 0.2em;
}

.infoWindowContainer h3 {
  margin-top: 0;
}

#content > section .map a {
  color: #3E7213;
}

@media (max-width: 600px) {
  #chart a {
    font-size: 24px;
  }
  #content section > aside {
    float: none;
    width: 90%;
    width: fit-content;
  }
  #content section > aside.station {
    float: right;
  }
  #content section > aside.jy {
    float: right;
    clear: none;
  }

  #content section h1:first-of-type + * {
    clear: both;
  }

  .mapContainer.stationMapContainer {
    width: 100%;
    max-height: 80vh;
  }

  #content section > p:first-of-type {
    hyphens: auto;
  }
  
  #content > section img.left,
  #content > section img.right {
	  display: block;
	  float: none;
	  max-width: 100%;
	  margin: 0.5em auto;
  }
}

/*
body:before {
  z-index: 100;
  content: ' ';
  display: block;
  position: fixed;
  top: 0;
  bottom: 0;
  border: thin solid red;
  background-color: red;
  left: 50%;
  right: 50%;
}
*/