body {
  margin: 0;
}

h1,
h2,
h3,
h4,
p,
label,
li,
input {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1 {
  font-size: 2.1em;
}

h1 a {
  color: white;
}

h2 {
  font-size: 1.8em;
}

h3 {
  font-size: 1.6em;
}

h4 {
  font-size: 1.3em;
}

p {
  font-size: 1.2em;
}

span.sc {
  text-transform: uppercase;
  font-size: 0.7em;
}

a.see {
  color: blue;
}

#wrapper {
  display: grid;
  height: 100vh;
  grid-template-areas: "search header""list main""footer footer";
  grid-template-columns: 650px auto;
  grid-template-rows: 60px auto 50px;
  box-sizing: border-box;
}

main {
  grid-area: main;
  width: 100%;
  padding: 80px;
  padding-top: 30px;
  background-color: white;
  box-sizing: border-box;
}

main .word {
  display: inline;
}

main .type {
  display: inline-block;
  vertical-align: top;
  font-size: 1.2em;
  margin-top: 0.45em;
  margin-left: 5px;
  color: #757575;
}

main .ipa {
  color: #757575;
  font-size: 1.2em;
  margin-top: 6px;
}

main span.ipa {
  font-size: 1em;
}

main .english {
  color: #3949AB;
}

main .translation {
  font-size: 1.3em;
}

main div.note {
  font-size: 0.9em;
}

main h3 {
  margin-bottom: -5px;
  padding-top: 10px;
}

main h4 {
  font-weight: 300;
  text-decoration: underline;
  margin-bottom: 5px;
}

span.supl {
  margin-left: 1em;
}

.searchfield {
  grid-area: search;
}

header {
  grid-area: header;
  background-color: #3949AB;
}

header h1 {
  color: white;
  font-size: 1.5em;
  margin-left: 20px;
}

input[type=search] {
  width: calc(100% - 30px);
  height: 100%;
  padding-left: 25px;
  padding-right: 5px;
  border: 0;
  background-color: white;
  color: black;
  font-size: 1em;
  transition: 0.2s ease outline-color;
}

.list {
  grid-area: list;
  height: 100%;
  list-style: none;
  margin-left: -40px;
  margin-top: 0;
  padding-top: -10px;
  border-right: 1px solid #d3d3d3;
  overflow: auto;
}

.list li {
  width: calc(100% - 45px);
  padding: 10px;
  padding-left: 35px;
  background-color: white;
  margin-bottom: -2px;
  border-top: 1px solid #d3d3d3;
  border-bottom: 1px solid #d3d3d3;
  cursor: pointer;
}

.list li p {
  font-size: 1.1em;
}

.list li h3 {
  font-size: 1.3em;
}

.list li .word {
  line-height: 0;
}

.list li .translation {
  color: #3949AB;
  line-height: 0.8;
}

.list li:hover {
  background-color: #EEEEEE;
}

.active .page {
  background-color: #D3D3D3;
}

.pagination .disabled {
  display: none;
}

footer {
  grid-area: footer;
  font-size: 0.7em;
  padding: 0.5em;
  text-align: right;
}

@media only screen and (max-width: 1300px) {
  #wrapper {
    grid-template-areas: "header""search""list""main";
    grid-template-columns: 100%;
    grid-template-rows: 60px 60px 50% 50px auto;
  }
}

@font-face {
  font-family: 'zaha';
  src: url('zaha-webfont.woff2') format('woff2'),
    url('zaha-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'chiwo';
  src: url('chiwo-naepo-webfont.woff2') format('woff2'),
    url('chiwo-naepo.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

ruby.chiwo {
  padding: 1em;
}

rt,
.zaha {
  font-family: 'zaha';
}

.zaha {
  font-size: 220%;
}

.chiwo {
  font-family: 'chiwo';
  font-size: 270%;
}