@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@100;200;300;400;500;600&display=swap');


* {
  /* box-sizing: border-box; */
  padding: 0;
  margin: 0;
  font-family: 'Kanit', sans-serif;
}

body {
  /* background-color: rgb(8, 113, 218); */
  background-color: rgb(232, 238, 244);
  height: 100%;
  background-image: url("https://www.act.ac.th/img/bg/bg1_3.png");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: 50% 50%;
  background-size: cover;
}

/* Style the header with a grey background and some padding */
a {
  text-decoration: none;
}

hr {
  width: 70%;
  margin: auto;
}

header {
  width: 100%;
  max-width: 1280px;
  margin: auto;
}

nav {
  position: sticky;
  top: 0px;
  z-index: 99;
}

button {
  text-decoration: none;
  border: none;
  background: none;
}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
}

.sticky+.content {
  padding-top: 60px;
}

.container {
  /* background-color: white; */
  height: 100vh !important;
  max-width: 1280px;
  margin: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.content {
  text-align: center;
  padding: 2rem 3rem 2.5rem 3rem;
  background-color: #fff;
  border-radius: 16px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  /* background-color: #b92525; */
  background-color: #391F62;
  color: white;
  padding: 0px 10px;
}

/* Style the header links */
.header a {
  display: flex;
  align-items: center;
  float: left;
  /* color: black; */
  color: white;
  text-align: center;
  padding: 12px;
  text-decoration: none;
  font-size: 18px;
  line-height: 25px;
  border-radius: 4px;
}

/* Style the logo link (notice that we set the same value of line-height and font-size to prevent the header to increase when the font gets bigger */
.header a.logo {
  display: flex;
  align-items: center;
  font-size: 18px;
  /* font-weight: bold; */
}

/* Change the background color on mouse-over */
/* .header a:hover {
    background-color: #ddd;
    color: black;
  } */

/* Style the active/current link*/
.header a.active {
  background-color: dodgerblue;
  color: white;
}

/* Float the link section to the right */
.header-right {
  float: right;
  margin-right: 1rem;
}

.header-right i {
  font-size: 28px;
  /* color: rgb(8, 113, 218); */
  /* color: rgb(8, 113, 218); */
}

/* Add media queries for responsiveness - when the screen is 500px wide or less, stack the links on top of each other */


.banner {
  display: flex;
  justify-content: center;
}

.banner img {
  width: 100%;
  max-width: 1280px;
}

.logo {
  display: flex;
  justify-content: center;
  gap: 12px;
  text-align: center;
  /* margin-top: 1.2rem; */
  margin-top: 0;
  padding: 0.5rem;
}

.logo img {
  height: 80px;
  width: auto;
}

.header_content {
  text-align: center;
  width: 100%;
  max-width: 1280px;
  margin: auto;
  padding: 1rem 0rem 1rem 0rem;
}

.header_content2 {
  text-align: left;
  width: 100%;
  max-width: 1280px;
  margin: auto;
  padding: 0rem 2rem;
}

.header_content3 {
  text-align: left;
  width: 100%;
  max-width: 1280px;
  margin: auto;
  padding: 0rem 2rem;
}

.header_content2 li {
  color: #EFC934;
}

.red_text {
  color: red;
}

h3 {
  margin-bottom: 0;
}

.btn-login {
  background-color: white;
  /* color: #B80A0A; */
  color: #391F62;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-size: 18px;
}

.header_content h3 {
  font-size: 28px;
  margin-bottom: 1rem;
}

.header_content h2 {
  font-size: 22px;
}


.header_content p {
  font-size: 20px;
  font-weight: bold;
}

.event_type {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 0.5rem;
  width: 100%;
}

.head_type {
  justify-content: space-around;
  width: 300px;
  margin: auto;
  text-align: center;
  background-color: #391F62;
  color: white;
  padding: 0.2rem 0rem;
  border-radius: 20px;
  margin-bottom: 2rem;
}

.head_type_re_container {
  display: flex;
  justify-content: space-around;
  width: auto;
}

.head_type_re {
  display: flex;
  justify-content: space-around;
  /* width: 100% */
  margin: auto;
  text-align: center;
  /* background-color: #391F62; */
  background-color: #0051ff;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.head_type h3 {
  font-size: 30px;
}

.head_type li {}


.head_type2 {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 350px;
  margin: 3rem auto 1rem auto;
  text-align: center;
  background-color: #391F62;
  color: white;
  padding: 1rem 1rem;
  border-radius: 20px;
}

.type_title {
  font-weight: none;
  padding-left: 0.5rem;
  font-size: 20px;
}

.event-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 1rem;
}

.event-cards2 {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 1rem;
}

.event-item {
  text-align: left;
  padding: 1rem;
}

.event-item2 {
  display: flex;
  align-items: baseline;
  padding: 0rem 1rem;
}

.event-item2 li {
  padding-left: 0.5rem;
  font-size: 18px;
}

.event-item h2 {
  text-align: center;
}

.event-item li {
  font-size: 18px;
}

.event-item img {
  width: 200px;
}

.reward {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 1rem;
  width: 100%;
}

.reward_content {
  display: flex;
  text-align: center;
  width: 100%;
  max-width: 1280px;
  padding: 0rem 2rem 2rem 2rem;
  margin: auto;
}

.reward_content img {
  width: 100%;
}

.maps {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 1.5rem;
  width: 100%;
  margin-bottom: 2rem;
}

.map-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1280px;
  margin: auto;
  padding: 0rem 3rem;
}

.map_img {
  width: 100%;
  max-width: 330px;
}


.contact_container {
  width: 100%;
  max-width: 1280px;
  margin: auto;
  padding-bottom: 3rem;
}

.contact_content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: start;
  gap: 20px;
  width: 100%;
  max-width: 1080px;
  margin: auto;
  padding: 2rem;
}

.line_content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: auto;
}

.line_content p {
  text-align: center;
}

.line_content .bi-line {
  font-size: 2rem;
}

.facebook_content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: auto;
}

.facebook_content iframe {
  width: 100%;
  max-width: 500px;
  height: 200px;
}

footer {
  width: 100%;
  max-width: 1280px;
  margin: auto;
  text-align: center;
  height: 50px;
  /* background-color: #B80A0A; */
  background-color: #391F62;
  color: #fff;
  padding: 1rem 0;
}


/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.modal_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}

.modal-content {
  text-align: right;
  justify-content: end;
  background-color: #fff;
  margin: 40px auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  max-width: 750px;
  height: auto;
}

.map_img_modal img {
  width: 100%;
}

.close-btn {
  width: 60px;
  background-color: #B80A0A;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 32px;
  font-weight: bold;
  margin: 0.5rem 0.5rem;
}

.x_btn_p {
  display: flex;
  justify-content: end;
}

.pay_container {
  width: 100%;
  max-width: 1280px;
  margin: auto;
  padding-top: 2rem;
  text-align: center;
}

.pay_case {
  display: flex;
  justify-content: center;
}

.nav_content {
  display: flex;
  align-items: center;
  gap: 6px;
}

.schedule {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  /* min-width: 720px; */
  width: 100%;
}

.schedule img {
  width: 100%;
  max-width: 720px;
}

@media screen and (max-width: 500px) {
  .header a {
    float: none;
    display: block;
    text-align: left;
  }

  .header-right {
    float: none;
  }

  .header_content h3 {
    font-size: 24px;
  }

  .header_content h2 {
    font-size: 24px;
  }

  .event-cards {
    gap: 10px;
  }

  .reward_content {
    padding: 0rem 0rem 1rem 0rem;
  }

  .head_type {
    width: 220px;
    padding: 0.2rem 0rem;
    border-radius: 20px;
    margin-bottom: 1rem;
  }

  .head_type h3 {
    font-size: 22px;
  }


  .map-cards {
    padding: 0rem;
    margin: 0;
    width: 100%;
  }

  .map_img {
    width: 100%;
  }

  /* Modal */
  /* .modal-content {
		margin: 10px;
		padding: 5px;
	} */

  .modal-content {
    background-color: #fff;
    padding: 5px 0px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }

  /* .modal-content {
		margin: 10px;
		padding: 5px;
		max-width: auto;
	} */

}

.run_type_detail {
  font-size: 14px;
  color: red;
}

@media all and (min-width:551px) {
  .desktop-br {
    display: inline;
  }

  .mobile-br {
    display: none;
  }

}

@media all and (max-width:550px) {
  .desktop-br {
    display: none;
  }

  .mobile-br {
    display: inline;
  }

  .content {
    padding: 1rem 1rem 1.5rem 1rem;
  }

  .logo img {
    height: 75px;
    width: auto;
  }
}