@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Syncopate:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    user-select: none;
}

.container {
    height: 100dvh;
    min-width: 100%;
    display: flex;
    align-items: flex-start;
    padding: 10px;
}

.main-container {
    min-width: calc(100% - 80px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.main-panel {
    min-height: 80px;
    margin-bottom: 5px;
    border: 2px solid black;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 5px;
}

.side-bar {
    min-width: 80px;
    margin-top: 90px;
    margin-left: 5px;
    height: calc(100% - 90px);
    border: 2px solid black;
    border-radius: 16px;
    padding: 5px;
}

.canvas-container {
    position: relative;
    width: 100%;
    height: calc(100% - 85px);
    border: 2px solid black;
    border-radius: 16px;
    overflow: hidden;
}


.main-panel__img {
    width: 60px;
    padding: 2px;
    border: 5px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.main-panel__img:hover {
    border: 5px solid rgb(192, 192, 192);
}

.main-panel__img img {
    width: 100%;
    object-fit: cover;
}

#color {
    width: 45px;
    height: 45px;
    background-color: black;
    border-radius: 8px;
}

.active-main-icon {
    border-color: black;
}

.active-main-icon:hover {
    border-color: black;
}

.side-bar__item-panel {
    height: 100%;
    width: 100%;
    flex-direction: column;
    align-items: center;
    grid-row-gap: 10px;
    display: none;
}

.active-side-bar {
    display: flex;
}

.side-panel__item {
    width: 60px;
    min-height: 60px;
    padding: 2px;
    border: 5px solid transparent;
    border-radius: 8px;
    transition: all 0.5s ease;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    display: flex;
}


.side-panel__item:hover {
    border: 5px solid rgb(192, 192, 192);
}

.side-bar-icon {
    border-color: black;
}

.side-bar-icon:hover {
    border-color: black;
}

.side-panel__item img {
    width: 100%;
    object-fit: cover;
}

.pencil-width-5px {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: black;
}

.pencil-width-10px {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: black;
}

.pencil-width-20px {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: black;
}

.pencil-width-container {
    display: flex;
    flex-direction: column;
    font-size: 20px;
    border: none;
}

.pencil-width-container:hover {
    border: none;
}

#pencil-width-range,
#robot-width-range {
    transform: rotate(-90deg);
    width: 200px;
    margin-top: 100px;
}

.pencil-color {
    margin-top: 100px;
    border: none;
}

.pencil-color:hover {
    border: none;
}

#pencil-color-picker,
#color-color-picker,
#robot-color-picker {
    min-width: 60px;
    min-height: 60px;
}

#color-picker-palet {
    width: 73px;
}

.eraser-square {
    border-radius: 0;
}

#eraser-width-range {
    transform: rotate(-90deg);
    width: 200px;
    margin-top: 100px;
}

.choose-photo {
    width: 60px;
    height: 60px;
    cursor: pointer;
}

.choose-photo img {
    width: 100%;
    object-fit: cover;
}

.picture-checkbox {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    margin-top: 50px;
    text-align: center;
}

#adaptive {
    width: 60px;
    height: 60px;
}

.save-text {
    text-align: center;
    font-size: 20px;
    margin-top: 50px;
}

#save-input {
    width: 100%;
}

#saveConfirm {
    font-size: 20px;
    margin-top: 50px;
}

.filters-container {
    display: none;
    width: 100%;
    flex-direction: column;
}


.filter-name {
    width: 100%;
    font-size: 14px;
    margin-top: 20px;
    text-align: center;
}

.filter-range {
    width: 100%;
}

#start,
#clear-pass,
#stopRobot {
    font-size: 20px;
    text-align: center;
    cursor: pointer;
    border: 5px solid black;
    border-radius: 8px;
}

#play:hover,
#play,
#stop,
#stop:hover {
    margin-top: 20px;
    border: none;
    opacity: 0.5;
    pointer-events: none;
}

#clear-pass,
#stopRobot {
    opacity: 0.5;
    pointer-events: none;
}

.scale-reset {
    font-size: 22px;
    cursor: pointer;
    margin-top: 50px;
}

#polygon {
    display: flex;
    flex-direction: column;
}

.text-input-container {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    align-items: start;
    z-index: 100;
}

.textarea {
    padding: 0;
    margin: 0;
    display: block;
    width: 100%;
    overflow: hidden;
    min-height: 8px;
    min-width: 10px;
    outline: 2px dashed black;
}

.text-confirm,
.text-cancel {
    min-width: 30px;
    max-width: 30px;
    min-height: 30px;
    max-height: 30px;
    margin-left: 10px;
}

.move {
    min-width: 20px;
    max-width: 20px;
    min-height: 20px;
    max-height: 20px;
    position: absolute;
    top: -22px;
    left: -22px;
    cursor: grab;
    user-select: none;
}

.text-confirm img,
.text-cancel img,
.move img {
    width: 100%;
    object-fit: cover;
}

#font,
#font-size {
    width: 100%;
}

#text-left {
    margin-top: 50px;
}


.btn-home {
    padding: 8px;
    background: rgba(35, 28, 28, .73);
    border-radius: 4px;
    color: #fff;

    text-decoration: none;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 200;
    opacity: 0.5;
    transition: opacity .2s;
}

.btn-home:hover {
    opacity: 1;
}