body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    background: #0e2a38;
    color: #fff;
    margin: 0;
    padding: 10px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#roomlogo {
    width: 240px;
}

#roomName {
    display: none;
    visibility: hidden;
}

#connectionStatus {
    display: none;
    visibility: hidden;
}

/************
 * home page 
 ************/
/****************
 * EOF home page 
 ****************/

.roombody {
    background-image: url(/img/background-twotone.png);
    background-repeat: repeat;
    background-size: 40vw;
    height: 100%;
    padding: 0px;
    box-sizing: border-box;
    overflow-x: hidden;
}

h1 {
	font-family: "Gill Sans Extrabold", sans-serif;
    font-size: 3em;
    text-align: left;
    margin: 5px;
}

.modal h2 {
	font-family: "Gill Sans Extrabold", sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

#connectionStatus {
    text-align: left;
    margin-bottom: 10px;
	font-size: 14px;
}

#mainContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    flex-direction: column;
    height: calc(100vh - 70px);
}


#videoSection {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 2px;
}

#videoContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0px;
}

/***********************************
 * maximized 
 ***********************************/
/* Styles for when videos are maximized */
#videoSection.maximized {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background-color: black;
}

#videoSection.maximized #videoContainer {
    height: calc(100% - 40px); /* Adjust based on your videoControls height */
}

/***********************************
 * EOF maximized 
 ***********************************/

/***********************************
 * layoutCentered
 ***********************************/
#videoSection.layoutCentered {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 2px;
  height: calc(100vh - 80px);
}

#videoSection.layoutCentered #videoContainer {
  display: flex;
  flex-wrap: wrap; /* nowrap; */
  justify-content: center;
  gap: 0px;
  padding: 2px;
  height: 100%; /* calc(100vh - 100px); */
  width: 100vw;
}

#videoSection.layoutCentered #localVideoContainer {
  position: relative;
  order: -1;
  max-height: 100vh;
  flex: 1 1 auto;
  overflow: hidden;
}

#videoSection.layoutCentered video {
  width: 640px;
  height: 100vh;
  max-height: 100vh;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

#videoSection.layoutCentered .video-container {
  position: relative;
  flex: 1 1 auto;
  height: 100%;
  overflow: hidden;
}

/* next sibling */
#videoSection.layoutCentered + .bottomSection #gameContainer {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: row;
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform: translateX(-50%) translateY(50%);
}

/* subsequent sibling combinator */
#videoSection.layoutCentered ~ .bottomSection #chatContainer {
    display: none;
    visibility: hidden;
}

/***********************************
 * EOF layoutCentered
 ***********************************/

/***********************************
 * layoutSupermax
 ***********************************/
#videoSection.layoutSupermax video {
  object-fit: cover;
  border: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: unset;
  object-position: center;
}
#videoSection.layoutSupermax #videoContainer {
    gap: 0px;
    height: 100vh;
    width: 100vw;
    position: fixed;
    left: 0px;
    top: 0px;
}
#videoSection.layoutSupermax + .bottomSection #gameContainer {
    display: none;
    visibility: hidden;
}
#videoSection.layoutSupermax ~ .bottomSection #chatContainer {
    display: none;
    visibility: hidden;
}
/***********************************
 * EOF layoutSupermax
 ***********************************/


/***********************************
 * layoutFull
 ***********************************/
#videoSection.layoutFull {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    gap: 0px;
}

#videoSection.layoutFull #videoContainer {
    gap: 0px;
    height: 100%;
    width: 100%;
    position: relative;
}

#videoSection.layoutFull video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bottomSection {
    flex-direction: row;
    display: flex;
    gap: 5px;
}

/***********************************
 * EOF layoutFull
 ***********************************/


/***********************************
 * resizable
 ***********************************/
    #resizable-div {
        position: absolute;
        width: 300px;
        height: 300px;
        background-color: #ffffff;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
        border-radius: 8px;
        overflow: visible;
    }
    #move-handle {
        position: absolute;
        top: -7px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 15px;
        background-color: #3498db;
        cursor: move;
        opacity: 0;
        transition: opacity 1.5s ease;
    }
    #resizable-div:hover #move-handle {
        opacity: 1;
    }
    #content-area {
        height: 100%;
        padding: 10px;
        box-sizing: border-box;
    }
    .resize-handle {
        position: absolute;
        width: 15px;
        height: 15px;
        opacity: 0;
        transition: opacity 1.5s ease;
    }
    #resizable-div:hover .resize-handle {
        opacity: 1;
    }
    .resize-handle::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
    }
    .resize-handle.nw {
        top: -7px;
        left: -7px;
        cursor: nwse-resize;
    }
    .resize-handle.nw::before {
        background: radial-gradient(circle at 100% 100%, transparent 70%, #3498db 71%);
    }
    .resize-handle.ne {
        top: -7px;
        right: -7px;
        cursor: nesw-resize;
    }
    .resize-handle.ne::before {
        background: radial-gradient(circle at 0% 100%, transparent 70%, #3498db 71%);
    }
    .resize-handle.sw {
        bottom: -7px;
        left: -7px;
        cursor: nesw-resize;
    }
    .resize-handle.sw::before {
        background: radial-gradient(circle at 100% 0%, transparent 70%, #3498db 71%);
    }
    .resize-handle.se {
        bottom: -7px;
        right: -7px;
        cursor: nwse-resize;
    }
    .resize-handle.se::before {
        background: radial-gradient(circle at 0% 0%, transparent 70%, #3498db 71%);
    }
/***********************************
 * EOF resizable
 ***********************************/

#videoControls {
    display: flex;
    justify-content: flex-end;
    padding: 5px;
	position: absolute;
	right: 10px;
	top: 50px;
}

.videoControls {
	position: absolute;
	bottom: 10px;
	left: 5px;
	display: none;
	visibility: hidden;
}

#audioicon {
	width: 18px;
}

#videoicon {
	width: 18px;
}
#streamSettingsIcon {
	width: 18px;
}
#localVideoContainer:hover .videoControls {
	display: block;
	visibility: visible;
}

#maximizeVideo {
	background-color: #98B5C0 ;
    color: white;
    border: none;
    padding: 5px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 2px 2px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.3s;
    z-index: 500;
}

#maximizeVideo img {
	width: 25px;
	margin: 2px 0px 0px 2px; /* not sure why the thing isn't centered */
}

#maximizeVideo:hover {
    background-color: #CCE;
}

#localVideoContainer {
    position: relative;
    order: -1;
}

#localVideo {
    transform: scaleX(-1);
}


#localVideoPreview {
    height: 50vh;
}

video {
	width: calc(50vw - 36px);
	height: calc(100vh - 600px);
    /* height: 150px; */
	max-height: 50vh;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.playerWhite video{
	border: 3px solid white;
}

.playerBlack video{
	border: 3px solid black;
}

.playerBlack::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  background-image: url('/img/blackpawn.svg');
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 300;
}

.playerWhite::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  background-image: url('/img/whitepawn.svg');
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 300;
}

/***********************************
 * maximized 
 ***********************************/
#videoContainer.maximized video {
  width: calc(50vw - 30px);
  height: calc(100vh);
  max-height: 50vh;
  height: unset;
  max-height: unset;
}

#videoSection.maximized video {
    width: calc(50vw - 20px);
	margin-top: 30px;
    object-fit: contain;
	border: none;
	height: unset;
	max-height: unset;
}

/* #videoContainer.maximized video {
	width: calc(50vw - 20px);
	height: calc(100vh - 2px);
    margin: 10px;
    object-fit: cover;
	border: none;
  } 
*/

#videoContainer.maximized {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/***********************************
 * EOF maximized 
 ***********************************/

.video-container {
	position: relative;
    flex: 1 1 auto;
}

#mainContainer._vids1 .video-container {
    height: 100%;
    max-width: 50%;
}

#mainContainer._vids2 .video-container {
    height: 100%;
    width: 50%;
}

#mainContainer._vids3 .video-container {
    height: 50%;
    width: 50%;
}

#mainContainer._vids4 .video-container {
    height: 50%;
    width: 50%;
}

#mainContainer._vids5 .video-container {
    height: 50%;
    width: 33%;
}

#mainContainer._vids6 .video-container {
    height: 50%;
    width: 33%;
}

#mainContainer._vids7 .video-container {
    height: 33%;
    width: 33%;
}

#mainContainer._vids8 .video-container {
    height: 33%;
    width: 33%;
}

#mainContainer._vids9 .video-container {
    height: 33%;
    width: 33%;
}

#gameContainer {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	display: flex;
	flex-direction: row;
}

#chessboard {
    width: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#chatContainer {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    min-height: 300px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#chatMessages {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 10px;
}

#chatInput {
    width: calc(100% - 20px);
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: rgba(255,255,255,0.2);
    color: #fff;
}

button {
    background: #ff6b6b;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-weight: bold;
    transition: background 0.3s ease;
}

button:hover {
    background: #ff8787;
}

button:disabled {
  background-color: #23a1d1;
  color: #5c96ac;
  cursor: not-allowed;
  opacity: 0.6;
}

/* 
	#stopVideo {
		background: #fff8;
	}
	#muteAudio {
		background: #fff8;
	}
*/


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    pointer-events: auto; /* Allows clicks on the modal background */
}

.modal-content {
	background-color: #1b4c65;
    border-radius: 5px;
    border: 1px solid #2c779c;
    padding: 30px;
    margin: 15% auto;
    width: 50vw;
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    pointer-events: auto; /* Ensures clicks on the content don't propagate to the modal background */
}

#video-source-selection-div {
	width: 30vw;
}
#loginForm button {
	display: block;
	margin: 20px 0 0 auto;
}

#settingsModal .modal-content {
    width: 240px;
}

#settingsModal h2 {
    margin-bottom: 48px;
}

#nicknameInput {
	width: 130px;
}

#evaluationDepth {
	width: 64px;
}

#registerModal .modal-content {
	width: 300px;
}

#loginModal .modal-content {
	width:300px;
}
.modal input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}

#authLinks {
    position: absolute;
    top: 10px;
    right: 10px;
}

#authLinks a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
    font-weight: bold;
}

#profileLink {
    font-weight: bold;
}
#gameStatus {
    margin-top: 10px;
    font-weight: bold;
    display: flex;
  flex-flow: wrap;
}

#gameStatus span {
    margin-right: 10px;
}

/*
    hint-indicator {
        position: absolute;
        top: 5px;
        right: 5px;
        background-color: rgba(255, 255, 0, 0.7);
        padding: 5px;
        border-radius: 50%;
        font-size: 20px;
    }
*/

.hint-indicator {
    position: relative;
    z-index: 200;
}

.hint-indicator img {
    position: absolute;
    width: 128px;
    left: 50%;
    top: 64px;
}

.highlight-from {
    box-shadow: inset 0 0 4px 4px limegreen;
}

.highlight-to {
    box-shadow: inset 0 0 4px 4px magenta;
}



#boardAndClockContainer {
    display: flex;
    flex-direction: column;
}

#clock-container {
    display: none;
    align-self: center;
}

#chessContainer {
    display: flex;
    align-items: center;
}

#chessControlPanel {
	width: 120px;
}

#evaluationContainer {
    width: 20px;
    height: 400px;
    margin-right: 10px;
    flex-direction: column;
    align-items: center;
    /* default visualization is horses */
    display: none;
}

#evaluationBar {
    width: 100%;
    height: 400px;
    background-color: #000;
    position: relative;
    overflow: hidden;
    border: 1px solid #fff;
}

#evaluationIndicator {
    width: 100%;
    height: 50%;
    background-color: #fff;
    position: absolute;
    bottom: 50%;
    transition: height 0.3s, bottom 0.3s;
}

#settingsIcon {
    cursor: pointer;
    font-size: 24px;
	float: right;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}


#depthContainer {
    margin-top: 10px;
}



.copied {
    font-size: 9px;
}

#copyPGNBtn.copied {
    padding: 15px 0px 15px 0px;
    transform: translateY(-2px);
    font-size: 16px;
}

#copyFENBtn.copied {
	padding: 15px 0px 15px 0px;
	transform: translateY(-2px);
    font-size: 16px;
}


#loadGameModal .modal-content {
    width: 400px;
}

#loadType {
    margin-bottom: 10px;
    width: 100%;
    padding: 5px;
}

#loadGameInput {
    width: 100%;
    margin-bottom: 10px;
    padding: 5px;
}


/* 
 * GAME CONTROL BUTTONS 
 */

#gameControls {
    margin-top: 10px;
}

#copyPGNBtn {
  width: 44px;
  padding: 13px 2px 13px 5px;
}

.chessControlButton {
    margin: 5px;
    padding: 5px 10px;
	background-color: #23a1d1;
    color: black;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chessControlButton:hover {
    background-color: #00BBFF;
}


/* this looks stupid, but otherwise won't override :/ */
#copyFENBtn {
  width: 44px;
  padding: 13px 2px 13px 5px;
}

#loadGameBtn, #cancelLoadBtn {
    margin-right: 10px;
}

#rotateBoardBtn {
    margin-top: 5px;
    padding: 5px 10px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.chessControlButton img {
	width: 24px;
}

.orientationchange {
	transform: rotate(180deg);
	-moz-transform: rotate(180deg);
	-webkit-transform: rotate(180deg);
	transform-origin: center;
	-moz-transform-origin: center;
	-webkit-transform-origin: center;
	transition:  0.5s ease all;
	-moz-transition: 0.5s ease all;
	-webkit-transition:  0.5s ease all;
} 

#promotionModal img:hover {
  animation: bobble 1s;
}   

@keyframes bobble { 
    0% {    
      transform: rotate(20deg) translate(20px, -20px); 
        filter:  hue-rotate(60deg) drop-shadow(0 0 0.75rem #4682b4); 
    }   
    10% {   
      transform: rotate(-20deg) translate(-20px, -20px); 
      filter:  hue-rotate(50deg) drop-shadow(0 0 0.75rem #4682b4); 
        
    }   
    30% {   
      transform: rotate(10deg) translate(10px, -10px); 
      filter:  hue-rotate(40deg) drop-shadow(0 0 0.75rem #4682b4); 
        
    } 
    50% { 
      transform: rotate(-10deg) translate(-10px, -10px); 
      filter: hue-rotate(40deg) drop-shadow(0 0 0.75rem #4682b4); 
            
    }           
    60% {   
      transform: rotate(5deg) translate(5px, -5px); 
      filter:  hue-rotate(30deg); 
        
    }   
    70% { 
      transform: rotate(-5deg) translate(-5px, -5px); 
      filter:  hue-rotate(30deg); 
    
    }   
    95% { 
      transform: rotate(3deg) translate(3px, -3px); 
      filter: hue-rotate(10deg); 
 
    } 
    100% { 
      transform: rotate(0deg); 
    } 
}


/* Style the form */
#video-source-selection-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Style labels */
#video-source-selection-div label {
  font-weight: bold;
  margin-bottom: 5px;
}

/* Style select dropdowns */
#video-source-selection-div select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
}

/* Style the submit button */
#av-src-apply-button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

#av-src-apply-button:hover {
  background-color: #45a049;
}


/*********************************
 *  Evaluation Meter (horses)
 *********************************/
#evalmeterimg {
    height: 35px;
    margin: auto;
	cursor: pointer;
}   
#evalmeterdiv {
    height: 60px;
    width: 60px;
    margin-top: 10px;
}
/*********************************
 *  EOF Evaluation Meter (horses)
 *********************************/


/*********************************
 *  flip effect for turnindicator 
 *********************************/
/* entire container, keeps perspective */
.flip-container {
    perspective: 1000px;
}
/* flip the pane when hovered */
.flip-container.flip .flipper {
    transform: rotateY(180deg);
}

.flip-container, .front, .back {
    width: 30px;
    height: 30px;
    border-radius: 20px;
}

/* flip speed goes here */
.flipper {
    transition: 0.6s;
    transform-style: preserve-3d;
    grid-area: row 1;
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto;
}
/* hide back of pane during swap */
.front, .back {
    backface-visibility: hidden;

    position: absolute;
    top: 0;
    left: 0;
    border: 2px solid #0072d7;
    display: block;
    margin: 0 auto;
}

/* front pane, placed above back */
.front {
    z-index: 2;
    /* for firefox 31 */
    transform: rotateY(0deg);
    background: white;
}

/* back, initially hidden pane */
.back {
    transform: rotateY(180deg);
    background: black;
}

/*********************************
 *  EOF flip effect for turnindicator 
 *********************************/

/*********************************
 * Check/Mate/Draw indicators 
 *********************************/
.neon.active {
    color: #FEFEFE;
	text-shadow: 0 0 4px #DDD, 0 0 10px #DDD, 0 0 15px #DDD, 0 0 30px #0ff, 0 0 50px #0ff, 0 0 60px #0ff, 0 0 80px #0ff, 0 0 100px #0ff;
}   
    
.neon {
	color: #184752ad;
	text-shadow: 0 0 5px #45b7d3;
}
   
#checkindicator {
    margin-top: 5px;
    padding: 5px 4px;
}       
#mateindicator {
    margin-top: 5px;
    padding: 5px 4px;
}   
#drawindicator {
    margin-top: 5px;
    padding: 5px 4px;
}
/*********************************
 * EOF Check/Mate/Draw indicators 
 *********************************/

#settingsIcon img {
    width: 36px;
}

/*********************************
 * Boom effects
 *********************************/
#boombutton {
	height: 40px;
	background: none;
	border-radius: 10px;
    display: flex;
    justify-content: center; 
    height: 32px;
}   
#boombuttondiv {
	position: absolute;
	right: 175px;
	top: 0px;
	height: 40px;
	cursor: pointer;
}
.boomicon { 
	height:40px;
	cursor: pointer;
}   

.boomicon:hover {
	transform: rotate(5deg);
	filter: hue-rotate(270deg);

}   
#boombuttondiv:hover #hovermenu {
	visibility: visible
}
.boomdivs {
	display: none;
}
.boomimgs {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 25%;
}

.boomnow > .boomimgs {
	display: block !important;
	animation-name: boombotanim;
	animation-duration: 4s;
}

/* Boom animation */
@keyframes boombotanim {
	0%  {opacity: 25%; filter: blur(10px);}
	10% {opacity: 50%; filter: blur(5px);}
	20% {opacity: 65%; filter: blur(3px);}
	30% {opacity: 70%; filter: blur(3px);}
	40% {opacity: 70%; filter: blur(3px);}
	50% {opacity: 70%; filter: blur(1px);}
	60% {opacity: 65%; filter: blur(3px);}
	70% {opacity: 50%; filter: blur(3px);}
	80% {opacity: 25%; filter: blur(5px);}
	90% {opacity: 25%; filter: blur(10px);}
	90% {opacity: 25%; filter: blur(10px);}
	100% {opacity: 15%; filter: blur(15px);}
}

/* EOF boom bot animation */

/* Boom animation */
@keyframes boomanim {
	0% {display: block !important;  width: 25%;}
	10% {display: block !important; width: 50%;}
	20% {display: block !important; width: 75%;}
	30% {display: block !important; width: 90%;}
	40% {display: block !important; width: 85%;}
	50% {display: block !important; width: 75%;}
	60% {display: block !important; width: 65%;}
	70% {display: block !important; width: 50%;}
	80% {display: block !important; width: 25%;}
	90% {display: block !important; width: 50%;}
	90% {display: block !important; width: 25%;}
}

.boomnow {
	display: block !important;
}

#boombox {
	display: none;
}
#boomback {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 25%;
	transform: translate(-50%, -50%);
	z-index: 100;
}


#boomimg {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 25%;
	z-index: 100;
}

.boomnow > #boomback {
	animation-name: boomanim;
	animation-duration: 4s;
}

.boomnow > #boomimg{
	animation-name: boomanim;
	animation-duration: 4s;
}
#hovermenu {
    height: 160px;
    width: 160px; 
    border: 1px solid pink;
    visibility: hidden;
    left: -110px;
    top: -5px; 
    position: absolute;
    z-index: 10;
    background: rgba(14,42,56, 0.95);
    padding: 10px;
}   

/*********************************
 * EOF Boom effects
 *********************************/
#profileGames a {
    color: white;
}
#profileGames a:visited {
    color: white;
}
/*********************************
 * Chess clock - digital
 *********************************/
* {
    box-sizing: border-box;
}

/* .chess-clock-container {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: #22D3EE;
padding: 10px;
font-family: 'Courier New', monospace;
} */
.chess-clock {
    width: 100%;
    max-width: 120px;
    position: relative;
    transform-origin: center center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.clock-body {
    background: #FF95C8C7;
    border-radius: 6px;
    padding: 6px;
    border: 2px solid #2D3748;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

.clock-display {
    background: #22D3EE;
    border-radius: 4px;
    padding: 3px;
    border: 2px solid #2D3748;
}

.time-display {
    background: #EEEEEE;
    border-radius: 3px;
    padding: 4px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #2D3748;
    gap: 4px;
}

.time-section {
    flex: 1;
    text-align: center;
    font-size: 0.75em;
    font-weight: bold;
    position: relative;
    min-width: 0;
}

#white-time {
    color: #FF3B9A;
}

#black-time {
    color: #0078D7;
}

.time-divider {
    width: 1px;
    height: 12px;
    /* background: #2D3748; */
}

.clock-button {
    position: absolute;
    width: 18px;
    height: 15px;
    background: #8B5CF6;
    border: 2px solid #2D3748;
    border-radius: 3px 3px 2px 2px;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 5;
    top: -2px;
}

.clock-button:hover {
    background: #7C3AED;
}

.clock-button.left {
    left: 18px;
}

.clock-button.right {
    right: 18px;
}

.clock-button.active {
    transform: translateY(-5px);
}

.clock-button.inactive {
    transform: translateY(6px);
}

.button-shaft {
    position: absolute;
    width: 6px;
    height: 18px;
    background: #6B21A8;
    left: 50%;
    transform: translateX(-50%);
    bottom: -16px;
    border: 2px solid #2D3748;
    border-top: none;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-2deg); }
    20% { transform: rotate(2deg); }
    30% { transform: rotate(-3deg); }
    40% { transform: rotate(3deg); }
    50% { transform: rotate(-2deg); }
    60% { transform: rotate(2deg); }
    70% { transform: rotate(-1deg); }
    80% { transform: rotate(1deg); }
    90% { transform: rotate(0deg); }
}

@keyframes tilt {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(1deg); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

.tilt {
    animation: tilt 0.2s ease-in-out;
}

.time-out {
    color: #DC2626 !important;
}
/*****************************
 * Chess Clock - Digital
 *****************************/
