body{
    background-color:#d6f1ff; /*#c9ffda*/
    color:#0a1970;
    font:courier;
    
}
button:focus {
    outline: none;
}
.actualbody{
    padding-left:0px;
    padding-right:0px;
}
table, th, td{
    border: 1px solid;
    text-align:center;
    padding:2px;
}
weird{
    float:left;
}
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333;
}
li {
    float: left;
}
li a{
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}
li a:hover {
    background-color: #111;
}
.active {
    background-color: #04AA6D;
}
.caption{
    text-align:center;
    color: red;
    font-size: 15px;
}
img{
    padding: 0px;
    margin-left:auto;
    margin-right:auto;
}		
.row{
    max-width:100%;
}
#keymap {
  border-collapse: separate;
  border-spacing: 6px;         /* spacing between keys */
  margin: 1rem auto;
}

#keymap td {
  width: 35px;                 /* a bit bigger */
  height: 35px;
  text-align: center;
  vertical-align: middle;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  font-family: ui-monospace, monospace;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, transform 0.1s;
}

#keymap td:hover {
  background: #eef4ff;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

#keymap {
    color: #0b196f;
}

#keymap td:active {
  background: #dbe8ff;
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}
#keymap td {
  /* ... your existing styles ... */
  position: relative; /* allow for pseudo-elements or stacking if needed */
}

#keymap th {
  border: 0px;
}

#keymap td sup,
#keymap td sub {
  display: block;
}

#keymap td sup {
  font-size: 0.7em;
  opacity: 0.8;
  margin-bottom: 0.5em;  /* add space BELOW sup */
}

#keymap td sub {
  font-weight: bold;
  font-size: 0.8em;
  margin-top: 0.5em;     /* add space ABOVE sub */
}

/* Remove horizontal spacing between stacked sup/sub */
sub + sup,
sup + sub {
  margin-left: 0;  /* stacked vertically now */
}



button{
    touch-action: manipulation;
}
button:hover {
    cursor: pointer;
    background-color: #FABD44;
}
.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; 
}
.login {
    margin-top:10px;
    margin-left:5px;
}
.colorPicker {
    width: 20px;
    height: 20px;
    border: none;
    cursor: pointer;
    outline: none;
    transition: transform 0.3s ease;
}
#colorPicker:hover {
    transform: scale(1.1);
}
#overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 1%;
    width: 99%;
    height: 99%;
    background-color: white;
    z-index: 1; /* Ensure it's on top of the container's content */
    opacity: 1; /* Adjust transparency if needed */
}
.fadetext {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%);
    font-family: 'Orbitron';
    max-width: 80%; 
    color: red;
    opacity: 0; /* Start fully opaque */
    transition: opacity 0.4s ease-out; /* 1-second fade-out effect */
    white-space: nowrap;
}
#chat-container {
    height: 65vh; /* Chat box takes 80% of screen height */
    border: 2px solid #333;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
}
#chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    background: white; /* White background */
}
#hotkeycontainer {
    height: 80vh; /* Adjust the height as needed */
    overflow-y: auto; /* Enables vertical scrolling */
}
.message {
    background: #d1e7ff;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 5px;
    width: fit-content;
    max-width: 80%;
}
#chat-input {
    display: flex;
    border-top: 2px solid #333;
    padding: 2px;
    background: #fff;
}
#allmessages {
    word-wrap: break-word; /* Ensure long words wrap */
    overflow-wrap: break-word; /* Modern alternative for word wrapping */
    white-space: pre-wrap; /* Preserve new lines and wrap text */
    color: #0b196f;
}
#chat-messages {
    user-select: text;
}

#message-input {
    flex-grow: 1;
    padding: 5px;
}
#creating_match {
    padding-left: 20px;
}
#settings_container {
    display: flex;
    gap: 20px;
    width: 100%;
}
#settings_left {
    max-width: 33%;
}

.com_settings_title {
    margin-bottom: 30px;
}
.autoscrollable-wrapper {
    overflow: auto;
    max-height: 100%;
    display: flex;
    flex-direction: column-reverse;
}
#public_room_container {
    height: 43vh; /* Fixed height */
    overflow-y: auto; /* Enable vertical scrolling */
    display: flex;
    flex-direction: column; /* Keeps latest content at the bottom */
}
#outertime {
    position: absolute;
    top: 65px;
    left: 5%;
    font-family: 'Orbitron';
    font-size: 30px;
}
#compete_difficulty {
    position: absolute;
    top: 65px;
    right: 1%;
    text-align: right;
    z-index:2;
}
#peek_container {
    position: absolute;
    top: 65px;
    right: 1%;
    font-size: 30px;
    text-align: right;
    z-index:2;
}
#practiceskip {
    position: absolute;
    top: 100px;
    right: 1%;
    z-index:2;
    font-size: 30px; 
    width: 100px; 
    margin-top: 20px
}
#bannercube {
    cursor: pointer;
}
#continuematch {
    position: absolute;
    top: 7%;
    right: 1%;
    z-index:2;
    font-size: 30px; 
    min-width: 150px; 
    margin-top: 20px;
    text-align: center;
}
#practice_container {
    position: absolute;
    top: 65px;
    right: 1%;
    font-size: 30px;
    text-align: right;
    z-index:2;
}


#compete_advanced {
    display: inline-flex;
    align-items: center;
}
#compete_inspection {
    display: inline-flex;
    align-items: center;
}
#outermoves {
    position: absolute;
    top: 65px;
    right: 1%;
    font-family: 'Orbitron';
    font-size: 30px;
    text-align: right;
}
#compete_group_container {
    position: absolute;
    top: 65px;
    right: 1%;
    font-size: 30px;
    text-align: right;
    z-index: 2;
}
#switcher {
    position: absolute;
    top: 3%;
    left: 5%;
}
#s_RACE2 {
    position: absolute;
    top: 10%;
    right: 1%;
}
#cnvbuttons {
    position: absolute;
    top: 1%;
    left: 5%;
    font-size: 30px;
    z-index: 2; /* Ensure it's on top of the container's content */
}
#scramble_par {
    padding-top: 10px;
}
.skinnyscore {
    margin:0px;
}
#align {
    display: block;
    /* position: absolute; */
    /* top: 92%;
    left: 4%; */
}
.allcubes {
    display: block;
}
.hidethin {
    display: block;
}
.hidethinline {
    display: inline;
}
.checkrow {
    font-size: 0px; 
    display: inline; 
    line-height: 0;
}
.checkbox-container {
    display: flex;
    flex-direction: column;
    gap: 0px;
    line-height: 0;
}

.checkbox-row {
    display: flex;
    gap: 0px;
    line-height: 0;
}

#suggest_submit {
    margin-top: 5px;
    pointer-events: auto;
}

@media screen and (max-width: 1199px) {
    .buttoncontainer {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
    .buttonitems {
        padding:5px;
    }
    #outertime {
        position: absolute;
        top: 90%;
        left: 5%;
        font-family: 'Orbitron';
        font-size: 30px;
    }
    #outermoves {
        position: absolute;
        top: 90%;
        right: 2%;
        font-family: 'Orbitron';
        font-size: 30px;
        text-align: right;
    }
    #align {
        display: none;
    }
    .allcubes {
        display: inline-block;
    }
    #chat-container {
        height: 20vh; /* Chat box takes 80% of screen height */
    }
}
@media screen and (max-width: 767px) {
    #right {
        padding-bottom: 100px !important;
    }
    #outertime {
        position: absolute;
        top: 90%;
        left: 5%;
        font-family: 'Orbitron';
        font-size: 20px;
    }
    #outermoves {
        position: absolute;
        top: 90%;
        right: 2%;
        font-family: 'Orbitron';
        font-size: 20px;
        text-align: right;
    }
    #cnvbuttons {
        padding-top: 10px;
    }
    .hidethin {
        display: none;
    }
    .hidethinline {
        display: none;
    }
    #settings_container {
        flex-direction: column;
    }
    #settings_left,
    #settings_right {
        max-width: 100%;
        margin-left: -25px;
        text-align: left; /* optional, easier to read vertically */
    }
    #saysettings {
        display: none;
    }
    .fadetext {
        position: absolute;
        top: 3%;
        left: 75%;
    }
    #practiceskip {
        top: 0%;
        font-size: 20px;
        width: 80px;
    }
    #continuematch {
        top: 0%;
        font-size: 20px;
        min-width: 120px;
        text-align: center;
    }
    #s_RACE2 {
        top: 0%;
    }
    #practice_container {
        top: 30px;
    }
    #peek_container {
        top: 10px;
    }
}

#recent_solves_body td {
    text-align: center;
    border: 1px solid;
    height: 32px;
    min-height: 32px;
}

#recent_solves_body tr {
    height: 32px;
}
