.option {
    background-color: #f1f1f1;
    background-size: contain;
    background-repeat: no-repeat;
    padding: 8px;
    background-origin: content-box;
    width: 40px;
    height: 40px;
    border-radius: 30%;
    margin-right: 12px;
}

.option.active, .option:hover {
    background-color: #cfcfcf;
}

.option:first-child {
    margin-left: 12px;
}

#tool-wrapper {
    display: none;
    height: 60px;
    padding: 5px; 
    align-items: center; 
    font-size: 14px;
    position: absolute;
    top: -5px;
    left: 54px;
    background-color: white;
    border: 1px solid #f1f1f1;  
    border-radius: 15px;
}

#tool-wrapper.active {
    display: flex;
}

#marker-tool {
    z-index: 11; 
    position: absolute;
    left: 48.5%;
}

#opt-laser {
    background-image: url("images/laser.png");
}

#opt-pen, #trigger-tool {
    background-image: url("images/pen.png");
}

#trigger-tool {
    background-color: white;
    background-size: contain;
    background-repeat: no-repeat;
    padding: 8px;
    background-origin: content-box;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

#tooltip {
    position: absolute;
    top: -6px;
    left: 46px;
    font-weight: bold;
    font-size: 20px;
    width: max-content;
    color: black;
}

#trigger-tool.active, #trigger-tool:hover {
    background-color: #cfcfcf;
}

#opt-highlight {
    background-image: url("images/highlight.png");
}

#opt-eraser {
    background-image: url("images/eraser.png");
}

#opt-eraserall {
    background-image: url("images/eraserall.png");
}

#opt-line {
    background-image: url("images/line.png");
}

#color-picker-value {
    width: 24px;
    height: 24px;
    border-radius: 30%;
}

input[type='color'] {
    width: 0;
    height: 0;
    padding: 0;
    border: none;
    z-index: -1;
    position: relative;
}

#line-board {
    position: absolute;
    bottom: 53px;
    left: 0;
    background: white;
    border: 1px solid #cfcfcf;
    border-radius: 15px;
    width: 84px;
    padding-left: 6px;
    padding-right: 6px;
}

#opt-line {
    position: relative;
}

.line-option {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    padding: 5px;
    border: 1px solid #fff;
}

.line-option.active {
    border: 1px solid #9e9e9e;
}

.line-option:first-child {
    margin-top: 12px;
}

.line-option .example {
    width: 60px;
}

#lines .example {
    border-top: 4px solid black;
}

#linem .example {
    border-top: 8px solid black;
}

#linel .example {
    border-top: 12px solid black;
}

body.pen {
    cursor: url('cursor/pen.png'), auto;
}

body.laser {
    cursor: url('cursor/laser.png'), auto;
}

body.highlight {
    cursor: url('cursor/highlight.png'), auto;
}

body.eraser {
    cursor: url('cursor/eraser.png'), auto;
}

@media only screen and (min-width: 1601px) {
    #marker-tool {
        bottom: 15px;
    }
}

@media only screen and (min-width: 1441px) and (max-width: 1600px) {
    #marker-tool {
        bottom: 10px;
    }
}

@media only screen and (min-width: 1369px) and (max-width: 1440px) {
    #marker-tool {
        bottom: 9px;
    }
}

@media only screen and (min-width: 668px) and (max-width: 1368px) {
    #marker-tool {
        bottom: 8px;
    }

    #trigger-tool {
        padding: 7px;
        width: 35px;
        height: 35px;
    }

    #color-picker-value {
        width: 21px;
        height: 21px;
    }

    .option {
        padding: 7px;
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }

    .option:first-child {
        margin-left: 10px;
    }

    #tool-wrapper {
        height: 50px;
        top: -5px;
        left: 54px;
        padding: 0;    
    }

    #tooltip {
        font-size: 16px;
        left: 43px;
    }

    #line-board {
        bottom: 46px;
        width: 84px;
        padding-left: 8px;
        padding-right: 8px;
        border-radius: 7px; 
    }

    .line-option {
        margin-bottom: 10px;
    }
    
    .line-option:first-child {
        margin-top: 10px;
    }

    .line-option .example {
        width: 55px;
    }
}

@media only screen and (min-width: 1025px) and (max-width: 1180px) {
    #marker-tool {
        bottom: 5px;
    }
}

@media only screen and (min-width: 668px) and (max-width: 1024px) {
    #trigger-tool {
        padding: 6px;
        width: 30px;
        height: 30px;
    }

    .option {
        padding: 6px;
        width: 30px;
        height: 30px;
        margin-right: 8px;
    }

    .option:first-child {
        margin-left: 8px;
    }

    #color-picker-value {
        width: 18px;
        height: 18px;
    }


    #tool-wrapper {
        height: 40px;
        padding: 3px;
        top: -5px;
        left: 54px;
    }

    #marker-tool {
        bottom: 4px;
    }

    #tooltip {
        font-size: 15px;
        left: 40px;
    }

    #line-board {
        bottom: 36px;
        width: 60px;
        padding-left: 4px;
        padding-right: 4px;
        border-radius: 7px; 
    }

    .line-option {
        margin-bottom: 5px;
        padding: 3px;
    }
    
    .line-option:first-child {
        margin-top: 5px;
    }

    .line-option .example {
        width: 42px;
    }
    
    #lines .example {
        border-top: 2px solid black;
    }
    
    #linem .example {
        border-top: 4px solid black;
    }
    
    #linel .example {
        border-top: 6px solid black;
    }
}

@media only screen and (min-width: 394px) and (max-width: 667px) {
    #trigger-tool {
        padding: 4px;
        width: 18px;
        height: 18px;
    }

    .option {
        padding: 4px;
        width: 18px;
        height: 18px;
        margin-right: 2px;
    }

    .option:first-child {
        margin-left: 2px;
    }

    #color-picker-value {
        width: 10px;
        height: 10px;
    }

    #tool-wrapper {
        height: 24px;
        padding: 3px;
        top: -5px;
        left: 54px;
        border-radius: 8px;
        padding: 1px;
    }

    #marker-tool {
        bottom: 4px;
    }

    #tooltip {
        font-size: 8px;
        top: 0px;
        left: 23px;
    }

    #line-board {
        bottom: 22px;
        width: 44px;
        padding-left: 2px;
        padding-right: 2px;
        border-radius: 6px;
    }

    .line-option {
        margin-bottom: 3px;
        padding: 3px;
    }
    
    .line-option:first-child {
        margin-top: 3px;
    }

    .line-option .example {
        width: 30px;
    }
    
    #lines .example {
        border-top: 2px solid black;
    }
    
    #linem .example {
        border-top: 4px solid black;
    }
    
    #linel .example {
        border-top: 6px solid black;
    }
}

@media only screen and (max-width: 393px) {
    #trigger-tool, .option {
        padding: 3px;
        width: 12px;
        height: 12px;
    }

    .option {
        margin-right: 2px;
    }

    .option:first-child {
        margin-left: 2px;
    }

    #color-picker-value {
        width: 6px;
        height: 6px;
        position: absolute;
    }

    #tool-wrapper {
        height: 16px;
        border-radius: 5px;
        padding: 3px;
        top: -5px;
        left: 54px;
        padding: 1px;
    }

    #marker-tool {
        bottom: 2px;
    }

    #tooltip {
        font-size: 5px;
        top: -8px;    
        left: 15px;    
    }

    #line-board {
        bottom: 14px;
        width: 30px;
        padding-left: 1px;
        padding-right: 1px;
        border-radius: 3px;
    }

    .line-option {
        margin-bottom: 1px;
        padding: 2px;
    }
    
    .line-option:first-child {
        margin-top: 1px;
    }

    .line-option .example {
        width: 30px;
    }
    
    #lines .example {
        border-top: 1px solid black;
    }
    
    #linem .example {
        border-top: 2px solid black;
    }
    
    #linel .example {
        border-top: 3px solid black;
    }

    input[type='color'] {
        position: absolute;
    }
}