body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #FFF;
}
/*  */

/* Trigram Navigation Grid */

.trigram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0;
  background-color: white;
  height: 100%;
}

.trigram-item {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.trigram-item a {
  display: block;
  height: 100%;
  width: 100%;
}

.trigram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.2s;
}

.trigram-item:hover img {
  transform: scale(1.05);
}

.trigram-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #0047a0;
  font-weight: bold;
  text-decoration: underline;
  white-space: nowrap;
  font-size: 0.9rem;
}

/* Info Section */

.info-section {
  background: white;
  
  border-radius: 0;
  overflow: hidden;
  display: flex;
}

.info-section .row {
  width: 100%;
  margin: 0;
}

#taoist_meaning {
  display: block;
      background-color: white;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 5px;
  /*color: #1f546f;*/
  
}

#mountain {
  text-decoration: none;
  color: inherit;
}

.description-text {
  padding: 15px;
  font-size: 1.3rem;
  line-height: 1.4;
  
  
   /* font-size: 0.9rem;
  line-height: 1.4;*/

  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  
  background-color: white;
  color: black;
}

.text-content {
  height: 100%;
    background-color: white;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

#more {
  display: none;
}

.readmore {
  border: none;
  background: none;
  color: #007bff;
  padding: 0;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
}

.readmore:hover {
  color: #0056b3;
}

/* Flag Image */

.flag-container {
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0;
  overflow: hidden;
  line-height: 0;
}

.flag-container img {
  display: block;
  width: 100%;
  border-radius: 0 !important;
}

#scigramimg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
}

/* Responsiveness */

@media (max-width: 767.98px) {
  .trigram-grid {
    margin-bottom: 30px;
  }
}

@media (max-width: 767.98px) {
  .trigram-text {
    font-size: 0.75rem;
  }
}


