h1 {text-align: center; font-size: 1.2em;}
h2 {text-align: center; font-size: 1em;}
h3 {text-align: center; font-size: 1.2em; margin-top: 30px;}
table {margin-left: auto; width: 95%; margin-right: auto; text-align: center; font-size: 15px; border-collapse: collapse;}
td {width: 22.5%; padding: 3.8px;}
tr:nth-child(even) {background-color: #f0f8f1;}
p {font-size: 15;}
a {color: #335e3b;}
div{font-size: 15; text-align:center; margin: auto}
.map, .google{color: grey;}
button {color: #335e3b;}
form.search {margin-bottom: 20px;}
input {box-sizing: border-box; font-size: 16px;}
input#my_textfield {width: 68%; font-size: 1em; padding: 0.6em;}
input#my_submit {font-size: 1em; padding: 0.6em; background-color: #335e3b; color: white;border: 0px;}
div#myBtnContainer {margin-top: 10px; margin-bottom: 20px;}
div#post_statistics {margin-bottom: 60px;}

html {
  scroll-behavior: smooth;
  width: 100%;
  margin: auto;
  overflow: auto;
 }


body {
    font-size: unset !important;
    margin: 0px;
    width: 100%;
    margin: auto;
}

li {
    font-size: 0.5em;
}


ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  margin-left: 15%;
  margin-right: 15%;
  max-width: 900px;
  margin: auto;
  padding-top:10px;
  padding-bottom: 10px;
}


div.school_page{
    margin-top: 30px;
    /* margin-bottom: 30px; */
}

.container {
  overflow: hidden;
}
.filterDiv {
  display: none; /* Hidden by default */
}


/* The "show" class is added to the filtered elements */
.show {
  display: block;
}

/* Style the buttons */
.btn {
  padding: 5px 12px;
  font-size: 0.7em;
  border-radius: 15px;
  border-width: thin;
  border: 1px solid;
  outline: none;
  background-color: white;
  cursor: pointer;
  border-color: #adbeb0;
  text-decoration: none;
}

.subject_btn {
  padding: 5px 12px;
  font-size: 0.8em;
  border-radius: 15px;
  border-width: thin;
  border: 1px solid;
  outline: none;
  /*padding: 12px 16px;*/
  /*border-radius: 25px;*/
  background-color: white;
  cursor: pointer;
  border-color: #adbeb0;
  text-decoration: none;
}

/* Add a light grey background on mouse-over */
.btn:hover, .subject_btn:hover {
  background-color: #ddd;
}

/* Add a dark background to the active button */
.btn.active, .subject_btn.active {
  background-color: #666;
  color: white;
}

/* #more {display: none;} */


/* Scollmenu */
div.scrollmenu {
  background-color: #335e3b;
  overflow: auto;
  white-space: nowrap;
}

div.scrollmenu a {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 12px;
  font-size: 0.8em;
  text-decoration: none;
}

div.scrollmenu a:hover {
  background-color: #f0f8f1;
  color: #335e3b;
}
/* end of Scollmenu */


/* School information page */
td.school_information {
    padding: 0.5em;
}
th.school_information {
    padding: 0.5em;
}


/*Toggle menu*/
/* Style the navigation menu */
.topnav {
  overflow: hidden;
  position: relative;
}

/* Hide the links inside the navigation menu (except for logo/home) */
.topnav #menuLinks {
  display: none;
}

/* Style navigation menu links */
.topnav a {
  color: black;
  text-decoration: none;
  font-size: 17px;
  margin: 10px;
  display: block;
}

/* Style the hamburger menu */
.topnav a.icon {
  padding: 18px 18px;
  background: white;
  color: black;
  display: block;
  position: absolute;
  left: 0;
  top: 0;
}

/* Style the hamburger menu */
.topnav a.search_icon {
  padding: 18px 18px;
  background: white;
  color: black;
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}

/* Style the hamburger menu */
.topnav a.user_icon {
  padding: 18px 18px;
  background: white;
  color: black;
  display: block;
  position: absolute;
  right: 38px;
  top: 0;
}


/* Style the hamburger menu */
.topnav a.notification_icon {
  padding: 18px 18px;
  background: white;
  color: black;
  display: block;
  position: absolute;
  left: 30px;
  top: 0;
}


/* Add a grey background color on mouse-over */
.topnav a.icon:hover {
  background-color: #ddd;
  color: black;
}

/* Style the active link (or home/logo) */
.active {
  background-color: #04AA6D;
  color: white;
}
/* End of toggle menu */




nav.school_detail_page{
    margin: auto;
    text-align: center;
    margin: 20px;
}
a.school_page_nav{
    margin: 5px;
    font-size: 0.8em;
}

div.online_user_statistics{
    font-size: 0.7em;
}


/* Posts list related */
.icon {
    width: 13px;
    height: 13px;
    vertical-align: sub;
    background-image: url('/static/TP-Index_icon_32x32px.png');
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

div.posts_list{
    padding: 10px;
    margin: 10px;
    padding-top: 1px;
    border-radius: 15px;
    border-width: 1px;
    border-color: #e5e7eb;
    border-style: solid;
    position: relative;
}

p.posts_list_school_name{
    font-size: 1em;
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: 500;
}

p.posts_list_school_info{
    margin-top: 5px;
    margin-left: 30px;
    margin-right: 30px;
    font-size: 0.7em;
    color:grey;
}

div.posts_list_name{
    font-size: 0.8em;
    margin-top: 11.2px;
}

p.posts_list_detail{
    font-size: 10px;
    margin-bottom: 0px;
}
/* End of posts list related */



/* Categry page tp competition index related */
span.tp_competition_index_low{
    color: #00bf7e;
}

span.tp_competition_index_high{
    color: #f05;
}
/* End of categry page tp competition index related */


/* New favourite button */
.favorite-btn {
    position: absolute;
    top: 50%; /* Positions the button vertically in the middle */
    right: 10px; /* Positions the button 10px from the right edge */
    transform: translateY(-50%); /* Centers the button vertically */
    padding: 5px 10px; /* Button padding */
    cursor: pointer;
}
/* End of new button */


/* Register */
input#username,
input#email,
input#password,
input#password2 {
    width: 100%;
    max-width: 800px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

input#submit {
      width: 100%;
      max-width: 800px;
      padding: 10px;
      background-color: #335e3b;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
}



/* Bottom nav bar */
/* Place the navbar at the bottom of the page, and make it stick */
.bottom_navbar {
  overflow: hidden;
  position: fixed;
  background-color: white;
  bottom: 0;
  width: 100%;
  border-top: solid;
  border-color: #335e3b;
  border-top-width: 0.1px;
}

/* Style the links inside the navigation bar */
.bottom_navbar a {
  float: left;
  display: block;
  font-size: 0.9em;
  width: 50%;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
  text-decoration: none;

}

/* Change the color of links on hover */
.bottom_navbar a:hover {
  background-color: #ddd;
  color: black;
}

/* Add a color to the active/current link */
.bottom_navbar a.active {
  background-color: #04AA6D;
  color: white;
}
/* End of Bottom nav bar */





/* Search index page */
input#search_index {
    width: 60%;
    max-width: 800px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

input#search_index_submit {
      width: 38%;
      max-width: 200px;
      margin: 20px;
      padding: 10px;
      background-color: #335e3b;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
}

div#search_index_page_container {
    width: 80%;
}

a.hot_keywords {
    margin-right: 5px;
}

p.search_index_page_keywords {
    text-align: left;
}
/* Search index page */


/* Follow button */
button.follow-button {
  color: white;
  font-family: "Helvetica";
  font-size: 0.7em;
  background-color: #2EB82E;
  border: 1px solid;
  border-color: #2EB82E;
  border-radius: 3px;
  min-width: 55px;
  /*weight: 25px; */
  position: relative;
  /* bottom: 2px; */
  align-items: center;
  cursor: pointer;
}

/* Follow button */



/* Scollmenu of district filter */
div.district_filter {
  overflow: auto;
  white-space: nowrap;
}

div.district_filter a {
  display: inline-block;
  color: white;
  text-align: center;
  padding-left: 12px;
  padding-right: 12px;
  font-size: 0.6em;
  text-decoration: none;
}

div.district_filter a:hover {
  background-color: #f0f8f1;
  color: #335e3b;
}
/* end of Scollmenu of district filter */

button.btn.activefilter, button.subject_btn.activefilter{
    background-color: #F3FDE9;
}



.fa-bars:before {
  content: "\f0c9";
}






/* Latyui tab */
.th_description {
  font-size: 0.8em;
  margin: 1px;
  font-weight: normal;
}
.layui-tabs {
  position: relative;
}
.layui-tabs-card {
  border-radius: 2px;
  border-width: 1px;
  border-style: none;
}
.layui-panel {
  position: relative;
  border-width: 1px;
  border-style: none;
  border-radius: 2px;
  background-color: #fff;
  border-color: white;
}
.layui-tabs-header {
  position: relative;
  left: 0;
  height: 40px;
  white-space: nowrap;
  font-size: 0;
  transition: all .16s;
  padding: 0 !important;
}
.layui-tabs-header li {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  line-height: 40px;
  margin: 0 !important;
  padding: 0 16px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  transition: all .16s;
  min-width: 65px;
}
.layui-tabs-header .layui-this,
.layui-tabs-header li:hover {
  color: #16baaa;
}
.layui-tabs-header .layui-this:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-bottom: 3px solid #16baaa;
  box-sizing: border-box;
  pointer-events: none;
}
.layui-tabs-body {
  padding: 16px 0 0 0;
}
.layui-tabs-item {
  display: none;
}
.layui-tabs-item.layui-show {
  display: block;
}
.th_description {
  font-size: 0.8em;
  margin: 1px;
  font-weight: normal;
}
/* End of Latyui tab */





/* Register page */
/* register.css */
.form-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 90%;
    max-width: 800px;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button.register_button {
    width: 90%;
    max-width: 800px;
    padding: 10px;
    background-color: #335e3b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button.register_button:hover {
    background-color: #45a049;
}

.error-message {
    color: red;
    margin: 10px 0;
}
/* End of Register page */
