/*
	 CrissCross'em August 16th, 2017
	 Time:2:45pm
	 by Larry Jacobson
	 http://SynapticSolutions.net

	 #FFFFCF  == hilite soft yellow
	 #D8D8D8 == soft-gray / silver
	 #808080 == selectedList in dialog
	 #36C3E0 == "blackout" spots
	 #708090 == slate gray	(http://desizntech.info/2010/07/helvetica-of-colors-beatiful-gray-pallette-inspired-websites/)
	 #250517 == Gray18 (http://www.computerhope.com/htmcolor.htm
	 #F5DEB3 == http://htmlhelp.com/cgi-bin/color.cgi (wheat)
*/

html, body {
  /*overflow:hidden;*/
}

/***   Tooltip Code   ***
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    margin-left: -60px;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}


.tooltip:hover .tooltiptext {
    visibility: visible;
}
***/

div#everything      { background-color:black }

* {
  box-sizing: content-box;          
}

div.clueDivClass {
	/* border-top:1px; border-bottom:1px;  height:auto; */
	border-top:1px; border-bottom:1px;   
	/*display:block; white-space:nowrap;*/  
}

panelPicLink:hover {
	opacity:0.5;
   /*  background:#FFFFFF; */
}

 .ui-panel.ui-panel-open {
        position:fixed;
    }
    .ui-panel-inner {
        position: absolute;
        top: 1px;
        left: 0;
        right: 0;
        bottom: 0px;
        overflow: scroll;
        -webkit-overflow-scrolling: touch;
    }
  /********************************************/  

body { -webkit-touch-callout: none !important; }
a { -webkit-user-select: none !important; }

input, input:before, input:after {
      -webkit-user-select: initial;
      -khtml-user-select: initial;
      -moz-user-select: initial;
      -ms-user-select: initial;
      user-select: initial;
     } 
.disable-selection {
    /* event if these are not necessary, let's just add them */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;

    /* this will add drag availability once you clicked the 
       #drag div while you're focusing #message div */
    -moz-user-select: none;
}

/***
div#page   { -webkit-user-select:none; overflow:scroll; -webkit-overflow-scrolling:touch}
***/
input#keys{
    /* scale(0) made iOS Safari show a keyboard that never wrote into this field */
    position: fixed;
    left: 0;
    top: 0;
    width: 2px;
    height: 2px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    font-size: 16px;
    color: transparent;
    background: transparent;
    caret-color: transparent;
    transform: none;
    text-shadow: none;
}
 
input#keys:focus{
    outline: none;
}


#kidsCellHouse :hover {
    cursor: pointer;
}

#kidsCellHouse .ui-sortable-helper {
    cursor: move;
}

.left-shadow-overlay{
	box-shadow: 10px 0 15px 10px #585858;
}

.side-panel-left{
	box-shadow: -5px 0 15px -6px #585858 inset;
}
.side-panel-left-overlay{
	box-shadow: -10px 0 15px 10px #585858;
}
.side-panel-right{
	box-shadow: 5px 0 15px -6px #585858 inset;
}

.clues {
	top:20%; left:20%; position: absolute; z-index:1000;
	font-size:18px; font-weight:bold; color:#A9A9A9; 
	background-color:white; margin:0 auto; 
	height:auto; max-height:30%; width:auto; max-width:30%; 
	border-radius:5px; padding:4px; border:5px solid #D8D8D8;
}  
.cluesPanel {
	/***top:20%; left:20%; position: absolute; z-index:1000;*/
	font-size:18px; font-weight:bold; color:#A9A9A9; 
	background-color:white; margin:0 auto; 
	height:auto; max-height:30%; width:auto; max-width:75%; 
	border-radius:5px; padding:4px; border:5px solid #D8D8D8;
}  

.imagePngs { border-radius:5px; height:42px; width:42px }

.anagram {
	margin:0 auto; width:auto; padding:3px; border:0px solid red; height:50px;
}

div.gaugeHouseContainer {
	display:inline-block; max-height:115px; max-width:260px; border:0px solid yellow; margin:0 auto;
}

div.gauges  {
	border:0px solid green; 
}

div.gaugeHouse {
	display:inline; margin:0 auto; max-height:115px; max-width:115px; border:0px solid yellow;
}
	        
body			{ font-size: 84.5% verdana}
.noBodyAnchors	{ -webkit-touch-callout: none !important }

.pos_fixed    	{ position:fixed; top:150px; left:150px; }
h4		{ margin-left:38px} 

.sidebarImage   { background-image: linear-gradient(#3c3c3c,#111) }

div.grid40	{position:relative; float:left; width:40px; height:40px; text-align:center; font-family:verdana; font-size:24px; font-weight:bold; line-height: 2.0em; background-color:white; color:#250517; border:1px #D8D8D8 solid; } 
div.grid35	{float:left; width:35px; height:35px; text-align:center; font-family:verdana; font-size:24px; font-weight:bold; line-height: 1.4em; background-color:white; color:#250517; border:1px #D8D8D8 solid; } 
div.grid30	{float:left; width:30px; height:30px; text-align:center; font-family:verdana; font-size:24px; font-weight:bold; line-height: 1.4em; background-color:white; color:#250517; border:1px #D8D8D8 solid; } 
div.grid32	{float:left; width:30px; height:30px; text-align:center; font-family:verdana; font-size:22px; font-weight:bold; line-height: 1.9em; background-color:white; color:#250517; border:1px #D8D8D8 solid; } 
div.grid32a	{float:left; width:30px; height:30px; text-align:center; font-family:verdana; font-size:22px; font-weight:bold; line-height: 1.9em; color:#250517; border:1px #D8D8D8 solid; } 
div.grid24	{float:left; width:24px; height:24px; text-align:center; font-family:verdana; font-size:16px; font-weight:bold; line-height: 1.9em; color:#250517; border:1px #D8D8D8 solid; } 
div.grid	{float:left; width:15px; height:15px; text-align:center; font-family:verdana; font-size:11px; font-weight:bold; line-height: 1.9em; color:#250517; border:1px #D8D8D8 solid; } 


div.error 			{ color:red }

div.redDots  		{ border:1px dotted green }
div.correctLtr  	{ color:green; border: 1px dotted red }
div.greenColor   	{ color:green }

.numSpot1  			{ float:left; margin-top:0px; line-height:4px; font-size:8px; color:#000000 }
.numSpot2  			{ float:left; margin-top:0px; line-height:5.5px; font-size:11px; color:#000000 }
.numSpot	        { position:absolute; font-family:verdana; font-size:8px;  color:#000000 }
.numSpotHidden		{ border:1px solid black}


/* entire game + description 
div.universal       { width:705px; border:1px solid red }
*/

/*entire game*/
/*div.puzzleBig		{ height:340px; border:0px solid red; padding:2px;}*/
div.puzzleBig		{ width:915px; height:340px; border:0px solid red; padding:0px;} 
div.puzzleMedium	{ width:433px; height:256px; border:0px solid black}
div.puzzleSmall		{ width:348px; height:170px; border:0px solid red}

/*cells*/
div.boardGiant      { float:left; width:600px; height:600px; text-align:center; border:1px solid #000; box-sizing:content-box; }
div.boardBig        { cursor:hand; float:left; width:480px; height:480px; text-align:center; margin-bottom:2px; margin-left:2px; }
div.boardMedium     { width:255px; height:256px; text-align:center; margin-bottom:2px; }
div.boardSmall      { cursor:hand; float:left; width:170px; height:170px; border:2px solid; text-align:center; margin-bottom:2px; margin-left:2px; margin-right:2px; border-left:2px }

div.cluesEnclosureBig    { float:left; width:168px; height:340px; border:2px solid; margin-left:2px; }
/*  div.cluesEnclosureMedium { float:left; width:168px; height:256px; border:1px solid; margin-left:2px; }  */
div.cluesEnclosureMedium { float:left; border:1px solid; margin-left:2px; height:100%;} */
div.cluesEnclosureSmall  { float:left; width:168px; height:170px; border:2px solid; margin-left:2px;}


div.wordListEnclosure  { float:left; border:1px solid; border-top: 2px solid} 
.sectionheading	    { font-family:verdana; font-size:14px; text-align:center; font-weight:bold; margin-bottom:1px; height:10%; width:99% }
.dlgcluesheading	{ background-color:#250517; color:white; font-family:verdana; font-size:11px; text-align:center; font-weight:bold; 
						margin-top:2px; margin-bottom:4px; height:15px; }
.wordlistheading	{ background-color:#36C3E0; font-family:verdana; font-size:11px; text-align:center; font-weight:bold; margin-bottom:1px; height:15px; }
.editWordHeading	{ background-color:#36C3E0; font-family:verdana; font-size:11px; text-align:center; font-weight:bold; margin-bottom:1px; height:15px; }

/*
.clues              { height:50%; font-family:verdana; font-size:14px; text-align:left; padding:2px; text-decoration:none; }
*/


div.hilite          { background-color:yellow}  /* formerly #fadb4e */
div.blackout        { background-color:#36C3E0;} /* 3-D look :: border-style:inset */
div.blackout2		{ background-color:red;} 

div#toolbarTop		{ border:2px solid black; height:30px; padding-top:5px; padding-bottom:5px; background-color:gray}
div#toolbarBottom   { border:2px solid black; height:30px; padding-top:5px; padding-bottom:5px; background-color:gray}

div#menuTop li      { float:left; margin:0 0.25em }
div#menuBottom li   { float:left; margin:0 0.5em }
div#menuTop ul 		{ list-style: none; padding:0; margin:0 }
div#menuBottom ul  	{ list-style: none; padding:0; margin:0 }		
																		
/* impacts top & bottom buttons */
.toolbarTextBig		{ font-family:verdana; font-size:8px; font-weight:bold; color:black; width:65px; height:25px ; 
                      -moz-border-radius-topleft:5px; border-top-left-radius:5px; border-top-right-radius:5px }

.toolbarTextLeft	{ font-family:verdana; font-size:8px; font-weight:bold; color:black; width:52px; height:25px ; 
                      -moz-border-radius-topleft:5px; border-top-left-radius:5px; 
					  -moz-border-radius-bottomright:5px; border-bottom-left-radius:5px }

.toolbarTextRight	{ font-family:verdana; font-size:8px; font-weight:bold; color:black; width:52px; height:25px ; 
                      border-top-right-radius:5px; border-bottom-left-radius:5px }

/*
.toolbarTextSmall	{ font-family:verdana; font-size:7px; font-weight:bold; color:red; width:80px; 
                      border-top-left-radius:5px; border-top-right-radius:5px }
*/
.topToolbarBig	    { -moz-border-radius-topleft:5px; -moz-border-radius-topright:5px;
                      border-top-left-radius:5px; border-top-right-radius:5px;
					  width:510px; }

.topToolbarMedium	{ -moz-border-radius-topleft:5px; -moz-border-radius-topright:5px;
                      border-top-left-radius:5px; border-top-right-radius:5px;
					  width:425px }

.topToolbarSmall	{ -moz-border-radius-topleft:5px; -moz-border-radius-topright:5px;
                      border-top-left-radius:5px; border-top-right-radius:5px;
					  width:340px }

.bottomToolbarBig	{ -moz-border-radius-bottomleft:5px; -moz-border-radius-bottomright:5px;
                      border-bottom-left-radius:5px; border-bottom-right-radius:5px;
					  width:510px; background-color:gray }

.bottomToolbarMedium{ -moz-border-radius-bottomleft:5px; -moz-border-radius-bottomright:5px;
                      border-bottom-left-radius:5px; border-bottom-right-radius:5px;
					  width:425px; background-color:gray }

.bottomToolbarSmall	{ -moz-border-radius-bottomleft:5px; -moz-border-radius-bottomright:5px;
                      border-bottom-left-radius:5px; border-bottom-right-radius:5px;
					  width:340px; background-color:gray }

.toolbarBtnDivTop	{ margin:auto; width:60%; margin-top:4px;}

.bottomDescSmall    {z-index:50000; font-family:verdana; font-size:9px; border:2px solid black; border-radius:5px; margin-bottom:12px; background-color: #708090; 
	                   height:155px; width:340px }
.bottomDescMedium   {z-index:50000; font-family:verdana; font-size:9px; border:2px solid black; border-radius:5px; margin-bottom:12px; background-color: #708090; 
	                   height:69px; width:424px }
/*
.toolbarBtnDivSynapticName	{ float:left; margin-left:15px; width:130px; height:25px; border:1px solid black }
.toolbarBtnDivBottomRight	{ float:right}
*/
.ui-autocomplete	{ max-height:100px; overflow-y:auto }

/*************/
/*** TIMER ***/
/*************/

/*****
div#timer           { float:right }
div#timerEnclosure  { margin-right:11px; margin-top:-20px; width:55px; height:40px }
div#timerDisplay    { border-radius:3px; text-align:center; font-size:12px; border: 1px solid red; background-color:white } 
div#timerButtons    { background-image:url('images/a.png') no-repeat }
*****/

ul, li {
	margin:0; 
	padding:0; 
	list-style:none;
}

/*************/
/*** MENUS ***/
/*************/
.menuTop_class {
	border:1px solid #1c1c1c;
}

.keysInputForm {
	position:absolute; opacity:0; z-index:100; 
	left:0px; top:0px; height:40px; width:40px; 
	margin-top: -30px;
}

.ddMessages {
    position:absolute;
	z-index:10000;
	display:none;
	//width:160px;
	-moz-border-radius:5px;
	border-radius:5px;
	background-color:black
}

.mPuzzles {
    position:absolute;
	z-index:10000;
	display:none;
	/*border:3px solid red;*/
    /*-moz-bordemTop2r-radius:5px;*/
	/*border-radius:5px;*/
	background-color:black;
	width:139px;
	height:215px;
}

.mleaders {
    position:absolute;
	z-index:5000;
	display:none;
	width:330px;
    left:268px;
    border:1px solid #dec48b;  /*tile color*/
	-moz-border-radius:5px;
	border-radius:5px;
	background-color:blue
}

.mTop2 {
    position:absolute;
	z-index:5000;
	display:none;
	/* width:330px; */
    /* left:268px; */
    border:1px solid #dec48b;  /*tile color*/
	-moz-border-radius:5px;
	border-radius:5px;
	background-color:white
}

.mTop {
    position:absolute;
	z-index:10000;
	display:none;
	width:160px;
	-moz-border-radius:5px;
	-moz-border-radius:5px;
	border-radius:5px;
	//background-color:black;
	overflow:hidden;
	//overflow-y:hidden;
}

.mReveal {
    position:absolute;
	z-index:10000;
	display:none;
	width:150px;
	-moz-border-radius:5px;
	border-radius:5px;
    color:white;
	background-color:black;
}

.menuItem   		{ margin-left:6px; font-family:verdana; font-size:14px; line-height:1.2em; font-weight:bold }
.dMenuItem   		{ font-family:verdana; font-size:8px;  font-weight:bold } 

.mHorizRule 		{ margin-left:8px; border:1px solid red; width:127px}
.mHorizRuleReveal 	{ margin-left:8px; border:1px solid red; width:117px}

.imageFlags 		{ opacity:0.8; filter:alpha(opacity=80); height:16px; width:24px }
 a:hover img `		{ opacity:1.0; filter:alpha(opacity=100); border: 1px black dotted}
 
 /******a:hover 			{ border: 1px black dotted}******/
 /* #englishFlag:hover	{ opacity:1.0; filter:alpha(opacity=100); border-bottom: 1px black solid} */

.editItems:hover {border-bottom:1px white dotted}

.clickListHelp  	{font-size:8px; font-weight:bold; text-align:center; width:100px; border-top:1px solid black }

.message            { border:3px solid green; text-align:left; 
                      font-size:12px; font-weight:bold; margin:3px 
                    }
                      
.messageIcon        { margin-left:8px; margin-top:9px; float:left; 
                      width:28px; height:28px; border-radius:5px
                    }

/*** DIALOG CHOICES ***/
div#dlgChoices a {
  	color:#000000;
	text-decoration:none;
	padding:0px; 
	display:inline;
}

/***
div#dlgChoices a:hover {
  	color:#ffffff; 
	border-bottom: 1px solid white;
	border:1px solid white;
	display:inline;
}
***/

/*** THESE COULD BE THE SAME ***/
.mTop li, .mBottom li, .mSizeBottom li {
    margin:0px; 
	padding-top:2px;
	padding-bottom:2px;
	font-size 10px;
	font-weight:bold;
}

.mTop li a, .mReveal li a, .mBottom li a, .mSizeBottom li a, .dlgMItem a {
	color:#ffffff; 
	text-decoration:none; 
	padding:0px; 
	display:block;
}


.mTop li a:hover, .mReveal li a:hover, .mBottom li a:hover, .dlgMItem a:hover, 
.mSizeBottom li a:hover{
	/*padding:0px;*/
	color:green;
}       

/* SLIDING PANEL STYLES */



.keyboard  {
    position:absolute;
	z-index:5000;
	display:none;
	width:330px;
    left:178px;
    margin-top:-12px;
	-moz-border-radius:5px;
	border-radius:5px;
}

.keyboardBottom  {
    position:absolute;
	z-index:5000;
	display:none;
	width:330px;
    left:171px;
	-moz-border-radius:5px;
	border-radius:5px;
}

.tiles { width:24px; height:24px }

.makeDraggable:active {
    background-color: #DCC;
    width: 40px;
    height: 40px;
    margin: 0px;
    font-size: 16px;
}

.tile { z-index:50000;
        float:left; 
        width:24px; 
        height:24px; 
        margin:2px; 
        /* text-indent:2px; */
        /* line-height:30px; *?
	    text-indent:0px; 
        line-height:24px; 
        /* border: 1px #d6bc83 solid; */
        border: 1px solid gray; */
        border-radius: 2px; qetp
        color:black; 
        /* text-shadow: -1px -1px 1px rgb(40,40,40); */
        font-family: "Verdana"; 
        font-size:22px;
        

        background-image: -webkit-gradient( 
	        linear, 
	        right bottom, 
	        left top, 
	        color-stop(1.0, rgb(222,196,139)), 
	        color-stop(1.0, rgb(230,204,147))
	        );
        background-image: -moz-linear-gradient( bottom right, rgb(222,196,139), rgb(222,196,139) );
       }

 /***  jQuery UI Panel  ***/
.ui-panel.ui-panel-open {
    position:fixed;
}
 
.ui-panel .ui-panel-inner {
    height: 100%;
    overflow-y: auto;
}
/*************************/

.ui-body-c .ui-link { color: white}
.ui-body, .ui-link:hover {color: blue}

.overflow { overflow:scroll } 
.scrolling-webkit { -webkit-overflow-scrolling:touch }

a, a:visited, a:hover, a:active {
    text-decoration: none;
    border-bottom: 1px solid black }
    color: inherit;
}

/*
.ui-sortable-helper{
    cursor: move;
 }
*/

#status.offine {background-color: red}
#status.online {background-color: green}

/* ========================================
   Chat Panel Styles - Matching Mockup
   ======================================== */

.chat-panel {
    position: fixed;
    right: 20px;
    top: 20px;
    width: 260px;
    height: 560px;
    background-color: silver;
    border-radius: 12px;
    border: 2px solid #D4C5B9;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.chat-header {
    position: relative;
    height: 50px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    cursor: move;
    user-select: none;
    background: #8a8279;
}

.chat-header-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #8a8279;
}

.chat-title {
    position: relative;
    display: block;
    text-align: center;
    line-height: 50px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-messages {
    flex: 1;
    padding: 10px;
    background-color: silver;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-message {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    word-wrap: break-word;
    max-width: 85%;
}

.chat-message.system {
    font-size: 11px;
    color: #9B8C7E;
    font-style: italic;
    padding: 4px 0;
    background: transparent;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    text-align: left;
    display: flex;
    justify-content: flex-start;
}

.chat-message.system .chat-message-text {
    text-align: left;
    font-style: italic;
}

.chat-message.system .chat-message-text::before {
    content: '•';
    display: inline-block;
    margin-right: 6px;
    font-style: normal;
    font-weight: 700;
    color: #9B8C7E;
}

.chat-message.regular {
    box-sizing: border-box;
    max-width: 75%;
    padding: 7px 14px;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.41px;
    line-height: 1.29;
    -webkit-font-smoothing: antialiased;
}

.chat-message.regular.own {
    align-self: flex-end;
    margin-left: auto;
    background-color: #007AFF;
    color: #FFFFFF;
    border-radius: 18px 18px 4px 18px;
}

.chat-message.regular.other {
    align-self: flex-start;
    background-color: #E9E9EB;
    color: #000000;
    border-radius: 18px 18px 18px 4px;
}

.chat-message.regular .chat-message-text {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    color: inherit;
}

.chat-message.regular.own .chat-message-text {
    color: #FFFFFF;
}

.chat-message.regular.other .chat-message-text {
    color: #000000;
}

/* Ready event - yellow/gold badge style */
.chat-message.ready {
    background-color: #FFF8DC;
    border: 2px solid #DAA520;
    padding: 8px 16px;
    border-radius: 6px;
    align-self: center;
    max-width: 90%;
    text-align: center;
    margin: 4px 0;
}

/* Game Start event - green banner style */
.chat-message.game-start {
    background-color: #90EE90;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    align-self: center;
    max-width: 95%;
    text-align: center;
    margin: 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Pause event - blue/teal badge style */
.chat-message.pause {
    background-color: #E0F7FA;
    border: 2px solid #4DB6AC;
    padding: 8px 16px;
    border-radius: 6px;
    align-self: center;
    max-width: 90%;
    text-align: center;
    margin: 4px 0;
}

/* Disconnect event - red/pink banner style */
.chat-message.disconnect {
    background-color: #FFE4E1;
    border: 2px solid #CD5C5C;
    padding: 10px 16px;
    border-radius: 8px;
    align-self: center;
    max-width: 95%;
    text-align: center;
    margin: 6px 0;
}

.chat-message-sender {
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 2px;
    display: block;
}

.chat-message.regular.own .chat-message-sender {
    color: #5B7C99;
}

.chat-message.regular.other .chat-message-sender {
    color: #4A6B85;
}

.chat-message-text {
    font-size: 12px;
    color: #2C3E50;
    display: block;
}

.chat-message.ready .chat-message-text,
.chat-message.game-start .chat-message-text,
.chat-message.pause .chat-message-text,
.chat-message.disconnect .chat-message-text {
    font-weight: 600;
}

.chat-message.ready .chat-message-sender {
    font-size: 10px;
    color: #B8860B;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.chat-message.ready .chat-message-text {
    font-size: 12px;
    color: #8B6914;
    font-weight: 500;
}

.chat-message.game-start .chat-message-sender {
    font-size: 14px;
    color: #228B22;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.chat-message.game-start .chat-message-text {
    font-size: 13px;
    color: #2E8B57;
    font-weight: 600;
}

.chat-message.ccx-game-on {
    background-color: #34C759;
    border: none;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.35);
    box-sizing: border-box;
    width: calc(95% * 0.75);
    max-width: calc(95% * 0.75);
    padding: 12px 16px;
}
.chat-message.ccx-game-on .chat-message-sender {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0.2px;
    margin-bottom: 4px;
}
.chat-message.ccx-game-on .ccx-game-on-count {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.chat-message.pause .chat-message-sender {
    font-size: 10px;
    color: #00796B;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.chat-message.pause .chat-message-text {
    font-size: 11px;
    color: #00695C;
    font-weight: 500;
    font-style: italic;
}

.chat-message.pause .chat-message-subtext {
    font-size: 10px;
    color: #4DB6AC;
    font-style: italic;
    margin-top: 2px;
    display: block;
}

.chat-message.disconnect .chat-message-sender {
    font-size: 11px;
    color: #B22222;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.chat-message.disconnect .chat-message-text {
    font-size: 12px;
    color: #8B0000;
    font-weight: 500;
}

.chat-message.disconnect .countdown {
    font-size: 10px;
    color: #A52A2A;
    font-style: italic;
    margin-top: 4px;
    display: block;
}

/* Action buttons container */
.chat-action-buttons {
    display: flex;
    gap: 6px;
    padding: 14px 10px 8px;
    background-color: silver;
    border-bottom: 1px solid #D4C5B9;
}

/* When ready button is hidden, adjust flex for remaining buttons */
.chat-action-buttons .chat-action-btn.ready-btn.hidden {
    display: none;
    width: 0;
    margin: 0;
    padding: 0;
}

/* Base action button style */
.chat-action-btn {
    flex: 1;
    height: 32px;
    border: none;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Segoe UI', Arial, sans-serif;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-action-btn .btn-icon {
    font-size: 12px;
}

/* Ready button - HIG green */
.chat-action-btn.ready-btn {
    background-color: #34C759;
    border: 2px solid #248A3D;
    color: #fff;
}

.chat-action-btn.ready-btn:hover {
    background-color: #2fb350;
    border-color: #1f7a36;
}

.chat-action-btn.ready-btn:active {
    background-color: #28a745;
    transform: scale(0.97);
}

/* Ready button blink animation */
.chat-action-btn.ready-btn.blinking {
    animation: readyBlink 0.3s ease-in-out;
}

@keyframes readyBlink {
    0%, 100% {
        background-color: #34C759;
        border-color: #248A3D;
        transform: scale(1);
    }
    50% {
        background-color: #5CDE7A;
        border-color: #34C759;
        transform: scale(1.06);
        box-shadow: 0 0 12px rgba(52, 199, 89, 0.7);
    }
}

/* Hidden ready button */
.chat-action-btn.ready-btn.hidden {
    display: none;
}

/* Pause button - teal/blue */
.chat-action-btn.pause-btn {
    background-color: #E0F7FA;
    border: 2px solid #4DB6AC;
    color: #00796B;
}

.chat-action-btn.pause-btn:hover {
    background-color: #B2EBF2;
    border-color: #26A69A;
}

.chat-action-btn.pause-btn:active {
    background-color: #80DEEA;
    transform: scale(0.97);
}

/* Quit button - red/pink */
.chat-action-btn.quit-btn {
    background-color: #FFE4E1;
    border: 2px solid #CD5C5C;
    color: #B22222;
}

.chat-action-btn.quit-btn:hover:not(:disabled) {
    background-color: #FFCDD2;
    border-color: #E57373;
}

.chat-action-btn.quit-btn:active:not(:disabled) {
    background-color: #EF9A9A;
    transform: scale(0.97);
}

/* Disabled state for action buttons */
.chat-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-action-btn:disabled:hover {
    transform: none;
}

/* ========================================
   Game Timer - Shared Clock Display
   ======================================== */

.game-timer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background-color: #F5F3EE;
    border-bottom: 1px solid #D4C5B9;
}

.timer-icon {
    font-size: 16px;
}

.timer-digits {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border: 2px solid #81C784;
    border-radius: 8px;
    padding: 6px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.digit-slot {
    width: 20px;
    height: 28px;
    overflow: hidden;
    position: relative;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    margin: 0 1px;
}

.digit-roller {
    position: absolute;
    width: 100%;
    text-align: center;
    font-family: 'Segoe UI', 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #2E7D32;
    line-height: 28px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Roll-in animation keyframes */
@keyframes rollIn {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes rollOut {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

.digit-roller.rolling-out {
    animation: rollOut 0.3s ease-in forwards;
}

.digit-roller.rolling-in {
    animation: rollIn 0.3s ease-out forwards;
}

.timer-colon {
    font-family: 'Segoe UI', 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #2E7D32;
    margin: 0 2px;
    animation: colonBlink 1s ease-in-out infinite;
}

@keyframes colonBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Timer paused state */
.game-timer-container.paused .timer-digits {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border-color: #FFB74D;
}

.game-timer-container.paused .digit-roller,
.game-timer-container.paused .timer-colon {
    color: #F57C00;
}

.game-timer-container.paused .timer-colon {
    animation: none;
    opacity: 0.5;
}

/* Timer mobile responsiveness */
@media (max-width: 768px) {
    .game-timer-container {
        padding: 8px;
    }
    
    .timer-digits {
        padding: 4px 10px;
    }
    
    .digit-slot {
        width: 18px;
        height: 24px;
    }
    
    .digit-roller {
        font-size: 16px;
        line-height: 24px;
    }
    
    .timer-colon {
        font-size: 16px;
    }
    
    .timer-icon {
        font-size: 14px;
    }
}

.chat-input-area {
    padding: 10px;
    background-color: #8a8279;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input {
    flex: 1;
    height: 36px;
    padding: 0 18px;
    border: 1px solid #D4C5B9;
    border-radius: 18px;
    background-color: #FFFFFF;
    font-size: 13px;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #2C3E50;
    outline: none;
    /* Ensure input is interactive */
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    pointer-events: auto !important;
    touch-action: auto !important;
}

.chat-input::placeholder {
    color: #9B8C7E;
}

.chat-input:focus {
    border-color: #5B7C99;
}

.chat-send-btn {
    width: 45px;
    height: 28px;
    background-color: #5B7C99;
    border: none;
    border-radius: 14px;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Segoe UI', Arial, sans-serif;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s;
}

.chat-send-btn:hover {
    background-color: #4A6B85;
}

.chat-send-btn:active {
    background-color: #3A5B75;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .chat-panel {
        width: calc(100% - 40px);
        max-width: 300px;
        height: 400px;
        right: 20px;
        left: 20px;
        margin: 0 auto;
    }
}

/* Username error message styling */
#nameErrorMsg {
    display: inline-block;
    font-style: italic;
    color: #d35400;
    font-size: 12px;
    margin-left: 5px;
    white-space: nowrap;
}