html {
  background: #cdd9e5;
}

body {
  margin: 0;
  padding: 22px 10px 44px 10px;
  color: #101010;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.12) 0,
      rgba(255,255,255,0.12) 1px,
      rgba(0,0,0,0.018) 1px,
      rgba(0,0,0,0.018) 2px
    ),
    #cdd9e5;
  font-family: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Geneva, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.42;
  text-rendering: optimizeSpeed;
  font-smooth: never;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
}

#page {
  width: 720px;
  max-width: calc(100% - 28px);
  margin: 0 auto;
  padding: 18px 22px 13px 22px;
  background: #ffffff;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #64717c;
  border-bottom: 2px solid #64717c;
  box-shadow: 2px 2px 0 #8d9aa5;
}

#page p,
#page li,
#page td,
#page th,
#page caption,
#page figcaption,
#page a,
#page button,
#page h1,
#page h2,
#page h3,
#page strong,
#page .subtitle,
#page #footer {
  text-shadow: 0.28px 0 rgba(0, 0, 0, 0.42);
  filter: url("#rough-text");
}

#header h1 {
  margin: 0;
  font-family: Fixedsys, "Terminal", "MS Sans Serif", "Microsoft Sans Serif", Tahoma, sans-serif;
  font-size: 25px;
  line-height: 1.15;
  font-weight: normal;
}

#navigation {
  margin-top: 14px;
  padding: 4px 0 5px 0;
  font-size: 11px;
}

a:link {
  color: #0000cc;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

a:hover,
a:focus {
  color: #cc0000;
}

hr {
  height: 2px;
  margin: 11px 0 16px 0;
  border: 0;
  border-top: 1px solid #666666;
  border-bottom: 1px solid #ffffff;
}

.section {
  margin: 0 0 25px 0;
}

h2 {
  margin: 0 0 8px 0;
  font-family: Fixedsys, "Terminal", "MS Sans Serif", "Microsoft Sans Serif", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: bold;
}

h3 {
  margin: 15px 0 6px 0;
  font-family: Fixedsys, "Terminal", "MS Sans Serif", "Microsoft Sans Serif", Tahoma, sans-serif;
  font-size: 13px;
  font-weight: normal;
}

p {
  margin: 0 0 9px 0;
}

.home-photo {
  text-align: center;
}

.home-photo img {
  display: block;
  width: 240px;
  height: 240px;
  margin: 0 auto;
  padding: 3px;
  object-fit: cover;
  background: #ffffff;
  border: 2px solid #000000;
  box-sizing: border-box;
}

.speech-box {
  margin: 0 0 36px 0;
}

.dog-speech {
  display: block;
  margin: 0 0 4px 0;
  padding: 0;
  color: #101010;
  background: transparent;
  border: 0;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

.dog-speech:hover,
.dog-speech:focus {
  color: #101010;
  text-decoration: underline;
  outline: none;
}

.translation-note {
  margin: 0 0 5px 0;
  color: #505050;
  font-size: 10px;
}

.translation-toggle {
  display: inline-block;
  margin: 0;
  padding: 2px 6px;
  color: #101010;
  background: #e5e5df;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #6d6d68;
  border-bottom: 1px solid #6d6d68;
  font-family: inherit;
  font-size: 10px;
  line-height: 1.3;
  cursor: pointer;
}

.translation-toggle:active {
  border-top-color: #6d6d68;
  border-left-color: #6d6d68;
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
}

.fact-table,
.record-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
}

.fact-table th,
.fact-table td,
.record-table th,
.record-table td {
  padding: 5px 7px;
  vertical-align: top;
  border: 1px solid #a5a5a5;
}

.fact-table th,
.record-table th {
  font-weight: bold;
  text-align: left;
  background: #ecece6;
}

.fact-table th {
  width: 1%;
  white-space: nowrap;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 12px;
  margin-top: 11px;
}

.photo-grid figure {
  margin: 0;
  text-align: center;
  align-self: center;
}

.photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  padding: 3px;
  background: #ffffff;
  border: 2px solid #000000;
  box-sizing: border-box;
}

.photo-grid figcaption {
  margin-top: 4px;
  font-size: 10px;
}

ul {
  margin: 5px 0 0 21px;
  padding: 0;
}

li {
  margin-bottom: 4px;
}

.small {
  color: #505050;
  font-size: 10px;
}

#footer {
  color: #4a4a4a;
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}

#footer p {
  margin: 1px 0;
}

#footer .last-updated,
#footer .site-version {
  font-family: "Courier New", Courier, monospace;
}

@media screen and (max-width: 600px) {
  body {
    padding: 8px 5px 20px 5px;
  }

  #page {
    width: auto;
    max-width: none;
    padding: 15px;
    border-width: 1px;
    box-shadow: none;
  }

  #navigation {
    line-height: 1.75;
  }

  .home-photo img {
    width: auto;
    height: auto;
    max-width: 210px;
    max-height: 280px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 8px;
  }

  .fact-table th {
    width: 1%;
    white-space: nowrap;
  }
}
