@import url("https://fonts.googleapis.com/css2?family=Pattaya&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@500&display=swap");
* {
  /* font-family: "Pattaya", sans-serif; */
  font-family: "Kanit", sans-serif;
}

.main {
  background-color: rgb(207, 207, 207);
  box-shadow: 7px 8px 5px -4px rgba(0, 0, 0, 0.31) inset;
  -webkit-box-shadow: 7px 8px 5px -4px rgba(0, 0, 0, 0.31) inset;
  -moz-box-shadow: 7px 8px 5px -4px rgba(0, 0, 0, 0.31) inset;
  border-radius: 10px;
  position: relative;
  text-align: center;
  padding: 1rem 2rem 2rem 2rem;
  max-width: 80rem;
  min-height: 80vh;
  margin: 0 auto;
}
.header {
  position: relative;
  width: 100%;
  height: 100%;
}
.warp {
  text-align: center;
  background-color: white;
  box-shadow: 7px 8px 5px -3px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 7px 8px 5px -3px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 7px 8px 5px -3px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  font-weight: 900;
}
.txtHeader {
  font-size: 2rem;
  font-weight: bold;
}
.bodyMain {
  margin: 1rem;
  display: grid;
  width: 100%;
  max-height: 100rem;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  column-gap: 2rem;
  row-gap: 1rem;
}

.boxItem {
  position: relative;
  border-radius: 10px;
  width: 17rem;
  height: 6rem;
  /* width: 17vw;
  height: 3vh; */
  display: grid;
  grid-template-columns: 2fr 3fr;
  background-color: rgb(255, 255, 255);
  justify-content: center;
  box-shadow: 7px 8px 19px -7px rgba(0, 0, 0, 0.81);
  -webkit-box-shadow: 7px 8px 19px -7px rgba(0, 0, 0, 0.81);
  -moz-box-shadow: 7px 8px 19px -7px rgba(0, 0, 0, 0.81);
  cursor: pointer;
}

.contentBox {
  display: grid;
  grid-template-rows: 9fr 1fr;
}
.txtDate {
  font-size: 0.8rem;
}
.txtName {
  padding: 2px;
  display: grid;
  font-size: 1.2rem;
  font-weight: 900;
  grid-template-rows: 7fr 4fr;
  align-items: center;
}
.thaiFlag {
  position: relative;
  background-image: url(img/thai.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.vietFlag {
  position: relative;
  background-image: url(img/viet.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.laosFlag {
  position: relative;
  background-image: url(img/laos.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.russiaFlag {
  position: relative;
  background-image: url(img/russia.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.usaFlag {
  position: relative;
  background-image: url(img/usa.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.chinaFlag {
  position: relative;
  background-image: url(img/china.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 0px center;
}
.japanFlag {
  position: relative;
  background-image: url(img/japan.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.singaporeFlag {
  position: relative;
  background-image: url(img/singapore.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 0 center;
}

.koreaFlag {
  position: relative;
  background-image: url(img/korea.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.engFlag {
  position: relative;
  background-image: url(img/eng.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.germanyFlag {
  position: relative;
  background-image: url(img/germany.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.malaysiaFlag {
  position: relative;
  background-image: url(img/malay.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 0px center;
}

.topic {
  display: flex;
  margin: 3.5rem 0 1rem 0;
  height: 100%;
  width: fit-content;
  padding: 5px 15px 5px 15px;
  background-color: white;
  box-shadow: 7px 8px 5px -3px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 7px 8px 5px -3px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 7px 8px 5px -3px rgba(0, 0, 0, 0.5);
  border-radius: 2px;
  font-weight: 900;
  /* background-color: aqua; */
  /* margin: 1rem; */
}
.topic:first-child {
  margin: 1rem 0 1rem 0;
}
.typeText {
  font-size: 1.6rem;
}

.inputSearch {
  margin: 2.5rem 0 0 0;
  width: 100%;
  height: 100%;
  /* background-color: aqua; */
}
.searchHauy {
  font-size: 16px;
  padding: 6px 14px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .txtHeader {
    font-size: 16px;
  }
  .bodyMain {
    grid-template-columns: 1fr 1fr 1fr;
    /* column-gap: 2rem; */
    column-gap: 30px;
    row-gap: 16px;
    margin: 15px;
  }

  .boxItem {
    margin-left: -16px;
    width: 100px;
    height: 50px;
    max-width: 100px;
    max-height: 50px;
    min-width: 100px;
    min-height: 50px;
    /* width: 24.6vw;
    height: 5.7vh; */
  }
  .txtName {
    /* font-size: 0.5rem; */
    font-size: 6.5px;
    /* font-size: 10px; */
  }
  .txtDate {
    font-size: 6px;
  }
  .contentBox {
    grid-template-rows: 6fr 1fr;
    max-width: 100%;
    max-height: 100%;
  }

  .typeText {
    font-size: 11.2px;
  }
  .searchHauy {
    font-size: 11px;
  }
  .main {
    padding: 16px 32px 16px 24px;
    max-width: 90%;
  }
  .inputSearch {
    margin: 24px 0 0 0;
    width: 100%;
    height: 100%;
    /* background-color: aqua; */
  }
  .laosFlag {
    max-height: 100%;
  }
  .japanFlag {
    max-height: 100%;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
}
