:root {
    --border: #e1e6ef;

    --blue: #1f4fd8;
    --blue-semi-soft: #c8d8ff;
    --blue-soft: #f0f2ff;
    --blue-super-soft: #f6f8ff;
    --blue-super-super-soft: #f9fbff;
    --neutral: #dddddd;
    --darker: #cccccc;
    --shadow: #808080;

    --cbsize: 640;

}

@font-face {
  font-family: "Roboto Condensed";
  src: url(../fonts/RobotoCondensed-Regular.ttf) format('truetype');
}

body {
  font-weight: normal;
  font-family: Roboto Condensed;
}

h1.seo-title {
  color: var(--blue);
  font-size: larger;
}

h2 {
    color: var(--blue);
    text-align: center;
    margin: 0 0 24px;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-shadow:
    2px 2px 0 rgba(0,0,0,1),
    3px 3px 0 rgba(0,0,0,0.2);
}

h2::before,
h2::after {
  content: "♟";
  font-size: 18px;
  opacity: 0.6;
  margin: 0 10px;
}

h3 {
    text-align: center;
    font-size: x-large;
}

h4 {
  text-align: center;
  font-size: large;
  margin: 0px 0px 8px 0px;
}

h5 {
  color: var(--blue);
  font-size: medium;
}

canvas.chessBoard {
  width: calc(var(--cbsize) * 1px);
  height: calc(var(--cbsize) * 1px);
}

header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  background-color: #f0f0ff;
}

header strong {
    font-size: x-large;
    color: var(--blue, blue);
}

.header-inner{
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

b.email {
  margin-left: auto;
}

img.logout {
    cursor: pointer;
}

div.main-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  background-color: var(--blue-super-super-soft);
}

div.main-content {
  padding-left: 50px;
  padding-right: 50px;
  background-color: white;
}

div.modal {
    position: fixed;
    display: none;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 200;
    background-color: #808080b0;
    place-items: center;
}

div.dialog {
    display: none;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid var(--blue, blue);
    background-color: var(--blue-soft, white);
    z-index: 300;
    box-shadow: 0 20px 60px rgba(0,0,0,.88);
}

div.buttonBox {
    display: flex;
    justify-content: flex-end;
}

div.buttonBoxOne {
    display: flex;
    justify-content: center;
}

div.container {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    gap: 50px;
}

div.generalInfo {
  min-width: 240px;
  max-width: 240px;
  padding: 16px;
  border-radius: 12px;
  background: var(--blue-soft);
  box-shadow: 6px 6px 12px var(--shadow);
}

div.bottomToolbar {
  width: calc(var(--cbsize) * 1px);
}

div.alignRight {
  background-color: var(--blue-soft);
  margin-left: auto;
  min-width: 170px;
  height: 70px;
  border-radius: 6px;
  box-shadow: 6px 6px 12px var(--shadow);
}

div.notationRow {
  display: grid;
  grid-template-columns: 80px auto;
  align-items: center;
  margin-bottom: 6px;
}

div.piecesContainer {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, auto);
}

div.captured {
  display: grid;
  min-height: 36px;
  margin: 10px 0;
  width: 100%;
  grid-template-columns: repeat(15, 1fr);
  grid-template-rows: repeat(1, auto);
  border-radius: 8px;
  background: var(--blue-super-soft);
  border: 1px dashed rgba(0,0,0,0.08);
}

div.movesDisplay {
  background-color: var(--blue-semi-soft);
  border: black 1px solid;
  border-radius: 6px;
  min-height: 500px;
  width: 120px;
  overflow-y: auto;
  padding-right: 6px;
  box-shadow: 3px 3px 3px 3px var(--shadow);
}

div.hidden {
  display: none;
}

div.longText {
  min-width: 80%;
  max-width: 80%;
  min-height: 80%;
  max-height: 80%;
  overflow-y: auto;
  padding-left: 30px;
  padding-right: 30px;
}

div.horizontal {
  display: flex;
  flex-direction: row;
  gap: 6px;
}

div.engineLeft {
  text-align: left;
}

div.engineRight {
  text-align: right;
  align-self: flex-end;
}

div.explain {
  font-size: large;
  background-color: var(--blue-semi-soft);
  border: black 1px solid;
  border-radius: 6px;
  box-shadow: 3px 3px 3px 3px var(--shadow);
  padding: 9px;
}

div.explainMove {
  min-width: 300px;
  max-width: 300px;
  min-height: 500px;
  font-size: large;
  border: black 1px solid;
  border-radius: 6px;
  box-shadow: 3px 3px 3px 3px var(--shadow);
  padding: 9px;
}

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

div.avatarCircle {
  width: 64px;
  height: 64px;
  border: 1px solid var(--darker);
  border-radius: 50%;
  overflow: hidden;
  box-sizing: border-box;
}

div.intro {
  max-width: 200px;
  line-height: 1.5;
}

div.socialButton {
  min-width: 80px !important;
}

.promotionGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
}

.endGameGrid {
  width: 100%;
  display: grid;
  place-items: center;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(1, 1fr);
  gap: 10px;
}

button {
    min-height: 30px;
    min-width: 100px;
    font-size: large;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid var(--blue, blue);
    background-color: white;
    cursor: pointer;
}

button:hover {
    background-color: var(--blue);
    color: var(--blue-soft);
    border: 1px solid white;
}

button.eye {
    max-height: 30px;
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

button.eye img {
    padding-right: 0px;
}

button.panel {
    display: flex;
    min-width: auto;
    justify-content: center;
    align-items: center;
    padding-right: 0px;
    padding-left: 12px;
    border: 1px solid var(--neutral);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

button.hidden {
  display: none;
}

button.panel:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #fff;
}

button.panel img {
    display: block;
}

button.panel:hover {
    background-color: var(--neutral);
}

button.pulse {
  background: var(--blue);
  color: white;
  border: 1px solid transparent;
  padding: 12px 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
  animation: pulseShadow 1.8s infinite;
}

button.pulse:hover {
  animation: none;
  background: white;
  color: var(--blue);
  border: 1px solid var(--blue);
}

button.pulse2 {
  transition: transform 0.2s ease;
  animation: pulseShadow 1.8s infinite;
}

button.pulse2:hover {
  animation: none;
}

button.social {
  border: none;
  min-width: 46px !important;
  max-width: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
}

button.social:hover {
  background-color: transparent;
}

@keyframes pulseShadow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

img {
    padding-right: 12px;
}

input {
    min-width: 400px;
    height: 30px;
    background-color: white;
    box-sizing: border-box;
    border: 1px solid #c9cdd8;
    border-radius: 9px;
    box-shadow: 0 3px 3px rgba(0,0,0,.38);
  }

input[type="file"] {
  height: 22px;
}

input[type="radio"]{
  min-width: auto;
  width: auto;
  height: auto;
}

select {
  background-color: white;
  box-sizing: border-box;
  border: 1px solid #c9cdd8;
  border-radius: 9px;
  box-shadow: 0 3px 3px rgba(0,0,0,.38);
}

select[size] option {
  padding: 6px 6px;
}

select[size] option:checked {
  background: #2454e8;
  color: white;
}

label.form {
    font-size: large;
    font-weight: 700;
    margin-bottom: 6px;
    margin-right: 6px;
    vertical-align: top;
}

label.radio {
    font-size: large;
    margin-bottom:9px; 
    display:block;
}

.form-row {
  margin-bottom: 20px;
}

select {
    min-height: 30px;
    font-size: larger;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px white inset !important;
  -webkit-text-fill-color: #000 !important;
  caret-color: #000 !important;
  transition: background-color 9999s ease-in-out 0s;
}

canvas {
touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;}

.input-wrapper {
    position: relative;
    display: inline-block;
}

.input-wrapper input {
    padding-left: 32px;
}

.input-wrapper .icon {
    position: absolute;
    left: 4px;
    width: 24px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

input.notation {
  min-width: 3ch;
  max-width: 3ch;
}

p.error {
    color: #c00000;
    height: 24px;
}

p.display {
    width: 200px;
    height: 560px;
    overflow-y: auto;
}

select {
    min-width: 150px;
}

p.centered {
    width: 100%;
    text-align: center;
}

p.evaluationScore {
  margin: 0px 0px 0px 0px;
  width: 100%;
  font-size: xx-large;
  text-align: center;
}

.longText > p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.longText > h3 {
  margin: 0 0 3px 0;
}

.menu-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  border-bottom: 1px solid #aaa;
  padding: 0 4px;
  height: 30px;
  font-family: sans-serif;
}

.menu-item {
  position: relative;
}

.menu-item > button {
  height: 28px;
  padding: 0 12px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-item > button:hover {
  background: var(--blue);
  color: var(--blue-soft);
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 140px;
  background: white;
  border: 1px solid #999;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
  z-index: 1000;
  padding-left: 3px;
  padding-right: 3px;
}

.menu-item:hover .submenu {
  display: block;
}

.submenu-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  white-space: nowrap;
  cursor: pointer;
}

.menu-icon {
    display: inline-block;
    width: 24px;
    min-width: 24px;
    text-align: center;
    margin-right: 6px;
}

.submenu-item:hover {
  background: #0a64d8;
  color: white;
}

.img-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.img-checkbox input {
  position: absolute;
  opacity: 0;
}

.box {
  width: 36px;
  height: 36px;
  background-image: url("../assets/off.png");
  background-size: cover;
  background-position: center;
}

.img-checkbox input:checked + .box {
  background-image: url("../assets/on.png");
}

ul.explain {
  margin-top: 3px;
  margin-bottom: 3px; 
  margin-left: 15;
  list-style-position: inside;
}

li.explain {
  margin-bottom: 0px;
}

a.move {
  color: #0000ee;
}
a.move:visited {
  color: #0000ee;
}

span.verybad {
  color: #c00000;
}

span.bad {
  color: #c06060;
}

span.weak {
  color: #d08080;
}

span.average {
  color: #ffff40;
}

span.solid {
  color: #80f080;
}

span.good {
  color: #30c030;
}

span.excellent {
  color: #00c000;
}

span.total {
  display: block;
  line-height: 1.0;
  border-top: black 1px solid;
  margin-top: 3px;
  font-size: larger;
}

b.big {
  font-size: large;
}

img.avatar {
  display: block;
  width: 64px;
  height: 64px;
  border: none;
}

button.start {
  width: 100px;
  height: 100px;
  padding: 3px;
  border-radius: 50%;
  color: var(--blue);
  display: block;
  margin: 6px auto 0 auto;
}

button.start:hover {
  color: white;
}

div.footer {
    margin-top: 28px;
    padding-top: 12px;
    margin-bottom: 12px;

    border-top: 1px solid rgba(0,0,0,0.06);

    text-align: center;

    font-size: 12px;
    letter-spacing: 0.3px;

    color: rgba(0, 0, 0, 0.35);

    user-select: none;
}