body {
  font-family: "Courier New", "Courier", monospace;
  transition: background-color 0.3s ease;
  margin-top: 5%;
}

h5 {
  margin-top: -20px;
  margin-bottom: 20px;
}

.light-mode {
  background-color: #e8e8e8;
}

.dark-mode {
  background-color: #1a1a1a;
}

.content-frame {
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.light-mode .content-frame {
  background-color: #FFFFFF;
  color: #000000;
}

.dark-mode .content-frame {
  background-color: #2a2a2a;
  color: #e0e0e0;
}

table {
  border: 3px solid #000000;
  border-collapse: separate;
  border-spacing: 0;
  width: 50%;
  transition: border-color 0.3s ease;
}

.dark-mode table {
  border-color: #ffffff;
}

table td {
  padding: 20px;
}

.address-container {
  margin: 20px 0;
  width: 100%;
  text-align: left;
}

.address-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px;
}

.address-label {
  font-size: 0.95em;
  width: 140px;
  flex-shrink: 0;
  text-align: left;
  padding-right: 10px;
  color: #888;
}

.address-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.long-address {
  font-family: "Courier New", "Courier", monospace;
  font-size: 0.85em;
  padding: 8px 12px;
  border-radius: 4px;
  flex: 1;
  line-height: 1.4;
}

.light-mode .long-address {
  background-color: #f5f5f5;
  color: #666;
}

.dark-mode .long-address {
  background-color: #1a1a1a;
  color: #888;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  padding: 4px 8px;
  opacity: 0.6;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.copy-btn:hover {
  opacity: 1;
}

.qr-code {
  position: absolute;
  top: 15px;
  right: 15px;
  bottom: 15px;
  width: 80px;
  height: 80px;
  transition: opacity 0.2s;
}

.qr-code:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  body {
    margin: 0;
    padding: 0;
  }

  center {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  table {
    width: 100% !important;
    border-width: 2px;
    margin: 0;
  }

  table td {
    padding: 15px;
  }

  .qr-code {
    width: 60px;
    height: 60px;
    top: 10px;
    right: 30px;
  }

  .address-label {
    width: 100px;
    font-size: 0.85em;
  }

  .long-address {
    font-size: 0.75em;
    padding: 6px 8px;
  }
}

