@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


:root
{
    --upcolor: rgb(255, 255, 255);
    --upbordercolor: rgb(215, 215, 215);
    --downcolor: rgb(255, 255, 0);
    --downbordercolor: rgb(215, 215, 0);
    --leftcolor: rgb(255, 165, 0);
    --leftbordercolor: rgb(215, 125, 0);
    --rightcolor: rgb(255, 0, 0);
    --rightbordercolor:rgb(215, 0, 0);
    --frontcolor: rgb(0, 128, 0);
    --frontbordercolor: rgb(0, 88, 0);
    --backcolor: rgb(0, 0, 255);
    --backbordercolor: rgb(0, 0, 215);
    
    
    --subtitles-display: block;
    --hintstickers-display: block;

    --flatcolors: inset 0px 0px 20px 10px rgba(0,0,0,0.25);

    --bg-color: #313131;
    --bg-color-content: #222222;
    
}

body {
	font-family: Kanit, Tahoma, Helvetica;
	background-color: var(--bg-color);
	font-size: 18px;
	color: white;
	-webkit-text-size-adjust: none;
	   -moz-text-size-adjust: none;
	    -ms-text-size-adjust: none;
	        text-size-adjust: none;
}

button
{
    font-family: Kanit, Tahoma, Helvetica;
}

select, input
{
    font-size: 14px;
}

.noselect {
-webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */ /* Konqueror HTML */
        -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                supported by Chrome, Edge, Opera and Firefox */
}

#main-container
{
    height: 100vh;
}

#write-container
{
    margin-top: 5px;
}

textarea:focus, input:focus
{
    outline: none;
    box-shadow: 0px 0px 2px #0066ff;
}

#write-container textarea
{
    font-family: Kanit, Tahoma, Helvetica;
    font-size: 18px;
	line-height: 32px;
    overflow: hidden;
    overflow-wrap: break-word;
    box-sizing: border-box;
    resize: none;
    width: 100%;
    border: none;
    padding: 3px;
}

@media screen and (max-width: 900px)
{
    #write-container textarea
    {
        font-size: 14px;
        line-height: 28px;
    }
}

#write-container .rich-content
{
    position: absolute;
	z-index: 10;
	height: 10rem;
	width: 100%;
	white-space: break-spaces;
	word-wrap: break-word;
	pointer-events: none;
	font-size: 18px;		
	color: #000;
	border: none;
	margin: 0 0;
    padding: 3px;
    box-sizing: border-box;
	line-height: 32px;
	-webkit-text-size-adjust: none;
	   -moz-text-size-adjust: none;
	    -ms-text-size-adjust: none;
	        text-size-adjust: none;
}


@media screen and (max-width: 900px)
{
    #write-container .rich-content
    {
        font-size: 14px;
        line-height: 28px;
    }
}

#write-container #solve-move-stats
{
    text-align: right;
}
#write-container #solve-move-stats .statbadge
{
    padding: 5px;
}

#write-container #solve-move-stats .solve-move-stats-num
{
    margin-right: 1px;
    font-weight: bold;
}

#write-container #tpsstats
{
    text-align: right;
    font-size: 18px;
    font-variant: all-petite-caps;
}


#write-container #inverse-container,
#write-container #result-container,
#write-container #moves-container
{
    position: relative;    
}
#write-container #scramble-container
{
    position: relative;    
    flex: 1;
}

#write-container #scramble-container #scramble,
#write-container #moves-container #moves
{
    height: 160px;
    color: lightgray;
    caret-color: black;
}

.crossanalysis
{
    display: none;
}

#analyzecross
{
    display: none;
}

.analysis-headers
{
    justify-content: space-between;
    display: flex;
}
.analysis-color-header
{
    padding: 5px 10px;
}

.analysiscolorheader
{
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.analysiscolorresult
{
    overflow: auto;
    height: 200px;
    border: 1px inset var(--bg-color-content);
    margin-top: 5px;
    display: none;
}

.analysiscolorresult li
{
    padding: 5px;
    border: 1px outset #444;
}


#analysis-loading
{
    display: none;
    border: 1px inset var(--bg-color-content);
    margin-top: 5px;
}

.F2LNametag
{
    font-size: 14px;
}

#write-container .scramble-container
{
    position: relative;    
    display: flex;
}


#write-container label[for=recontype],
#write-container label[for=timeresult]
{
    font-size: 12px;
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    transition: all 0.3s;
}

#recontype:focus + label[for=recontype],
#timeresult:focus + label[for=timeresult]
{
    opacity: 0;
}

#write-container #result-line
{
    margin: 5px 0px;
}


.autocomplete-container
{
    position: absolute;
    display: block;
    width: max-content;
    background-color: #EEE;
    color: black;
    font-size: 13px;
    line-height: normal;
    left: 0px;
    border: 1px solid #aaa;
    text-shadow: none;
    z-index: 1000;
}

.autocomplete-container .autocomplete-option
{
    padding: 5px 2px;
    cursor: pointer;
    display: flex;
}
.autocomplete-container .autocompelete-type
{
    font-variant: all-petite-caps;
    background-color: black;
    color: white;
    margin-right: 5px;
    padding: 0px 5px;
}

.autocomplete-container .autocomplete-option .autocomplete-text
{
    flex:1;
    text-align: left;
}

.autocomplete-container .autocomplete-option .autocomplete-tab
{
    visibility: hidden;
    display: inline;
    border: 1px solid black;
    border-radius: 5px;
    padding: 0px 4px;
    margin-left: 50px;    
    font-size: 10px;
    justify-content: space-between;
}

.autocomplete-container .autocomplete-option:hover
{
    background-color: #CCC;
}

.autocomplete-container .autocomplete-option.active
{
    background-color: #DFDFDF;
}

.autocomplete-container .autocomplete-option.active .autocomplete-tab
{
    
    visibility: visible;
}

.autocompelete-highlight
{
    color: blue;
}


.actions-window 
{
    justify-content: center;
    display: flex;
    margin: 0px 5px;
}

.actions-window button
{
    width: 75px;
    padding: 10px 0px;
    margin: 0px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 5px;
}

.action-button-text
{
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 12px;
}

#eraser
{
    display: none;
}

/*       present     */

#present-container
{
    margin-top: 5px;
	text-align: center;
	height: 100vh;
    min-height: 500px;
    position: relative;
}

#present-container .fixed-container
{
    background-color: var(--bg-color-content);
    position: fixed;
    width: 55%;
    border: 1px outset var(--bg-color-content);    
    border-radius: 5px;
}

@media screen and (max-width: 750px)
{
    #present-container
    {
         min-height: auto;
         height: 50vh;
    }
    #present-container .fixed-container
    {
        position: relative;
        width: 100%;
    }
}

#present-container .present-container-window
{
    transition: opacity 0.5s, visibility 0s;
    opacity: 0;
    visibility: hidden;
}

#present-container .present-container-window.active
{
    visibility: visible;
    display: inline-block;
    text-align: left;
    border: 1px outset #226;
    background-color: #223;
    padding: 10px;
    position: relative;
    left: 0;
    bottom: -10px;
    opacity: 1;
}

#present-container #present-container-menu
{
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
}

#present-container #present-container-menu .present-container-button
{
    height: 60px;
    width: 60px;
    border: 1px outset #226;
    background-color: #223;
    border-radius: 5px;
    margin: 5px 5px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: 0.5s all;
}

#present-container #present-container-menu .present-container-button:hover
{
    background-color: darkslategrey;
}

#present-container #present-container-menu .present-container-button .present-container-button-caption
{
    font-size: 12px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#present-container-play-controls
{
    position: absolute;
    bottom: 10%;
    display: flex;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
}

#present-containers-tape-buttons
{
    display: flex;
}

#present-containers-tape-buttons button
{
    width: 35px;
    height: 35px;
    border-radius: 5px;
}

.colordiv
{
    display: flex;
    margin-top: 15px;
}

.colordiv input
{
    padding: 0px;
    height: 30px;
    width: 30px;
    margin-right: 2px;
}


.info-select-block
{
    margin-top: 10px;
    display: flex;    
    align-items: center;
    justify-content: space-between;
    position: relative;
}


.info-select-block:nth-child(1)
{
    margin-top: 0px;
}

.info-select-block input,
.info-select-block select
{
    flex-grow: 1;
    margin-left: 5px;
    padding: 5px 5px;
    border-radius: 5px;
}

.info-select-block .puzzle-image
{
    width: 50px;
    height: 50px;
}

.info-select-block .puzzle-image-selector
{
    width: 50px;
    height: 50px;
    padding: 2px;
    margin-right: 5px;
    cursor: pointer;
    border-radius: 5px;
    background-color: black;
}

.info-select-block .puzzle-image-selector:hover
{
    background-color: darkslategrey;
}

.alg-hightlight-dic
{
    display: none;
    margin-right: 10px;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #333;
    min-width: 150px;
    box-shadow: 0px 0px 20px black;
    border-radius: 5px;
}

.alg-hightlight-dic .caption
{
    font-weight: bold;
}

.alg-hightlight-dic .close-window
{
    float: right;
    margin-right: 5px;
    margin-top: 2px;
}

.alg-hightlight-dic .alglist
{
    list-style: none;
    padding: 5px;
    margin: 0px;
    text-align: left;
}

.alg-hightlight-dic .alglist li
{
    padding: 3px;
    border: 1px outset #333;
    font-size: 14px;
}

/*  NxN puzzle */

#present-container #puzzle-display-window
{
    display: inline-flex;
    overflow: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-perspective: 800px;
    perspective: 800px;
    min-height: 500px;
    height: 100%;
    width: 100%;
    cursor: move;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

 *, 
 *::after, 
*::before {
    box-sizing: initial;
}

@media screen and (max-width: 900px)
{
    #present-container #puzzle-display-window
    {
         min-height: auto;
    }
}

/* hints */

.NxN_face_hint_container {
    position: absolute;
    transform: translateX(0px) translateY(-35px) translateZ(0px); 
    transform-style: preserve-3d;
    font-weight: bold;
    font-size: 120px;
    font-weight: bold;
    color: white;
    text-shadow: -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 3px 3px 0 #000;
}

.NxN_face_hint {
    position: absolute;
    border: none;
    background-color: transparent;
    opacity: 0;
    transform-style: preserve-3d;
    position: absolute;
    transition: 0.5s all;
}

.NxN_face_hint_container.active .NxN_face_hint
{
    opacity: 0.7;
}

.NxN_face_hint_down.NxN_face_hint {
    font-size: 100px;
    transform: rotateX(-90deg) translateZ(130px);
}	

.NxN_face_hint_container.active .NxN_face_hint_down.NxN_face_hint {
    transform: rotateX(-90deg) translateZ(150px);
    font-size: 120px;
}	


.NxN_face_hint_up.NxN_face_hint {		
    font-size: 100px;
    transform: rotateX(90deg) translateZ(130px);
}

.NxN_face_hint_container.active .NxN_face_hint_up.NxN_face_hint {				
    transform: rotateX(90deg) translateZ(150px);
    font-size: 120px;
}


.NxN_face_hint_right.NxN_face_hint {		
    font-size: 100px;
    transform: rotateY(90deg) translateZ(130px);
}

.NxN_face_hint_container.active .NxN_face_hint_right.NxN_face_hint {				
    transform: rotateY(90deg) translateZ(150px);
    font-size: 120px;
}


.NxN_face_hint_left.NxN_face_hint {
    font-size: 100px;
    transform: rotateY(-90deg) translateZ(130px);
}

.NxN_face_hint_container.active .NxN_face_hint_left.NxN_face_hint {
    transform: rotateY(-90deg) translateZ(150px);
    font-size: 120px;
}


.NxN_face_hint_back.NxN_face_hint {
    font-size: 100px;
    transform: rotateX(180deg) translateZ(130px) rotateZ(-180deg);
}

.NxN_face_hint_container.active .NxN_face_hint_back.NxN_face_hint {
    transform: rotateX(180deg) translateZ(150px) rotateZ(-180deg);
    font-size: 120px;
}


.NxN_face_hint_front.NxN_face_hint {
    transform: rotateX(0deg) translateZ(130px);
    font-size: 100px;
}

.NxN_face_hint_container.active .NxN_face_hint_front.NxN_face_hint {
    transform: rotateX(0deg) translateZ(150px);
    font-size: 120px;
}

/* hinted stickers */
.NxN_face_up.NxN_hint {
    transform: rotateX(-90deg) translateZ(-200px);
}	
.NxN_face_down.NxN_hint {				
    transform: rotateX(90deg) translateZ(-200px);
}
.NxN_face_left.NxN_hint {				
    transform: rotateY(90deg) translateZ(-200px);
}
.NxN_face_right.NxN_hint {
    transform: rotateY(-90deg) translateZ(-200px);
}
.NxN_face_front.NxN_hint {
    transform: rotateX(180deg) translateZ(-200px);
}
.NxN_face_back.NxN_hint {
    transform: rotateX(0deg) translateZ(-200px);
}

/* model */

.model_kareoke
{
    position: absolute;
    width: 50%;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    display: var(--subtitles-display);
}

.NxN_model {
    transform-style: preserve-3d;
    transform-origin: center center 70px;
    width: 500px; 
    height: 300px; 
    transform-origin: 210px 210px;
    transform: translateZ(-300px) rotateX(-30deg) rotateY(-45deg) rotateZ(0deg) translateX(200px) translateY(150px);
}

.NxN_brick {
    position: absolute;
    display: block;
    transform-style: preserve-3d;
    transform-origin: 35px 35px 0px;
}	

.NxN_face {
    background: radial-gradient(#151515, #000);
    transition: border 0.5s;
    box-sizing: border-box;
    position: absolute;				
    border: 1px solid black;
    transform-style: preserve-3d;
    background-color: black;
}
.stickerless .NxN_face { 
    border: none;
}
.NxN_face_up {
    transform: rotateX(90deg) translateZ(35px);
}	
.NxN_face_down {				
    transform: rotateX(-90deg) translateZ(35px);
}
.NxN_face_left {				
    transform: rotateY(-90deg) translateZ(35px);
}
.NxN_face_right {
    transform: rotateY(90deg) translateZ(35px);
}
.NxN_face_front {
    transform: rotateX(0deg) translateZ(35px);
}
.NxN_face_back {
    transform: rotateX(180deg) translateZ(35px);
}


/* stickers */

.NxN_logo_sticker
{
    width: 100%;
    height: 100%;
    background-size: 75% 75%;
    background-repeat: no-repeat;
    background-position: center;
}

.NxN_hint
{
    display: var(--hintstickers-display);
}

.NxN_hint.NxN_face {
	border: none;
	background-color: transparent;
	opacity: 0.7;
	-webkit-backface-visibility: hidden;
	        backface-visibility: hidden;
}

.NxN_sticker {    
	border-radius: 5px;
	border: 3px solid black;
	background-color: white;
    border-radius: 20px;
    transition: box-shadow 1s;
    box-shadow:  var(--flatcolors);
}

.highlighted .NxN_sticker
{
    box-shadow:  inset 0px 0px 20px 10px rgba(0,0,0,0.8);
}

.NxN_sticker.tl{
	border-top-left-radius: 0px !important;
}

.NxN_sticker.tr{
	border-top-right-radius: 0px !important;
}

.NxN_sticker.br{
	border-bottom-right-radius: 0px !important;
}

.NxN_sticker.bl{
	border-bottom-left-radius: 0px !important;
}

.NxN_sticker_up {
	background-color: var(--upcolor);
    border-color: var(--upbordercolor);
}
.NxN_sticker_down {
	background-color: var(--downcolor);
    border-color: var(--downbordercolor);
}
.NxN_sticker_left {
	background-color: var(--leftcolor);
    border-color: var(--leftbordercolor);
}
.NxN_sticker_right {
	background-color: var(--rightbordercolor);
    border-color: var(--rightbordercolor);
}	
.NxN_sticker_front {
	background-color: var(--frontcolor);
    border-color: var(--frontbordercolor);
}		
.NxN_sticker_back {
	background-color: var(--backcolor);
    border-color: var(--backbordercolor);
}	


.NxN_magnet
{
    background-color: #444;
    border: 2px double gray;
    border-radius: 50px;
    width: 12px;
    margin: 3px;
    height: 12px;
}

.NxN_magnet.x-start
{
    position: absolute;
    left: 0;
}

.NxN_magnet.x-end
{
    position: absolute;
    right: 0;    
}

.NxN_magnet.y-start
{
    position: absolute;
    top: 0;
}

.NxN_magnet.y-end
{
    position: absolute;
    bottom: 0;
}

#inverse,
#result
{
    background-color: #aaa;
}

#result-label,
#inverse-scramble-label
{
	display: flex;
    justify-content: space-between;
	border: 1px solid #555;
    background: gray;
    color: white;
    font-size: 12px;
    text-transform: uppercase;
}

/* rich edit */

#inverse-richcontent
.richdata_move {
	
}

.richdata_move {

}

.richdata_space {

}

.richdata_rotation {
    color: darkcyan;
}

.richdata_comment {
	color: darkslateblue;
}

.richdata_finalresult {
	font-weight: bold;
}

.richdata_finalresultlabel {
	color: maroon;
}

.model_kareoke .richdata_comment
{
    position: absolute;
    right: 0px;
    left: 0;
    top: -100%;
    font-weight: bold;
    color: white;
}


.model_kareoke .richedit_parsedmoves_container
{
    position: absolute;
    left: 0px;
    right: 0px;
}
.model_kareoke .richedit_parsedmoves
{
    position: relative;
    font-size: 12px;
    width: 420px;
    top: 20px;
}

.richdata_error {
    color: red;
}

.richdata_cantslice {
    color: red !important;
    position: relative;
}

.richdata_cantslice::before {
    content: '?';
    position: absolute;
    left: 50%;
    top: -17px;
    font-size: 12px;
}
.richdata_current {
    position: relative;
	visibility: visible !important;
	color: orange !important;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.richdata_slice
{
    color: #999;
}

.richedit_parsedmoves_container
{
    position: absolute;
}

.richedit_parsedmoves
{
	position: absolute; 
	font-size: 12px; 
	width: 350px; 
	top:15px
}



/* users */
.navbar-profile-img
{
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 5px;
}

.user-menu
{
    display: flex;
    justify-content: space-between;
}

.dropbtn {
    background-color: #FFFFFF;
    padding: 5px;
    font-size: 15px;
    border: none;
    display: inline-flex;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 5px;
    text-decoration: none;
    align-items: center;
}

.dropbtn:hover, .dropbtn:focus {
    background-color: #f5f5f5;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    position: absolute;
    left: 0px;
    top: 110%;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgb(0 0 0 / 20%);
    z-index: 1;
    display: none;
}

.dropdown-content a {
    color: black;
    padding: 10px 10px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.cateyes
{
	position: absolute;
    bottom: 0;
    left: 0;
    display: none;
}

.catfingers
{
	position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translatex(-50%);
    display: none;
}


.NISS,
.UNNISS
{
	position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translatex(-50%);
    display: none;
	font-size: 72px;
	font-weight: 900;
	color: black;
	text-shadow: -1px -1px 0 #FFF, 1px -1px 0 #FFF, -1px 1px 0 #FFF, 1px 1px 0 #FFF;
}
.UNNISS
{
    text-decoration: line-through;
}


.blackbg
{
    transition: all 0.3s;
}

.blackbg:not(:focus)
{
    border: none;
    background-color: var(--bg-color-content);
    color: white;
    font-weight: bold;
}

.modesbutton {
    flex-direction: row;
    justify-content: center;
    padding: 5px 5px;
    flex: 1;
    border-bottom: none;
    border-radius: 5px 5px 0px 0px;
    margin: 0px 2px;
}

#editor-part
{

}

#critique-part
{
    display: none;
    padding: 5px;
    position: relative;
}

#critique-part .para
{
    padding: 15px 15px;
    margin-bottom: 10px;
    background-color: var(--bg-color-content);
    border-radius: 5px;
    position: relative;
    border: 1px outset var(--bg-color-content);
}

#critique-part .para .partheader
{
    padding: 0px 10px 10px 10px;
    border-bottom: 1px solid #333;
}

#critique-part .partheader .headerdesc
{
    font-size: 14px;
    color: gray;
}

#critique-part a.cubedblink
{
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

#critique-part .exclamation
{
    background-color: #111;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

#critique-part .pairdesc,
#critique-part .crossdesc
{
    font-size: 14px;
    color: gray;
}


#critique-part .optionscore
{
    border: 1px solid gray;
    padding: 5px;
    place-self: center;
    margin-right: 5px;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}

#critique-part .moreoptions
{
    display:none;
}
#critique-part .moreoptions-btn
{
    display: block;
    margin: 0 auto;
}

.noactive:focus
{
    outline: 0 !important;
    box-shadow: none !important;
}

.context-window
{
    position: absolute;
}

.context-menu-list
{
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 0px;
    background-color: rgba(100,100,100,0.75);
    border-radius: 5px;
    border-top-left-radius: 0px;
    -webkit-transition: background-color 1000ms linear;
    -ms-transition: background-color 1000ms linear;
    transition: background-color 1000ms linear;
    margin-bottom: 0px;
    border: 1px outset #333;
}

.context-menu-item
{
    display: inline-flex;
    padding: 5px;
    cursor: pointer;
}

.context-menu-item:hover
{
    background-color: rgba(50,100,100,1);
}

.context-menu-item i
{
    padding-right: 7px;
}

.optionalcross,
.optionaloll,
.optionalpll,
.optionalpair
{
    border-bottom: 1px solid #333;
}