:root {
  --network-blue: #3498db;
  --network-blue-hover: #2980b9;
  --resource-red: #970f00;
  --resource-red-hover: #6e0b00;
  --dark: #2d3436;
  --light: #f5f6fa;
  --success: #2ecc71;
  --warning: #f39c12;
  --section-divider: #c4c6c7;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light);
  color: var(--dark);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  text-align: center;
}

h1 {
  color: var(--dark); /* Changed to black */
  margin-bottom: 0.5rem;
}

p.subtitle {
  color: var(--dark);
  opacity: 0.8;
  margin-bottom: 2rem;
}

.btn {
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin: 0.5rem;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 300px;
}

.btn:hover {
  transform: translateY(-2px);
}

.network-btn {
  background: var(--network-blue);
}

.network-btn:hover {
  background: var(--network-blue-hover);
}

.resource-btn {
  background: var(--resource-red);
}

.resource-btn:hover {
  background: var(--resource-red-hover);
}

.black-btn {
  background: #6d0000;
  color: white;
}

.black-btn:hover {
  background: #000000;
}


.section-title {
  font-weight: bold;
  margin: 1.5rem 0 0.5rem;
  color: var(--dark);
  text-align: left;
  padding-left: 0.5rem;
}

.section-divider {
  height: 1px;
  background-color: var(--section-divider);
  margin: 1.5rem 0;
}

.result {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  background: #f8f9fa;
  font-family: monospace;
}

.hidden {
  display: none;
}

.status {
  font-weight: bold;
  margin-top: 1rem;
}

.blocked {
  color: var(--resource-red);
}

.allowed {
  color: var(--success);
}

.warning {
  background-color: #fff4cf;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.container {
  /* Your existing container styles */
  position: relative; /* For absolute positioning of logo if needed */
}

.container img {
  display: block;
  margin: 0 auto .5rem;
  max-width: 20vh;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: transform 0.5s ease;
}

.container img:hover {
  transform: scale(1.05);
}

h1 {
  color: var(--dark);
  margin-bottom: 0.5rem;
  margin-top: 0rem;
  font-size: 1.8rem;
  position: relative;
  display: inline-block;
}

h1::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  background: var(--network-blue);
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}

p.subtitle {
  color: var(--dark);
  opacity: 0.8;
  margin: 1.5rem auto 2rem;
  max-width: 80%;
  line-height: 1.5;
}