.cham {
    font-family: "ChamThrah1";
}
h2 {
}

div.p {
    text-align: center;
    font-style: bold;  
}
div.p .lang1 {
    font-size: 15px;
    display: inline;
    font-style: bold;  
}
.converted {
    color: #222;
    font-family: "Cham Thrah1";
    border: 1px solid blue;
    padding: 5px;
    width: 630px;
    min-width: 620px;
    height: 250px;
    min-height: 250px;
    margin: 0px auto;
    overflow:scroll;
    resize:both;
    background-color: white;
    font-size: 21px;
}

textarea {
    font-family: "Consolas", Georgia,Serif;
    display: block;
    border: 1px solid blue;
    padding: 5px;
    font-size: 70%;
    width: 630px;
    height: 200px;
    min-width: 630px;
    min-height: 200px;
    margin: 0px auto;
    font-size: 14px;
}
button {
    font-weight: bold;
    display: inline-block;
    padding: 6px 50px;
    margin: 2px 190px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    background-image: none;
    background-color: #fff;
    border: 1px solid transparent;
    border-color: #adadad;
}
button:hover {
    background-color: #ebebeb;
}
button:active {
    background-color: #e0e0e0;    
}
.header, .footer {
    height: 30px;
}
/* for change text */
.hide {
    display: none;
}

.can_change {
    background-color: rgba(235,255,252, 0.9);
    padding: 2px;
    border-radius: 5px;
}



.pop-up {
    color: #222;
    position: absolute;
    z-index: 10;
    border: 1px solid #f8f8f8;
    background-color: rgba(250, 250, 250, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 80%;
}
.pop-up div.list {
    font-family: "Cham Thrah1";
}
.pop-up div.list div {
    background-color: rgba(0, 0, 0, 0.1);
    width: 100px;
    border: solid transparent;
    border-width: 1px 1px 1px 6px;
    

}
.pop-up div.list div:hover {
    background-color: rgba(0, 0, 0, 0.02);

}
.pop-up input[type='text'] {
    padding: 3px;
}
.converted div {
    display: inline;
}
.hidden {
    display: none;
}
.font_times {
    font-family: "Times New Roman", Georgia,Serif;
}

<style>
/* ===============================
   SAFE VISUAL UPGRADE ONLY
   (No JS breakage)
================================ */

body {
    background: linear-gradient(135deg, #f8f9fa, #eef2f7);
    font-family: "Segoe UI", Arial, sans-serif;
}

/* Center main content */
#main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

/* Card effect */
.grid_9 {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    padding: 25px;
}

/* Titles */
.lang1 p {
    text-align: center;
    font-size: 18px;
    margin-bottom: 8px;
}

/* Controls spacing */
.p2 select,
.p select,
button {
    border-radius: 8px;
    padding: 6px 12px;
}

/* Textarea */
#input_text {
    width: 100%;
    min-height: 160px;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    box-sizing: border-box;
}

/* Output area */
#wrap_convert {
    margin-top: 15px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px dashed #bbb;
    padding: 15px;
    min-height: 140px;
}

/* Converted text */
.converted {
    font-size: 22px;
    line-height: 1.6;
}

/* OK button */
#finish {
    background: #1565c0;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 10px;
}
#finish:hover {
    background: #0d47a1;
}

/* Instruction box */
.instruct {
    margin-top: 25px;
    padding: 15px;
    background: #fff7e6;
    border-left: 5px solid #ffa000;
    border-radius: 8px;
}

/* Footer */
#footer-wrapper {
    margin-top: 30px;
    text-align: center;
    color: #777;
}

/* Responsive */
@media (max-width: 768px) {
    .grid_9 {
        padding: 15px;
    }

    #input_text {
        min-height: 120px;
    }
}
</style>
