body {
  background: #d9d9d9;
  color: #000000;
  font-family: "EB Garamond", serif;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px;
  font-size: 1.2rem;
  line-height: 1.5;
}

h1 {
  text-align: center;
}

#intro {
  opacity: 1;
  max-height: 140px;
  transition:
    opacity 1s ease,
    max-height 1s ease;
}

#intro.hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}

.oracle-button {
  background: none;
  border: 1px solid black;
  font-family: "EB Garamond", serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  padding: 8px 24px;
  display: block;
  margin-bottom: 20px;
  opacity: 1;
  transition: opacity 1s ease;
}

.oracle-button.hidden {
  opacity: 0;
}

#throw-button {
  margin: 0 auto;
}

#reading {
  padding-top: 1px;
  visibility: hidden;
}

#second-reading {
  visibility: hidden;
}

#second-reading-button {
  margin: 60px auto;
  display: block;
}

#throw-button,
#second-reading-button {
  color: black;
  -webkit-appearance: none;
}

#reading-layout {
  transition: margin-top 1s ease;
}

#lines-container {
  float: left;
  margin-right: 40px;
  width: 150px;
  height: 244px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#second-lines-container {
  float: left;
  margin-right: 40px;
  margin-bottom: 20px;
  margin-top: -5px;
  width: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 200px;
}

#second-layout {
  margin-top: 40px;
  clear: both;
}

.line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  max-width: 150px;
}

.bar {
  height: 4px;
  background: black;
  flex: 1;
}

.bars {
  display: flex;
  flex: 1;
  gap: 30px;
}

.bar.left,
.bar.right {
  height: 4px;
  background: black;
  flex: 1;
}

.value {
  width: 20px;
  font-size: 14px;
  color: #333;
}

nav a {
  color: black;
  text-decoration: none;
}

nav a:visited {
  color: black;
}

nav a:hover {
  color: black;
}

nav .oracle-button {
  display: inline-block;
  text-decoration: none;
  color: black;
  margin-top: 40px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 1rem;
}

th,
td {
  border: 1px solid black;
  padding: 8px 12px;
  text-align: center;
}

th {
  font-weight: 600;
}

footer {
  clear: both;
  margin-top: 80px;
  padding-top: 25px;
  border-top: 1px solid black;
  text-align: center;
  font-size: 0.9rem;
}

footer .oracle-button {
  text-decoration: none;
  display: inline-block;
  margin: 10px auto;
}

footer a {
  color: black;
}

footer a:visited {
  color: black;
}

footer a:hover {
  color: black;
}

.copyright {
  font-size: 0.75rem;
  color: #666;
  margin-top: 20px;
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  body {
    font-size: 1.2rem;
    padding: 15px;
  }

  #throw-button {
    margin-top: 80px;
  }

  #intro {
    max-height: 150px;
  }
}

.section-label {
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-top: 24px;
  margin-bottom: 2px;
  text-align: center;
  text-transform: uppercase;
}

#judgment-text,
#image-text {
  text-align: center;
  margin: 0 auto;
  max-width: 80%;
  padding: 16px 0;
}

#changing-lines-section {
  display: none;
}

.line-text {
  font-style: italic;
}

#judgment-text,
#image-text,
#second-judgment-text,
#second-image-text {
  text-align: center;
  margin: 0 auto;
  max-width: 80%;
  padding: 16px 0;
}
