/* Reset and Basic Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #0a0a0f, #1b1b2f);
  color: #fff;
  line-height: 1.5;
  padding: 0;
  margin: 0;
}

header {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(45deg, #00bfae, #005f87);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  color: #fff;
  border-bottom: 2px solid #00bfae;
}

header h1 {
  font-size: 3rem;
  font-weight: 700;
}

header h1 .brand {
  font-size: 2rem;
  font-weight: 400;
  color: #fff;
  margin-left: 5px;
}

header h2 {
  color: #ccc;
  font-size: 1.3rem;
  font-weight: 500;
}

main {
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

section {
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Pair Selection Styling */
#pair-selection {
  display: flex;
  justify-content: center;
  font-size: 1.2rem;
  color: #aaa;
}

#pair-selection label {
  margin-right: 10px;
}

#pair {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #00bfae;
  background-color: #333;
  color: #00bfae;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  outline: none;
}

/* Market Power Bar */
#market-power {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#market-power-bar {
  width: 80%;
  height: 30px;
  border-radius: 8px;
  display: flex;
  margin-bottom: 10px;
  background-color: #444;
  overflow: hidden;
  border: 1px solid #00bfae;
}

.power-bar {
  height: 100%;
  transition: width 0.3s ease;
}

#buy-power {
  background: linear-gradient(45deg, #00bfae, #007f7f);
}

#sell-power {
  background: linear-gradient(45deg, #e74c3c, #7f1e1e);
}

#market-power-text {
  font-size: 1.2rem;
  color: #00bfae;
}

/* Order Book Styling */
#order-book {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

#buy-volume, #sell-volume {
  flex: 1;
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 15px;
  max-width: 48%;
}

#buy-volume h3, #sell-volume h3 {
  color: #00bfae;
  font-size: 1.4rem;
  margin-bottom: 10px;
  text-align: center;
}

ul {
  list-style: none;
  padding: 0;
  max-width: 100%;
  overflow: hidden;
}

li {
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  color: #ffffffcc;
  background-color: #333;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#buy-list li {
  background-color: rgba(0, 191, 174, 0.3);
}

#sell-list li {
  background-color: rgba(231, 76, 60, 0.3);
}

/* Status Section */
#status {
  text-align: center;
  font-size: 1.2rem;
  color: #aaa;
}

#status-text {
  color: #fff;
}

#trend-analysis-timeframe {
  margin-top: 20px;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  color: #aaa;
}

#timeframe {
  padding: 8px;
  font-size: 1.1rem;
  border: 1px solid #00bfae;
  background-color: #333;
  color: #00bfae;
  border-radius: 5px;
  outline: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 10px;
  background-color: #121212;
  border-top: 2px solid #00bfae;
  margin-top: 20px;
}

footer p {
  color: #00bfae;
  font-size: 1rem;
}

/* Visitor Counter */
#visitor-counter {
  margin-top: 20px;
  color: #00bfae;
}

#visitor-counter a {
  color: #00bfae;
  text-decoration: none;
}

#visitor-counter a:hover {
  text-decoration: underline;
}
/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

/* Body Styling */
body {
  background-color: #f4f7fa;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

/* Header */
header {
  background-color: #00bfae;
  padding: 20px;
  text-align: center;
  color: white;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

header h2 {
  font-size: 1.2rem;
  margin-top: 0;
}

header .brand {
  font-weight: bold;
}

header a {
  color: white;
  text-decoration: none;
}

#how-it-works-btn {
  background-color: #007f7f;
  color: white;
  font-size: 1.1rem;
  padding: 10px 20px;
  margin-top: 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

#how-it-works-btn:hover {
  background-color: #005e5e;
}

/* Modal Styles */
/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: hidden; /* Prevent page scroll when modal is open */
}

.modal-content {
  background-color: #000; /* Black background */
  color: #fff; /* White text */
  margin: 10% auto;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh; /* Limit height to fit smaller screens */
  overflow-y: auto; /* Enable inner scroll on content */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.close-btn {
  font-size: 1.5rem;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
}


.close-btn:hover {
  color: #00bfae;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

p {
  font-size: 1rem;
  margin-bottom: 10px;
}
