:root {
  --green: #143414;
  --orange: #f24c00;
  --light: #faf8f6;
  --gray: #555;
}

body {
  font-family: "Fraunces", serif;
  background: var(--light);
  color: var(--green);
  margin: 20;
  padding: 2.5rem;
  display: flex;
  justify-content: center;
}

.screen {
  display: none;
  max-width: 400px;
  background: white;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.screen.active {
  display: block;
}

h1, h2 {
  text-align: center;
}

.btn {
  background: var(--orange);
  border: none;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  cursor: pointer;
  display: block;
  margin: 0.5rem auto;
}

.btn.secondary {
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--orange);
}

.main-btn {
  background-color: #d94d1a;
  color: #fff;
  border: none;
  font-weight: 600;
}

.main-btn:hover {
  background-color: #c04213;
}

.secondary-btn {
  background-color: transparent;
  color: #d94d1a;
  border: 2px solid #d94d1a;
  font-weight: 500;
}

.secondary-btn:hover {
  background-color: #fff5f0;
}

.header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 1rem;
}

.bet-box {
  text-align: center;
}

.bet-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
}

.bet-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.bet-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.choices {
  display: flex;
  gap: 0.5rem;
}

.bet-input {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bet-input input {
  width: 120px;
  padding: 0.4rem 0.3rem;
}

.btn {
  width: 140px;
  text-align: center;
}


#log-table {
  width: 100%;
  margin-top: 2rem;
  border-collapse: collapse;
}

#log-table th, #log-table td {
  padding: 0.5rem;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.chart-box {
  margin-top: 2rem;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 0.8rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.icon-btn img {
  width: 28px;
  height: 28px;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
}

.icon-btn img:hover {
  opacity: 1;
  transform: scale(1.08);
}

.share-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.share-label {
  font-weight: 500;
  margin-bottom: 10px;
  text-align: center;
}

.share-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.share-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-icons img {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
  margin: 0.2rem;
}

.share-icons img:hover {
  transform: scale(1.15);
}
