html,
body {
  height: 100%;
  margin: 0;
  font-family: "Archivo", sans-serif;
  /* background: #fafafa; */
}

.leaflet-container {
  height: 400px;
  width: 600px;
  max-width: 100%;
  max-height: 100%;
}

#map {
  height: 100vh;
  width: 100%;

  padding: 20px;
  min-height: 100vh;
  transition: all 0.3s;
  position: relative;
}

p {
  font-family: "Archivo", sans-serif;
  font-size: 1.2em;
  font-weight: 300;
  line-height: 1.2em;
  color: #999;
  margin-bottom: 6px;
}

a,
a:hover,
a:focus {
  color: inherit;
  text-decoration: none !important;
  transition: all 0.3s;
}

.card .btn:hover {
  text-decoration: none !important;
}

.btn-link {
  transition: color 0.3s, font-size 0.3s;
}

.btn-link:hover {
  color: #01644b !important;
  font-size: 0.85em; /* Adjust the size as needed */
}

#gif-container {
  position: absolute;
  display: none;
  pointer-events: none; /* Prevent the gif from interfering with mouse events */
  z-index: 1002;
}

#laughing-gif {
  width: 50px;
  height: 50px;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

/* .wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
} */

#sidebar {
  min-width: 250px;
  max-width: 250px;
  background: #94b403;
  color: rgb(252, 252, 252);
  transition: all 0.3s;

  z-index: 1001;
  position: fixed;
  overflow-y: scroll;
  top: 0;
  bottom: 0;
}

/* 隐藏滚动条的技巧 */
#sidebar::-webkit-scrollbar {
  width: 0; /* 隐藏滚动条宽度 */
  background: transparent; /* 背景透明 */
}

/* 如果需要兼容Firefox等浏览器，可以使用以下代码 */
#sidebar {
  scrollbar-width: none; /* Firefox 隐藏滚动条 */
}

/* 如果需要兼容Firefox等浏览器，可以使用以下代码 */
.sidebar-header h3 {
  color: #ffffff;
  text-shadow: 3px 2px 0 #5b5e36;
}

#sidebar.active {
  margin-left: -250px;
}

#sidebar .sidebar-header {
  padding: 10px;
  background: #00335e;
}

#sidebar ul.components {
  padding: 20px 0;
  border-bottom: 1px solid #47748b;
}

#sidebar ul p {
  color: rgb(0, 27, 66);
  /* padding: 10px; */
}

#sidebar ul li a {
  padding: 6px;
  font-size: 1em;
  display: block;
}

#sidebar ul li a:hover {
  color: #7386d5;
  background: #fff;
}

#sidebar ul li.active > a,
a[aria-expanded="true"] {
  color: #fff;
  background: #6d7fcc;
}

a[data-toggle="collapse"] {
  position: relative;
}

.dropdown-toggle::after {
  display: block;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

ul {
  padding: 2px;
  list-style-type: none;
}

ul ul a {
  font-size: 0.9em !important;
  padding-left: 30px !important;
  background: #6d7fcc;
}

ul.CTAs {
  padding: 20px;
}

ul.CTAs a {
  text-align: center;
  font-size: 0.9em !important;
  display: block;
  border-radius: 5px;
  margin-bottom: 5px;
}

a.download {
  background: #fff;
  color: #7386d5;
}

a.article,
a.article:hover {
  background: #6d7fcc !important;
  color: #fff !important;
}

#sidebar .menu-link {
  padding-left: 30px;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 768px) {
  /* #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    } */
  #sidebarCollapse span {
    display: none;
  }
}

.leaflet-popup-content-wrapper {
  padding: 0;
  overflow: hidden;
}
.leaflet-popup-content-wrapper .leaflet-popup-content {
  margin: 0;
}
.leaflet-popup-content-wrapper h4 {
  padding: 16px;
  background: #00335e;
  color: #fff;
  font-size: 16px;
}
.leaflet-popup-content-wrapper p {
  padding: 0 16px;
  font-size: 14px;
  margin-top: 6px;
  margin-bottom: 6px;
}
.leaflet-popup-content-wrapper .leaflet-popup-content .phone-number {
  padding: 16px;
  padding-top: 0;
}
.leaflet-popup-content-wrapper .leaflet-popup-content .phone-number a {
  color: #ff6808;
  font-size: 14px;
}

.box {
  padding: 6px;
  padding-left: 12px;
  -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.26);
  -moz-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.26);
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.26);
  /* background-color: rgb(255, 217, 229); */
  position: relative;
  margin-bottom: 4px;
}

.schedule-event-title {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  color: #94b403;
}

.event-name {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.youtube_icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  padding: 2px;
}

.schedule-event-logo {
  margin-right: 20px;
  display: flex;
}

.schedule-event-logo img {
  width: 38px;
  height: auto;
  max-width: 38px;
  max-height: 38px;
}

.schedule-event-logo .img-HA {
  width: 16px;
  margin-left: 2px;
  margin-right: 8px;
  opacity: 0.7;
  filter: grayscale(80%);
}

.schedule-event-logo .tx-HA {
  margin-top: 10px;
  font-size: 0.78rem;
  color: #fff !important;
  background-color: #024255f6;
  font-weight: 700;
  border-radius: 100%;
  width: 1.2rem;
  height: 1.2rem;
  display: inline;
  text-align: center;
  /* justify-content: center; */
  line-height: 1.5;
  margin-right: 0.5rem;
  flex-shrink: 0;
  opacity: 0.8;
}

.event-name .title h3 a {
  text-decoration: none;
}

.schedule-event-title time {
  font-family: "Archivo", sans-serif;
  font-weight: 300;
  font-size: 10px;
  color: #2c2a29;
  text-transform: uppercase;
  max-width: 100%;
  text-overflow: ellipsis;
  display: inline-block;
}

.schedule-event-title p {
  font-family: "Archivo", sans-serif;
  color: #000000;
  font-size: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  max-height: 10px;
  padding-right: 10px;
}

.schedule-event-result {
  font-family: "Archivo", sans-serif;
  color: #000000;
  font-size: 12px;
  margin: 1px;
}

.title p {
  margin-top: 2px;
  font-size: 18px;
}

/* .leaflet-popup {
    min-width: 560px;
    height: 400px;
} */

.final-score {
  display: inline-block;
  width: 86px;
  border: 1px dotted rgb(163, 163, 163);
  text-align: center;
  margin-right: 6px;
}

.final-score-3v3 {
  display: inline-block;
  width: 50px;
  border: 1px dotted rgb(163, 163, 163);
  text-align: center;
  margin-right: 6px;
}

.scheduled-game {
  display: inline-block;
  width: 100px;
  border: 1px dotted rgba(163, 163, 163, 0.445);
  font-size: 16px;
  color: #9c9c9c !important;
  text-align: center;
  margin-right: 6px;
}

.somsyd-score {
  font-size: 10px;
  font-weight: 300;
  display: inline;
}

#sidebarCollapse {
  position: fixed;
  top: 10px;
  left: 260px;
  z-index: 1002;
  transition: all 0.3s ease;
}

#goBacktoBlog {
  position: fixed;
  bottom: 190px;
  right: 20px;
  z-index: 1003;
  transition: all 0.3s ease;
  border: #007bff;

  background: #1a365d;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#goBacktoBlog:hover {
  background: #2c5282;
}

#goBacktoBlog i {
  font-size: 1.1em;
}

#goBacktoBlog span {
  font-size: 0.9em;
  font-weight: 500;
}

#sidebar.active + #map + #sidebarCollapse {
  left: 10px;
}

/* 确保按钮样式美观 */
#sidebarCollapse {
  background: #1a365d;
  border: 2px solid #007bff; /* 添加蓝色边框 */
  padding: 8px 12px;
  border-radius: 4px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#sidebarCollapse:hover {
  background: #2c5282;
}

#sidebarCollapse i {
  font-size: 1.1em;
}

#sidebarCollapse span {
  font-size: 0.9em;
  font-weight: 500;
}

.inner-banner {
  font-size: 8px;
  padding-top: 1px;
  padding-bottom: 3px;
  color: #f04fd5 !important;
}

.inner-banner p {
  text-align: center;
  border-radius: 25px;
  color: #000000 !important;
  font-style: italic;
  /* background-color: rgb(218, 215, 202); */
  margin: 0px auto 0px auto; /* keep the table centered */
  padding: 2px;
}

.inner-banner p.reg-banner {
  background-color: rgb(218, 215, 202); /* 设置背景颜色 */
}

.inner-banner p.nchsaa-banner {
  background-color: #94c7dc !important; /* 设置背景颜色 */
}

.matches-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.matches-table th,
.matches-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  font-size: 10px;
}

.matches-table th {
  background-color: #f2f2f2;
}

.legend {
  position: fixed;
  bottom: 30px;
  right: 10px;
  background: rgb(243, 243, 243);
  padding: 20px;
  border: 4px dashed rgb(151, 206, 231);
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  line-height: 1.2em;
  z-index: 1003;
}

.counter_center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px;
}

/* 设置 div 居中 */
.icon-container {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* 图标之间的间隔 */
}

.icon {
  font-size: 1.2em; /* 图标大小 */
  color: #ffffff; /* 图标颜色 */
}

.icon:hover {
  color: #007bff; /* 鼠标悬停时的颜色 */
}
