/*** 1 ROOT */
:root {
	--font-family: "Poppins", sans-serif;
	--heading-font-family: 'Fredoka',-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;
	--tile-font-family: 'Fredoka',sans-serif;
	--board-width:555px;
	--window-width:595px;
	--tile-width:37px;
	--dragging-tile-width: 80px;
	--rack-height: 80px;
	--rack-tile-width: 60px;
	--scrabble-controller-height: 170px;
	--scrabble-info-height: 120px;

	--font-color: #601126;
	--font-color-info: #e1265e;
	
	--main-color: #ffc887; /* Wood main */
	--main-color-light: #ffd8a9;
	--main-color-super-light: #fff6ed;
	--main-color-dark: #4d260a;
	--main-color-dark-light: #c17737;
	
	--tile-color: #ffeab9;
	--tile-color-light: #fff4cf;
	--tile-played-color: #fdd58f;
	--tile-played-color-shadow: #de904a;
	--tile-stroke: #b56823;

	--back-color: #d97553;
	--back-color-dark: #23040e;
	--back-color-dark-light: #c05421;
	
	--gray-shadow: 370deg 35% 70%;
	--gray2: #e2e9f1;
	--gray3: #d6dde7;
	--gray4: #c4cedb;
	--gray5: #b0bbca;
	--gray6: #747e8a;	

	--accent-color1: #fe4575;
	--accent-color1-white: #ffd1dd;
	--accent-color1-light: color-mix(in srgb, var(--accent-color1) 50%, white 50%);
	--accent-color1-black: color-mix(in srgb, var(--accent-color1) 80%, black 20%);
	
	--accent-color2: #fff275;
	--accent-color2-white: color-mix(in srgb, var(--accent-color2) 20%, white 80%);
	--accent-color2-light: color-mix(in srgb, var(--accent-color2) 50%, white 50%);
	--accent-color2-black: color-mix(in srgb, var(--accent-color2) 30%, black 70%);
	--accent-color2-medium: color-mix(in srgb, var(--accent-color2) 70%, black 30%);
	
	--invalid-word-color: #ff3030;
	--valid-word-color: #30ff35;
	--highlighted-color: rgb(255, 226, 63);
	
	--loader-anim-delay: 1.2s;
	
	--window-padding-bottom: 120px;

	--text-shadow-wood: 0px 2px 2px var(--main-color);	
}

/*** 2 Globals */
*, *:after, *:before, *:focus, ::after, ::before {
	margin:0;
	padding:0;
    box-sizing: border-box;
	-webkit-user-select: none; /* Safari */
	-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* Internet Explorer/Edge */
	user-select: none; /* Otros navegadores */
	outline: none;
	-webkit-tap-highlight-color: transparent;
}
::placeholder{
	color:var(--font-color);
	opacity:0.5
}
::-moz-selection{
	color:white;
	background:var(--main-color)
}
::selection{
	color:white;
	background:var(--main-color)
}

particle {
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  /*font-family: var(--noto-emoji);*/
  z-index: 15
}

h1, h2, h3, h4 {
	font-family: var(--heading-font-family);
	font-weight: normal;
}

.title2 {
	font-family: var(--font-family);
	font-size: 24px;
	font-weight: 800;
	margin-bottom: 15px;
	text-shadow: var(--text-shadow-wood);
	color: var(--back-color-dark);
}

/*** 3 Body */
html, body {
	width:100%;
	min-width:100%;
	height:100%;	
	min-height:100%;	
	overflow:hidden;
	background-color: #000000;
	color: #FFFFFF;
}

body {
	display:flex;
	flex-direction: column;
	justify-content:center;
	align-items:center;
    font-family: var(--font-family);
    line-height: 1;
    font-weight: 400;
    position:relative;
	color: var(--font-color);
	background-color: var(--back-color-dark);
	background-image: url(../images/background.png);
	background-repeat: repeat;
	/*background-position: center calc(50% - 100px);*/
	background-position: center top;
	/*background-size: auto 100%;*/
}

::-webkit-scrollbar{width:6px;background-color:transparent}
::-webkit-scrollbar-track-piece{background-color:transparent}
::-webkit-scrollbar-thumb{background-color:var(--main-color);border-radius:4px;background-clip:padding-box}

body::-webkit-scrollbar { 
    display: none;
}

/*** SWITCH */
input[type=checkbox] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}
input[type=checkbox]:focus {
	outline: 0;
}

.toggle {
	height: 16px;
	width: 44px;
	border-radius: 16px;
	display: inline-block;
	position: relative;
	margin: 0;
	/*box-shadow:0 -3px 0 0 hsl(var(--gray-shadow)/0.5), 0 0 6px 8px white, 0 8px 6px 0 hsl(var(--gray-shadow)/0.4);*/
	box-shadow:inset 0 1px 4px 2px rgba(0, 0, 0, 0.2), 0 0 0 4px var(--main-color-light), 0 0 0 5px white, 0 2px 3px 5px rgba(0, 0, 0, 0.4);
	background-color: var(--gray2);
	transition: all 0.2s ease;
	z-index: 30;
	cursor:pointer;
}
.toggle::after {
	content: "";
	position: absolute;
	top: -10px;
	left: -6px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background-image:linear-gradient(var(--gray2) -50%, var(--gray5) 100%);
	box-shadow:inset 0 0 0 3px var(--gray3), 0 3px 0 0 var(--gray6);
	transition: all 0.2s cubic-bezier(0.9, 0.6, 0.75, 1.35);
	z-index: 31;
}
.toggle:checked {
	border-color: var(--accent-color2);  
}
.toggle:checked::after {
	transform:translateX(24px);
	background-image:linear-gradient(white -50%, var(--accent-color2) 100%);
	box-shadow:inset 0 0 0 3px rgba(255, 255, 255, 0.4), 0 3px 0 0 var(--accent-color2-medium), 0 0 20px 0 var(--accent-color2-light);
}

.options-line {
	width:100%;
	display:flex;
	justify-content:space-evenly;
	align-items:center;
	margin:0 0 30px;
}

.options-line .label{
	display:inline-block;
	width:270px;
	margin: 0 !important;
}

.iconof {font-family: "fontello";font-style: normal;font-weight:normal;font-size:inherit;/*speak: never;*/display: inline-block;text-decoration: inherit;width: 1em;margin-right: .2em;text-align: center;  /* For safety - reset parent styles, that can break glyph codes*/ font-variant: normal;text-transform: none; /* fix buttons height, for twitter bootstrap */ /*line-height: 100%;*/
  /* Animation center compensation - margins should be symmetric */ /* remove if not needed */ margin-left: .2em; /* You can be more comfortable with increased icons size */ /* font-size: 120%; */ /* Font smoothing. That was taken from TWBS */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale}

/** LOADING */
#scrabble-loader-container {
	display: flex;
	flex-direction:column;
    justify-content: center;
    align-items: center;
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
	font-family:var(--heading-font-family);
	font-size: 40px;
	color:white;
	/*background-color: var(--back-color-dark);*/
	background-color: #000000;
	/*background-image: url(../images/background.png);
	background-repeat: repeat;
	background-position: center;*/
	z-index:9999;
}

#scrabble-loader-container.no-background {
	background-color:transparent;
	background-image:unset;
}

#scrabble-loader.small {
	transform: translateY(-15px) scale(0.4);
}

#scrabble-login, #scrabble-register {
	display: none;
	flex-direction:column;
    justify-content: center;
    align-items: center;
	z-index:4000;
	width: 100%;
}

#scrabble-login, #scrabble-menu-buttons {
	height: 364px !important;
	overflow: hidden;
}

#scrabble-login input, #scrabble-register input {
    margin-top:25px;
    padding:10px 15px;
    font-size:22px;
    width: 300px;
    border: none;
    border-radius: 20px;
	background-color:white;
	box-shadow: 0 0 0 5px #dedede, 0 1px 1px 5px rgba(0, 0, 0, 0.3), 0 1px 2px 9px rgba(0, 0, 0, 0.2), inset 0 2px 5px 2px rgba(0,0,0, 0.1), inset 1px 1px 0 1px rgba(0,0,0, 0.1)
}

#scrabble-login .button-pushable, #scrabble-register .button-pushable {
    margin: 40px 0 0 0 !important;
}

#registration-button {
	font-family: var(--font-family);	
	font-size: 18px;
	color: white;
	margin: 30px 0 0 0;
}

#scrabble-login-text {
	margin-top:60px;
	font-family: var(--font-family);
	font-size: 18px;
	color: white;
}

/** Square */
.square-card {
	align-items: center;
	border-radius: 0.25rem;
	display: flex;
	width: 260px;
	height: 280px;
	justify-content: center;
	position: relative;	
	background-color: transparent;
}

.square-card::before {
  animation: shadow var(--loader-anim-delay) ease-in-out infinite both;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 100%;
  bottom: 1.9rem;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
  content: '';
  height: 0.2rem;
  left: 22%;
  position: absolute;
  right: 22%;
}

.down {
  animation: down var(--loader-anim-delay) ease-in infinite both;
  bottom: 2rem;
  position: absolute;
}

.down .up {
  animation: up var(--loader-anim-delay) ease-in-out infinite both;
}

.down .up .squeeze {
  animation: squeeze var(--loader-anim-delay) cubic-bezier(0.72, 0.03, 0.28, 0.97) infinite both;
  transform-origin: 50% 100%;
}

.down .up .squeeze .rotate-in {
  animation: rotate-in var(--loader-anim-delay) ease-out infinite both;
}

.down .up .squeeze .rotate-in .rotate-out {
  animation: rotate-out var(--loader-anim-delay) ease-in infinite both;
}

@keyframes down {
  0% {
    transform: translateY(-10rem);
  }
  20%,
  100% {
    transform: translateY(0);
  }
}

@keyframes up {
  0%,
  75% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10rem);
  }
}

@keyframes squeeze {
  0%,
  4% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.6, 0.6);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rotate-in {
  0% {
    transform: rotate(-180deg);
  }
  20%,
  100% {
    transform: rotate(0deg);
  }
}

@keyframes rotate-out {
  0%,
  80% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(180deg);
  }
}

@keyframes shadow {
  0%,
  100% {
    transform: scale(0.2);
  }
  45%,
  50% {
    transform: scale(0.6);
  }
}
/* End square */   

/** RIBBON */
.banner {
  position: relative;
  display: block;
  margin-top:10px;
  width: 200px;
  height: 40px;
  line-height: 40px;
  font-family:var(--tile-font-family);
  font-size: 18px;
  text-align: center;
  color: #451;
  background: #9b2;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0,0,0,.15) inset,
      				0 6px 10px rgba(0,0,0,.15);
}

.banner::before,
.banner::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: -40px;
  top: 17px;
  display: block;
  width: 60px;
  height: 0px;
  border: 20px solid #9b2;
  border-right: 20px solid #791;
  border-bottom-color: #94b81e;
  border-left-color: transparent;
  transform: rotate(-5deg);
}

.banner::after {
  left: auto;
  right: -40px;
  border-left: 20px solid #791;
  border-right: 20px solid transparent;
  transform: rotate(5deg);
}
    
button{text-decoration:none;background:transparent;border-width:0 !important;cursor:pointer}

/*** BUTTONS */
.button-pushable {
	position:relative;
	width:140px;
	border:none;
	background:transparent;
	padding:0;
	outline-offset:4px;
	transition:filter 250ms;
	touch-action:manipulation;
	/*will-change: transform;*/
	z-index:5
}

.button-pushable:hover{
	filter:brightness(110%);
	-webkit-filter:brightness(110%)
}

.button-pushable:focus:not(:focus-visible) {
	outline:none
}

.button-shadow {
	display:none;
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	border-radius:10px;
	background:hsl(var(--gray-shadow) / 0.2);	
	transition: box-shadow 100ms cubic-bezier(.3, .7, .4, 1.1);
	box-shadow:0 0 10px 0 rgba(0,0,0,0.3);
}

.button-pushable:active .button-shadow, .button-pushable:hover .button-shadow {
	box-shadow:0 0 20px 2px rgba(255,255,255,0.6);
}

.button-pushable:active .button-shadow {
	transition: transform 100ms;
	/*box-shadow:0 0 0 0 rgba(0,0,0,0.1);*/
}

.button-edge {
	display:block;
	position:absolute;
	bottom:0;
	left:0;
	width:100%;
	height:100%;
	border-radius:9999px;
	background-color:#f4f6ff;	
	box-shadow: 0 0 0 5px #f4f6ff, 0 0 0 6px white, 0 1px 1px 5px rgba(0, 0, 0, 0.3), 0 3px 2px 5px rgba(0, 0, 0, 0.2);
	z-index:5;
}

.button-front {
    width: 100%;
    height: 40px;
    line-height: 38px;
    display: block;
    position: relative;
    border-radius: 9999px;
    font-family: var(--heading-font-family);
    font-size: 28px;
	font-weight: 600;
    text-align: center;
    /*text-transform: uppercase;
    letter-spacing: 0;*/
    white-space: nowrap;
    color: white;
    background-color: #6c7dfe;
	transform:scale(1);
    /*transition: border 100ms, box-shadow 100ms, transform 100ms cubic-bezier(.3, .7, .4, 1.5);*/
    transition: all 100ms cubic-bezier(.3, .7, .4, 1);
	text-shadow: 1px 1px 3px #6476ff, 1px -1px 3px #6476ff, -1px 1px 3px #6476ff, -1px -1px 3px #6476ff, 1px 0px 3px #6476ff, 0px 1px 3px #6476ff, -1px 0px 3px #6476ff, 0px -1px 3px #6476ff;
	box-shadow: inset 0 0 3px 1px #5568ff, inset 0 2px 3px 2px #c7ceff, inset 1px -2px 0 0 #7396ff, inset 0 -12px 4px 5px #5163f3, 0 4px 2px 0 rgba(0, 0, 0, 0.2);
	z-index:6;
}

.button-pushable .button-front::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 7px;
    width: 4px;
    height: 6px;
    /* opacity: 0.8; */
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 6px 1px white;
}

.button-pushable .button-front::after {
   	content: "";
    position: absolute;
    left: 7px;
    top: 12px;
    width: 2px;
    height: 3px;
    opacity: 1;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 6px 1px white;
}

#scrabble-menu .button-pushable .button-front::before {
    left: 14px;
    top: 8px;
    width: 6px;
    height: 8px;
}

#scrabble-menu .button-pushable .button-front::after {
    left: 9px;
    top: 15px;
    width: 3px;
    height: 4px;
}

#scrabble-menu .button-pushable:active .button-front, .button-pushable:active .button-front {
	border: 2px solid #3b4edb;
	transform:scale(0.98);
	filter: brightness(100%);
	box-shadow:inset 0 -1px 0 0 #5568ff, 
			   inset 0 1px 0 0 #c7ceff, 
			   inset 0 -1px 0 0 #7396ff, 
			   inset 0 -40px 2px 10px #5163f3;
}

#scrabble-menu .button-pushable {
	width:220px;	
	margin:10px 0;
	z-index:30002;
} 

#scrabble-menu .button-edge {
	/*box-shadow: unset;*/
	border-radius:9999px;
}

#scrabble-menu .button-pushable .button-front {
    height: 56px;
    line-height: 54px;
	font-size: 28px;
	border-radius:9999px;	
	box-shadow: inset 0 0 2px 1px #5568ff, inset 0 3px 5px 3px #c7ceff, inset 1px -2px 0 0 #7396ff, inset 0 -12px 8px 5px #5163f3, 0 4px 2px 0 rgba(0, 0, 0, 0.2);
}

.button-pushable:active .button-front::before, .button-pushable:active .button-front::after {
	display:none;
}

/*.button-pushable.special {
	-webkit-filter: brightness(100%) hue-rotate(36deg);
	filter: brightness(100%) hue-rotate(58deg);		
}*/

.button-pushable.special .button-edge {
	background-color:#fffaf4;	
	box-shadow: 0 0 0 5px var(--main-color-super-light), 0 0 0 6px white, 0 1px 1px 5px rgba(0, 0, 0, 0.3), 0 3px 2px 5px rgba(0, 0, 0, 0.2);
}

.button-pushable.special .button-front {
	background-color: #ff8c9f;
	border: 1px solid #c6214b;
	text-shadow: 1px 1px 3px #f44a75, 1px -1px 3px #f44a75, -1px 1px 3px #f44a75, -1px -1px 3px #f44a75, 1px 0px 3px #f44a75, 0px 1px 3px #f44a75, -1px 0px 3px #f44a75, 0px -1px 3px #f44a75;
    /*box-shadow: inset 0 -1px 1px 1px #ff5c1b, inset 0 1px 2px 3px #ffd5c7, inset 1px -3px 0 0 #ff9e00, inset 0 -10px 3px 5px #ff4d29, 0 4px 2px 0 rgba(0, 0, 0, 0.2);*/
	box-shadow: inset 0 -2px 2px 1px #ff4b7a, inset 0 1px 3px 1px #ffd6e0, inset 1px -2px 0 0 #ff7599, inset -3px -8px 8px -3px #e63765, inset 0 -20px 15px 5px #fe4575, 0 4px 2px 0 rgba(0, 0, 0, 0.2);
}

#scrabble-menu .button-pushable.special .button-front {
	/*box-shadow: inset 0 3px 1px 2px #ffd5c7, inset 0 8px 15px 2px #eb9100, inset 1px -2px 0 0 #ff9e00, inset 0 -3px 1px 5px #ff4d29, inset 0 -10px 10px 5px #ff9720, 0 4px 2px 0 rgba(0, 0, 0, 0.1);*/
	/*box-shadow: inset 0 0px 5px 1px #ff5c1b, inset 0 3px 4px 2px #ffd5c7, inset 1px -2px 0 0 #ff9e00, inset 0 -20px 6px 5px #ff4d29, 0 4px 2px 0 rgba(0, 0, 0, 0.2);*/
	box-shadow: inset 0 -2px 2px 1px #ff2860, inset 0 3px 5px 3px #ffd0dc, inset 1px -2px 0 0 #ff7599, inset -3px -8px 8px -3px #da2c59, inset 0 -20px 15px 5px #fe4575, 0 4px 2px 0 rgba(0, 0, 0, 0.2);
}

#scrabble-menu .button-pushable.special:active .button-front, .button-pushable.special:active .button-front {
	border: 2px solid #c6214b;
	transform:scale(0.98);
	filter: brightness(100%);
	box-shadow:inset 0 -1px 0 0 #e63765, 
			   inset 0 1px 0 0 #ffd6e0, 
			   inset 0 -1px 0 0 #ff7599, 
			   inset 0 -40px 2px 10px #ff4b7a;
}

.button-pushable.special:hover {
	/*-webkit-filter: brightness(110%) hue-rotate(36deg);
	filter: brightness(110%) hue-rotate(58deg);*/
	filter: brightness(110%);
}

#change-letters-button, #cancel-change-letters-button, #call-letters-button {
	display: none;
}

.button-svg {
    width: 64px;
    height: 64px;
    background-size: contain;
    border: none;
    cursor: pointer;
}

#active-change-letters-button {
	/*background: url('../images/change.svg') no-repeat center;*/
	background: url('../images/icon-bag.png') no-repeat center;
	background-size: 100%;
	color: var(--font-color-info);
	font-family: var(--font-family);
	font-size: 20px;
	text-align: center;
	line-height:70px;
	font-weight:700;	
}

#mix-letters-button {
	background: url('../images/icon-mix.png') no-repeat center;
	background-size: 100%;
}

#call-letters-button {
	background: url('../images/icon-call.png') no-repeat center;
	background-size: 100%;
}

#play-letters-button.disabled, #active-change-letters-button.disabled {
	-webkit-filter: brightness(150%) grayScale(100%);
	filter: brightness(150%) grayScale(100%);
	pointer-events: none;
}

/*** FADE IN y FADE OUT */
.fadeIn50 {
  opacity: 0;
  animation: fadeInAnimation 0.05s ease-in-out forwards;
}
.fadeIn100 {
  opacity: 0;
  animation: fadeInAnimation 0.1s ease-in-out forwards;
}
.fadeIn200 {
  opacity: 0;
  animation: fadeInAnimation 0.2s ease-in-out forwards;
}

@keyframes fadeInAnimation {
  from {opacity:0}
  to {opacity:1}
}

.fadeOut50 {
  opacity: 1;
  animation: fadeOutAnimation 0.05s ease-in-out forwards;
}
.fadeOut100 {
  opacity: 1;
  animation: fadeOutAnimation 0.1s ease-in-out forwards;
}
.fadeOut200 {
  opacity: 1;
  animation: fadeOutAnimation 0.2s ease-in-out forwards;
}

@keyframes fadeOutAnimation {
  from {opacity:1}
  to {opacity:0}
}

/** RANGE */
.range {
  appearance:none;
  width:180px;
  height:30px;
  background-color:#d6cdc8;
  border-radius:20px;
  background-image:linear-gradient(white -20%, var(--accent-color1) 80%);
  background-size:50% 100%;
  background-repeat:no-repeat;
  z-index: 3001;
  box-shadow:inset 0 1px 8px 2px rgba(0,0,0,0.2),
			0 0 0 4px var(--main-color-light),
			0 0 0 5px white,
			0 2px 3px 5px rgba(0,0,0,0.4);
}

.range::-webkit-slider-thumb{
	/*opacity:0.5;*/
  appearance:none;
  height:48px;
  width:48px;
  /*transform:translateY(-4px);*/
  border-radius:100%;
  background-image:radial-gradient(circle, #ff8cca 0%, #ff7fbf 100%);
  box-shadow:inset 0 0 0 4px #ffb3dc;
  border:0;
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
            user-select: none
}

.range::-moz-range-thumb {
  appearance:none;
  height:46px;
  width:46px;
  /*transform:translateY(-4px);*/
  border-radius:100%;
  background-image:radial-gradient(circle, #ff8cca 0%, #ff7fbf 100%);
  box-shadow:inset 0 0 0 3px #ffb3dc, 0 3px 0 0 #ff61b8, 0 10px 6px 0 hsl(var(--gray-shadow)/0.4);
  border:0;
  cursor:pointer;
  -moz-user-select: none; /* Old versions of Firefox */
  user-select:none
}

.range::-ms-thumb {
  appearance:none;
  height:46px;
  width:46px;
  /*transform:translateY(-4px);*/
  border-radius:100%;
  background-image:radial-gradient(circle, #ff8cca 0%, #ff7fbf 100%);
  box-shadow:inset 0 0 0 3px #ffb3dc, 0 3px 0 0 #ff61b8, 0 10px 6px 0 hsl(var(--gray-shadow)/0.4);
  border:0;
  cursor:pointer;
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none
}

#range-music-volume, #range-sounds-volume {
	width:100%;
	height:auto;
	display:flex;
	flex-direction:column;
	justify-content:space-evenly;
	align-items:center;
	margin:15px 0 30px;
}

#range-sounds-volume {
	margin:0 0 15px;
}

#music-volume {
  background-size:35% 100%;
}

#sounds-volume {
  background-size:65% 100%;
}

#scrabble-menu-options .label {
	font-family: var(--font-family);
	font-size:18px;
	font-weight:500;
	color: white;
	margin:15px 0 25px;
}

/*.menu-back-button {
	margin-top: 20px !important;
}*/

#scrabble-windows-bar-top, #scrabble-windows-bar-bottom {
	position:absolute;
	left:0;	
	width: 100%;
	height: 60px;
	display: flex;
	flex-direction:row;
	justify-content:space-between;
	align-items:center;
}

#scrabble-windows-bar-top {
	top: 30px;
	/*background-color: rgba(0,0,0,0.5);*/
}

#scrabble-windows-bar-bottom {
	bottom: 15px;
	justify-content:center;
}

#scrabble-windows-bar-top .scrabble-windows-bar-left, #scrabble-windows-bar-top .scrabble-windows-bar-right{
	width: 150px;
	height: 100%;
	margin: 0 0 0 30px;
	display: flex;
	flex-direction:row;
	justify-content:space-between;
	align-items:center;
}

#scrabble-windows-bar-top .scrabble-windows-bar-right{
	justify-content:end;
	margin: 0 30px 0 0;
}

#scrabble-windows-bar-top button, #scrabble-windows-bar-bottom button {
	width: 44px;
	height: 44px;
	font-family: var(--font-family);
}

#scrabble-windows-bar-top #user-button, #scrabble-windows-bar-top #close-session-button {
	width: auto;
	color: white;
	font-size: 20px;
	display: flex;
	flex-direction:row;
	justify-content:start;
	align-items:center;
}

/*#scrabble-windows-bar-top #close-session-button {
	width: auto;
}*/

#scrabble-windows-bar-top .iconof {
	font-size: 30px;
	margin:0;
}

#scrabble-windows-bar-top button span {
	margin-left: 10px;
}

.scrabble-windows-bar-txt {
	font-family: var(--heading-font-family);
	font-size: 22px;
	font-weight: 600;
	color: white;
}

/*** 4 SCRABBLE CONTAINERS */
#scrabble-app {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#scrabble-game-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: var(--board-width);
	transform: translateY(-25px);
	touch-action: none;
}

#scrabble-layers {
    position: relative;    
    width: var(--board-width);
    height: var(--board-width);
	transform-origin: center center;
    transform: scale(1);	
}

/*#fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;    
  height: 100%;
  display: block;
  z-index: 3000;
  pointer-events: none;
}*/

#fx-canvas {
  position: fixed;   /* en vez de absolute */
  inset: 0;          /* ocupa toda la ventana */
  width: 100vw;
  height: 100vh;
  z-index: 3000;
  pointer-events: none;
  display: block;
}

/** 5 SCRABBLE HINT */
#scrabble-hint-container, #scrabble-message-container, #scrabble-menu-message-container {
	position: fixed;
	bottom:174px;
	left:50%;
	min-height:60px;
	width:auto;
	transform: translate(-50%, 0);
	display: none;
    justify-content: center;
    align-items: center;
	z-index:2000;
}

#scrabble-message-container, #scrabble-menu-message-container {	
	bottom:160px;
	width: 350px;
	max-width: 350px;
	/*display:flex;*/
}

#scrabble-menu-message-container {	
	/*display:flex;*/
	bottom:80px;
	z-index:9999;
}

#scrabble-hint-content, #scrabble-message-content, #scrabble-menu-message-content {
	display: flex;
	position:relative;
	flex-direction:column;
    justify-content: space-evenly;
    align-items: start;
	background-color:var(--main-color-super-light);
    height: auto;
	padding:10px 15px 10px 70px;
	border-radius:15px;
	border: 2px solid var(--main-color);
	/*box-shadow:0 0 0px 2px var(--accent-color2);*/
}

#scrabble-hint-content {
	width: 270px;
	background-image:url("../images/hint.svg");
	background-size:40px auto;
	background-position:15px center;
	background-repeat:no-repeat;
	font-size: 15px;
}

#scrabble-message-content, #scrabble-menu-message-content  {
	max-width: 340px;
	padding:10px 15px;
}

#scrabble-hint-container p {
	line-height:1.3;
}

#scrabble-hint-container p:last-child {
	font-family:var(--heading-font-family);
	font-size:20px;
	font-weight: 600;
}

#scrabble-inactive {
	position: absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background-color:transparent;
	z-index:9999;
	display:none;
}

/*** SCRABBLE INFO */
#scrabble-info-container {
	display: flex;
	flex-direction:row;
    justify-content: center;
    align-items: center;
	gap: 50px;
	position: fixed;
	top:0;
	left:50%;
	transform: translate(-50%, 0);
	width:var(--board-width);
	height:var(--scrabble-info-height);	
	z-index:2000;
}

.scrabble-info-module {
	display:flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position:relative;
	width:100%;
	height:60px;		
	background-color:var(--main-color-super-light);
	box-shadow:inset 0 0 0 3px var(--main-color), 0 0 0 4px var(--main-color-light), 0 1px 4px 4px rgb(144 53 12 / 70%);	
	border-radius:30px;
}

.scrabble-info-points-module, .scrabble-info-op-points-module, .scrabble-info-clock-module {
	width:146px;
}

#scrabble-clock {
	position: absolute;
    right: -37px;
    bottom: -12px;
    overflow: hidden;
    width: 82px;
    height: 82px;
}

.scrabble-info-menu-module, .scrabble-info-chat-module {
	position: absolute;
	left: -15px;
	top: 33px;
	width: 40px;
	background-color: transparent;
	box-shadow: unset;	
}

.scrabble-info-chat-module {
	left: unset;
	right: -15px;
}

.chat-notification {
	display:none;
	position:absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background-color: rgb(255, 34, 74);
    border-radius: 9999px;
    font-family: var(--font-family);
    font-weight: 600;
    line-height: 19px;
    font-size: 12px;
    text-align: center;
    color: white;
}

#scrabble-image, #scrabble-op-image {
	position:absolute;
	left:-42px;
	bottom:-9px;
	border-radius: 9999px;
	overflow:hidden;
	width:78px;
	height:78px;
	background-color: var(--main-color);
	background-image: url("../images/users/0.jpg");
	background-repeat: no-repeat;
	background-size: 100%;
	background-position: center;
	/*border: 3px solid white;*/
	/*box-shadow: 0 0 0 4px var(--tile-color-light), 0 5px 0 4px var(--tile-played-color-shadow), 0 5px 4px 4px rgba(0, 0, 0, 0.2);*/
	box-shadow: 0 0 0 2px var(--main-color), 0 0 0 5px var(--main-color-light), 0 6px 0 4px var(--main-color-dark-light), 0 6px 6px 4px rgb(144 53 12 / 70%);
}

#scrabble-op-image {
	left:unset;
	right: -42px;
}

.scrabble-info-module .info-points {
	width: 100%;
	height:32px;
	line-height:30px;
	font-size: 26px;
	font-weight:700;
	font-family:var(--font-family);
	text-align: left;
	padding:0 15px 0 46px;	
	color: var(--font-color-info);
	overflow:hidden;
	text-overflow: ellipsis;
}

.scrabble-info-module.scrabble-info-op-points-module .info-points, .scrabble-info-module.scrabble-info-clock-module .info-points {
	text-align: right;
	padding:0 46px 0 15px;
}

.scrabble-info-module .info-name {
	width: 100%;
	height:15px;
	line-height:13px;
	font-family: var(--font-family);
	font-size:13px;
	font-weight: 500;
	text-align: left;
	color: var(--font-color-info);
	padding:0 15px 0 46px;
	overflow:hidden;
	text-overflow: ellipsis;
	/*white-space: nowrap;*/
}

.scrabble-info-module.scrabble-info-op-points-module .info-name, .scrabble-info-module.scrabble-info-clock-module .info-name {
	text-align: right;
	padding:0 46px 0 15px;
}

.scrabble-info-module span {
	display:none;
	position: absolute;
    left: -6px;
    bottom: -40px;
    width: auto;
    height: auto;
	font-family: var(--tile-font-family);
    font-size: 16px;
    font-weight: 400;
    color: white;
    pointer-events: none;
}

.scrabble-info-module.scrabble-info-op-points-module span {
	left: unset;
    right: -6px;
}

.opacity-down {
	opacity: 0.5;
	transition: opacity 0.2s ease-in;
}

.zoom-bounce {
	animation: zoomBounce 0.3s ease-out;
  }
  
  @keyframes zoomBounce {
	0% {
	  transform: scale(1);
	  opacity: 0.5;
	}
	40% {
	  transform: scale(1.35);
	}
	60% {
	  transform: scale(0.87);
	}
	80% {
	  transform: scale(1.13);
	}
	100% {
	  transform: scale(1);
	  opacity: 1;
	}
  }


#menu-button, #chat-button {
	position: relative;
	cursor:pointer;
}

/*#menu-button .button-front {
	height:100%;
}*/

/** SCRABBLE PLAY POINTS AND WORD  */
#scrabble-play-points, #scrabble-play-word {
	display: none;
    justify-content: center;
    align-items: center;
	position: absolute;
	top:0;
	left:0;
	width:30px;
	height:30px;
	padding-top:3px;
	font-family: var(--tile-font-family);
	font-weight: 800;
    font-size: 11px;
	color: white;
	pointer-events: none;
	background-color:transparent;
	/*border: 1px solid white;
	border-radius:50%;*/
	z-index:5;
	background-image:url(../images/points.svg);
	background-size:cover;
	text-shadow: -1px 0 #094b1c, 0 1px #094b1c, 1px 0 #094b1c, 0 -1px #094b1c;
	transition: transform 0.1s ease-in;
	animation: springScale 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

#scrabble-play-word:hover {
	transform: scale(1.2);
}

#scrabble-play-word {
	background-image:url(../images/search.svg);
	background-size:cover;
	cursor: pointer;
	pointer-events: auto;
}

@keyframes springScale {
  0% {
    transform: scale(0);
  }
  80% {
    transform: scale(1.2); /* Escala un poco más para dar la sensación de resorte */
  }
  100% {
    transform: scale(1);
  }
}

/*** Scrabble board */
#scrabble-board {
	width: var(--board-width);
    height: var(--board-width);
	background-color: var(--main-color);
	background-image: url('../images/board.png');
	background-size: var(--board-width);
	background-position: center;
	box-shadow: 0 0 0 2px var(--main-color-light), 0 0 0 18px var(--main-color), 0 6px 0 18px var(--main-color-dark-light), 0 6px 6px 20px rgba(94, 24, 12, 0.7);
	border-radius: 4px;
	z-index: 1;	
	overflow: visible;
}

#scrabble-canvas {
	display:none;
	/*visibility: hidden;*/
	position: absolute;
	top:0;
	left:0;
	width: var(--board-width);
    height: var(--board-width);
	/*transform: scale(1);*/
	z-index: 2;
}

#scrabble-canvas-temp, #scrabble-canvas-plays, #scrabble-canvas-boxes {
	position: absolute;
	top:0;
	left:0;
	width: var(--board-width);
    height: var(--board-width);
	/*background-color:rgba(255,255,255,0.1);*/
	z-index: 3;
	cursor: default;
}

#scrabble-canvas-temp {
	z-index: 4;
}

#scrabble-canvas-boxes {
	z-index: 2;
}

#scrabble-ai-messages {
	display: none;
	justify-content: flex-end;
	align-items: end;
	flex-direction:column;
	position: fixed;
    right: 0;
    bottom: 160px;
	width: 360px;
    height: 100%;
	z-index:1500;
	pointer-events: none;
	overflow: hidden;
}

#scrabble-ai-messages .message {
	display: flex;
	justify-content: center;
	align-items: center;
	width:auto;	
	height:auto;
	/*font-size: 18px; 
	line-height:22px;
	background-color: white;
	padding:10px 20px;
	margin: 8px 30px 0 30px;
	border-radius: 10px 10px 0 10px;
	border: 2px solid #bfd4ff;*/
	opacity: 1;
	transition: transform 0.3s ease, opacity 0.3s ease;
	transform: translateY(0);
	/*will-change: transform, opacity;*/
	overflow: hidden;
}

#scrabble-ai-messages .message .message-inner {
	transform: translateY(20px) scale(0.95);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
	width:auto;	
	height:auto;
	font-size: 18px; 
	line-height:22px;
	padding:10px 20px;
	margin: 8px 30px 0 30px;
	border-radius: 10px 10px 0 10px;
	border: 2px solid var(--main-color);
	background-color: var(--main-color-super-light);
	/*will-change: transform, opacity;*/
}

/** SCRABBLE WINDOWS */
#scrabble-windows-container {
	display: none;
	position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
	flex-direction:row;
    justify-content: center;
    align-items: center;
	backdrop-filter:blur(10px);
	background-color:hsl(254deg 79.49% 7.65% / 75%);
	z-index:2000;
}

.scrabble-window-content {
    position: absolute;
    min-width: 330px;
    max-width: 360px;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
    background-color: transparent;	
}

.scrabble-window {
	border-radius:100px;	
}

.window-title {
	width: 370px;
	height:135px;
	position:absolute;
	top:-88px;
	left:50%;
	transform: translate(-50%, 0);
	background-image:url("../images/ribbon.png"); 
	background-size:370px auto;
	background-repeat: no-repeat;
	z-index:20;
}

.window-close {
	width: 40px;
	height:41px;
	position:absolute;
	top:-16px;
	right:-3px;
	background-image:url("../images/close.png"); 
	background-size:40px 41px;
	background-repeat: no-repeat;
	z-index:21;
}

/*.window-button-base {
	width:200px;
	height:70px;
	position:absolute;
	bottom:-90px;
	left:50%;
	transform:translate(-50%,0);
	background-size:600%;
}*/

.scrabble-window-paper {
	width:340px;
	min-height:150px;
	position:relative;
	background-image: url("../images/window_body.png");
	background-size: 100% auto;
	background-repeat: repeat-y;
	z-index: 13;
}

.scrabble-window-paper::before {
	content: '';
	position:absolute;
	top:-87px;
	left:0;
	width:100%;
	height:100px;
	background-image: url("../images/window_top.png");
	background-size: 100% auto;
	background-repeat: no-repeat;
	z-index: 1;
}

.scrabble-window-paper::after {
	content: '';
	position:absolute;
	bottom:-99px;
	left:0;
	width:100%;
	height:100px;
	background-image: url("../images/window_bottom.png");
	background-size: 100% auto;
	background-repeat: no-repeat;
	z-index:2;
}

.scrabble-window-paper div {
	z-index:3;
	padding:0 20px;
}

#scrabble-letters-bag-content div, #scrabble-letter-select-content div {
	padding:0;
}

#scrabble-word-meaning-container {	
	position: relative;
	z-index:3;
	padding:0 13px;
	width:100%;
}

#scrabble-word-meaning-container h3 {
	position:relative;
}

#scrabble-word-meaning-container h3.margin {
	margin: 15px 0;
}

/** SCRABBLE WINDOWS ALL */
#scrabble-menu, #scrabble-resume, #scrabble-letters-bag, #scrabble-letter-select, #scrabble-word-container, #scrabble-list {
	display: none;
	position:relative;
	flex-direction:column;
    justify-content: space-evenly;
    align-items: center;
	width: 360px;
    height: auto;
	font-size: 15px;
	font-weight: 400;
	/*padding:40px 20px var(--window-padding-bottom);*/
	padding:40px 20px;
	/*will-change: transform;*/
}

#scrabble-word-container div:not(.window-title), #scrabble-list div:not(.window-title) {
    display: flex;
	flex-direction:column;
	justify-content:start;
	align-items:center;		
}

#scrabble-word-container h3, #scrabble-list h3 {
	font-family: var(--heading-font-family);
	font-size: 24px;
	font-weight:600;
	color: var(--back-color-dark);
	padding: 0;
	z-index:20;	
	margin:0 0 5px;	
}

.window-separator {
	position: absolute;
    bottom: 0;
    left: 20px;
    width: 300px;
    height: 41px;
    z-index: 99;
	background-image: url(../images/separator.png);
	background-repeat: no-repeat;
	background-size: 300px 41px;
}

.scrabble-word-buttons {
	position: absolute;
    bottom: -22px;
    left: 0;
    width: 100%;
    height: 50px;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 20px;
    z-index: 100;
}

.scrabble-word-buttons button {	
    width: 60px;
	height:50px;
	display: flex;
	flex-direction:column;
	justify-content: space-evenly;
	align-items:center;
}

.scrabble-word-buttons button .iconof {	
    font-size: 18px;
	color: var(--font-color);
	transition: color 0.2s ease;
}

.scrabble-word-buttons button p {	
    font-size: 15px;
	font-family: var(--heading-font-family);
	font-weight: 600;
	color: var(--font-color);
	transition: color 0.3s ease;
}

.scrabble-word-buttons button:hover .iconof, .scrabble-word-buttons button:hover p {
	color: #931bd0;
}

#save-word-button.disabled, #open-rae-button.disabled {
	opacity: 0.3;
	pointer-events: none;
}

#scrabble-list-container {
	width: 100%;
	padding: 0 13px;
}

#scrabble-list-words {
    min-height: auto;
    max-height: 300px;
    width: 100%;
    padding: 0 10px 10px 0;
    overflow-y: auto;
    overflow-x: hidden;
}

#scrabble-list-words a {
	width: 100%;
	text-align: center;	
	text-transform: uppercase;
	font-family: var(--heading-font-family);
	font-size: 24px;
	font-weight: 600;
	text-decoration: none;
	color: var(--font-color);
	padding: 3px 0px 3px 10px;
	transition: color 0.2s ease;
}

#scrabble-list-words a:hover {
	color: #931bd0;
}

.group-letter { 
	width: 100%;
	margin: 10px 0 2px !important;
	padding: 0 20px !important;
	font-size: 34px !important;	
}

.group-words a.my-word { 
	display: inline;
	padding: 0 !important;
	font-size: 20px !important;
}

.group-words { 
	width: 100%;
	display:block !important; 
	line-height: 1.5; 
}

/** CHAT */
#chat {
	display:none;
	flex-direction: column;
	align-items: start;
	justify-content: start;
	width: 600px;
	height: 600px;
	position:relative;
	background-color: hsl(340.65deg 79.49% 7.65% / 60%);
	box-shadow: 0 -2px 0 0 var(--main-color-light), 0 0 0 3px var(--back-color-dark), rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
	border-radius: 15px;
	overflow: hidden;
	margin-top: -50px;
}

#chat-bar { 
	width: 600px;
	height: 60px;
	display: flex;
	justify-content: start;
	align-items: center;
	position: absolute; 
	top: 0; 
	left: 50%; 
	transform: translate(-50%, 0);
	padding: 0 10px;
	/*background-color: var(--main-color);*/
	background-image:linear-gradient(var(--main-color) 0%, var(--main-color-dark-light) 100%);
	/*border-radius: 4px;*/
	z-index: 9999;
}

#chat-op-image {
	width:40px;
	height:40px;
	border-radius: 9999px;
	background-color: #ffead0;
	background-image: url("../images/users/0.jpg");
	background-repeat: no-repeat;
	background-size: 100%;
	background-position: center;
}

.chat-op-name-group {
	width: auto;
	height: 40px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: start;
	margin-left: 15px;
}

#chat-op-name {
	width: auto;
	max-width: 230px;
    height: 20px;
    line-height: 20px;
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 500;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
}

#chat-op-online {
	width: auto;
    height: 13px;
    line-height: 13px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 300;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
}

#chat-close {
	position: absolute;
    right: 10px;
    top: 10px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-family: var(--heading-font-family);
    font-size: 22px;
    font-weight: 700;
    color: white;
    text-align: center;
    border-radius: 9999px;
    background-color: #f43f6e;
	cursor: pointer;	
}

#chat-messages {
	display: flex;
    justify-content: start;
    flex-direction: column;
    width: 100%;
	height: calc(100% - 125px);
    padding: 15px 0;
    position: relative;
    overflow-y: scroll;
    overflow-x: hidden;
    margin-top: 60px;
    /* scroll-behavior: smooth; */    
}

#chat-messages .chat-message { 
	display: flex;
	flex-direction: row;
	justify-content: end;
	align-items: center;
	width: 100%;	
	height: auto;
	padding: 0 30px 15px;
}

#chat-messages .chat-message.op { 
	justify-content: start;
}

#chat-messages .chat-message .chat-message-container { 
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	max-width: 85%;
	height: auto;
	padding: 10px;
	color: white;		
	background-color: rgb(255 107 145);	
	border-radius: 15px 15px 0 15px;
	box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px, inset 0 -10px 20px 1px #ff4b7a;
	border: 2px solid #ff8daa;
}

#chat-messages .chat-message.op .chat-message-container { 
	background-color: white;
	color: var(--font-color);	
	border-radius: 15px 15px 15px 0;	
	box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px, inset 0 -10px 20px 1px #cccccc;
	border: 2px solid white;
}

#chat-messages .content { 
	width: 100%;	
	height: auto;
	margin-bottom: 10px;
	font-size: 16px;
	line-height: 20px;
	font-weight: 400;
	white-space: pre-wrap;
}

#chat-messages .time { 
	width: 100%;	
	height: auto;
	text-align: right;
	font-size: 12px;
	font-weight: 300;
}

#chat-form { 
	width: 600px;
	height: auto;
	display: flex;
	justify-content: space-between;
	align-items: end;
	position: absolute; 
	bottom: 0; 
	left: 50%; 
	padding: 10px;
	transform: translate(-50%, 0);
	/*background-color: var(--main-color);*/
	background-image:linear-gradient(var(--main-color) 0%, var(--main-color-dark-light) 100%);
	/*border-radius: 4px;*/
}

.chat-form-message-wrapper {
	display:flex;
    position: relative;
	width: calc(100% - 142px);
	height: auto;
    padding: 10px 0;
    border-radius: 10px;
    background-color: var(--main-color-super-light);
}

#chat-input { 
    resize: none;
	font-family: var(--font-family);
	font-weight:400;
    color: var(--font-color);
    font-size: 17px;
    font-weight: 400;
    line-height: 25px;
    border: none;
    outline: none;
    width: 100%;
    padding: 0 15px;
    min-height: 25px;
    max-height: 100px;
    overflow-x: hidden;
    overflow-y: scroll;
    background-color: transparent;
    text-size-adjust: none;
}

#chat-input:focus { 
	outline: none; 
}

#chat-send-button {
	position:absolute;
	bottom: 16px;
	right: 15px;
	width: 120px;
	height: 34px;	
}

#chat-send-button .button-front {
	height: 34px;	
	line-height: 32px;
	font-size: 24px;
}

.day_separator{
	font-family: var(--heading-font-family);
    font-size: 26px;
    font-weight: 600;
    color: white;
    height: 50px;
    line-height: 50px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    margin: 0 0 15px;
    width: 50%;
    position: relative;
    left: 50%;
    transform: translate(-50%, 0);
}

.day_separator::before,.day_separator::after {
	content:"";
	border-top:0.1rem dashed white;
	align-self:center
}

/*#chat-messages > li:nth-child(odd) { 
	background: #efefef; 
}*/

/** MENU */
#scrabble-menu {
	position:relative;
	justify-content: start;
	/*margin-top:-100px;*/
	padding:0;
}

#scrabble-menu .menu-module {
	display: flex;
	flex-direction:column;
    justify-content: start;
    align-items: center;
	width:100%;
	height:auto;
	/*margin-bottom:15px;*/
	z-index: 6000;
}

#scrabble-menu h2 {
	font-size: 50px;
	font-weight: 700;
	color: white;
	margin-bottom: 20px;
}

#scrabble-menu #scrabble-menu-buttons, #scrabble-menu #scrabble-menu-options, #scrabble-menu #scrabble-menu-games, #scrabble-menu #scrabble-menu-scores, #scrabble-menu #scrabble-menu-my-games {
	display: none;
}

/** BUTTONS MENU */
#scrabble-menu #new-game-button, #solo-game-button {
	margin-top:30px !important;
}

/** LOGO */
#scrabble-logo-container {
	display:none;
	position: relative;
	width: 555px;
	height: 230px;
	z-index:1000;
}

.scrabble-logo {
	width:90%;
	height:auto;
	position:absolute;
	top:30%;
	left:50%;
	transform: translate(-50%, -50%);
	z-index:1001;
}

.radial-stripes {
	/*display: none;*/
	position: absolute;
	top:-150px;
	left:50%;
	width:500px;
	height:500px;
	transform: translate(-50%, 0);
	background-image:url(../images/stripes.svg);
	background-repeat: no-repeat;
	background-origin: center;
	background-size: cover;
	opacity:0.5;
	z-index:1000;
}

#scrabble-resume-stripes {
	display: none;
	z-index:10;
	top:-250px;
}

.rotate-stripes {
	animation:rotate-stripes 3s infinite steps(60);
}

@keyframes rotate-stripes {
    0% {transform:translate(-50%, 0) rotate(0deg) scale(0.8);}
    50% {transform:translate(-50%, 0) rotate(180deg) scale(1);}
    100% {transform:translate(-50%, 0) rotate(360deg) scale(0.8);}
}

/* Animación de rotación */
@keyframes rotate {
	0% { transform: translate(-50%, -50%) rotate(0deg); }
	50% { transform: translate(-50%, -50%) rotate(360deg); }
	100% { transform: translate(-50%, -50%) rotate(720deg); }
}

#scrabble-resume-info {
	width:100%;
	height:auto;
	margin:0 0 40px 0;
	font-size: 28px;
	font-weight: 800;
	line-height:35px;
	text-shadow: var(--text-shadow-wood);
	text-align:center;
	color: var(--back-color-dark);
}

#scrabble-resume-info .icon {
	font-size: 48px;
}

#scrabble-resume-stars {
	width: 240px;
	height: 98px;
	position: absolute;
	top:-160px;
	left: 50%;
	transform: translate(-50%, 0);
	background-image: url(../images/stars.png);
	background-size: 240px 98px;
	background-repeat: no-repeat;
	z-index: 25;
}

/*#scrabble-word-container {
	display: flex;
}*/

/*** Scrabble word */
/*#scrabble-word {
	position:absolute;
	top:12px;
	left:50%;
	margin-top:0 !important;
	transform: translate(-50%,0);
	font-family: var(--heading-font-family) !important;
	font-weight: 600;
	font-size: 32px;	
	color:white;
	text-shadow: 2px 2px 0 #e82d5d, 2px -2px 0 #e82d5d, -2px 2px 0 #e82d5d, -2px -2px 0 #e82d5d, 2px 0px 0 #e82d5d, 0px 2px 0 #e82d5d, -2px 0px 0 #e82d5d, 0px -2px 0 #e82d5d;
}*/

.scrabble-word {
	stroke: #7f1da5;
    stroke-width: 2;
    fill: white;
    paint-order: stroke;
    filter: drop-shadow(0px 4px 0px #7f1da5);
    font-family: var(--heading-font-family) !important;
    font-weight: 700;
}

#scrabble-word-meaning {
	display:block !important;
	min-height:auto;
	max-height:200px;
	width:100%;
	padding:0 10px 10px 0;
	/*margin-bottom:20px;*/
	overflow-y:auto;
	overflow-x:hidden;
	/*transition: min-height .5s;
	interpolate-size: allow-keywords;*/
}

#scrabble-word-meaning p, #scrabble-word-anagrams {
	padding:8px 0 8px 15px;
	line-height: 1.2;
}

#scrabble-word-anagrams {
	padding:8px 15px 15px;
}

#scrabble-word-meaning h3 {
	padding:0 0 0 12px;
	margin-top:5px;
}

#scrabble-word-meaning-loader {
	display:none;
}

#verb-link {
	text-transform: uppercase;
	font-weight: 700;
	color:#b054ff;
	cursor: pointer;
}

#scrabble-word-options {
	position: relative;
	display: flex;
    justify-content: space-evenly;
    align-items: center;
	width:100%;
	padding:20px 0 0;	
}

.close {
	position: absolute;	
	top:-20px;
	right:-2px;
	display:flex;
    justify-content: center;
    align-items: center;
	width:40px;
	height:40px;
	font-weight:900;
	font-size: 26px;
	color:#000;
	background-color: var(--main-color);
	box-shadow:0 2px 0 4px var(--main-color-dark-light), 0 2px 0 8px var(--main-color-dark);
	border-radius: 20%;
	user-select: none;
	cursor: pointer;
	z-index:20;
}

.scrabble-window-paper .close {
	top:-100px;
	right:-22px;
}

#scrabble-hint-content .close {
	top:-18px;
	right:-18px;
	width:36px;
	height:36px;
	background-color: yellow;
	box-shadow:unset;
}

.letters-line {
	display: flex;
    justify-content: center;
    align-items: center;
}

#scrabble-letters-bag-content p, #scrabble-letter-select-content p {
	padding: 10px 30px 15px;
}

.letters-line div {
	display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
	line-height: 38px;
	margin: 5px;
    background-color: var(--tile-color);
    border:1px solid var(--main-color-dark);
	font-family: var(--tile-font-family);
    font-size: 32px;
    font-weight: 600;
	color: var(--font-color);
    position: relative;
	text-shadow: 0 1px 0 #fff;
	border-radius: 6px;
	z-index:2004;
	box-shadow: inset 0 0 4px #fff;
	user-select: none;
}

.letters-line div span {
	display: flex;
    justify-content: center;
    align-items: center;
	position: absolute;
    right: -9px;
    bottom: -9px;
	width: 18px;
	height:18px;
	/*line-height: 18px;*/
	border-radius:5px;
	background-color: #4c67d5;
	font-family: var(--font-family);
	font-weight: 600;
    font-size: 12px;
	color: #fff;
	text-shadow: none;
	pointer-events: none;
}

.letters-line .letter-empty {
	background-color: var(--tile-color-light);
	color: #dfbd9e;
	border:1px solid #cca887;
}

.letters-line .letter-empty span {
	background-color: rgb(255 41 41);
}

#scrabble-letter-select .letters-line div {
	cursor:pointer;
}

/*** Scrabble Controller */
#scrabble-controller {
	display: flex;
	flex-direction:column;
    justify-content: center;
    align-items: center;
	position: fixed;
	bottom:0;
	left:0;
	width:100%;
	height:var(--scrabble-controller-height);
	background-color: transparent;
	z-index:3000;
}

.controller-section {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: transparent;
	width:120px;
	height: 100%;
	overflow:visible;
	margin-top:12px;
	font-size: 18px;
    font-family: var(--heading-font-family);
    font-weight: 500;
	text-shadow: 0 2px 0 var(--main-color);
}

#user-options-pass .controller-section {
	width:auto;
	margin-top:12px;
}

#user-options-pass .button-pushable {
	width:80px;
}

#scrabble-dot{
	display:none;
	position: absolute;
	top:0;
	left:0;
	height:10px;
	width:10px;
	background-color:var(--accent-color1);
	border-radius:50%;
	z-index:9998;
	pointer-events: none;
}

/*** SCRABBLE RACK CONTAINER */
#rack-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /*gap: 4px;*/
    width: 100%;
    height: var(--rack-height);
    cursor: grab;
    z-index: 51;
}

#rack-container::before {
	/*display:none;*/
	content:"";
	position: absolute;
	top:20px;
	left:0;
    width: 100%;	
    height: calc(var(--scrabble-controller-height) - 20px);
	/*background-color: transparent;*/
	background-image:url("../images/rack_background.png");
	background-position:top left;
	background-repeat: repeat-x;
	z-index:50;
}

/*#rack-container::after {
	display:none;
	content: "";
    position: absolute;
    left: 50%;	
    top: 20px;
	transform: translate(-50%, 0);
    width: 796px;
    height: calc(var(--scrabble-controller-height) - 20px);
    background-image: url(../images/rack_front.png);
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 51;
}*/

#rack-container div {
    margin-bottom: 0;
}

/*** SCRABBLE USER OPTIONS */
#user-options, #user-options-pass {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    width: 555px;
    height: 70px;
    /*background-color: burlywood;
    border-radius: 20px 20px 0 0;*/
    z-index: 200;
}

#user-options-pass {
	display: none;

}

/*#user-options .button-svg {
	margin-top:-2px
}*/

/*#user-options .button-pushable {
	margin-top:8px
}*/

.rotated-svg {
    transform: rotate(90deg);
    transform-origin: center; /* El centro del elemento */
}

/*** SCRABBLE SCORES */
#scrabble-menu #scrabble-menu-scores {
    justify-content: space-between;
	height:580px;
}

#stats {
	width: 100%;
	height: auto;
	overflow-y: scroll;
	padding: 5px 10px;
	margin-bottom: 10px;
}

.stats-line {
	width: 100%;
	height: 56px;
	display:flex;
	flex-direction: row;
	justify-content: space-evenly;
	align-items: center;
	margin-bottom: 20px;
}

.stats-line .separator {
	width: 1px;
	height: 100%;
	background-color: lavender;
	opacity: 0.5;
}

.stats-line .letters-line div {
    width: 26px;
    height: 26px;
    margin: 0;
	line-height: 23px;
    font-size: 23px;
}

.stat {
	width: auto;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
}

#stats h3, #my-games h3 {
	font-family: var(--heading-font-family);
    font-weight: 600;
    font-size: 22px;
    color: var(--back-color-dark);
    text-align: center;
    margin: 15px 0;
    padding: 5px 5px 7px;
    border-radius: 20px;
    background-color: var(--highlighted-color);
}

#stats h4 {
	font-family: var(--font-family);
	font-weight: 400;
	font-size: 13px;
	color: white;
}

#stats .stat-number {
	font-family: var(--font-family);
	font-weight: 700;
	font-size: 32px;
	color: white;
}

.podio {
	margin-top: 2rem;
	display:none;
}

.podio li {
	list-style: none;
	background: var(--main-color-dark);
	margin: 0.4rem 0;
	padding: 0.6rem 1rem;
	border-radius: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.rank {
	font-weight: bold;
	color: var(--highlighted-color);
}

/*** SCRABBLE MENU MY GAMES */
#my-games {
    width: 330px;
    max-height: 500px;
    overflow-y: scroll;
	margin-bottom: 20px;
	padding:15px;
	cursor:pointer;
	/*background-color: rgba(255,255,255, 0.4);
	border-radius: 8px;*/
}

#my-games .my-games-file {
    width: 100%;
    height: 50px;
    display: flex;
	justify-content: space-evenly;
    align-items: center;
    overflow: hidden;
	background-color: white;
	margin-bottom: 4px;
	border-radius: 8px;
	cursor: pointer;
}

#my-games .my-games-file:hover {
	background-color: var(--accent-color1-white);
}

#my-games .my-games-file-img {
	width: 40px;
	height: 40px;
	border-radius: 9999px;
	overflow: hidden;
}

#my-games .my-games-file-img img {
	width: 100%;
	height: 100%;
}

#my-games .my-games-file-name {
	width: 120px;
	height: 15px;	
	font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    color: var(--font-color);
	overflow: hidden;
	text-overflow: ellipsis;
}

#my-games .my-games-file-points {
	width: 90px;
	height: 15px;
	font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    color: var(--font-color);
    text-align: right;
	overflow: hidden;
	text-overflow: ellipsis;
}

#my-games .no-games {
	font-family: var(--heading-font-family);
    font-weight: 400;
    font-size: 18px;
    color: white;
    text-align: center;
}

/*** SCRABBLE TILES */
.tile, .tile-temp, .tile-played, .square {
    position: relative;
	width: var(--rack-tile-width); /*60px*/
    height: var(--rack-tile-width);
	background-image: url('../images/letters.png');
 	background-size: 600px 180px;
	z-index: 3003;
	cursor: grab;
}

.tile-no-points-bg {
	background-image: url('../images/letters-no-points.png') !important;
}

.tile-played-bg {
	background-image: url('../images/letters-played.png') !important;
}

.tile-played-no-points-bg {
	background-image: url('../images/letters-played-no-points.png') !important;
}

/* Primera fila: A-I */
.letterW { background-position: 0 0; }
.letterA { background-position: calc(var(--rack-tile-width) * -1) 0; }
.letterB { background-position: calc(var(--rack-tile-width) * -2) 0; }
.letterC { background-position: calc(var(--rack-tile-width) * -3) 0; }
.letterD { background-position: calc(var(--rack-tile-width) * -4) 0; }
.letterE { background-position: calc(var(--rack-tile-width) * -5) 0; }
.letterF { background-position: calc(var(--rack-tile-width) * -6) 0; }
.letterG { background-position: calc(var(--rack-tile-width) * -7) 0; }
.letterH { background-position: calc(var(--rack-tile-width) * -8) 0; }
.letterI { background-position: calc(var(--rack-tile-width) * -9) 0; }

/* Segunda fila: J-S */
.letterJ { background-position: 0 calc(var(--rack-tile-width) * -1); }
.letterL { background-position: calc(var(--rack-tile-width) * -1) calc(var(--rack-tile-width) * -1); }
.letterM { background-position: calc(var(--rack-tile-width) * -2) calc(var(--rack-tile-width) * -1); }
.letterN { background-position: calc(var(--rack-tile-width) * -3) calc(var(--rack-tile-width) * -1); }
.letterÑ { background-position: calc(var(--rack-tile-width) * -4) calc(var(--rack-tile-width) * -1); }
.letterO { background-position: calc(var(--rack-tile-width) * -5) calc(var(--rack-tile-width) * -1); }
.letterP { background-position: calc(var(--rack-tile-width) * -6) calc(var(--rack-tile-width) * -1); }
.letterQ { background-position: calc(var(--rack-tile-width) * -7) calc(var(--rack-tile-width) * -1); }
.letterR { background-position: calc(var(--rack-tile-width) * -8) calc(var(--rack-tile-width) * -1); }
.letterS { background-position: calc(var(--rack-tile-width) * -9) calc(var(--rack-tile-width) * -1); }

/* Tercera fila: T-Z (solo 6 letras) */
.letterT { background-position: 0 calc(var(--rack-tile-width) * -2); }
.letterU { background-position: calc(var(--rack-tile-width) * -1) calc(var(--rack-tile-width) * -2); }
.letterV { background-position: calc(var(--rack-tile-width) * -2) calc(var(--rack-tile-width) * -2); }
.letterX { background-position: calc(var(--rack-tile-width) * -3) calc(var(--rack-tile-width) * -2); }
.letterY { background-position: calc(var(--rack-tile-width) * -4) calc(var(--rack-tile-width) * -2); }
.letterZ { background-position: calc(var(--rack-tile-width) * -5) calc(var(--rack-tile-width) * -2); }

.square {	
	will-change: transform;
}

.square-small {
	width: calc(var(--rack-tile-width)/2);
    height: calc(var(--rack-tile-width)/2);
}

.tile-temp, .tile-played {
	position: absolute;
	width: var(--tile-width);
    height: var(--tile-width);
	background-size: 370px 111px;
	margin:0;
}

.tile-played {
	user-select: none;
}

.tile-played.highlighted-played {
	-webkit-filter: brightness(115%) hue-rotate(0.92turn);
	filter: brightness(115%) hue-rotate(0.92turn);
}

.tile-played.highlighted {
	-webkit-filter: brightness(125%) hue-rotate(0.88turn);
	filter: brightness(125%) hue-rotate(0.88turn);
	/*background-color: var(--highlighted-color);
	box-shadow: 0 0 6px 4px var(--highlighted-color);*/
	/*z-index:3002;*/
	/*border-radius: 5px;*/
}

.tile-played.letterW,.tile-temp.letterW { background-position: 0 0; }
.tile-played.letterA,.tile-temp.letterA { background-position: calc(var(--tile-width) * -1) 0; }
.tile-played.letterB,.tile-temp.letterB { background-position: calc(var(--tile-width) * -2) 0; }
.tile-played.letterC,.tile-temp.letterC { background-position: calc(var(--tile-width) * -3) 0; }
.tile-played.letterD,.tile-temp.letterD { background-position: calc(var(--tile-width) * -4) 0; }
.tile-played.letterE,.tile-temp.letterE { background-position: calc(var(--tile-width) * -5) 0; }
.tile-played.letterF,.tile-temp.letterF { background-position: calc(var(--tile-width) * -6) 0; }
.tile-played.letterG,.tile-temp.letterG { background-position: calc(var(--tile-width) * -7) 0; }
.tile-played.letterH,.tile-temp.letterH { background-position: calc(var(--tile-width) * -8) 0; }
.tile-played.letterI,.tile-temp.letterI { background-position: calc(var(--tile-width) * -9) 0; }

/* Segunda fila: J-S */
.tile-played.letterJ,.tile-temp.letterJ { background-position: 0 calc(var(--tile-width) * -1); }
.tile-played.letterL,.tile-temp.letterL { background-position: calc(var(--tile-width) * -1) calc(var(--tile-width) * -1); }
.tile-played.letterM,.tile-temp.letterM { background-position: calc(var(--tile-width) * -2) calc(var(--tile-width) * -1); }
.tile-played.letterN,.tile-temp.letterN { background-position: calc(var(--tile-width) * -3) calc(var(--tile-width) * -1); }
.tile-played.letterÑ,.tile-temp.letterÑ { background-position: calc(var(--tile-width) * -4) calc(var(--tile-width) * -1); }
.tile-played.letterO,.tile-temp.letterO { background-position: calc(var(--tile-width) * -5) calc(var(--tile-width) * -1); }
.tile-played.letterP,.tile-temp.letterP { background-position: calc(var(--tile-width) * -6) calc(var(--tile-width) * -1); }
.tile-played.letterQ,.tile-temp.letterQ { background-position: calc(var(--tile-width) * -7) calc(var(--tile-width) * -1); }
.tile-played.letterR,.tile-temp.letterR { background-position: calc(var(--tile-width) * -8) calc(var(--tile-width) * -1); }
.tile-played.letterS,.tile-temp.letterS { background-position: calc(var(--tile-width) * -9) calc(var(--tile-width) * -1); }

/* Tercera fila: T-Z (solo 6 letras) */
.tile-played.letterT,.tile-temp.letterT { background-position: 0 calc(var(--tile-width) * -2); }
.tile-played.letterU,.tile-temp.letterU { background-position: calc(var(--tile-width) * -1) calc(var(--tile-width) * -2); }
.tile-played.letterV,.tile-temp.letterV { background-position: calc(var(--tile-width) * -2) calc(var(--tile-width) * -2); }
.tile-played.letterX,.tile-temp.letterX { background-position: calc(var(--tile-width) * -3) calc(var(--tile-width) * -2); }
.tile-played.letterY,.tile-temp.letterY { background-position: calc(var(--tile-width) * -4) calc(var(--tile-width) * -2); }
.tile-played.letterZ,.tile-temp.letterZ { background-position: calc(var(--tile-width) * -5) calc(var(--tile-width) * -2); }

.tile:not(.dragging) {
	transition: transform 0.1s ease-in;
	/*will-change: transform;*/
}

.tile-temp:not(.dragging) {
	transition: left 0.06s ease, top 0.06s ease, transform 0.06s ease-out;
}

.tile.change {
	-webkit-filter: saturate(2) hue-rotate(0.41turn);
	filter: saturate(2) hue-rotate(0.41turn);
	transform: translateY(-15px);
}

/* Ficha arrastrada */
.dragging {
    display: block !important;
	position: absolute;
    pointer-events: none; /* Evita que el clon interfiera con eventos del mouse */
	width: var(--dragging-tile-width);
    height: var(--dragging-tile-width);
    z-index: 4000 !important;
	background-size: 800px 240px;
	will-change: left, top;
}

.dragging.letterW { background-position: 0 0; }
.dragging.letterA { background-position: calc(var(--dragging-tile-width) * -1) 0; }
.dragging.letterB { background-position: calc(var(--dragging-tile-width) * -2) 0; }
.dragging.letterC { background-position: calc(var(--dragging-tile-width) * -3) 0; }
.dragging.letterD { background-position: calc(var(--dragging-tile-width) * -4) 0; }
.dragging.letterE { background-position: calc(var(--dragging-tile-width) * -5) 0; }
.dragging.letterF { background-position: calc(var(--dragging-tile-width) * -6) 0; }
.dragging.letterG { background-position: calc(var(--dragging-tile-width) * -7) 0; }
.dragging.letterH { background-position: calc(var(--dragging-tile-width) * -8) 0; }
.dragging.letterI { background-position: calc(var(--dragging-tile-width) * -9) 0; }

/* Segunda fila: J-S */
.dragging.letterJ { background-position: 0 calc(var(--dragging-tile-width) * -1); }
.dragging.letterL { background-position: calc(var(--dragging-tile-width) * -1) calc(var(--dragging-tile-width) * -1); }
.dragging.letterM { background-position: calc(var(--dragging-tile-width) * -2) calc(var(--dragging-tile-width) * -1); }
.dragging.letterN { background-position: calc(var(--dragging-tile-width) * -3) calc(var(--dragging-tile-width) * -1); }
.dragging.letterÑ { background-position: calc(var(--dragging-tile-width) * -4) calc(var(--dragging-tile-width) * -1); }
.dragging.letterO { background-position: calc(var(--dragging-tile-width) * -5) calc(var(--dragging-tile-width) * -1); }
.dragging.letterP { background-position: calc(var(--dragging-tile-width) * -6) calc(var(--dragging-tile-width) * -1); }
.dragging.letterQ { background-position: calc(var(--dragging-tile-width) * -7) calc(var(--dragging-tile-width) * -1); }
.dragging.letterR { background-position: calc(var(--dragging-tile-width) * -8) calc(var(--dragging-tile-width) * -1); }
.dragging.letterS { background-position: calc(var(--dragging-tile-width) * -9) calc(var(--dragging-tile-width) * -1); }

/* Tercera fila: T-Z (solo 6 letras) */
.dragging.letterT { background-position: 0 calc(var(--dragging-tile-width) * -2); }
.dragging.letterU { background-position: calc(var(--dragging-tile-width) * -1) calc(var(--dragging-tile-width) * -2); }
.dragging.letterV { background-position: calc(var(--dragging-tile-width) * -2) calc(var(--dragging-tile-width) * -2); }
.dragging.letterX { background-position: calc(var(--dragging-tile-width) * -3) calc(var(--dragging-tile-width) * -2); }
.dragging.letterY { background-position: calc(var(--dragging-tile-width) * -4) calc(var(--dragging-tile-width) * -2); }
.dragging.letterZ { background-position: calc(var(--dragging-tile-width) * -5) calc(var(--dragging-tile-width) * -2); }

.placeholder {
	visibility: hidden;
    background-color: transparent;
	width: var(--rack-tile-width) !important;
    height: var(--rack-tile-width) !important;
	z-index:3002;
}

.hide {
    display: none;
}

/** SCRABBLE PLAY BOX */
.tile-box {
	position:absolute;
	top:0;
	left:0;
	width:var(--tile-width);
	height:var(--tile-width);
	border-radius: 6px;
	z-index:2;
}

.tile-box.invalid {
	background-color:var(--invalid-word-color);
	box-shadow:0 0 8px 2px var(--invalid-word-color);
}

.tile-box.valid {
	background-color:var(--valid-word-color);
	box-shadow:0 0 8px 2px var(--valid-word-color);
}

/** SCRABBLE MEDIAS */
@media (min-width: 1071px) {
	#scrabble-app {
		justify-content: center;
	}
}	

@media (max-width: 600px) or (max-height: 840px) { 
	:root {
		--board-width:360px;
		--window-width:380px;
		--tile-width:24px;
		--tile-width:24px;
		--dragging-tile-width:70px;
		--rack-tile-width:50px;
	}

	#user-options .button-pushable{
		width:120px;
	}
	
	#scrabble-info-container {
		justify-content: center;
		gap: 10px;
	}

	.scrabble-info-module {
		height:48px;	
		border-radius:20px;
		box-shadow: inset 0 0 0 2px var(--main-color), 0 0 0 2px var(--main-color-light), 0 1px 2px 2px rgb(144 53 12 / 70%);
	}

	.scrabble-info-module .info-data {
		height:34px;
		width: auto;
		line-height:34px;
		font-size:18px;
		padding: 0 10px 0 35px;
	}

	.scrabble-info-points-module, .scrabble-info-op-points-module, .scrabble-info-clock-module {
		width:120px;
	}

	#scrabble-clock {
		right:-16px;
		bottom:-7px;
		width:58px;
		height:58px;
	}

	#scrabble-image, #scrabble-op-image {
		left:-12px;
		bottom:-2px;
		width:54px;
		height:54px;
		/*box-shadow: 0 0 0 2px #ffead0, 0 3px 0 2px #d09f73, 0 3px 2px 2px rgba(0,0,0,0.5);*/
		box-shadow: 0 0 0 1px var(--main-color), 0 0 0 4px var(--main-color-light), 0 5px 0 4px var(--main-color-dark-light), 0 6px 6px 4px rgb(144 53 12 / 70%);
	}

	#scrabble-op-image {
		left:unset;
		right: -12px;
	}

	.scrabble-info-module .info-points {
		width: 100%;
		height:22px;
		line-height:1;
		font-size:22px;
		padding:0 10px 0 50px;	
	}

	.scrabble-info-module.scrabble-info-op-points-module .info-points, .scrabble-info-module.scrabble-info-clock-module .info-points {
		text-align: right;
		padding:0 50px 0 10px;
	}

	.scrabble-info-module .info-name {
		width: 100%;
		height:14px;
		line-height:14px;
		font-family: var(--font-family);
		font-size:12px;
		padding:0 10px 0 50px;
	}

	.scrabble-info-module.scrabble-info-op-points-module .info-name, .scrabble-info-module.scrabble-info-clock-module .info-name {
		text-align: right;
		padding:0 50px 0 10px;
	}

	.scrabble-info-module span {
		left: 3px;
		bottom: -30px;
	}

	.scrabble-info-module.scrabble-info-op-points-module span {
		left: unset;
		right: 3px;
	}

	.scrabble-info-menu-module, .scrabble-info-chat-module{
		left: 0;
		top: 38px;
		box-shadow: unset;
	}
	
	.scrabble-info-chat-module{
		left: unset;
		right: 0;
	}

	#scrabble-menu, #scrabble-resume, #scrabble-letters-bag, #scrabble-letter-select, #scrabble-word-container, #scrabble-list {
		width: 360px;
	}
	#scrabble-letters-bag, #scrabble-letter-select {
		margin-top: -40px;
	}
	#scrabble-menu {
		margin-top:20px;
	}
	#scrabble-menu .scrabble-logo {
		width:100%;
		position:absolute;
		top:60%;
	}
	.radial-stripes {
		top:-90px;
	}
	#scrabble-menu .menu-module {
		justify-content: start;
	}

	.line {
		height: 400px;
	}
	.button-front {
		font-size: 28px;
	}

	#scrabble-ai-messages .message .message-inner {		
		font-size: 16px; 
		line-height:20px;
	}

	#scrabble-windows-bar-top {
		top: 10px;
	}

	#scrabble-logo-container {
		width: 360px;
		height: 260px;
	}

	#scrabble-windows-bar-top .iconof {
		font-size: 24px;
		margin:0;
	}

	#scrabble-windows-bar-top button span {
		margin-left: 8px;
	}

	#scrabble-windows-bar-top #user-button, #scrabble-windows-bar-top #close-session-button {
		font-size: 16px;
	}

	.scrabble-windows-bar-txt {
		font-size: 20px;
	}

	#scrabble-login, #scrabble-register {
	    justify-content: start;
	}

	#scrabble-login-text {
		margin-top:40px;
	}
		
	#scrabble-menu .button-pushable {
		width:220px;	
		margin:10px 0;
	} 

	#scrabble-menu .button-front {
		height: 58px;
		line-height: 56px;
		font-size: 26px;
	}
	#scrabble-menu #new-game-button {
		margin-top:10px;
	}
	#range-sounds-volume {
		margin:0 0 15px;
	}
	#scrabble-board {
		background-size: 360px 360px;
		/*box-shadow: 0 0 0 8px #bfd4ff, 0 0 0 9px #23040e;*/
		/*box-shadow: 0 0 0 8px #bfd4ff, 0 4px 0 8px #6576b9, 0 5px 3px 9px rgba(0,0,0,0.5);*/
		box-shadow: 0 0 0 1px var(--main-color-light), 0 0 0 8px var(--main-color), 0 4px 0 8px var(--main-color-dark-light), 0 5px 3px 9px rgba(94, 24, 12, 0.7);
		border-radius: 2px;
	}

	#user-options, #user-options-pass {
		width: 360px;
		justify-content: space-evenly;
		gap: 10px;
	}
	#user-options-pass .button-pushable {
		width: 70px;
	}

	.scrabble-file div{
		border-radius: 4px;
	}

	.controller-section {
		margin-top: 8px !important;
		font-size: 16px;
	}

	.tile, .square {
		background-size: 500px 150px;
	}
	.tile-temp, .tile-played {
		background-size: 240px 72px;
	}
	.dragging {
		background-size: 700px 210px;
	}

	#rack-container {
		width: 100%
	}
	
	#rack-container div {
		margin-bottom: -7px;
	}

	#scrabble-hint-container {
		bottom:157px;
	}
	
	#scrabble-message-container {
		bottom:146px;
	}

	#chat {
		margin-top: 0;
	}

	.chat-notification {
	    right: 0;
	}
}

/*@media (max-width: 380px){
	:root {
		--window-width:380px;
	}
}*/

@media (max-width: 360px){
	:root {
		--window-width:360px;
	}
}

@media (max-width: 600px){
	#chat {
		height: 100%;
		width: 100%;
		background-color: transparent;
		box-shadow: unset;
		border-radius: 0;
		margin-top: 0;
	}
	#chat-bar { 
		width: 100%;
	}
	#chat-form {
		width: 100%;
	}
	#chat-send-button {
		width: 90px;
	}
	#chat-send-button .button-front {
		width: 100%;
    	font-size: 22px;
	}
	.chat-form-message-wrapper {
    	width: calc(100% - 112px);
	}
	.day_separator{
		font-size: 22px;		
	}
}