
html {
  scrollbar-width: none;          /* Firefox */
}

html::-webkit-scrollbar {
  display: none;                  /* Chrome, Safari, Edge */
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "GenSenRounded2 TC";
  background-image: url(Assets/bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.container {
  background-color: #FCFAF2;
  outline: 2px solid #CBB994;
  border-radius: 0px;
  max-width: 980px;
  width: 100%;
  margin: 70px auto;
  
  position: relative;
  box-sizing: border-box;
  padding: 5px;
}

.innerContainer {
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.tab-spacing {
  height: 20px;
  pointer-events: none;
  background-color: #F7C242;
  border-bottom: 2px solid #A89878;
}

.innerContainer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tabContainer {
  display: flex;
  box-sizing: border-box;
  width: 100%;  
  padding: 0;
}

.tab {
  background-color: #f0e7d2;
  list-style: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  width: 150px;
}

.panel.hidden {
  display: none;
}

.content {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  overflow-y: auto;
  min-height: 500px;
}

.tab li {
  flex: none;
  width: 100%;
  text-align: left;
}

.tab li a {
  color: #715743;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;

  border: 2px solid transparent;
  border-top: 2px solid #FFFFFC;
  border-bottom: 2px solid #A89878;
  border-left: none;
  border-right: 2px solid #A89878;
  
  width: 100%;
  box-sizing: border-box;
  display: block;
  padding: 8px 10px;
  line-height: 1;
}

/* Mouse over a tab that is NOT the current page */
.tab li a:hover:not(.active) {
  background-color: #FCFAF2;
}

/* Current page tab */
.tab li a.active {
  background-color: #FCFAF2;
  border-top: 2px solid #715743;
  border-bottom: 1px solid #A89878;
  border-left: 2px solid #A89878;
  border-right: none;
}

/* Mouse button held down on any tab (click press) */
.tab li a:active {
  transform: scale(0.98);
  border-top: 2px solid #715743;
  border-bottom: 1px solid #A89878;
  border-left: 2px solid #A89878;
  border-right: none;
}

.marquee {
  overflow: hidden;
  width: 100%;
  height: 20px;
  background-color: #F7C242;
  box-sizing: border-box;
  container-type: inline-size;
}

.marquee-content {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee-scroll 8s linear infinite;
}

.marquee-content span {
  color: #EB6238;
  font-weight: bold;
  font-size: 16px;
  padding-right: 30cqw;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.lang-switch {
  --gap: 3px;

  position: absolute;
  right: 0;
  bottom: 100%;
  margin-bottom: 8px;
  z-index: 1000;

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  width: 104px;
  padding: var(--gap);
  box-sizing: border-box;
  background-color: #f0e7d2;
  outline: 2px solid #CBB994;
}

.lang-switch-thumb {
  grid-column: 1;
  grid-row: 1;
  background-color: #FCFAF2;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.lang-switch[data-current="zh"] .lang-switch-thumb {
  transform: translateX(100%);
}

.lang-switch button {
  grid-row: 1;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-weight: bold;
  line-height: 1;
  color: #715743;
  cursor: pointer;
  opacity: 0.55;
}

.lang-switch [data-lang="en"] { grid-column: 1; }
.lang-switch [data-lang="zh"] { grid-column: 2; }

.lang-switch[data-current="en"] [data-lang="en"],
.lang-switch[data-current="zh"] [data-lang="zh"] {
  opacity: 1;
}

#blog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;      
}

#blog-list li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 14px;
  align-items: baseline;
}

#blog-list time {
  color: #715743;
  background-color: #F7C242;
  font-style: italic;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
  padding: 0 4px;
}

#blog-list a {
  color: #715743;
  font-weight: bold;
}

#blog-post {
  margin: 0;
  padding: 0;
}

.blog-post-header {
  color: #715743;
  font-weight: bold;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.blog-post-content {
  line-height: 1.5;
}