* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #e6e6e6;
  font-family: monospace;

  display: flex;
  justify-content: center;
  align-items: center;

  height: 100vh;
}

.quote-box {
  width: 90%;
  max-width: 600px;

  background: #ffffff;
  border: 2px solid #000;

  padding: 30px;

  text-align: center;
  box-shadow: 4px 4px 0 #000;
}

.quote-wrapper {
  overflow: hidden;
  transition: height 0.6s ease;
}

#quote {
  font-size: 14px;
  color: #000;

  line-height: 1.4;
  min-height: 2.8em; /* roughly 2 lines */
  display: block;

  opacity: 1;

  transition: opacity 0.6s ease;
}

#quote.fade-out {
  opacity: 0;
}

button {
  margin-top: 20px;

  padding: 10px 15px;

  font-size: 14px;

  background: #ddd;

  border: 2px solid #000;

  cursor: pointer;
  
  font-family: monospace;
  
  box-shadow: 4px 4px 0 #000;
}

button:hover {
  background: #ccc;
  transform: translateY(-1px);
}

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

.info-btn {
  position: fixed;
  top: 20px;
  right: 20px;

  width: 28px;
  height: 28px;

  border: 2px solid #000;
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: monospace;
  cursor: pointer;

  box-shadow: 3px 3px 0 #000;
}

.info-btn:hover {
  background: #ccc;
  transform: translateY(-1px);
}

.info-btn:active {
  transform: translateY(1px);
}

.modal-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.6);

  display: none;
  justify-content: center;
  align-items: center;
}

.modal {
  background: #fff;
  border: 2px solid #000;

  padding: 40px;
  width: 300px;

  text-align: center;

  box-shadow: 6px 6px 0 #000;
}

.modal button {
  margin-top: 25px;
  padding: 8px 10px;

  border: 2px solid #000;
  background: #ddd;
  
  font-family: monospace;

  cursor: pointer;
}

button,
.info-btn {
  -webkit-appearance: none;
  appearance: none;

  color: #000;
  -webkit-tap-highlight-color: transparent;
}

