@charset "UTF-8";

html {
  font-size: 16px;
  touch-action: manipulation;
}

body {
  margin: 0;
  font-family: 'Kosugi Maru', Arial, 'Hiragino Sans', Meiryo, sans-serif;
  background-color: #ccffff;
}

#contents {
  width: min(100%, 500px);
  margin: 0 auto;
  text-align: center;
  background-color: white;
}

header {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 42px;
  text-align: left;
  background-color: #c0cbff;
  border: 1px solid #c0cbff;
}

header .flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

header .title {
  margin: 6px;
  font-size: clamp(0.85rem, 4vw, 1.3rem);
  font-weight: bold;
  color: #000055;
}

header #version {
  font-size: 0.75rem;
  font-weight: bold;
  color: #7777aa;
  white-space: nowrap;
}

footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  font-size: 1rem;
  font-weight: bold;
  color: #7777aa;
  background-color: #c0cbff;
}

#main {
  display: table;
  width: 100%;
  height: calc(100svh - 68px);
}

#main-inner {
  display: table-cell;
  padding: 10px;
  vertical-align: middle;
}

#board-container {
  touch-action: none;
  user-select: none;
}

#main-svg {
  box-sizing: border-box;
  max-width: calc(100% - 10px);
  height: auto;
  margin: 5px;
  touch-action: none;
  cursor: pointer;
  border: 2px solid black;
}

.block-svg {
  width: 20px;
  height: 20px;
}

#num-even,
#num-odd {
  margin-right: 10px;
  font-size: 24px;
}

g {
  pointer-events: none;
}

text {
  pointer-events: none;
}

#result {
  max-width: min(460px, calc(100vw - 40px));
  height: 2.8rem;
  margin: 10px auto;
  overflow: auto hidden;
  font-size: 2rem;
  line-height: 2.8rem;
  white-space: nowrap;
}

#button-collections {
  margin: 15px 0;
}

.button {
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
}

.hide {
  display: none;
}

#app-icon {
  width: 40px;
  height: 40px;
}

#collections-num {
  margin: 0 0 15px;
  font-size: 1.5rem;
}

#notice {
  display: block;
  min-height: 2.1rem;
  font-size: 1.5rem;
  line-height: 2.1rem;
  color: #ee0000;
}

#dialog-collections {
  box-sizing: border-box;
  width: 490px;
  max-width: calc(100vw - 12px);
  padding: 10px 0 0;
}

#dialog-collections-div {
  padding: 5px;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 10px 0;
}

button {
  min-height: 36px;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
  background: #eef0ff;
  border: 1px solid #7799bb;
  border-radius: 6px;
}

button:disabled {
  cursor: default;
  opacity: 0.45;
}

.button:focus-visible,
button:focus-visible {
  outline: 3px solid #254bc4;
  outline-offset: 2px;
}

#dialog-collections svg {
  max-width: 100%;
  height: auto;
}

#help-dialog {
  max-width: min(440px, calc(100vw - 48px));
  line-height: 1.7;
  text-align: left;
}
