/* Custom CSS */
/* custom */
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,400;0,700;1,100;1,400;1,700&family=Source+Code+Pro&display=swap');

* {
  font-family: 'Kanit', sans-serif;
}

body {
  background: linear-gradient(
    to right top,
    #051937,
    #004d7a,
    #008793,
    #00bf72,
    #a8eb12
  );
  background-attachment: fixed;
}
main {
  margin: 2rem 5px 5rem;
}
div.content {
  min-height: 100vh;
}
.cover-container {
  height: 100vh;
}
.number {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Table */
.table-nowrap,
.table-nowrap td {
  white-space: nowrap;
  vertical-align: middle;
}
.table-vmiddle,
.table-vmiddle td {
  vertical-align: middle !important;
}
.table-vbottom,
.table-vbottom td {
  vertical-align: bottom !important;
}
div.dataTables_wrapper div.dataTables_processing {
  top: 5%;
}

/* Bootstrap */
.text-secondary-b {
  -webkit-text-stroke: 0.5px #6c757d;
}
.bg-darklight {
  background-color: rgba(0, 0, 0, 0.05) !important;
}
.bg-muted {
  background-color: #6c757d !important;
}
.bg-orange {
  background-color: darkorange !important;
}
.ml-05 {
  margin-left: 0.15rem !important;
}
.valign-top {
  vertical-align: top !important;
}
.img-contain {
  object-fit: contain;
}
.font-monospace {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
    'Courier New', monospace !important;
}
div.form-control {
  white-space: nowrap;
  background-color: #f8f8ff;
}
form input::placeholder {
  text-align: right;
  font-size: 14px;
}
.modal {
  overflow: auto !important;
}

.truncate-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  line-height: 1.5; /* Adjust based on your font-size */
  max-height: 3em; /* Line-height * 2 */
  white-space: normal;
}
.truncate,
.truncate-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.truncate {
  -webkit-line-clamp: 1;
}
.truncate-2 {
  -webkit-line-clamp: 2;
}

@media (min-width: 768px) {
  .w-md-25 {
    width: 25% !important;
  }
}

/* Fieldset */
fieldset.fieldset-border {
  border: 1px groove #ddd !important;
  padding: 0 1.4em 1.4em 1.4em !important;
  margin: 0 0 1.5em 0 !important;
  -webkit-box-shadow: 0px 0px 0px 0px #000;
  box-shadow: 0px 0px 0px 0px #000;
}
legend.fieldset-border {
  /*font-size: 1.2em !important;*/
  /*font-weight: bold !important;*/
  /*text-align: center !important;*/
  width: auto;
  padding: 0 10px;
  border-bottom: none;
}

/* Animation */
#btn-vote,
.progress-fac {
  transition: 0.2s;
}
#btn-vote:hover,
.progress:hover .progress-fac {
  font-size: 170%;
}
@media (max-width: 576px) {
  .progress:hover .progress-per {
    display: none;
  }
}

/* Progress Large */
.progress-graph .progress {
  height: 3rem;
  /*background-color: #56C788;*/
  position: relative;
}
.progress-graph .progress .progress-bar {
  /*background-color: #2E8B57;*/
}
.progress-graph .progress .progress-bar .row {
  font-size: 1rem;
  width: 100%;
  position: absolute;
}

/* Checked Color*/
.checked-warning:checked ~ .custom-control-label::before {
  border-color: #ffa200;
  background-color: #ffa200;
}
.checked-warning:focus:not(:checked) ~ .custom-control-label::before {
  border-color: #ffd080;
}
.checked-warning:not(:disabled):active ~ .custom-control-label::before {
  background-color: #ffe3b3;
  border-color: #ffe3b3;
}
.checked-danger:checked ~ .custom-control-label::before {
  border-color: #ff2200;
  background-color: #ff2200;
}
.checked-danger:focus:not(:checked) ~ .custom-control-label::before {
  border-color: #ff9180;
}
.checked-danger:not(:disabled):active ~ .custom-control-label::before {
  background-color: #ffbdb3;
  border-color: #ffbdb3;
}

/* Data Tables*/

/* Search Box*/
.search-box {
  position: relative;
  width: 100%;
}
.search-box > .result {
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  position: absolute;
  z-index: 999;
}
.search-box > .result p {
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #cccccc;
  border-top: none;
  cursor: pointer;
}
.search-box > .result p:hover {
  background: #f2f2f2;
}

/* Footer */
.footer {
  background-color: #343a40;
  color: #fff;
}
.contact-list {
  list-style-type: none;
  padding-left: 10px;
}
.contact-list > li > a > i {
  padding: 0 10px 10px 0;
}
.footer .social-icons a i {
  width: 30px;
  height: 30px;
  line-height: 30px;
  margin-left: 6px;
  margin-right: 0;
  border-radius: 100%;
  background-color: #33353d;
}
a#link-us {
  text-decoration: none;
  border-bottom: 1px solid transparant;
}
a#link-us:hover {
  border-bottom: 1px solid #6c757d;
}
.social-icons {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.social-icons li {
  /*display: inline-block;*/
  margin-bottom: 4px;
}
.social-icons a {
  color: #818a91;
}
.social-icons a i {
  background-color: #eceeef;
  color: #818a91;
  font-size: 14px;
  display: inline-block;
  line-height: 44px;
  width: 44px;
  height: 44px;
  text-align: center;
  margin-right: 8px;
  border-radius: 100%;
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}
.social-icons a i:active,
.social-icons a i:focus,
.social-icons a i:hover {
  color: #fff;
  background-color: #29aafe;
}
.social-icons a i.facebook:hover {
  background-color: #3b5998;
}
