body {
    cursor: default;
}

/* Hide caret when inputs, textareas, or editable elements are focused */
body {
    caret-color: transparent;
}
html, body {
    touch-action: pan-y;
    overflow-y: auto;
}
.footer {
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}
input, textarea, [contenteditable] {
    caret-color: auto;
}

.inline {
    display: inline;
}
.link-button {
    background: none;
    border: none;
    color: blue;
    cursor: pointer;
}
.link-button:focus {
    outline: none;
}
.link-button:active {
    color:red;
}
.red {
    color: red;
}
.orange {
    color: orange;
}
.green {
    color: green;
}

.winner {
    font-weight: bold;
}
.adjust_line_height {
    line-height: 2;
}
.rightaligned {
    text-align: right;
}
.leftaligned {
    text-align: left;
}
.verticalcentered {
    vertical-align: middle;
}
.thickleftborder {
    border-left: double;
}
.thickrightborder {
    border-right: double;
}
.thickbottomborder {
    border-bottom: double;
}
h2, h3 {
    text-align: center;
    margin: auto;
}
h2 {
    margin-top: 25px;
    margin-bottom: 15px;
}
h4 {
    margin-top: 100px;
}
hr {
    height: 3px;
    margin: auto;
}
/* Tooltip container */
.tooltip {
  position: relative;
  /*display: inline-block; */
  /*border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 220px;
  background-color: rgb(210, 208, 208);
  color: #fff;
  text-align: center;
  font-weight: normal;
  border-radius: 6px;
  padding: 5px;

  overflow: visible; /* or auto, or scroll, depending on your needs */
  z-index: 9999; /* or a higher value than other elements if z-index is causing the issue */
  
  /* Position the tooltip */
  position: absolute;
  /* z-index: 1; */
  bottom: 100%;
  left: 50%;
  margin-left: -60px;
}
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 27%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: grey transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}

.custom-tooltip {
    position: absolute;
    background: #222;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 9999;
    display: none;
    pointer-events: none;
    max-width: 250px;
    word-break: break-word;
}

.rotate {

    transform: rotate(-90deg);
    vertical-align: bottom;
  
  
    /* Legacy vendor prefixes that you probably don't need... */
  
    /* Safari */
    -webkit-transform: rotate(-90deg);
  
    /* Firefox */
    -moz-transform: rotate(-90deg);
  
    /* IE */
    -ms-transform: rotate(-90deg);
  
    /* Opera */
    -o-transform: rotate(-90deg);
  
    /* Internet Explorer */
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}

.tabs li.is-warning a {
    background-color: orange;
}

.chatwrapper {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    height: 100%;
    /* min-height: 100px; */
    overflow: hidden;
}
.chat-tabs {
    flex-grow: 0;
    flex-shrink: 0;
}
.chatbody-active {
    height: 100%;
    display: flex;
    flex-direction: column;
    /* max-height: 300px; */
    overflow: hidden;
    
}
.chatbody-hidden {
    display: none;
}

.chat_inner {
    width: 100%;
    overflow-y: auto;
    text-align: left;
    /* display: flex; */
    height: 350px;
    padding: 3px;
}
.chat_timestamp {
    font-size: 0.8em;
    color: grey;
}
.input-group {
    display: flex;
}

.input-group > input {
flex-grow: 1;
}
input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    font-style: italic;
}
input::-moz-placeholder { /* Firefox 19+ */
font-style: italic;
}
input:-ms-input-placeholder { /* IE 10+ */
font-style: italic;
}
input:-moz-placeholder { /* Firefox 18- */
font-style: italic;
}

.pl_notSeated {
    color: grey;
}
.orange {
    color: orange;
}
.pl_seated, .black {
    color: black;
}
.pl_toMove {
    color: red;
}

.menu {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 5px;
    z-index: 99999;
}

/* Custom CSS to collapse tile borders */
.tile.is-ancestor {
    margin: 0; /* Remove margin to collapse borders properly */
}

.tile.is-parent {
    margin: 0; /* Remove margin to collapse borders properly */
    flex-grow: 1; /* Allow tiles to fill the available space */
}

/* .tile.is-child { */
    /*border: 2px solid #dbdbdb; /* Add border to child tiles */
    /*border-radius: 0; /* Remove border radius for a cleaner look */
    /* margin: 0; Remove margin to collapse borders properly */
    /*padding: 0.25rem; /* Add padding for spacing within tiles */
/* } */
.right-column {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-width: 350px;
}
.right-column-tile {
    display: flex;
    flex-direction: column;
    min-height: 150px;
    /* overflow: hidden; */
    flex: 1;
}
.svg-center {
  margin: auto;
  display: block;
}

.hidden {
    display: none;
}

.no-text-cursor {
    cursor: default
  }
.link-cursor {
    cursor: pointer
}
.wait-cursor {
    cursor: wait
}
.nowrap {
    white-space: nowrap;
}
.overflow-cell {
    /* position: absolute; */
    overflow: visible;
    text-align: center;
    /* left: -50%; */
    white-space: normal;
}
.non-selectable {
    user-select: none;
    -webkit-user-select: none;
}
.scrollable-table {
    max-height: 800px; /* Adjust this value according to your needs */
    overflow-y: auto;
    display: block;
}
.scrollable-table .table thead th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}
.active-step {
    /* set text content to be bold */
    font-weight: bold;
}
li[id^="step"] {
    margin-left: 50px;
}
.score {
    width: 2.5em;
}
h5 {
    margin-top: 35px;
}
.toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 10px;
    border-style: solid;
}

.toggle.collapsed::after {
    /* border-width: 10px 10px 0;
    border-color: black transparent transparent; */
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent black;
}

.toggle.expanded::after {
    border-width: 10px 10px 0;
    border-color: black transparent transparent;
    /* border-width: 0 10px 10px;
    border-color: transparent transparent black; */
}
.sweboardUserIcon {
    max-width: none;
}
.preferences-row {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}
.preferences-row.connected {
    margin-bottom: 7px; 
}
.preferences-row.bottom {
    margin-top: 25px; 
    margin-bottom: 5px; 
}
.preferences-row label {
    margin-right: 10px;
    text-align: right;
    line-height: 1;
}
.preferences-row input {
    margin-left: 0;
    display: flex;
    align-items: center;
}
#modal-matchconfig-form label {
    width: 50%;
}
#modal-preferences-form label {
    width: 350px;
}
#modal-newuser-form label {
    width: 50%;
}
#modal-login-form label {
    width: 60%;
}
#modal-setup-form label {
    width: 50%;
}
#modal-tournamentload-form label {
    width: 40%;
}

.typing-indicator {
    display: inline-block;
    visibility: hidden; /* Hide the indicator initially */
    font-size: 0.8em;
    color: grey;
}
  
.typing-indicator.visible {
    visibility: visible; /* Show the indicator when the 'visible' class is added */
}
  
.typing-indicator .dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    /* margin-right: 3px; */
    margin-left: 3px;
    border-radius: 50%;
    background: #000;
    opacity: 0;
    
    animation: typing 1.4s infinite;
}
  
.typing-indicator .dot:nth-child(2) {
    animation-delay: 0.2s;
}
  
.typing-indicator .dot:nth-child(3) {
    animation-delay: 0.4s;
}
  
@keyframes typing {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.chart-container {
    position: relative;
    width: 100%;
    padding-bottom: 50%; /* This will give the chart a 2:1 aspect ratio */
}

@media screen and (max-width: 6px) {
    .chart-container {
        padding-bottom: 75%; /* This will give the chart a 4:3 aspect ratio on screens smaller than 600px */
        background-color: red;
    }
}

#chart-container-ai-challenge {
    min-height: 500px;
    width: 95%;
    height: 100%;
}

.qrcode-container {
    justify-content: center;
    align-items: center; /* Optional: Center vertically as well */
    width: max-content;
    position: absolute; 
    top: 10px; 
    right: 10px;
}
/* Media query for smartphones in portrait mode */
@media only screen and (max-width: 600px) and (orientation: portrait)  {
    .qrcode-container {
        position: relative; /* Remove the absolute positioning */
        top: 0; /* Reset top position */
        right: 0; /* Reset right position */
        margin: 0 auto; /* Center horizontally */
        width: 100%; /* Ensure the container takes full width */
        justify-content: center; /* Center horizontally */
    }
}

#qrcode {
    display: inline-block; /* Ensure the QR code is treated as an inline-block element */
}


.flex-container {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Optional: Add some space between rows */
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.single-column {
    justify-content: center; /* Center the content horizontally */
    text-align: center; /* Center the text */
}

.two-columns {
    justify-content: space-between; /* Distribute space between columns */
}

.column {
    flex: 1; /* Make columns take equal space */
    padding: 10px; /* Optional: Add some padding */
}

.multi-row-table thead tr:first-child th:not([rowspan="2"]) {
    border-bottom: none;
}
.multi-row-table thead th[rowspan="2"] {
    vertical-align: bottom; /* Align text to the bottom */
}

.hyphen-list {
    list-style-type: none !important; /* Remove default bullets */
}
.hyphen-list li {
    list-style-type: none;
}
.hyphen-list li::before {
    content: "-"; /* Add hyphen as bullet */
    margin-right: 10px; /* Space between hyphen and text */
}

#onBoardButton {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
}
#chatIcon {
    position: absolute;
    transform: translate(-50%, -50%); 
    z-index: 4000; 
    visibility: hidden;
}
#chatIcon.highlight {
    visibility: visible;
}

#chatIcon i {
    color: #A5242C; /* Replace with your desired color */
    font-size: 22px; /* Adjust size as needed */
}

/* Print styles */
@media print {
    @page {
        size: landscape;  /* Set default print orientation to landscape */
    }
}

.rankingChartContainer {
    width: 100%; /* CSS width */
}
.rankingChart {
    width: 100%; /* CSS width */
    height: 100%; /* CSS height */
}

.drag-handle {
    cursor: move;
    font-size: 18px;
    padding: 0 10px;
    user-select: none; /* Prevent text selection */
}

.clock-container {
    position: relative;
    width: 100%;
    height: 20px;
    text-align: center;
}

.remaining-time-container {
    position: relative; /* Ensure the container is positioned relative */
    width: 100%;
    height: 20px;
}

.remaining-time-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    color: black;
}

.progress-bar-background {
    position: relative; 
    width: 100%;
    height: 100%;
    background-color: #e0e0e0; /* Light grey background for the border */
    border-radius: 3px;
    /*overflow: hidden; /* Hide overflow to keep the red and green bars within bounds */
    top: 2px; /*Lower the bar by 2 pixels */
    z-index: 0;
}

.progress-bar-red {
    position: absolute; /* Use absolute positioning */
    width: 0%;
    height: 100%;
    background-color: red;
    border-radius: 3px;
    z-index: 1; /* Ensure the red bar is behind */
    /* top: 2px; Lower the bar by 2 pixels */
}

.progress-bar-green {
    position: absolute; /* Use absolute positioning to overlay */
    width: 0%;
    height: 100%;
    background-color: green;
    border-radius: 3px;
    z-index: 2; /* Ensure the green bar is on top */
    /* top: 2px; Lower the bar by 2 pixels */
}

.progress-bar-border {
    position: absolute; 
    width: 100%;
    height: 100%;
    border: 1px solid black;
    border-radius: 3px;
    z-index: 3; /* Ensure the red bar is behind */
    /* top: 2px; Lower the bar by 2 pixels */
}
.progress-bar-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 1px dotted grey;
    /* background: grey; or any color you want */
    left: 20%; /* Position at 20% of the bar width */
    z-index: 4;
    pointer-events: none; /* So it doesn't interfere with mouse events */
}
.progress-bar-maxlabel {
    position: absolute;
    right: -6px;
    bottom: -12px;
    font-size: 9px;
    color: #333;
    z-index: 5;
    pointer-events: none;
    background: transparent;
}

th.overflow-players {
position: relative;
}
th.overflow-players span {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
white-space: nowrap;
background: inherit;
z-index: 10;
/* Optionally, pointer-events: none; */
}
#ratingHistoryChart {
height: 400px !important;
max-height: 400px !important;
width: 100%;
max-width: 95vw;
}