:root {
  --primary: #2D445C;
  --lPrimary: #405A75;
  --llPrimary: #5E758D;
  --dPrimary: #1D364F;
  --ddPrimary: #0F243B;
  --lText: #ebedf0;
  --sad: #FD5256;
  --happy: #FFEA53;
}

@font-face {
    font-family: 'kingthings_petrockregular';
    src: url('assets/fonts/kingthings_petrock/kingthings_petrock-webfont.woff2') format('woff2'),
         url('assets/fonts/kingthings_petrock/kingthings_petrock-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@media only screen and (max-width: 650px) {
  .logo {
    width:100%;
  }

  input {
    width: -webkit-calc(100% - 20px);
    width:    -moz-calc(100% - 20px);
    width:         calc(100% - 20px);
  }

  .contentBoxVertical {

  }

  .knooghtFrame {
    width: auto !important;
    max-width: 100% !important;
    height: 100% !important;
  }
}

@media only screen and (min-width: 650px) {
  .app {
    /*width: 640px;*/
    width: 100%;
    height: 100%;
    text-align: center;
    display: inline-block;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .logo {
    height:70%;
    width:auto;
  }

  .contentBoxVertical:not(.mapView) {
    justify-content: space-evenly !important;
    width: 670px !important;
    margin: 0 auto;
  }

  .startScreen:not(.mapView) {
    flex-direction: row !important;
    margin: 0px !important;
    width: 100% !important;
  }

  .knooghtFrame {
    width: 650px !important;
    height: auto !important;
  }
}

body {
  background-color: var(--primary);
  color: var(--lText);
  font-family: 'kingthings_petrockregular';
  letter-spacing: 2px;
}

/* scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ddPrimary);
}

input[type="color"] {
  border-radius: 5px;
  padding: 0;
  border: none !important;
}

input[type="color"]:focus {
  border: none !important;
}

input[type="color"]::-moz-color-swatch {
  border: none !important;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 0;
  border:none !important;
}

input[type="color"]::-webkit-color-swatch {
  border: none !important;
}

::-webkit-scrollbar-thumb {
  background: var(--lPrimary);
  border-radius:20px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--llPrimary);
}

::-webkit-scrollbar-corner {
  background: none;
}

label {
  padding:0px;
  border: none;
  border-radius:15px;
  margin:0px;
}

button {
  padding:10px;
  background-color: var(--lPrimary);
  border: none;
  cursor:pointer;
  border-radius:15px;
  border-bottom: solid 10px var(--llPrimary);
  margin:5px;
  font-family: 'kingthings_petrockregular';
  font-size: 40px;
  color: white;
  letter-spacing: 2px;
}

button:active, .current {
  margin-top:10px;
  margin-bottom:5px;
  border-bottom: solid 5px var(--ddPrimary) !important;
  background-color: var(--dPrimary);
  transition: background-color .2s, border-bottom .2s, margin-bottom .2s, margin-top .2s;
  transition-timing-function: ease;
}

.squareButtons:active {
  margin-top: -webkit-calc(1rem + 2.5px);
  margin-top:    -moz-calc(1rem + 2.5px);
  margin-top:         calc(1rem + 2.5px);
  margin-bottom: -webkit-calc(1rem - 2.5px);
  margin-bottom:    -moz-calc(1rem - 2.5px);
  margin-bottom:         calc(1rem - 2.5px);
  border-bottom: solid 5px var(--ddPrimary) !important;
  background-color: var(--dPrimary);
  transition: background-color .2s, border-bottom .2s, margin-bottom .2s, margin-top .2s;
  transition-timing-function: ease;
}

.buttonNextToSquared:active {
  margin-top: 5px !important;
  /*margin-bottom:5px !important;*/
  border-bottom: solid 5px var(--ddPrimary) !important;
  background-color: var(--dPrimary);
  transition: background-color .2s, border-bottom .2s, margin-bottom .2s, margin-top .2s;
  transition-timing-function: ease;
}

button:disabled,
button[disabled] {
  filter: saturate(0.5);
  margin-top:0px;
  border-bottom: solid 10px var(--llPrimary);
  cursor:default;
}

.missionBox {
  background-color: var(--ddPrimary);
  border-radius: 10px;
  color: white;
  padding: 3px;
}

h1 {
  font-family: 'kingthings_petrockregular';
  font-weight:normal;
  font-style:normal;
  font-size: 3rem;
  text-align:center;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
}

h3 {
  font-size: 2.3rem;
  text-align:center;
}

h4 {
  font-size: 2.1rem;
  text-align:center;
}

p {
  font-size: 1.9rem;
  background-color: var(--lPrimary);
  text-align: center;
  padding:20px;
}

.playerListBox {
  border-radius:7px;
  border-top: 13px solid var(--ddPrimary);
  border-left: 3px solid var(--ddPrimary);
  border-right: 3px solid var(--ddPrimary);
  background-color: var(--dPrimary);
}

.playerListSlot {
  margin: 0px;
  padding:5px;
}

input {
  /*border: none;*/
    border-top: solid var(--ddPrimary) 8px;
    border-bottom: solid var(--dPrimary) 4px;
    border-left: 3px solid var(--ddPrimary);
    border-right: 3px solid var(--ddPrimary);
    background-color: var(--dPrimary);
    padding: 5px;
    font-size: 30px;
    color: var(--lText);
    border-radius: 5px;
    font-family: 'kingthings_petrockregular';
}

input:focus {
  border-bottom: solid var(--lPrimary) 4px;
}

*:focus {
  outline: none;
}

.contentBoxVertical {
  overflow: auto;
  display:flex;
  justify-content: space-between;
  flex-direction:column;
  align-items:center;
  height:100%;
  width:100%;
  padding:10px;
  box-sizing: border-box;
}

.contentBoxHorizontal {
  display: flex;
  justify-content: center;
  flex-direction:row;
  align-items:center;
}

.contentBoxHorizontalScroll {
  display:flex;
  overflow-x: auto;
  flex-direction: row;
  align-items: center;
  overflow-y: hidden;
}

.itemFrame {
  padding: 5px;
  background-origin: content-box;
}

.squareButtons {
  height: 100%;
  margin: 1rem;
  /*margin-bottom: 5px;*/
  aspect-ratio: 1 / 1;
  background-repeat: no-repeat;
  min-height: 65px;
  background-position: center;
  background-size: contain;
}

.squared {
  height: 100%;
  margin: 1rem;
  aspect-ratio: 1 / 1;
  background-repeat: no-repeat;
  min-height: 65px;
  background-position: center;
  background-size: contain;
}

.chooseBox {
  display:flex;
}

.chooseBox > button {
  min-width: 33%;
}

.knooghtFrame {
  display: block !important;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1 !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-color: white !important;
  align-self: center;
}

.mapFrame {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-color: var(--primary) !important;
}

.mergeText {
  width: 100%;
  display: block;
  text-align: center;
}

.mergeText > :is(h1, h2) {
  display: inline;
}

.dialog {
  position: absolute;
  top:0px;
  left:0px;
  right:0px;
  bottom:0px;
  background-color:var(--primary);
  z-index: 100;
}

.dialog .knooghtFrame{
  height:100%;
}

#placeable {
  outline: 10px white dotted;
}

#placeable:hover {
  cursor: grab;
}

.elementShadow {
  /*transform: skew(45deg) scale(1, -1) scaleY(0.5);
  -webkit-transform: skew(45deg) scale(1, -1) scaleY(0.5);
  -moz-transform: skew(45deg) scale(1, -1) scaleY(0.5);*/

  transform: skew(45deg) scaleY(0.5);
  -webkit-transform: skew(45deg) scaleY(0.5);
  -moz-transform: skew(45deg) scaleY(0.5);
}

.highlightedElement {
  filter: drop-shadow(0px 0px 4px white);
  -webkit-filter: drop-shadow(0px 0px 4px white);
  -moz-filter: drop-shadow(0px 0px 4px white);
}

.shadowGroup{
  /*-webkit-filter: blur(10px);
  filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);*/
  /*-webkit-filter: blur(2px);
  opacity: 50%;*/
  filter: blur(2px) brightness(0%) opacity(20%);
  -webkit-filter: blur(2px) brightness(0%) opacity(20%);
  -moz-filter: blur(2px) brightness(0%) opacity(20%);

  /*filter: brightness(0);
  -webkit-filter: brightness(0);
  -moz-filter: brightness(0);*/
}

.diceEffectStyle {
  background-color: var(--ddPrimary);
  padding: 5px;
  border-radius: 50px;
}

#gameCode {
  background-color: var(--ddPrimary);
  color: white;
  border-radius: 20px;
  padding: 5px;
  margin: 10px;
}

.mission-item {
  display: flex;
  align-items: center;
  text-align: center;
  height:100%;
}

.current-point {
  height: 100%;
  border: 5px solid var(--llPrimary);
}

.missionTile {
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  aspect-ratio: 1/1;
  background-position: center;
}

.point-text {
  font-size: 24px;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  vertical-align: middle;
  margin: 0 5px;
}
.separator {
  font-size: 20px;
  margin: 0 5px;
}

.warningDialogBox {

}
