

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

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


.scrabble-solver .all-fields-containter {
  width: 70%;
  margin: auto;
}


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

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


.scrabble-solver .scrabble-solver-button { 
  border-radius: 16px 0 0 16px;
  position: absolute;
  top: 0;
  left: 0;
  background-color: transparent;
  height: 2.8em;
  display: flex;
  align-items: center;
}
.scrabble-solver .scrabble-solver-button.focus { 
  border-radius: 16px 0 0 16px;
  position: absolute;
  top: 0;
  left: 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;
  background-color: #f5f6f8;
  margin-bottom: 10px;
  width: 100%;
  height: 2.6em;
  font-size: 1.1em;
  border-radius: 7px;
  border-color: #b9b9b9;
  color: #192b80;
  font-weight: 600;
  padding-left: 50px;
  text-align: center;
}

.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;
  background-color: #f5f6f8;
  margin-bottom: 10px;
  width: 100%;
  height: 46px;
  font-size: 0.9em;
  border-radius: 7px;
  border-color: #b9b9b9;
  color: #141414;
}

.scrabble-solver input[type="text"]:focus, .scrabble-solver input[type="number"]:focus, .scrabble-solver select:focus {
  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;
}

.scrabble-solver .input-container {
    width: 49%;
    display: inline-block;
    height: 37px;
    padding: 5px;
    margin-top: 24px;
    position: relative;
    margin-top: 20px;
}

.input-container.fullwidth {
  width: calc(98% + 5px);
  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: 0px;
  top: -50px;
  text-decoration: none;
  font-weight: bold;
  color: darkgrey;
  border-radius: 38px;
  padding: 3px 6px;
  line-height: 1em;
  border: 1px solid #dfdde1;
  font-size: 0.8em;
  cursor: pointer;
  background-color: white;
  display: none;
  height: 21px;
  width: 21px; */

  float: right;
    position: relative;
    right: 0px;
    top: -56px;
    text-decoration: none;
    font-weight: bold;
    color: dimgrey;
    border-radius: 0px 7px 7px 0px;
    padding: 3px 9px;
    line-height: 2.4em;
    border: 1px solid #b9b9b9;
    font-size: 0.8em;
    cursor: pointer;
    background-color: #f5f6f8;
    display: none;
    height: 46px;
    width: 25px;
}

/* 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:placeholder-shown + 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 {
  color: blue;
  border: 1px solid black;
  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 {
  padding:6px; 
  text-align:center;
  margin-bottom: 7px;
}

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

@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 {
  
  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: 10px 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;
  margin-bottom: 1rem;
  text-align: left;
}

.scrabble-btn-outer .show-more {
  border-radius: 0.5rem;
  background-color: #43306C;
  color: #F3F5F9;
  padding: 0.5rem 3rem;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  border: 1px solid #999;
  margin: 10px auto;
  display: inline-block;
}

.scrabble-btn-outer .show-more:hover {
  background-color: #9F4DAB;
}

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

.single-word {
  display: inline-block;
  background-color: #efefef;
  margin: 7px 9px;
  padding: 5px 10px;
  border-radius: 0px 7px;
  border: 1px solid #aaa;
  font-family: monospace;
  text-transform: lowercase;
  font-size: 0.9em;
}

.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: 1rem;
}

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 {
  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 a.letter:hover {
  color: #efefef;
  background-color: #9F4DAB;
}

.word-list .list-header, .internal-linking-block-title {
  border-radius:  10px 10px 0px 0px;
  color:  white;
  padding: 0.5rem 1.5rem;
  font-size: 1.1em;
  font-weight: bold;
  background-color: #43306C;
}

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

.word-list .list-body, .internal-linking-block-body {
  border-radius: 0px 0px 10px 10px;
  padding: 0.5rem 1.5rem;
  border: 1px solid #aaa;
}

.word-list .list-body .words-list-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.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:checked + label svg, .scrabble-solver .switch-field input:checked + label svg path {
  fill: white;
	stroke: white;
}

.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: 16px;
  font-size: 0.9em;
  transition: all 0.3s ease;
  pointer-events: none;
  color: #999;
}

.scrabble-solver .input-label.active {
  top: -15px;
  font-size: .9em;
  color: #666;
}

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

  .wp-block-column form.scrabble-solver {
    position: sticky;
    top: 10px;
    z-index: 100;
    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: 100px;
    left: 0;
    right: 5px;
    background: transparent;
  }

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

  .wp-block-column form.scrabble-solver.fixed-position {
    position: fixed;
    top: 0;
    padding-top: 10px;
  }


  .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;
  }

}
