body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    box-sizing: border-box;
}
.white {
    background-color: #fff;
}
.blue {
    background-color: #02407e;
}

#headlineCont {
    text-align: center;
}

#headlineCont img {
    width: 60%;
    max-width: 500px;
}

h1, h4 {
    text-align: center;
    color: #943234;
    padding: 0 1.5em;
}

#loader {
    position:absolute; top: 45%; left: 40%;
    z-index: 1000; 
    display: inline-block;
    border: 5px solid #858585;
    width: 25px;                        /* was 15px */
    height: 25px;                       /* was 15px */
    border-radius: 50%;
    border-top: 5px solid #222e58;  
    border-left: 5px solid #222e58;
    border-bottom: 1px solid #222e58; /* was 5px*/
    -webkit-animation: spin 0.45s linear infinite; /* was 0.75s (slower) */
    animation: spin 0.45s linear infinite;
}
    @-webkit-keyframes spin {	
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
    }
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

#goButtonCont {
    text-align: center;
    background-color: #fff;
    position:sticky;
    top: 0;
    padding: 10px 0;
    z-index: 1;
}

#goButton {
    font-size: 1.5em;
    padding: 0.5em 1em;
    /* margin-bottom: 1em; */
}

.enabled {
    background-color: #222e58;
    color: white;
    cursor: pointer;
}

.enabled:hover {
    background-color: white;
    color: #202020;
}

#texticon {
    width: 2em;
}


a {
    display: inline-block;
    width: 90%;
    padding: 0.7em 5%;
    text-decoration: none;
    color: white;
}

a:hover{
    color: #222e58;
}

.buttonCont {
    display: inline-block;
    cursor: pointer;
    font-size: 1.5em;
    background-color: #222e58;
}

.buttonCont:hover {
    background-color: white;
}

.bc_grey {
    background-color: #c77306;
}

.bc_grey:hover {
    background-color: #f1f4f7;
}

.caratCont, .checkCont {
    display: inline-block;
    width: 1em;
}
.videoIconCont {
    display: inline-block;
    width: 2em;
    cursor: pointer;
    /* for test */
    /* background-color: #fff;
    height: 10px; */
}

.caratCont img {
    width: 100%;
}

.set {
    display: inline-block;
    background-color: #692b2d;
    color: white;
    padding: 0.5em 1em;
    box-sizing: border-box;
}

#cardsCont {
    background-color: #02407e;
}

#card {
    background-color: #02407e;
    color: white;
    text-align: center;
}

#thai {
    padding: 0.25em;
    font-size: 6em;
}

#tones {
    color: #ffff50;
    font-size: 3em;
    font-weight: bold;
}

.eng {
    padding: 0.5em;
    color: #b05050;
    font-size: 2.5em;
}

.sound {
    padding: 0.5em;
    color: #e79906;
    font-size: 3em;
}

.cardButton, .adminButton {
    display: inline-block;
    width: 19%;
    background-color: #e79906;
    color: white;
    padding: 1em 0;
    cursor: pointer;
    height: 50px;
    overflow: hidden;
    vertical-align: top;
    font-weight: bold;
}
.cardButton:hover {
    background-color: white;
    color: #222e58;
}

.smallButton {
    width: 9%;
}

#cardButtonCont, #adminButtonCont, #editNotice {
    position: absolute;
    bottom: 0;
    width: 100%;
}

#lock img {
    width: 2em;
}




#adminButtonCont, #editNotice {
    bottom: 50px;
    border-top: 5px solid #a22;
    border-bottom: 5px solid #a22;
}
#editNotice {
    color: #fff;
    font-style: italic;
}
#new {
    background-color: #282;
}
#edit {
    background-color: #228;
}
#delete {
    background-color: #a22;
}
#new:hover, #edit:hover, #delete:hover {
    background-color: #fff;
    color: #222e58;
}
#delete:hover {
    color:#a22;
}
.disabled{
    background-color: #d0d0d0;
    color: #808080;
    border: 0.1em solid #808080;
}

.disabled:hover {
    background-color: #d0d0d0;
    color: #808080;
    border: 0.1em solid #808080;
}

#help {
    display: none;
}

#cardChoice, #key {
    margin: 1em 5%;
    border: 2px solid #692b2d;
    border-radius: 10px;
}

.radios {
    padding-left: 1em;
    color: #692b2d; 
    font-weight: bold;
    font-size: 1.2em;
}

.radios span{
    display: inline-block;
    width: 85%;
}

#key {
    display: inline-block;
    width: 90%;
    text-align: center;
    box-sizing: border-box;
}
#key img {
    margin: 0 0 1em 0;
    width: 90%;
    max-width: 700px;
}

#videoCont {
    /* height: 0; */
    position: absolute;
    top: 0;
    z-index: 20;
    text-align: center;
    background-color: #236360;
}

video {
    max-width: 100%;
    /* max-height: 695px; */
}

#backButton {
    font-size: 1.2em;
    padding: 0.5em 1em;
    cursor: pointer;
    margin-top: 0.5em;
    background-color: #174240;
    color: #fff;
}

#backButton:hover {
    background-color: #fff;
    color: #174240;
}

/* edit window */


#topcurtain {
    background-color: #111111;
    opacity: 0.85;
    position: fixed; top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 19; 
}
.editWin {
    /* background-color: #f0f0f0; */
    background-color: #88a;
    position: fixed; top: 20px; left: 5%;
    color: #111;
    border-radius: 10px;
    max-height: 95%; 
    overflow: auto;
    z-index: 20;
    width: 90%;
}

.headerLine {
    padding-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 1px solid #666;
}
.headerLine .headTextCont{
    display: inline-block;
    width: 87.5%;
}
.headText {
    padding-left: 25px;
}
.closeCont{
    display: inline-block;
    cursor: pointer;
    color: #a5290a;
    width: 10%;
    text-align: right;
    font-size: 1.2em;
}
.closeCont:hover{
    color: #d44;
}

.formInfoBox {
    margin: 20px;
    border: 1px solid #888;
    padding: 10px;
}

.editline_2col select {
    background-color: #fff;
    color: #000;
    font-size: 1.25em;
}

.editline_2col input[type='text']{
    font-size: 1.25em;
}
    #ec_thai {
        font-size: 1.5em;
    }





input[type=number] {
    padding: 5px 10px;
}



.buttonline {
    margin: 20px;
}

.buttonsleft {
    display: inline-block;
    text-align: left;
    width: 45%; 
    margin-left: 5%;
}
.buttonsright {
    display: inline-block;
    text-align: right;
    width: 45%;
}

.button {
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
}

.cancelbutton {
    display:inline-block;
    background-color: #ccc;
    border: 1px solid #ccc;
    color: #333;
}

.cancelbutton:hover {
    background-color: #fff;
    border: 1px solid #fff;
    color: #a5290a;
}


.oksavebutton {
    background-color: #fff;
    border: 1px solid #111;
    color: #000;
}


.oksavebutton:hover {
    background-color: #0e1821;
    border: 1px solid #0e1821;
    color: #fff;
    font-weight: bold;
}


/* .showBlock {
    display: block;
}
.hideBlock {
    display: none;
} */

/* .pwIconCont {
    display: inline-block;
    width: 30px;
}
.pwIconCont img {
    width: 100%;
} */

/* .col2 {
    text-align: right;
}
.col3, .col4 {
    text-align: right;
    vertical-align: top;
}
.bank3-4 {
    vertical-align: bottom;
} */


/* #ec_postBlank, #ec_netText {
    display: inline-block;
    text-align: right;
}
#ec_postBlank img {
    width: 20px;
    vertical-align: bottom;
}

#ec_attachLine {
    margin-top: 25px;
} */


/* .formbase {
    background-color: #838582;
} */

