@import url("https://fonts.googleapis.com/css?family=Lato:300,400|Poppins:300,400,800&display=swap");
@import url("https://fonts.googleapis.com/css?family=Kanit:300,400|Poppins:300,400,800&display=swap");

body {
    
    font-family: 'Lato', 'sans-serif';
    font-size: 1em;
    color: #223A5E;
    line-height: 1.65;
    scroll-behavior: smooth;
    letter-spacing: 0.1em;
}

h1 {
    font-family: 'Kanit' !important;
    color: #223A5E;
    font-size: 2.5em;
    font-weight: bolder;

}

/* Column container */
.row {
    display: flex;
    flex-wrap: wrap;
}

/* Create two unequal columns that sits next to each other */
/* Sidebar/left column */
.side {
    flex: 40%;
    background-color: #f1f1f1;
    padding: 10px;
}

/* Main column */
.main {
    display: flex;
    flex: 60%;
    background-color: #f5f5f5;
    
}

.flex-container-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

}


.flex-container-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flex-container-center>div {
    font-family: 'Lato', 'sans-serif';
    max-width: 100%;
    margin: 10px;
    letter-spacing: .5em;

    text-align: center;
    height: auto;
    font-size: 4em;
    font-weight: bold;
   


}

.flex-container-center>p {
    width: 100px;
    margin: 10px;   
   
    color: red;
    text-align: right;
    font-weight: bold;
    font-size: 4em;
    background-color: white;
    left:70%;
    padding-top: 10px;
    margin-top: 10px;
    line-height: 18px;
    

}

/* ช่องคำตอบ */

.centre {
    position: absolute;
    max-width: 100%;
    height: auto;
    left: 40%;
    margin-top: 1em;


}



input[type=text] {

    max-width: 40%;

    box-sizing: border-box;
    border: 2px solid white;
    border-bottom: 2px solid red;
    font-size: 3.5em;
    text-align: right;
    font-family: 'Lato', 'sans-serif';
    font-weight: bold;
    color: green;
    height: 60px;
    justify-content: center;
    align-items: center;
    letter-spacing: .5em;
    padding-top: 10px;
    margin-top: 10px;

}

.white {
    color: white;
}

.success {
    color: green;
}

.danger {
    color: red;
}

.warning {
    color: yellow;
}

.bg-info_dark {
    background-color: #223A5E;
}

.info_dark {
    color: #223A5E;
}

.btn {
    transition-duration: 0.4s;
    cursor: pointer;
    margin-left: 1em;
    border-radius: 5px;
    width:200px;
    line-height: 35px;
    font-weight: bold;
    margin:30px;

}

.box-score {
    padding-top: 10px;
    margin: 0 auto;

}

.score {
    font-size: 1.3em;
    font-weight: bolder;
    display: inline;
    margin: 10px;
    position: relative;
    padding-top: 10;

}

.table {
    margin-top: 1em;
    justify-content: center;
    align-items: center;
    
    
}
thead tr {
    font-family: 'Kanit' !important;
    font-size: 1.2em;
    font-weight: bold;
    background-color: #223A5E;
    color:white;
}
tr {
    font-family: 'Kanit' !important;
    font-size: 1em;
}

/* ปุ่มหยุดเวลา */


#stop_watch {
    font-family: 'Lato', 'sans-serif';
    text-align: right;
    margin-right: 1.5em;
    margin-top: 1em;

}

.fa {
    padding: 20px;
    font-size: 30px;
    width: 30px;
    text-align: center;
    text-decoration: none;
    margin: 5px 2px;
    background: #3B5998;
    color: white;
    border-radius: 50%;

}

.fa:hover {
    opacity: 0.7;
}

.flex-container-grow {
    display: flex;
    align-items: stretch;

}


.flex-container-grow>div {

    margin: 0px;
    text-align: center;

}

.blank_space {
    height: 20em;
}

#btn_close {
    font-size:1.5em;
    font-weight: bold;
}
#btn_click{
    display:none;
}

#myModal {
    display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.controls h2, .controls h3 {
    font-family: 'Kanit' !important;
    margin-left:25px;
}

