@media (max-width: 1050px) {
    #canvas-container {
        width: 90%;
        height: 60vh;
        overflow: auto;
    }
    #brinputok {
        display: block;
    }
    .pos {
        width: 75px;
    }
    #paletta {
        z-index: 0;
    }
    .fixed-bottom {
        position: static;
    }
}
@media (min-width: 1050px) {
    #canvas-container {
        width: 1024px;
        height: 1024px;
        overflow: hidden;
    }
    #brinputok {
        display: none;
    }
    .pos {
        width: 5%;
    }
    #paletta {
        position: sticky;
        position: -webkit-sticky;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    nav {
        display: none;
    }
    
}


#coordinate {
    position: relative;
    text-align: center;
    color: white;
    font-size: 30px;
    z-index: 0;
}
#coordinate > input {
    color: white;
    user-select: none;
    border: none;
}
.pos {
    position: relative;   
    background: transparent;
    border: none;
    text-align: center;
}

#canvas-container {
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
#c {
    width:1024px; 
    height:1024px;
    /*border-radius: 2px; 
    border-color: black; 
    border-style: solid;*/
    position: absolute;
    z-index: 0;
}

#cfront {
    width:1024px; 
    height:1024px;
    /*border-radius: 2px; 
    border-color: rebeccapurple; 
    border-style: solid;*/
    position: absolute;
    z-index: 2;
    cursor:crosshair;
}

#paletta {
    /*top: 1035px;*/
    text-align: center;
    width: 90%;
    margin: auto;
    margin-top: 5px;
    z-index: 1020;
}
.colors {
    width: 65px;
    height: 35px;
    border: none;
    margin: 0;
    padding: 0;
    border-radius: 5px;
}
#paletta > input {
    float: right;
    height: 35px;
}

#to {
    width: 90px;
    border: 2px solid white;
    border-radius: 5px;
    background-color: rgb(255, 136, 0);
    margin: auto;
    margin-bottom: 10px;
    display: flex;
    position: sticky;
    position: -webkit-sticky;
    z-index: 1020;
    justify-content: center;
}

#to:hover {
    background-color: rgb(255, 188, 63);
}
#to:disabled {
    color: white;
    background-color: rgb(80, 80, 80);
}
#to:disabled:hover {
    background-color: grey;
}