/* /css/y987.css */
body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #fafafa;
  color: #333;
}

header {
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #ececec;
}

header h1 {
  margin: 0 0 12px;
  font-size: 1.6rem;
  color: #444;
}

header .topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

header .topbar input {
  flex: 1;
  min-width: 140px;
  padding: 8px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

header .topbar button {
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background 0.2s, transform 0.1s;
}

header .topbar button:active {
  transform: translateY(1px);
}

/* Button color schemes */
#speakBtn {
  background: #1e90ff;
}
#speakBtn:hover {
  background: #187bcd;
}

#copyBtn {
  background: #28a745;
}
#copyBtn:hover {
  background: #218838;
}

#printBtn {
  background: #dc3545;
}
#printBtn:hover {
  background: #c82333;
}

#randomBtn {
  background: #6f42c1;
}
#randomBtn:hover {
  background: #5936a7;
}

#twitterBtn {
  background: #1da1f2;
}
#twitterBtn:hover {
  background: #0d95e8;
}

#facebookBtn {
  background: #4267b2;
}
#facebookBtn:hover {
  background: #3b5998;
}

#lineBtn {
  background: #00c300;
}
#lineBtn:hover {
  background: #00a500;
}

#displayFrame {
  border: 1px solid #ddd;
  background: #fff;
  padding: 14px;
  margin-bottom: 16px;
  border-radius: 8px;
  min-height: 100px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  overflow-x: auto;
}

#index {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

#index a {
  text-decoration: none;
  padding: 5px 8px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

#index a:hover {
  background: #ff8c00;
  color: #fff;
  border-color: #ff8c00;
}

@media (max-width: 600px) and (orientation: landscape) {
  #displayFrame {
    margin: 0;
    width: 100vw;
    box-sizing: border-box;
  }
}

/* Entry Card Styling */
.entry {
  background: #ffffff;
  border-left: 5px solid #ff8c00;
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.entry h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  color: #ff8c00;
  line-height: 1.2;
}

.entry > h3 {
  display: inline-block;
  margin: 0 18px 14px 0;
  font-size: 1rem;
  font-weight: normal;
  color: #666;
}

.entry > div {
  display: flex;
  align-items: baseline;
  margin: 8px 0;
}

.entry > div h3 {
  margin: 0;
  margin-right: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
}

.entry > div p {
  margin: 0;
  color: #555;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .entry {
    padding: 14px;
  }
  .entry > h3 {
    display: block;
    margin-bottom: 10px;
  }
  .entry > div {
    flex-direction: column;
    align-items: flex-start;
  }
  .entry > div h3 {
    margin-bottom: 6px;
  }
}