html, body, #root {
  min-height: 100%;
  font-family: 'Sarabun', sans-serif;
  font-size: 16px;
  color: #333;
}

#modal-container {
  background: rgba(255, 0, 0 , 0.3);
  z-index: 9999;
}

h1 {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
}

h3 {
  margin-bottom: 0 !important;
}

input {
  -webkit-appearance: none;
}

.text-center {
  text-align: center;
}

.width-100 {
  display: block;
  width: 100% !important;
}

.fx-horizontal {
  display: flex !important;
  flex-direction: row;
}

.fx-vertical {
  display: flex !important;
  flex-direction: column;
}

.fx-justify-start {
  justify-content: flex-start;
}

.fx-justify-end {
  justify-content: flex-end;
}

.fx-justify-stretch {
  justify-content: stretch;
}

.fx-justify-space-between {
  justify-content: space-between;
}

.fx-justify-space-around {
  justify-content: space-around;
}

.fx-justify-center {
  justify-content: center;
}

.fx-align-start {
  align-items: flex-start;
}

.fx-align-end {
  align-items: flex-end;
}

.fx-align-center {
  align-items: center;
}

.fx-align-stretch {
  align-items: stretch;
}

.fx-self-start {
  align-self: flex-start;
}

.fx-self-end {
  align-self: flex-end;
}

.fx-self-stretch {
  align-self: stretch;
}

.fx-self-center {
  align-self: center;
}

.fx-fill {
  flex: 1;
}

.fx-no-shrink {
  flex-shrink: 0;
}

.fx-shrink {
  flex-shrink: 1;
}

.clickable {
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.card {
  box-sizing: border-box;
  border-radius: 8px;
  padding: 16px;
  background: white;
  /*background: rgba(255, 255, 255, 0.55);*/
  box-shadow: 0 4px 0 rgba(0, 0, 0 , 0.1);
}


.card.no-padding {
  padding: 0;
}

.card.translucent {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

.card.opaque {
  background: white;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

.ant-table-tbody > tr:last-child > td {
  border-bottom: 0 !important;
}

.ant-radio-group {
  padding-top: 8px !important;
}

.ant-btn.submit {
  width: 100%;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1) !important;
}

.ant-btn {
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1) !important;
}

/*@media (min-width: 768px) {*/
/*  .ant-btn.submit {*/
/*    width: initial;*/
/*  }*/
/*}*/

.ant-form-item-label {
  line-height: 2 !important;
}

.ant-form-explain {
  line-height: 1.6 !important;
}

.ant-form-item {
  margin-bottom: 8px !important;
}

.ant-col.mobile-row + .ant-col.mobile-row {
  margin-top: 16px;
}

.ant-col.mobile-row.small + .ant-col.mobile-row.small {
  margin-top: 8px;
 }

@media (min-width: 768px) {
  .ant-col.mobile-row+.ant-col.mobile-row {
    margin-top: 0;
  }

  .ant-col.mobile-row.small+.ant-col.mobile-row.small {
    margin-top: 0;
  }
}

.space {
  min-height: 24px;
}

.header {
  color: #333;
}

.header > p {
  margin: 0;
  padding: 0;
}

.header > p+p {
  margin-top: 8px;
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}

.shaken {
  animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.quiz-score {
  cursor: pointer;
}

.ant-form-explain {
  margin-top: 4px !important;
}

.ant-tabs-extra-content {
  display: none !important;
}

.ant-tabs-close-x {
  margin-left: 8px !important;
}

.ant-cascader-menu-item-expand {
  padding-right: 36px !important;
}
