@font-face {
    font-family: Andy;
    src: url(AndyBold.OTF);
}

html{
    margin: 0px;
}
body{
    margin: 0px;
    background-color: rgb(16, 16, 16);
}

#otxEditor{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1;
    background-color: #0000007F;
    display: none;
    flex-direction: row;
    padding: 20px;
}
#otxEditor > div:nth-child(1) {
    width: 220px;
    display: flex;
    flex-direction: column;
}
#otxEditor > div:nth-child(2) {
    flex: 1
}
#editorClose{
    margin-top: auto;
}

#otxViewer{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}
#otxButtons{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.tPanel{
    border-width: 10px;
    border-style: solid;
    border-image: url(background1.png) 10 fill;
    background-color: transparent;
}
.tPanelClickable:hover{
    border-image: url(background2.png) 10 fill;
    cursor: pointer;
}

.text{
    font-family: Andy;
    color: lightgray;
    font-size: 16px;
    position: relative;
    text-shadow: 0px -2px #000000, 0px 2px #000000, 2px 0px #000000, -2px 0px #000000, -1px -1px #000000, 1px 1px #000000, 1px -1px #000000, -1px 1px #000000;
}

#images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.imgPanel{
    display: flex;
    gap: 10px;
    flex-direction: row;
    align-items: flex-start;
}

.mainPanel{
    text-align: center;
    max-width: fit-content;
    justify-self: center;
}

canvas{
    image-rendering: pixelated;
    height: auto;
    min-width: 0;
    min-height: 0;
    width: 0%;
    flex-grow: 1;
}

.sideButtonsGroup{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sideButtons {
    display: flex;
    justify-content: center;
    width: 12px;
    height: 12px;
    align-items: center; 
}

.optionToggle{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}
.optionToggle > :nth-child(1){
    margin-left: auto;
}
.optionToggle > div:has(> input[type="checkbox"]){
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4px;
    height: 4px;
}
.optionToggle > div > input[type="checkbox"]{
    border: none;
    outline: none;
    background: none;
    padding: 0px;
    margin: 0px;
    min-height: 24px;
    min-width: 24px;
}
.optionToggle > div > input[type="checkbox"]:hover{
    cursor: pointer;
}
.optionToggle > div > input[type="checkbox"]{
    position: absolute;
    opacity: 0;
}
.optionToggle > div > span{
    display: none;
}
.optionToggle > div:has(input:checked) > span{
    display: block;
}


.moreInfoQuestion{
    margin: 0px;
    cursor: help;
    color: yellow;
}
.moreInfoQuestion > div{
    transition: transform 0.2s, opacity 0.2s;
    color: white;
    position: absolute;
    pointer-events: none;
    transform: translate(0px, 0px);
    opacity: 0;
    width: 200px;
    right: 1;
    filter: drop-shadow(0px 0px 4px black);
}
.moreInfoQuestion:hover > div{
    opacity: 1;
    transform: translate(0px, -100%);
}

.convertButton{
    display: flex;
    height: 12px;
    align-items: center;
}
@media (max-width: 600px) {
    .imgPanel{
        flex-direction: column;
    }
    canvas {
        width: 100%;
    }
}

#editCanvas{

}

/* Colour option */

.colour {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 6px;
    margin-left: auto;
}
.colour > input[type="color" i]{
    min-width: calc(100% + 20px);
    min-height: 6px;
    opacity: 0;
}
.colour > input:hover{
    cursor: pointer;
}
.colour::after{
    content: "";
    position: absolute;
    min-width: calc(100% + 20px - 10px);
    min-height: calc(26px - 10px);
    background-color: var(--colour);
    border-radius: 10px;
    pointer-events: none;
}

/* slider option */

.slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    height: 6px;
    margin-left: auto;
}
.slider > input[type="range"]{
    -webkit-appearance: none;
    background-color: transparent;
    position: relative;
    width: 100%;
    margin: 0px;
    isolation: isolate;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.slider > input[type="range"]::after{
    content: "";
    position: absolute;
    background: linear-gradient(90deg, white, black);
    border-radius: 100px;
    width: calc(100% - 12px);
    height: calc(100% - 6px);
    z-index: -1;
    border: solid 1px gray;
}
.slider > input[type="range"]::-webkit-slider-thumb{
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: transparent;
}

.tTable{
    display: flex;
    flex-direction: column;
    height: fit-content;
}
.tTable > div{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 5px;
    font-size: 14px;
    position: relative;
}
.tTable > div > input{
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0px;
    opacity: 0;
    cursor: pointer;
}
.tTable > div:has(> input:hover){
    background-color: #FFE7457F;
}
.tTable > div:has(> input:checked){
    background-color: #FFE745;
}

#editingBlock{
    padding-left: 10px;
    overflow: auto;
    overflow-x: hidden;
    margin-bottom: 10px;
    flex: 1;
}

._bit {
    width: 10px;
    display: inline-block;
    text-align: center;
}

.number{
    max-height: 5px;
    width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.number > input{
    border: none;
    outline: none;
    caret-color: black;
    max-height: 21px;
    min-width: calc(100% + 20px);
    background-color: transparent;
    padding: 5px;
}