body {
    font-family: Arial;
}
.noselect {
    -webkit-touch-callout: none;   /* iOS Safari */
        -webkit-user-select: none; /* Safari */
        -khtml-user-select: none;  /* Konqueror HTML */
        -moz-user-select: none;    /* Firefox */
            -ms-user-select: none; /* Internet Explorer/Edge */
                user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}
table {
    border-collapse: collapse;
}
table, td, th {
    border: 1px solid black;
    cursor: default;
    text-align: center;
}
tr:nth-last-child(5n+1) {
    background: none repeat scroll 0 0 #e8e4e7 !important;
}
.asux {
    color: #d7d1d1;
    font-weight: normal;
    width: 20px;
}
.top{
    background: none repeat scroll 0 0 #ffffff !important;
}
.asu {
    font-weight: bold;
    width: 20px;
}
.menu2 {
    background: #000 none repeat scroll 0 0;
    position: fixed;
    top: 1px;
    width: 97%;
    z-index: 99999;
}
#clear {
    float: right;
}
#color-selector p {
    clear: both;
}
.color {
    float: left;
    height: 20px;
    position: relative;
    width: 9.7%;
}
.color.eraser {
    background: none repeat scroll 0 0 white;
    cursor: pointer;
    border: 1px solid black;
}
.color.red:hover, .color.pink:hover, .color.green:hover, .color.violet:hover, .color.teal:hover, .color.Blue:hover, .color.Grey:hover, .color.Orange:hover, .color.eraser:hover {
    border: 1px solid white;
}
.color.Red {
    background: none repeat scroll 0 0 #ff5050;
    cursor: pointer;
    border: 1px solid black;
}
.color.Pink {
    background: none repeat scroll 0 0 #ff99cc;
    cursor: pointer;
    border: 1px solid black;
}
.color.Green {
    background: none repeat scroll 0 0 #a9d08e;
    cursor: pointer;
    border: 1px solid black;
}
.color.Violet {
    background: none repeat scroll 0 0 #9966ff;
    cursor: pointer;
    border: 1px solid black;
}
.color.Teal {
    background: none repeat scroll 0 0 #66ffcc;
    cursor: pointer;
    border: 1px solid black;
}
.color.Blue {
    background: none repeat scroll 0 0 #9bc2e6;
    cursor: pointer;
    border: 1px solid black;
}
.color.Grey {
    background: none repeat scroll 0 0 #b2b2b2;
    cursor: pointer;
    border: 1px solid black;
}
.color.Orange{
    background: none repeat scroll 0 0 #f4b084;
    cursor: pointer;
    border: 1px solid black;
}
.color input {
    background: url("../images/colordot.html") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
    border: 0 none;
    float: right;
    left: 220px;
    position: absolute;
}
.colorpicker_submit {
    color: #ffffff;
}
.colorpicker {
    z-index: 20;
}
.selected {
    border: 1px solid white;
}
#btnSubmit {
    float: left;
    margin-top: 0;
    width: 10%;
    cursor: pointer;
}
table {
    width: 100% !important;
}

.card.card-iframe {
    border-radius: 25px;
}
.card.card-iframe .card-header {
    border-radius: 25px 25px 0 0;
}
.card.card-iframe .card-body {
    border-radius: 0 0 25px 25px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.color-controls {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

#btnSubmit {
    padding: 8px 15px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

#btnSubmit:hover {
    background-color: #c0392b;
}

#color-selector {
    display: flex;
    gap: 8px;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
}

.color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.color:hover {
    transform: scale(1.1);
    border-color: #333;
}

.eraser {
    background-color: #fff;
    border: 2px solid #ccc;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

#drawing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

#drawing-table td {
    width: 30px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

#drawing-table td:hover {
    background-color: #f0f0f0;
}

#drawing-table td.colored {
    font-weight: bold;
}

#drawing-table tr.headd {
    background-color: #3498db;
    color: white;
    font-weight: bold;
    text-align: center;
}

.search-form {
    margin-top: 20px;
    text-align: center;
}

.search-input {
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 50px;
    text-align: center;
}

#resetBtn {
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s;
}

#resetBtn:hover {
    background-color: #2980b9;
}

/* Responsive design */
@media (max-width: 768px) {
    .color-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-input {
        width: 40px;
        margin: 5px;
    }
}