@charset "UTF-8";
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

.full-space {
  min-width: 100vw;
  min-height: 100vh;
}

.game-name {
  font-size: 48px;
  font-weight: bold;
}

.centered-flex-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn {
  padding: 10px 28px;
  box-sizing: border-box;
  border: 1px solid black;
  color: black;
  font-size: 18px;
  line-height: 24px;
  text-decoration: none;
  text-align: center;
  transition: 0.1s;
  cursor: pointer;
}
.btn:not([disabled]):hover {
  color: white;
  font-weight: bold;
  background-color: black;
}
.btn.link-prev {
  padding-left: 8px;
}
.btn.link-next {
  padding-right: 8px;
}

.link-prev:before {
  content: "←";
  margin-right: 6px;
}

.link-next:after {
  content: "→";
  margin-left: 6px;
}

.input {
  position: relative;
  height: 50px;
  border: 1px solid black;
  background-color: transparent;
  transition: 0.2s;
}
.input input {
  color: black;
  background-color: transparent;
  border: none;
}
.input input:focus {
  outline: none;
}
.input input::-moz-placeholder {
  color: transparent;
}
.input input::placeholder {
  color: transparent;
}
.input input.with-placeholder:focus::-moz-placeholder {
  color: black;
}
.input input.with-placeholder:focus::placeholder {
  color: black;
}
.input:focus-within {
  border-color: #015e2e;
}
.input input,
.input label {
  position: absolute;
  display: block;
  left: 0;
  height: 50%;
  font-size: 15px;
}
.input input {
  margin-left: 13px;
  top: 22px;
}
.input label {
  position: absolute;
  display: block;
  left: 0;
  pointer-events: none;
  font-size: 16px;
  margin-left: 15px;
  transition: 0.1s;
}
.input input:-moz-placeholder-shown ~ label {
  line-height: 50px;
}
.input input:placeholder-shown ~ label {
  line-height: 50px;
}
.input input:not(:-moz-placeholder-shown) ~ label {
  line-height: 30px;
  font-size: 12px;
}
.input input:not(:placeholder-shown) ~ label,
.input input:focus ~ label {
  line-height: 30px;
  font-size: 12px;
}

.spinner {
  display: inline-block;
  width: 80px;
  height: 80px;
}
.spinner:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #fff;
  border-color: black transparent black transparent;
  -webkit-animation: spinner-animation 1.2s linear infinite;
          animation: spinner-animation 1.2s linear infinite;
}
@-webkit-keyframes spinner-animation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes spinner-animation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.go-home {
  position: absolute;
  top: 20px;
  left: 20px;
}

.main-menu {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  max-width: 400px;
  width: 100%;
  padding: 24px;
}
.main-menu > * {
  width: 100%;
}
.main-menu > *:not(:first-child) {
  margin-top: 24px;
}

.error-message {
  color: darkred;
}

.login-page .form {
  padding: 24px;
  margin: 32px 0;
  max-width: 400px;
  width: 100%;
}
.login-page .form form {
  width: 100%;
}
.login-page .form form > * {
  width: 100%;
}
.login-page .form form > *:not(:first-child) {
  margin-top: 16px;
}

.modules-block {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.module-list-container {
  max-width: 300px;
  min-height: 300px;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}
.module-list-container .waiter {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
}

.module-list-item:nth-child(odd) {
  border-left: 4px solid #285290;
  background-color: rgba(113, 128, 150, 0.0274509804);
}
.module-list-item:nth-child(even) {
  border-left: 4px solid #593474;
}
.module-list-item .header {
  display: flex;
  justify-content: space-between;
  height: 30px;
}
.module-list-item .header h3 {
  line-height: 30px;
  font-size: 22px;
  padding: 2px;
  -webkit-margin-before: 0;
          margin-block-start: 0;
  -webkit-margin-after: 0;
          margin-block-end: 0;
  -webkit-margin-start: 0;
          margin-inline-start: 0;
  -webkit-margin-end: 0;
          margin-inline-end: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 170px;
}
.module-list-item .header .buttons {
  text-align: center;
}
.module-list-item .header .btn {
  display: inline-block;
  margin: 0;
  padding: 2px;
  line-height: 18px;
  font-size: 12px;
  box-sizing: border-box;
  height: 30px;
}
.module-list-item .header .btn-more {
  width: 30px;
}
.module-list-item .content {
  padding: 4px;
  font-size: 14px;
}

.module-editor {
  max-width: 700px;
  width: 100%;
  padding: 20px;
  margin: 20px;
  border-left: 4px solid #285290;
}
.module-editor .option-container {
  margin-bottom: 16px;
  border: 1px solid #cbd5e0;
}
.module-editor .option-container > * {
  padding: 4px;
}
.module-editor .option-container h4, .module-editor .option-container .description {
  font-size: 14px;
  -webkit-margin-before: 0em;
          margin-block-start: 0em;
  -webkit-margin-after: 0em;
          margin-block-end: 0em;
  -webkit-margin-start: 0px;
          margin-inline-start: 0px;
  -webkit-margin-end: 0px;
          margin-inline-end: 0px;
}
.module-editor .option-container h4 {
  background-color: #cbd5e0;
}
.module-editor .option-container .description {
  font-size: 12px;
  color: #4a5568;
}
.module-editor .action-button-list {
  display: flex;
  justify-content: end;
  margin-top: 64px;
}
.module-editor .action-button-list > * {
  margin: 0 8px;
}

.space-selector, .space-selector .cell {
  border: 1px solid black;
  border-collapse: collapse;
}
.space-selector .row, .space-selector .cell {
  line-height: 12px;
  font-size: 1px;
  border-spacing: 0;
  -webkit-border-horizontal-spacing: 0;
  -webkit-border-vertical-spacing: 0;
}
.space-selector .row {
  height: 12px;
  line-height: 12px;
}
.space-selector .cell {
  width: 12px;
  height: 12px;
}
.space-selector .cell.active {
  background-color: #593474;
}
.space-selector .cell.center {
  background-color: #8e7928;
}

.multi-space-selector-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.multi-space-selector-list .space-controller-item {
  position: relative;
  padding: 15px;
}
.multi-space-selector-list .space-controller-item .remove {
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
  border: 1px solid black;
  border-radius: 6px;
  line-height: 11px;
  width: 12px;
  height: 12px;
  transition: 0.1s;
}
.multi-space-selector-list .space-controller-item .remove:hover {
  border-bottom-left-radius: 0;
}
.multi-space-selector-list .space-controller-item.add {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 120px;
  cursor: pointer;
}
.multi-space-selector-list .space-controller-item.add span {
  width: 54px;
  height: 54px;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid black;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}

.warship-editor {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
}
.warship-editor .module-list-container {
  width: 100%;
  max-width: 500px;
}

.warship-list {
  border: 1px solid #285290;
  border-left-width: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 40%;
  height: 100%;
}
.warship-list .warship {
  box-sizing: border-box;
  margin: 50px 0;
}
.warship-list .warship table {
  border-collapse: collapse;
}
.warship-list .warship.editing {
  padding: 4px;
  border: 4px solid rgba(255, 165, 0, 0.51);
}
.warship-list .warship .section {
  border: 1px solid black;
  width: 32px;
  height: 32px;
}
.warship-list .warship .section > .btn {
  background-color: transparent;
  width: 100%;
  height: 100%;
  padding: 0;
}
.warship-list .warship .section > .btn:hover {
  background-color: black;
}
.warship-list .warship .section.reserved {
  position: relative;
}
.warship-list .warship .section.reserved .module-description-popup {
  display: none;
}
.warship-list .warship .section.reserved .module-description-popup * {
  -webkit-margin-before: 0em;
          margin-block-start: 0em;
  -webkit-margin-after: 0em;
          margin-block-end: 0em;
  -webkit-margin-start: 0px;
          margin-inline-start: 0px;
  -webkit-margin-end: 0px;
          margin-inline-end: 0px;
}
.warship-list .warship .section.reserved .module-description-popup .title {
  height: 24px;
  line-height: 24px;
  display: flex;
  justify-content: space-between;
}
.warship-list .warship .section.reserved .module-description-popup .title h5 {
  font-size: 16px;
  padding-left: 8px;
  text-overflow: ellipsis;
  overflow: hidden;
}
.warship-list .warship .section.reserved .module-description-popup .title .btn {
  font-size: 16px;
  height: 100%;
  padding: 0 8px;
}
.warship-list .warship .section.reserved .module-description-popup p {
  padding: 8px;
}
.warship-list .warship .section.reserved:hover .module-description-popup {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  width: 500px;
  background-color: rgba(255, 255, 255, 0.6666666667);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border: 1px solid black;
}

.button-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0;
}
.button-spinner:after {
  width: 16px;
  height: 16px;
  border-width: 2px;
  margin: 0;
}

.battle-fields {
  display: flex;
  justify-content: center;
}
.battle-fields > *:not(:last-child) {
  margin-right: 64px;
}

.selected-warship-modules td {
  width: 50px;
  height: 50px;
  border: 1px solid black;
  text-align: center;
}
.selected-warship-modules td[colspan="2"] {
  width: 102px;
}
.selected-warship-modules td[colspan="3"] {
  width: 154px;
}
.selected-warship-modules td[colspan="4"] {
  width: 204px;
}
.selected-warship-modules td.module:not(.active):hover {
  cursor: pointer;
  border-color: #b89a19;
  border-width: 2px;
}
.selected-warship-modules td.module.active {
  pointer-events: none;
  background-color: #0ab41a;
  color: white;
  font-weight: bold;
}
