﻿@import url('https://fonts.googleapis.com/css?family=Caveat&display=swap');
@import url('https://fonts.googleapis.com/css?family=Istok+Web&display=swap');

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  overflow-x: hidden;
  height: 100%;
  background-color: #ffffff;
}

body {
  position: relative;
}

#container {
  width: max-content;
  position: relative;
  font-family: 'Caveat', cursive;
  margin: auto;
}

#startScreen {
  display: block;
  margin: auto;
  width: 320px;
  height: 480px;
  position: relative;
}

#startScreen #startDesc {
  position: absolute;
  left: 50px;
  right: 50px;
  top: 100px;
  text-align: center;
  font-size: 20px;
}

#startScreen #startBtn {
  position: absolute;
  right: 0;
  left: 0;
  top: 200px;
  margin: auto;
  background: none;
  border: none;
  outline: none;
  font-family: 'Caveat', cursive;
  color: #0f589a;
  font-size: 28px;
  border-bottom: 1px solid #0f589a69;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#startScreen #startBtn:active {
  border: none;
  color: #000000;
}

#buttons {
  display: none;
  text-align: right;
  margin: 30px 0 10px 0;
  position: relative;
}

#buttons #score {
  position: absolute;
  color: #0f589a;
  font-weight: bold;
  left: 7px;
  top: 7px;
}

#buttons .turnScore {
  position: absolute;
  color: #0f589a;
  top: -5px;
}

#buttons button {
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  margin-left: 5px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  outline: none;
  opacity: 0.9;
}

#buttons #soundBtn {
  background-image: url('../images/mute.svg');
}

#buttons #soundBtn.off {
  background-image: url('../images/unmute.svg');
}

#buttons #restartBtn {
  background-image: url('../images/restart.svg');
}

#buttons #undoBtn {
  background-image: url('../images/undo.svg');
}

#buttons #hintBtn {
  background-image: url('../images/question.svg');
}

#content {
  display: none;
  text-align: center;
  -webkit-box-shadow: 0px 0px 3px 3px rgba(15,88,154,0.1);
  -moz-box-shadow: 0px 0px 3px 3px rgba(15,88,154,0.1);
  box-shadow: 0px 0px 3px 3px rgba(15,88,154,0.1);
}

.board {
  border-collapse: collapse;
  font-size: 20px;
  color: #0f589a;
}

.cell {
  border: 1px solid #aac6e0;
  cursor: pointer;
  width: 30px;
  height: 30px;
  text-align: center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.cell:active {
  background-color: #aac6e0;
  color: #ffffff;
}

.cell.mark {
  background-color: #e8f4ff;
}

.cell.current {
  font-weight: bold;
  color: rgba(15,88,154,0);
  background-image: url('../images/horse.svg');
}

.popup {
  position: absolute;
  width: 200px;
  height: 55px;
  background-color: #ffffff;
  border: 1px solid #0f589a69;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  text-align: center;
  line-height: 55px;
  color: #0f589a;
  font-weight: bold;
  -webkit-box-shadow: 0px 0px 3px 3px rgba(15,88,154,0.1);
  -moz-box-shadow: 0px 0px 3px 3px rgba(15,88,154,0.1);
  box-shadow: 0px 0px 3px 3px rgba(15,88,154,0.1);
}

#result {
  display: none;
}

#settings {
  display: none;
}

#restartConfirm {
  display: none;
}

#restartConfirm button {
  background: none;
  cursor: pointer;
  color: #0f589a;
  font-size: 20px;
  border: none;
  font-family: 'Caveat', cursive;
  border-bottom: 1px solid #0f589a69;
  margin: 0 5px;
}

#restartConfirm #restartAcceptBtn {
  font-weight: bold;
}

#modal {
  display: none;
  position: absolute;
  background-color: RGBA(255, 255, 255, .7);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}



/* COLOR THEME STUFF */

#container.color-theme {
  font-family: 'Istok Web', sans-serif;
}

.color-theme .board {
  font-size: 14px;
  color: #000000;
}

.color-theme .cell {
  text-shadow: 1px 1px 0px #FFFFFF;
}

.color-theme .cell.current {
  background-color: #ffffff !important;
}

.color-theme .color0 {
  background-color: #f4eeba;
}

.color-theme .color1 {
  background-color: #f2cbaa;
}

.color-theme .color2 {
  background-color: #eeb5aa;
}

.color-theme .color3 {
  background-color: #edb8c8;
}

.color-theme .color4 {
  background-color: #d1afd0;
}

.color-theme .color5 {
  background-color: #aaa5cd;
}

.color-theme .color6 {
  background-color: #a6c1df;
}

.color-theme .color7 {
  background-color: #a6d5e5;
}

.color-theme .color8 {
  background-color: #abd4c2;
}

.color-theme .color9 {
  background-color: #cadeb9;
}