/******** base **********/
h4 {
  margin: 0px;
  padding: 0px;
  font-size: 24px;
  border-left: solid 8px #007bff;
  padding-left: 10px;
}

.flex {
  display: flex;
}

.text-overflow{
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.slider {
  margin-left: 12px;
}

/*********** apt-block */
#aptitude-block label + select {
  margin-left: 12px;
}

#aptitude-block select + label {
  margin-left: 32px;
}

#aptitude-block label {
  line-height: 1rem;
  padding-top: 8px;
  width: 50px;
}

#aptitude-block select:nth-child(4){
  margin-right: calc(100% - 300px);
}


#aptitude-block label:nth-child(5){
  margin-left: 0px;
}

#aptitude-block .row {
  display: flex;
}

#aptitude-block .row + .row {
  margin-top: 12px;
}

#aptitude-block {
  margin-top: 12px;
  margin-bottom: 12px;
  padding-left: 32px;
  padding-top: 16px;
  padding-bottom: 16px;
  background: #f5f5f5;
}

#aptitude-block h4 {
  margin-bottom: 12px;
  margin-left: -15px;
}


#aptitude-block button {
  font-size: 14px;
  height: 28px;
  padding-top: 2px;
  padding-bottom: 2px;
  margin-left: 60px;
  vertical-align: middle;
  border: 1px solid #CCCCCC;
  border-radius: 4px;
  outline: none
}

#aptitude-block button:hover {
  background: #EEFFFF;
  border: 1px solid #87CEEB;
  color: #87CEEB;
}

#aptitude-block button + button {
  margin-left: 18px;
}


/* uniq block */
#hero-block .box, #uniq-skill-block .box {
  padding-top: 12px;
  padding-bottom: 12px;
}

#skill-block {
  margin-top: 22px;
}


/* stats-block */
#stats-block{
  background: #f5f5f5;
  padding-top: 16px;
  text-align: center;
}

#stats-block h4{
  margin-left: 12px;
}

#stats-block label{
  margin-right: 0px;
  padding-right: 0px;
}



.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 15px;
  border-radius: 5px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;

  margin-top: 15px;
  margin-bottom: 15px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #484848;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #484848;
  cursor: pointer;
}

#result {
  border-radius: 7px;
  background: #DDDDDD;
}

#result-skl-pt {
  font-size: 70px;
}

.stats-pt, .uniq-skl-pt {
  font-size: 21px;
}

.box {
  border-radius: 7px;
  background: #f5f5f5;
}

#notes {
  font-size: 12px;
}


.form-select{
  background: white !important;
  border-radius: 5px !important;
  border-color: #d3d3d3 !important;
}

.tb-spinner{
  border-radius: 5px !important;
  border-color: #d3d3d3 !important;
}

.cat1-width{
  max-width: 50px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* URA-block */
#ura-block button {
  font-size: 14px;
  height: 28px;
  padding-top: 2px;
  padding-bottom: 2px;
  margin-left: 12px;
  vertical-align: middle;
  border: 1px solid #CCCCCC;
  border-radius: 4px;
  outline: none;
  margin-top:2px;
  margin-bottom: 2px;
}

#ura-block button:hover {
  background: #EEFFFF;
  border: 1px solid #87CEEB;
  color: #87CEEB;
}

#ura-block button + button {
  margin-left: 18px;
}

#speed-max, #stamina-max, #power-max, #guts-max, #intel-max{
  display: inline-block !important;
}
#speed-max + .input-group, #stamina-max + .input-group, #power-max + .input-group, #guts-max + .input-group, #intel-max + .input-group{
  display: none !important;
}
input#speed-max, input#stamina-max, input#power-max, input#guts-max, input#intel-max{
  width: 90px;
}
.stats-max{
  display:inline-block;
  width: 180px;
}
.stats-max > label {
  width: 70px;
}


/* footer */
footer {
  font-size: 10px;
  color: #EEEEEE;
  margin: -9px;
}

.imagePreview {
    width: 100%;
    height: 180px;
    background-position: center center;
    background-size: cover;
    -webkit-box-shadow: 0 0 1px 1px rgba(0, 0, 0, .3);
    display: inline-block;
}

#loading {
  display: table;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #fff;
  opacity: 0.8;
}

#loading .loadingMsg {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  padding-top: 140px;
  background: url("./img/loading.gif") center center no-repeat;
}

.modal-body {
  font-size: 14px;
}

#mini-display {
  display: none;
  position: fixed;
  z-index: 2147483646;
  left: 0;
  bottom: 0;
}

#mini-display img{
  width: 50px;
  height: auto;
  margin-top: -25px;
}

#full-display{
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(100, 100, 100, .8);
  z-index: 2147483647;
  text-align: center;
}

#full-display-img {
  height: 100%;
  width: auto;
}

#mini-display button{
  display: block;
  margin: 0 auto 0 auto;
}



.toggle-off{
  background-color: #e9ecef;
}

#sub-score-display{
  display: none;
  position: fixed;
  left: 0;
  top: 30;
  z-index: 214;
  padding-right: 20px;
  text-align: center;
}


#sub-score-display p{
  font-size: 15px;
  padding-right: auto;
  background: #DDDDDD;
  border-radius: 7px;
  padding: 5px 10px;
}





/*************** Small screen */
@media screen and (max-width:575px) {
  
}

.arrow_box{
  position:relative;
  width:220px;
  height:30px;
  background:#CCE5FF;
  padding:2px;
  text-align:center;
  border:1px solid #B8DAFF;
  color:#666666;
  font-size:18px;
  font-weight:normal;
  border-radius:10px;
  -webkit-border-radius:10px;
  -moz-border-radius:10px;
  text-shadow:0px 1px 1px #ADADAD ;
}
.arrow_box:after,.arrow_box:before{
  border: solid transparent;
  content:'';
  height:0;
  width:0;
  pointer-events:none;
  position:absolute;
  bottom:100%;
  left:74%;
}
.arrow_box:after{
  border-color: rgba(204, 229, 255, 0);
  border-top-width:13px;
  border-bottom-width:13px;
  border-left-width:7px;
  border-right-width:7px;
  margin-left: -7px;
  border-bottom-color:#CCE5FF;
}
.arrow_box:before{
  border-color: rgba(184, 218, 255, 0);
  border-top-width:14px;
  border-bottom-width:14px;
  border-left-width:8px;
  border-right-width:8px;
  margin-left: -8px;
  margin-bottom: 1px;
  border-bottom-color:#B8DAFF;
}

/********* Medium screen  */
@media screen and (min-width:767px) {
  .modal-footer { margin-bottom: 100px;}

  #aptitude-block select:nth-child(4){
    margin-right: 0px;
  }
  #aptitude-block label:nth-child(5){
    margin-left: 32px;
  }

  #stats-block h5{
    font-size: 18px;
  }

}



/********** Large screen  */
@media screen and (min-width:991px) {
  #sub-score-display p{
    font-size: 20px;
    margin-bottom: 100px;
  }

  #sub-score-display{
    right: 0;
    bottom: 0;
    left: initial;
    top: initial;
    z-index: 214;
    padding-right: 20px;
    width: 100px;
  }

  #stats-block h5{
    font-size: 22px;
  }
  
}

@media screen and (min-width:1199px) {
  .modal-footer { margin-bottom: 80px;}
    #sub-score-display p{
      font-size: 25px;
    }
}


/********** Extra large screeen */
@media screen and (min-width:1200px) {
  .modal-footer { margin-bottom: 60px;}
    #sub-score-display p{
      font-size: 25px;
    }
}