body {
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;
    margin: 0;
}
button {
    cursor: pointer;
}
.text-center {
    text-align: center;
}
.pointer {
    cursor: pointer;
    color: transparent;
}
#username {
    font-size: 14px;
}
#login-btn {
    margin-left: 10px;
    height: 26px;
    line-height: 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
}
#all-rect {
    margin-right: 10px;
    height: 26px;
    line-height: 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
}
#purchase {
    margin: 0 10px;
    height: 26px;
    line-height: 24px;
    background-color: #ea1a4e;
    color: white;
    border: none;
}
.container {
    margin: 0 auto;
    width: 1280px;
    height: 100%;
}
#main_div {
    width: 1920px;
    height: 960px;
    background-color: transparent;
    position: absolute;
    top: 40px;
    left:0px;
    margin: 0 auto;
}
#follow_mouse {
    font-size: 10px;
    z-index: 9999;
}
#show_select_div {
    padding: 0;
    display: none;
    background-color: rgba(173, 216, 230, 0.6);
}

#result {
    position: absolute;
}

.grid{
    background:
        -webkit-linear-gradient(top, transparent 7px, #A3AA23 8px),
        -webkit-linear-gradient(left, transparent 7px, #A3AA23 8px);
    background-size: 8px 8px;
}

.square {
    text-align: center;
    font-size: 10px;
    text-shadow: 0 -1px #fff, 1px 0px #fff, 0 1px #fff, -1px 0 #fff,
    -1px -1px #fff, 1px 1px #fff, 1px -1px #fff, -1px 1px #fff;
}

/* 弹出窗口的样式 */
#popupDiv {
    display: none; /* 初始隐藏 */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 600px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10001;
}

/* 遮罩层样式 */
#overlay {
    display: none; /* 初始隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
}

/* 关闭按钮样式 */
#popupDiv button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    border: 0 solid #fff;
    border-radius: 30px;
    background: #eee;
    cursor: pointer;
}
#popupIframe {
    padding-top: 40px;
    border: 0 solid #fff;
    border-radius: 10px;
}
/* loading 样式 */
#loadingMessage {
    text-align: center;
    padding-top: 160px;
}
iframe {
    display: none;
    width: 100%;
    height: 100%;
}
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    width: 40%;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
}
.modal-content input {
    width: 89%;
    padding: 5px;
    font-size: 16px;
}
.modal-content button {
    width: 40%;
    margin: 0 10px;
    font-size: 18px;
    line-height: 2;
    color: white;
    background-color: #4CAF50;
    border: none;
    border-radius: 5px;
}
.modal-content #close-modal{
    background-color: #f44336;
}

.close {
    color: #aaa;
    float: right;
    margin-right: -5px;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    cursor: pointer;
}

#modal-help {
    margin: 25px 5px;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    line-height: 20px;
    color: #777;
    cursor: pointer;
}


.hand {
    cursor: pointer;
}

.color-picker {
    display: none;
    position: fixed;
    z-index: 11;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: none;
}
.color-picker-content {
    background-color: #fefefe;
    width: 300px;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    text-align: center;
}
#colorPickerContainer {
    margin-left: 10px;
    cursor: pointer;
}
#color-btn {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 28px;
    font-size: 18px;
    font-weight: bold;
    margin-right: 5px;
    margin-bottom: -7px;
    border: 1px solid #000;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}
#color-input {
    margin-left: 10px;
    height: 36px;
    font-size:14px;
}
#color-line {
    color: #4abcef;
    font-size: 14px;
    text-decoration: none;
}

#confirm-btn {
    margin: 10px;
    width: 80px;
    height: 40px;
    font-size: 16px;
    border: none;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}