div.scrabble-notice {
  background-color: #f5f5c9;
  padding: 10px;
  margin-bottom: 20px;
}

form.scrabble-solver {
  max-width: 600px;
}

.scrabble-solver .input-block {
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.wp-block-column .scrabble-solver .all-fields-containter {
  width: 100%;
}

.scrabble-solver .all-fields-containter > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

@media (max-width: 600px) {
  .scrabble-solver .all-fields-containter {
    width: 100%;
  }
}

.scrabble-solver .scrabble-solver-button {
  position: absolute;
  top: 0;
  right: 0;
  background-color: transparent;
  height: 65px;
  display: flex;
  align-items: center;
  border: none;
}

.scrabble-solver .scrabble-solver-button:hover {
  background-color: transparent;
}

.scrabble-solver .scrabble-solver-button.focus {
  border-radius: 16px 0 0 16px;
  position: absolute;
  top: 0;
  right: 0;
  color: #fff;
  background-color: rgba(72, 45, 112, 0.92);
}

.scrabble-solver .scrabble-solver-button.focus svg {
  fill: #fff;
}

a.scrabble-solver-clear-all {
  display: block;
  position: relative;
  margin: 10px;
  right: 0;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

a.scrabble-solver-clear-all:hover {
  color: red;
}

.scrabble-solver input.big-letters {
  color: #000000;
  border: 1px solid #aaa;
  padding: 9px;
  margin-bottom: 10px;
  width: 100%;
  height: 65px;
  font-size: 1.1em;
  border-radius: 7px;
  border-color: #b9b9b9;
  color: #192b80;
  font-weight: 600;
  padding-left: 50px;
  text-align: left;
}

.scrabble-solver .cross-icon {
  position: absolute;
  top: 14px;
  right: 15px;
  display: none;
  cursor: pointer;
}

.scrabble-solver input.small-letters[type="text"],
.scrabble-solver input[type="number"],
.scrabble-solver select {
  border: 1px solid #aaa;
  padding: 4px 5px 4px 10px;
  margin-bottom: 10px;
  width: 100%;
  height: 56px;
  font-size: 0.9em;
  border-radius: 5px;
  border-color: #b9b9b9;
  color: #141414;
  background-color: transparent;
  appearance: none;
}

.scrabble-solver select:hover {
  cursor: pointer;
}

.scrabble-solver select + svg {
  position: absolute;
  top: calc(50% + 10px);
  right: 20px;
}

.scrabble-solver input[type="text"]:focus,
.scrabble-solver input[type="number"]:focus,
.scrabble-solver select:focus,
.scrabble-solver input:focus .info.sc-tooltip {
  border-color: #bbb;
}

.scrabble-solver input[type="text"],
.scrabble-solver input[type="number"] {
  text-transform: uppercase;
}

/* hide arrow buttons in number input in Firefox */
.scrabble-solver input[type="number"] {
  -moz-appearance: textfield;
}

/* hide arrow buttons in number input in Chrome */
.scrabble-solver input::-webkit-outer-spin-button,
.scrabble-solver input::-webkit-inner-spin-button {
  display: none;
}

.scrabble-solver input::placeholder {
  text-transform: none;
  font-weight: normal;
  color: #000;
}

.scrabble-solver .input-container {
  width: calc(50% - 5px);
  display: inline-block;
  height: 37px;
  padding: 5px 0;
  position: relative;
  margin-top: 25px;
}

.input-container.fullwidth {
  width: 100%;
  margin-bottom: 22px;
}

/* link to clear the field */
.scrabble-solver .input-container a.clear-input {
  float: right;
  position: relative;
  height: 1px;
  right: 0;
  top: -56px;
  text-decoration: none;
  font-weight: bold;
  display: none;
}

/* Tooltip trigger inside input field */
.scrabble-solver .input-container span.info {
  float: right;
  position: relative;
  right: 1px;
  top: -65px;
  text-decoration: none;
  font-weight: bold;
  color: #000;
  border-radius: 0px 7px 7px 0px;
  padding: 3px 9px;
  line-height: 3.4em;
  border-left: 1px solid #b9b9b9;
  border-bottom: none;
  font-size: 0.8em;
  cursor: pointer;
  display: none;
  height: 54px;
  width: 51px;
  text-align: center;
}

/* Tooltip trigger inside mode selector */
.switch-field label .info {
  border-radius: 6px;
  padding: 3px 3px;
  line-height: 1em;
  font-size: 1em;
  cursor: pointer;
  width: 17px;
}

/* show tooltip only when input is empty */
.scrabble-solver .input-container input + span.info {
  display: block;
}
/* .scrabble-solver .input-container input:not(:placeholder-shown) + span.info {
  display: none;
} */

.scrabble-solver .input-container select + span.info {
  display: block;
}

/* show "Clear field" link only when input is not empty */
.scrabble-solver
  .input-container
  input:not(:placeholder-shown)
  ~ a.clear-input {
  display: block;
}

.scrabble-solver .input-container span.info:hover {
  background-color: #e7f4ff;
}

.tooltip::after {
  background-color: #333;
  border-radius: 10px;
  color: #b254ff;
  display: none;
  padding: 10px 15px;
  position: absolute;
  text-align: center;
  z-index: 999;
}

.tooltip.top::after {
  content: "top";
  top: 0;
  left: 50%;
  transform: translate(-50%, calc(-100% - 10px));
}

.scrabble-solver .input-container span.info:hover + .tooltip {
  display: block;
  color: pink;
}

.scrabble-solver .input-container a.clear-input {
  float: right;
  position: relative;
  height: 1px;
  right: 0;
  top: -56px;
  text-decoration: none;
  font-weight: bold;
  display: none;
}

.scrabble-solver .input-container a.clear-input div {
  background-color: #43306c;
  height: 46px;
  width: 25px;
  border-radius: 0px 7px 7px 0px;
  font-size: 1.2em;
  line-height: 1.4em;
  color: white;
  padding: 5px 6px;
}

.scrabble-buttons-bar {
  display: flex;
  align-items: center;
  padding: 6px 6px 15px 6px;
  text-align: center;
  margin-bottom: 7px;
  color: #000;
  border-bottom: 1px solid #ccc;
}

@media (max-width: 380px) {
  .scrabble-buttons-bar {
    justify-content: space-between;
  }

  .scrabble-label-container.scrabble-label-container-group {
    margin-left: auto;
  }

  .sort-buttons select {
    max-width: 100px;
  }
}

#scrabble-grouped-words,
#scrabble-ungrouped-words {
  padding-top: 0;
}

.scrabble-label-container {
  display: inline-block;
  font-size: 0.8em;
  padding-right: 2px;
  vertical-align: super;
  margin-right: 5px;
}

@media screen and (min-width: 381px) {
  .scrabble-label-container.scrabble-label-container-group {
    margin-left: 35px;
  }
}

@media only screen and (max-width: 360px) {
  .scrabble-label-container.scrabble-label-container-group {
    margin-left: 10px;
  }
}

.scrabble-label-container:last-of-type {
  margin-left: 10px;
}

.sort-buttons select,
.sort-buttons select:focus {
  border: 1px solid #d3d3d3;
  border-radius: 7px;
  padding: 6px 5px;
  color: #000;
  font-size: 0.8em;
}

.sort-buttons select:hover {
  cursor: pointer;
}

@media only screen and (max-width: 1110px) {
  .scrabble-buttons-bar {
    padding: 6px 0px;
    text-align: center;
    margin-bottom: 7px;
    clear: both;
    height: 46px;
  }

  .scrabble-solver.sort-buttons {
    float: left;
  }

  .scrabble-solver.group-buttons {
    float: right;
  }

  /* .scrabble-label-container {
    display: none;
  } */
}

.scrabble-solver .input-container a.clear-input:hover {
  color: red;
}

.scrabble-solver .submit-container {
  display: block;
  text-align: left;
  width: 100%;
}

.scrabble-solver input[type="submit"],
.scrabble-button {
  height: 56px;
  border-radius: 0.5rem;
  background-color: #43306c;
  color: #f3f5f9;
  padding: 0.2rem;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  border: 1px solid #999;
  margin: 20px auto;
  cursor: pointer;
  width: 100%;
}

.scrabble-solver input[type="submit"]:hover {
  background-color: #9f4dab;
}

.scrabble-solver .submit-container select {
  font-size: 0.9em;
  padding-left: 3px;
}

.scrabble-btn-outer {
  margin-top: 0.5rem;
  text-align: left;
}

.scrabble-btn-outer .show-more {
  border-radius: 0.5rem;
  color: #f3f5f9;
  padding: 0.5rem 1rem;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  border: 1px solid #999;
  margin: 10px auto;
  display: inline-block;
  font-size: 0.9em;
  min-width: 118px;
}

h3.word-block {
  background-color: #a3ebeb;
  padding: 10px;
}

.single-word {
  display: inline-block;
  background-color: #EBE7F4;
  padding: 7px 3px 7px 7px;
  border-radius: 7px;
  font-family: monospace;
  text-transform: lowercase;
  font-size: 1em;
  text-wrap: nowrap;
}

.single-word.common-word-skeleton-block {
  background-image: linear-gradient(
    90deg,
    #f5f5f5 25%,
    #e5e5e5 37%,
    #f5f5f5 63%
  );
  background-size: 200% 100%;
  animation: gradient 1.5s infinite linear;
  width: 180px;
  height: 40px;
  border: none;
}

.single-word .word-points {
  padding: 0px 3px;
  font-size: 0.7em;
  vertical-align: sub;
  font-family: monospace;
  width: 23px;
  display: inline-block;
}

.word-list {
  padding-bottom: 3rem;
}

div.link-list-container {
  margin-top: 60px;
}

div.links-list {
  background-color: white;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #aaa;
  border-radius: 0px 10px;
}

div.links-list h3.link-block-title {
  font-size: 1.5em;
}

.links-list a.letter, 
.links-list span.letter {
  background-color: #43306c;
  margin: 5px;
  color: #fff;
  display: inline-block;
  padding: 10px;
  min-width: 34px;
  border-radius: 0px 9px 0px 9px;
  text-decoration: none;
  text-align: center;
  font-size: 1em;
  font-weight: bold;
}

.links-list span.letter {
  background-color: #ccc;
  cursor: not-allowed;
}

.links-list a.letter:hover {
  color: #efefef;
  background-color: #9f4dab;
}

.word-list .list-header,
.internal-linking-block-title {
  color: #43306c;
  padding: 1rem 0;
  font-size: 1.5em;
  font-weight: bold;
}

.word-list .list-header span {
  font-size: 0.7em;
  font-weight: normal;
}

/* .word-list .list-body,
.internal-linking-block-body {
  padding-top: 10px;
} */

.word-list .list-body .words-list-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.internal-linking-block-container {
  margin-top: 70px;
}

.internal-linking-block-body a {
  display: block;
  margin: 5px 10px;
  border-bottom: 1px solid #d7d7d7;
  text-decoration: none;
  font-size: 1.2em;
  color: #333333;
  padding: 10px 0px;
}

.internal-linking-block-body a:last-child {
  border: none;
}

.word-list .list-body.short-list {
  justify-content: start;
}

/* Tooltip shown on hover */

.scrabble-solver .sc-tooltip {
  display: inline-block;
  position: relative;
  border-bottom: 1px dotted #fff;
  text-align: left;
}

.scrabble-solver .sc-tooltip .top {
  min-width: 200px;
  max-width: 400px;
  top: -20px;
  transform: translate(-50%, -100%);
  padding: 10px;
  color: black;
  background-color: #fff;
  font-weight: normal;
  font-size: 12px;
  border-radius: 8px;
  position: absolute;
  z-index: 99999999;
  box-sizing: border-box;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.4em;
  display: none;
}

.scrabble-solver .sc-tooltip .top.normal-position {
  left: 50%;
}

.scrabble-solver .sc-tooltip .top.left-position {
  left: -180%;
}

.scrabble-solver .sc-tooltip:hover .top {
  display: block;
}

.scrabble-solver .sc-tooltip .top i {
  position: absolute;
  top: 98%;
  margin-left: -15px;
  width: 30px;
  height: 15px;
  overflow: hidden;
}

.scrabble-solver .sc-tooltip .top.normal-position i {
  left: 50%;
}

.scrabble-solver .sc-tooltip .top.left-position i {
  left: 150px;
}

.scrabble-solver .sc-tooltip .top i::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  background-color: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Make radio buttons look like switch */

.scrabble-solver .switch-field {
  display: flex;
}

.scrabble-solver .switch-field input {
  position: absolute !important;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  width: 1px;
  border: 0;
  overflow: hidden;
}

.scrabble-solver .switch-field label {
  /* background-color: #e4e4e4; */
  color: rgba(0, 0, 0, 0.6);
  font-size: 13px;
  line-height: 1;
  text-align: center;
  padding: 4px 4px 2px 4px;
  /* border: 1px solid rgba(0, 0, 0, 0.2); */
  /* box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1); */
  /* transition: all 0.1s ease-in-out; */
}

.scrabble-solver .switch-field label:hover {
  cursor: pointer;
}

/* 
.scrabble-solver .switch-field input:checked + label {
	background-color: #43306C;
  color: white;
	box-shadow: none;
} */

.scrabble-solver .switch-field input:not(:checked) + label {
  display: none;
}

.scrabble-solver .switch-field input + label .info {
  border: 2px solid #c1bbbb;
}

.scrabble-solver .switch-field input:checked + label .info {
  border: 2px solid #7d5dbf;
}

.scrabble-solver .switch-field label:first-of-type {
  border-radius: 4px 0 0 4px;
}

.scrabble-solver .switch-field label:last-of-type {
  border-radius: 0 4px 4px 0;
}

.scrabble-button-group {
  text-align: center;
  margin-bottom: 20px;
}

.scrabble-button {
  font-size: 12px;
  width: auto;
}

.scrabble-button:not(.active) {
  background-color: #e6e3e9;
  color: #6f6f6f;
  border-color: #ababab;
}

.scrabble-button:not(.active):hover {
  border-color: #000;
}

.scrabble-solver .input-label {
  position: absolute;
  left: 10px;
  top: 21px;
  font-size: 0.9em;
  transition: all 0.3s ease;
  pointer-events: none;
  color: #999;
}

.scrabble-solver .input-label.active {
  /* top: -15px;
  font-size: 0.9em;
  color: #666;
  display: block; */
  display: none;
}

.scrabble-solver input[type="text"] {
  padding: 10px 10px 10px 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: transparent;
}

@media (min-width: 600px) {
  .wp-block-columns > div:last-of-type form.scrabble-solver {
    position: sticky;
    top: 10px;
    z-index: 9;
    background: #fff;
  }
}

form.scrabble-solver.sticky {
  position: sticky;
  top: 10px;
  z-index: 10;
}

.scrabble-solver .button-expand-fields {
  display: none;
}

@media (max-width: 600px) {
  .wp-block-column form.scrabble-solver {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 5px;
    background-color: #fff;
    box-shadow: 0px 1px 4px -2px #000;
  }

  .wp-block-column form.scrabble-solver,
  form.scrabble-solver.sticky {
    width: 100vw;
    padding: 20px 15px;
  }

  .wp-block-column form.scrabble-solver.fixed-position {
    position: fixed;
    top: 0;
    padding-top: 10px;
    background-color: #fff;
    box-shadow: 0px 1px 4px -2px #000;
  }

  .wp-block-column h2.wp-block-heading--custom {
    display: none;
  }

  .wp-block-column .scrabble-solver:not(.expanded) .all-fields-containter,
  .scrabble-solver.sticky:not(.expanded) .all-fields-containter {
    max-height: 0;
    overflow: hidden;
    border: none !important;
    padding: 0 !important;
  }

  .wp-block-column .scrabble-solver .all-fields-containter,
  .scrabble-solver.sticky .all-fields-containter {
    background: #fff;
    transition: all 0.3s ease;
    max-height: 386px;
  }

  .wp-block-column .scrabble-solver .button-expand-fields,
  .scrabble-solver.sticky .button-expand-fields {
    display: block;
    width: 300px;
    align-self: center;
  }

  .wp-block-column .scrabble-solver:not(.expanded) .big-letters,
  .scrabble-solver.sticky:not(.expanded) .big-letters {
    margin-bottom: 0;
    transition: all 0.3s ease;
  }

  .wp-block-column .scrabble-solver .button-expand-fields,
  .scrabble-solver.sticky .button-expand-fields {
    height: 40px;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .wp-block-column .scrabble-solver.expanded .button-expand-fields {
    background: #e4e4e4;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3),
      0 1px rgba(255, 255, 255, 0.1);
  }

  .wp-block-column .scrabble-solver .button-expand-fields .up-icon,
  .scrabble-solver.sticky .button-expand-fields .up-icon {
    display: none;
    fill: #fff;
  }

  .wp-block-column .scrabble-solver .button-expand-fields .down-icon,
  .scrabble-solver.sticky .button-expand-fields .down-icon {
    display: block;
    fill: #fff;
  }

  .wp-block-column .scrabble-solver.expanded .button-expand-fields .up-icon,
  .scrabble-solver.sticky.expanded .button-expand-fields .up-icon {
    display: block;
  }

  .wp-block-column .scrabble-solver.expanded .button-expand-fields .down-icon,
  .scrabble-solver.sticky.expanded .button-expand-fields .down-icon {
    display: none;
  }
}

.wp-block-heading--custom {
  font-weight: normal;
  color: #000;
  margin-bottom: 10px;
}


.scrabble-btn-outer .show-more .spinner {
  border: 3px solid rgba(0,0,0,0.1);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border-left-color: #fff;
  animation: spin 1s infinite linear;
  margin: auto;
  display: none;
}

.scrabble-btn-outer .show-more.loading {
  opacity: 0.5;
  cursor: not-allowed;
}


.scrabble-btn-outer .show-more.loading .spinner {
  display: block;
}


.scrabble-btn-outer .show-more.loading .label {
  display: none;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hidden {
  display: none;
}
