:root {
  --tiles-size: 5vmax;
  --tiles-symbol-size: calc(var(--tiles-size)*0.7);
  --tile-value-size: calc(var(--tiles-size)*0.3);
  -webkit-user-select: none;
  /* Safari */
  -ms-user-select: none;
  /* IE 10 and IE 11 */
  user-select: none;
  /* Standard syntax */
}

body {
  overscroll-behavior-y: contain;
}

#header {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  border-bottom: 0px solid darkgray;
  margin-bottom: 2rem;
  height: 4rem;
}

#left-menu {
  flex-grow: 1;
}

#center-menu {
  display: flex;
  justify-content: center;
  flex-grow: 2;
  text-align: center;
  position: absolute;
}

#right-menu {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: flex-end;
}

.menu-icons {
  padding: 4px;
  cursor: pointer;
}

#title {
  text-align: center;
  /* flex-grow: 3; */
  font-size: xx-large;
  font-weight: bolder;
  font-family: serif;
  align-items: center;
  padding-left: 10px;
}

#title:after {
  content: "beta";
  position: fixed;
  width: 80px;
  height: 25px;
  background: #4a60ee;
  top: 7px;
  left: -20px;
  text-align: center;
  font-size: 13px;
  font-family: sans-serif;
  /* text-transform: uppercase; */
  font-weight: bold;
  color: #fff;
  line-height: 27px;
  transform: rotate(-45deg);
}

h1 {
  text-align: center;
}


#game-board {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.row {
  display: flex;
  position: relative;
  height: var(--tiles-size);
  width: 100%;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  margin-top: 1rem;

}

.letter-row {
  display: flex;
  /* border-bottom: 2px solid rgb(181, 181, 181);
  border-left: 1px solid rgb(181, 181, 181);
  border-right: 1px solid rgb(181, 181, 181); */
  height: var(--tiles-size);
  width: 80%;
  flex-direction: row;
  box-shadow:  0 4px 10px -1px rgba(121, 121, 121, 0.2);
}

#rack {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  min-height: calc(var(--tiles-size)*1.2);
  height: auto;
  margin: auto;
  margin-top: 4rem;
  width: 90%;

  /* box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 1px rgba(0, 0, 0, 0.25);
    border-left: 1px solid rgb(181, 181, 181);
    border-right: 1px solid rgb(181, 181, 181);
    background-color: rgb(240,240,240); */
  background: rgb(245, 245, 245);
  border-radius: 6px;
  box-shadow: inset 0 10px 10px -10px rgba(75, 75, 75, 0.3),
    inset 0 -6px 0 0 rgba(255, 255, 255, 0.4),
     0 2px 6px rgba(0, 0, 0, 0.2);
  flex-wrap: wrap;
}

/*.row-score {
    font-size: var(--tiles-symbol-size);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid gray;
    border-radius: 3px;
    margin: 2px;
    height: var(--tiles-size);
    width: var(--tiles-size);
  }
  .letter-box {
    border: 2px solid gray;
    border-radius: 3px;
    margin: 1px;
    font-weight: 700;
    height: var(--tiles-size);
    width: var(--tiles-size);
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
  }
  */

.plus50 {
  /* position: absolute;
    top: 0%;
    right: 5%;
    font-size: calc(var(--tiles-symbol-size)*0.3);
    font-weight: 700; */
  height: calc(var(--tiles-size)*0.5);
  width: calc(var(--tiles-size)*0.5);
  margin-right: 0.5em;
  font-size: calc(var(--tiles-symbol-size)*0.5);
  color: #349dff;
  font-weight: bolder;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.locked,
.unlocked {
  height: calc(var(--tiles-size)*0.5);
  width: calc(var(--tiles-size)*0.5);
  margin-right: 0.5em;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}

.locked {
  background-image: url("../assets/locked.png");
}

.unlocked {
  background-image: url("../assets/unlocked.png");
}

.letter {
  position: relative;
  border: 2px solid gray;
  border-radius: 3px;
  margin: 1px;
  background-image: linear-gradient(125deg, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.05));
  background-color: rgb(250, 235, 215);
  font-weight: 700;
  height: var(--tiles-size);
  width: var(--tiles-size);
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  align-self: flex-end;
  cursor: grab;
  /* text-shadow: 1px 2px 2px #f7e0bb, 0 0 0 rgba(0, 0, 0, 0.7), 1px 2px 1px rgba(255, 255, 255, 0.5)*/
}

.letter:active {
  cursor: grabbing;
}


@keyframes jump-shaking {
  0% {
    transform: translateX(0)
  }

  25% {
    transform: translateY(-9px)
  }

  35% {
    transform: translateY(-9px) rotate(17deg)
  }

  55% {
    transform: translateY(-9px) rotate(-17deg)
  }

  65% {
    transform: translateY(-9px) rotate(17deg)
  }

  75% {
    transform: translateY(-9px) rotate(-17deg)
  }

  100% {
    transform: translateY(0) rotate(0)
  }
}

@keyframes shake {
  0% {
    transform: translate(3px, 0);
  }

  50% {
    transform: translate(-3px, 0);
  }

  100% {
    transform: translate(0, 0);
  }
}

.symbol {
  font-family: 'Times New Roman', Times, serif;
  position: relative;
  font-size: var(--tiles-symbol-size);
}

.value {
  font-size: var(--tile-value-size);
  position: absolute;
  bottom: 1%;
  right: 1%;
  font-family: 'Times New Roman', Times, serif;
}

.sortable-ghost {
  opacity: 0%;
}

.sortable-chosen {
  opacity: 20%
}

.menu {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
}

.social-share {
      display: flex !important;
      position: fixed;
      width: 100%;
      bottom: 0;
      justify-content: center;
}
.progress-wrap {

  font-size: 1rem;
  width: 60%;
  margin: auto;
  margin-bottom: 4rem;
  padding: 4px;
  background: rgb(250, 250, 250);
  border-radius: 6px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.25), 0 1px rgba(255, 255, 255, 0.08);
  display: table;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif
}


.progress-bar {
  justify-content: right;
  text-align: right;
  display: inline-block;
  align-items: center;
  width: 0;
  height: 1.2rem;
  border-radius: 4px;
  transition: 0.4s linear;
  transition-property: width, background-color;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
  margin-bottom: 2px;
}

.progress-bar-title {
  /* min-width: fit-content;
  width: 10%; */
  display: table-cell;
  padding-right: 5px;
}

.progress-bar-wrap {
  display: table-row;
}

div.progress-bar[data-segment="0"] {
  background-color: #ff6b4a;
}

div.progress-bar[data-segment="1"] {
  background-color: #f18233;
}

div.progress-bar[data-segment="2"] {
  background-color: #f2b01e;
}

div.progress-bar[data-segment="3"] {
  background-color: #8be101;
}

div.progress-bar[data-segment="4"] {
  background-color: #00e0d8;
}

div.progress-bar[data-segment="5"] {
  background-color: #349dff;
}

@media screen and (max-width: 600px) {
  #left-menu {
    visibility: hidden;
  }

  #center-menu {
    justify-content: left;
    width: 85%;
  }
}