body {
  margin: 56px 40px;
  background: #f2f2f0;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.6;
}

header {
  margin-bottom: 96px;
}

h1 {
  margin: 0;
  font-size: 36px;
  font-weight: normal;
}

nav {
  margin-top: 18px;
}

a {
  color: blue;
  text-decoration: underline;
}

nav a + a {
  margin-left: 20px;
}

.sound-toggle {
  margin-top: 24px;
  padding: 3px 7px;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  border-radius: 0;
  background: #c0c0c0;
  color: black;
  font-family: "Courier New", monospace;
  font-size: 11px;
  cursor: pointer;
}

.sound-toggle:active {
  border-top-color: #404040;
  border-left-color: #404040;
  border-right-color: white;
  border-bottom-color: white;
}

.ambience-volume {
  margin-left: 12px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  white-space: nowrap;
}

.ambience-volume input {
  appearance: none;
  -webkit-appearance: none;
  width: 90px;
  height: 16px;
  margin-left: 4px;
  background: transparent;
  vertical-align: middle;
}

.ambience-volume input::-webkit-slider-runnable-track {
  height: 4px;
  border: 1px solid #404040;
  border-radius: 0;
  background: #808080;
}

.ambience-volume input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 16px;
  margin-top: -7px;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  border-radius: 0;
  background: #c0c0c0;
}

.ambience-volume input::-moz-range-track {
  height: 4px;
  border: 1px solid #404040;
  border-radius: 0;
  background: #808080;
}

.ambience-volume input::-moz-range-progress {
  height: 4px;
  border: 1px solid #404040;
  border-radius: 0;
  background: #808080;
}

.ambience-volume input::-moz-range-thumb {
  width: 8px;
  height: 12px;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  border-radius: 0;
  background: #c0c0c0;
}

main {
  max-width: 540px;
}

main h2 {
  margin-top: 64px;
  font-size: 18px;
  font-weight: normal;
}

.dialog {
  position: absolute;
  top: 430px;
  left: 72px;
  width: 300px;
  margin: 0;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  background: #c0c0c0;
  color: black;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.dialog-title {
  margin: 2px;
  padding: 3px 5px;
  background: #000080;
  color: white;
  cursor: move;
  font-size: 13px;
  font-weight: bold;
  touch-action: none;
  user-select: none;
}

.dialog-content {
  padding: 14px;
}

.dialog-content p {
  margin: 0 0 18px;
}

.dialog-buttons {
  text-align: center;
}

.dialog button {
  min-width: 62px;
  margin: 0 3px;
  padding: 3px 10px;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  border-radius: 0;
  background: #c0c0c0;
  color: black;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.notepad-window {
  top: 490px;
  left: 620px;
  width: 280px;
}

.notepad-menu {
  padding: 2px 6px;
  border-bottom: 1px solid #808080;
  font-size: 12px;
}

.notepad-menu span + span {
  margin-left: 14px;
}

.notepad-note {
  min-height: 120px;
  margin: 0 3px 3px;
  padding: 8px;
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  background: white;
  color: black;
  font-family: "Courier New", monospace;
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.collage-image-button {
  display: block;
  margin: 280px 0 80px 360px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.collage-image {
  display: block;
  width: 260px;
  height: auto;
}

.image-viewer {
  position: fixed;
  top: 140px;
  left: 390px;
  width: 440px;
  margin: 0;
}

.image-viewer .dialog-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog .viewer-close {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  line-height: 12px;
}

.viewer-content {
  padding: 4px;
  background: white;
}

.viewer-image {
  display: block;
  width: 420px;
  height: auto;
}
