html,
body {
    width:100%;
    height: 100%;
    margin: 0; padding: 0;
    font-family: Arial, sans-serif;
    user-select: none;
    overflow: hidden;
    user-select: none;
    font-size:14px;
}

input {
    border: 1px solid #000;
    border-radius: 5px;
    padding: 4px;
}

select {
    text-align: center;
    color:#000;
    background: #FFF;
    border: none;
    padding:5px;
    text-align: center;
    /* for Firefox */
    -moz-appearance: none;
    /* for Safari, Chrome, Opera */
    -webkit-appearance: none;
}

select:focus {
  outline: none;
}

select:hover {
  background:#f2f2f2;
}

form {
    margin: 0;
    padding: 0;
}

a {
    color: #006699;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: #ff6600;
    text-decoration: underline
}

input[type='number']{
    width:30px;
    margin-left:6px;
}

.border_bottom td {
    border-bottom: 1px solid #CCC;
}

.border_bottom:hover {
    background: #f2f2f2;
}

.button{
  background: #FFF;
  border: none;
  cursor: pointer;
  padding: 4px 16px;
  text-align:center;
}
.button:hover{
  background: #f2f2f2;
}
.button.active{
  border-bottom:3px solid #0000ff;
}
.button.closemenu{
  position: absolute;
  font-size:18px;
  color:#CCC;
  right:10px;
}
.seperator{
  background: #CCC;
  width:1px;
  height:80%;
  margin: 6px;
}


/*
 *Hide arrow number input
 *Chrome, Safari, Edge, Opera
 */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
 -webkit-appearance:none;
 margin: 0;
}

/* Firefox */
input[type=number] {
 -moz-appearance: textfield;
}

/*--------------------
  Chart
-----------------*/
#chart_wrap{
  width: 100%;
  height: calc(100% - 35px);
}
#chart_container{
    position:relative;
    width:100%;
    height: 100%;
    user-select: none;
    margin: 0; padding: 0;
}

#date_axis_container {
    position:absolute;
    width: 100%;
    height:30px;
    bottom:0
}

#price_axis_container {
    position:absolute;
    width: 50px;
    height:100%;
    right:0
}

#chart{
    position:absolute;
    width: calc(100% - 50px);
    height: calc(100% - 30px);
    cursor: crosshair;
    touch-action: none;
}

.canvas_draw {
    position: absolute;
    z-index: 1;
}
.canvas_event {
    position: absolute;
    z-index: 2;
}

/*--------------------
  Legend axis
-----------------*/
.legend_wrap {
    position: absolute;
    left: 5px;
    width: 20%;
    background: rgba(255,255,255,.7);
    z-index: 500;
}

.legend_wrap div {
    width:50px;
    padding: 4px 4px;
}

.legend_title {
    box-sizing: border-box;
    padding: 5px;
    border-radius: 3px;
    font-size:12px;
    background: rgba(255,255,255,.7);
}

.div_title_indicator{
    position:absolute;
    top:0;
    left:0;
    font-size:12px;
    background:rgb(255, 255, 255, 0.5);
}

/*--------------------
  Chart config
-----------------*/
.overlap {
    display:none;
    position:absolute;
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 320px;
    width:25%;
    height: 100%;
    background: #FFF;
    box-shadow: 0 2px 4px #0003;
    border-radius: 5px;
    box-sizing: border-box;
}

.overlap_title{
    display:flex;
    align-items: center;
    width:100%;
    height:50px;
    border-bottom: 1px solid #CCC;
    margin-bottom: 4px;
}

.overflow_list{
    width: 100%;
    height: 85%;
    overflow: auto;
}

.overflow_list ul{
    height: 100%;
    list-style-type: none;
    padding: 0 15px;
    margin: 0;
}

.overflow_list ul li{
    width:100%;
    height:40px;
    line-height: 40px;
    border-bottom:1px solid #CCC;
}

.overflow_list ul li:hover{
    background: #F2f2f2;
}

.overflow_wrap.search{
    width:100%;
    height: 100%;
}

.btn_submit{
  position:absolute;
  right:30px;
  bottom:10px;
}

.btn_reset{
  position:absolute;
  right:80px;
  bottom:10px;
}

.title_indicator{
    width:36%;
    padding-left:6px;
}

@media only screen and (max-width: 768px) {
  .overlap {
      width:100%;
      height: 100%;
  }
  .overflow_wrap.config{
      height: 90%;
  }
  .overflow_wrap.search{
    height: 90%;
  }
}

/*--------------------
  Menu
-----------------*/
.flex_row {
    display: flex;
    align-items: center;
    flex-direction: row;
    box-sizing: border-box;
}

.flex_col {
    display: flex;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
}

#chart_menu {
    position: relative;
    width:100%;
    height:35px;
    padding: 0 10px;
    border-bottom:1px solid #CCC;
}

.tool {
    align-items: center;
    display: flex;
    padding: 0 10px;
    height: 20px;
    border-right: 1px solid #CCC;
    cursor: pointer;
    white-space: nowrap;
}

.bottom_menu {
    border: 1px solid #000;
    z-index: 100;
    bottom: 0;
    position: fixed;
    background: #FFF;
    box-sizing: border-box;
    display: none;
}

.filter {
    padding: 0px 14px;
    color: #FFF;
    display: flex;
    align-items: center;
    cursor: pointer;
    height: 100%;
}

#stockname{
    color:#2962ff;
    font-weight:bold;
    text-transform:uppercase;
}

#layout_search {
    width: 100%;
    height: 100%;
    background: #FFF;
    margin: 0;
    padding: 0;
    z-index: 100000;
    position: absolute;
    overflow-y: scroll;
    overflow-x: hidden;
    display:none;
}

.box_search{
    width:100%;
    height:40px;
    box-sizing: border-box;
    font-weight: bold;
    color: #2962ff;
    border-bottom:1px solid #CCC;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.box_search input{
    border-radius: 0px;
    width:100%;
    height:100%;
    padding:0 20px;
    border:none;
    text-transform: uppercase;
}

.box_search input:focus{
    outline:none
}

.id_result_row{
    padding: 10px;
    border-bottom: 1px solid #f2f2f2;
}

#layout_draw{
    position:relative;
    width:300px;
    height:100%;
    display:none;
}
#draw_tool{
    width:100%;
    height:100%;
    display: flex;
    flex-direction: row;
}
.btn_draw{
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
    padding: 0 10px;
}

.btn_draw:hover{
    background: #f2f2f2;
}

.fibo_text{
    stroke:blue;
    stroke-width:0.2;
    font-size:12px;
}
.fibo_line{
    stroke:blue;
    stroke-width:0.5;
}

.trend_line,
.double_line{
    stroke:black;
    stroke-width:1;
}

#data_loading{
  display:none;
  position: absolute;
  top: 60px;
  left: 50%;
  margin-top: -50px;
  margin-left: -50px;
  background:#009900;
  color:#FFF;
  padding: 4px;
  border-radius: 3px;
  z-index:10;
}

.priceup{color:#008800}
.pricedown{color:#FF0000}
