/* share border box item. */
html,
body {
  margin: 0;
  padding: 0;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern";
  -moz-font-kerning: normal;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  scroll-behavior: smooth;
}

body {
  font-size: 17px;
  width: 100%;
  background: #ffffff;
  color: #003D31;
  line-height: 1.5;
  font-family: Roboto, Noto Sans SC, Roboto, Hiragino Sans GB, WenQuanYi Micro Hei, Heiti SC, Microsoft YaHei, sans-serif;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background-color: #f3fbff;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(26, 78, 46, 0.1);
  background-color: transparent;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(26, 78, 46, 0.1);
  background: #0d7d93;
}

*,
*:after,
*:before {
  box-sizing: border-box;
}

.clearfix:before,
.clearfix:after {
  content: "";
  display: table;
}

.clearfix:after {
  clear: both;
}

/* share border box item. */
/**
*
* Testing
*
**/
.social-links a {
  color: #ffffff;
}

.hidden {
  display: none;
}

.thai-election-main-wrap {
  background-color: #f3fbff;
}
@media (min-width: 377px) and (max-width: 560px) {
  .thai-election-main-wrap {
    min-height: 100vh;
  }
}

.thai-election-logo {
  display: flex;
  justify-content: center;
}
.thai-election-logo img {
  width: 200px;
}
@media (min-width: 1366px) {
  .thai-election-logo img {
    width: 400px;
  }
}
@media (max-width: 768px) {
  .thai-election-logo img {
    width: 250px;
  }
}
@media (max-width: 375px) {
  .thai-election-logo img {
    width: 280px;
  }
}

svg {
  max-width: 100%;
  display: block;
}

#thaiMap-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: row;
}
@media (max-width: 375px) {
  #thaiMap-wrapper {
    flex-direction: column;
  }
}
@media (min-width: 377px) and (max-width: 560px) {
  #thaiMap-wrapper {
    flex-direction: column;
  }
}
#thaiMap-wrapper .thai-map {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
#thaiMap-wrapper .indicator {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}
@media (min-width: 377px) and (max-width: 560px) {
  #thaiMap-wrapper .indicator {
    font-size: 0.85rem;
  }
}
#thaiMap-wrapper .info {
  width: 50%;
  flex-direction: column;
  display: flex;
  justify-content: center;
}
@media (max-width: 375px) {
  #thaiMap-wrapper .info {
    width: 100%;
  }
}
@media (min-width: 377px) and (max-width: 560px) {
  #thaiMap-wrapper .info {
    width: 100%;
  }
}
#thaiMap-wrapper .panel {
  text-align: left;
  top: 0 !important;
  padding: 2em;
  color: #333;
  background: rgb(255, 255, 255);
  border-radius: 0.4em;
  margin-bottom: 1em;
}
#thaiMap-wrapper .panel h1 {
  font-size: 1.56rem;
  font-weight: 700;
}
#thaiMap-wrapper .panel p {
  font-size: 1rem;
  font-weight: 400;
}
@media (min-width: 376px) {
  #thaiMap-wrapper .thai-map {
    width: 100%;
  }
}
@media (min-width: 1366px) {
  #thaiMap-wrapper .thai-map {
    width: 50%;
  }
}
@media (min-width: 377px) and (max-width: 560px) {
  #thaiMap-wrapper .thai-map {
    width: 100%;
  }
}

.introText {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 377px) and (max-width: 560px) {
  .introText {
    justify-content: start;
  }
}

.seats-wrap {
  border-bottom: 1px solid #141414;
  display: flex;
  align-items: baseline;
}
.seats-wrap .area {
  flex: 2;
}
.seats-wrap .num-seats h2 {
  font-size: 2rem;
  font-weight: 700;
}
.seats-wrap .num-seats h2 small {
  font-size: 1rem;
}

.seats-content {
  margin-top: 1.5em;
}
.seats-content .seats-win {
  font-size: 1.26rem;
  font-weight: 700;
  text-align: center;
}
.seats-content .seats-win small {
  font-size: 0.9rem;
  display: block;
}
@media (max-width: 375px) {
  .seats-content .seats-win {
    font-size: 1.26rem;
  }
}
@media (min-width: 377px) and (max-width: 560px) {
  .seats-content .seats-win {
    font-size: 1.26rem;
  }
  .seats-content .seats-win small {
    display: block;
  }
}

.p-seat {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.p-seat .s-pal {
  border-radius: 0.5em;
  padding: 0.85em;
  color: #ffffff;
  text-align: center;
  margin: 0.26em;
}
.p-seat .s-pal .p-num {
  font-size: 1.56rem;
  font-weight: 700;
}
@media (max-width: 376px) {
  .p-seat .s-pal {
    width: 100%;
    flex-direction: row;
    display: flex;
  }
}
@media (min-width: 377px) and (max-width: 560px) {
  .p-seat .s-pal {
    width: 100%;
    flex-direction: row;
    display: flex;
  }
}
@media (max-width: 376px) {
  .p-seat .s-pal .p-name {
    flex: 2;
    line-height: 2;
    text-align: left;
  }
}
@media (min-width: 377px) and (max-width: 560px) {
  .p-seat .s-pal .p-name {
    flex: 2;
    line-height: 2;
    text-align: left;
  }
}

.small-annote {
  font-size: 0.95rem;
  color: #383838;
  text-align: center;
}

.map-claim {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  color: #383838;
  margin-top: 0.5em;
  padding-bottom: 1em;
}

.party-ptp {
  background-color: #f94b81;
}

.party-utnp {
  background-color: #7dc7f4;
}

.party-ppp {
  background-color: #4677c6;
}

.party-mfp {
  background-color: #faa553;
}

.party-bp {
  background-color: #3644c1;
}

.party-other {
  background-color: #adadad;
}

.party-dp {
  background-color: #03a1d8;
}

/*pulse*/
.live {
  background: black;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgb(0, 0, 0);
  margin: 1em;
  height: 10px;
  width: 10px;
  transform: scale(1);
  animation: pulse-black 2s infinite;
}

.live.red {
  background: rgb(38, 38, 38);
  box-shadow: 0 0 0 0 rgb(38, 38, 38);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(38, 38, 38, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(255, 82, 82, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
  }
}
.modal-dialog {
  left: 4%;
}
@media (min-width: 1366px) {
  .modal-dialog {
    left: 0%;
  }
}
@media (max-width: 375px) {
  .modal-dialog {
    left: 4%;
  }
}

@media (max-width: 375px) {
  .mod-wrap {
    width: 100%;
    max-width: 360px;
  }
}

button.close {
  padding: 0.25em;
  font-size: 2rem;
  text-align: right;
}

/* modal */
.modal1,
.modal2,
.modal3,
.modal4,
.modal5,
.modal6, .modal7 {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 5%;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  background-color: #fefefe;
  width: calc(100% - 40px);
  max-width: 600px;
  border: 1px solid #888;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  animation-name: animatetop;
  animation-duration: 0.4s;
  margin: auto;
}

/* Add Animation */
@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}
/* The Close Button */
.close {
  display: block;
  position: absolute;
  top: 10px;
  right: 10px;
  color: #000;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #444;
  text-decoration: none;
  cursor: pointer;
}

.north:hover path {
  fill: #c1e5fe;
  fill-opacity: 55%;
  stroke: #4677c6;
  stroke-opacity: 5%;
}

.south:hover path {
  fill: #c1e5fe;
  fill-opacity: 55%;
  stroke: #4677c6;
  stroke-opacity: 5%;
}

.east:hover path {
  fill: #c1e5fe;
  fill-opacity: 55%;
  stroke: #4677c6;
  stroke-opacity: 5%;
}

.northeast:hover path {
  fill: #c1e5fe;
  fill-opacity: 55%;
}

.west:hover path {
  fill: #c1e5fe;
  fill-opacity: 55%;
  stroke: #4677c6;
  stroke-opacity: 5%;
}

.central:hover path {
  fill: #c1e5fe;
  fill-opacity: 55%;
  stroke: #4677c6;
  stroke-opacity: 5%;
}

.bangkok:hover path {
  fill: #c1e5fe;
  fill-opacity: 55%;
  stroke: #4677c6;
  stroke-opacity: 5%;
}/*# sourceMappingURL=style.css.map */