/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Roboto', sans-serif;
}

/* Theme styles */
body.day-theme {
  background-color: #f5f7fa;
  color: #333;
}

body.night-theme {
  background-color: #1e1e1e;
  color: #f1f1f1;
}

/* Header */
.header {
  background-color: #004080; /* Corporate blue */
  color: #ffffff;
  padding: 20px 0;
  margin-bottom: 20px;
}

.header .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 1.8em;
  font-weight: 500;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Theme toggle button in header */
.theme-toggle-btn {
  background-color: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle-btn:hover {
  background-color: #ffffff;
  color: #004080;
}

/* Ticker container */
.ticker-container {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

/* Buttons row */
.buttons-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.btn {
  background-color: #004080;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0059b3;
}

/* Prices Section */
.prices-section {
  margin-bottom: 40px;
}

.main-prices, .additional-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

/* Price Boxes */
.price-box {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 6px;
  text-align: center;
  flex: 1 1 250px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.price-box:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.price-box h2,
.price-box h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #004080;
}

.price-box p {
  font-size: 1.8em;
  font-weight: 500;
  margin: 0;
  color: #333;
}

/* Graphs Section */
.graphs-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.graph-container {
  background-color: #ffffff;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: 400px;
}

@media (min-width: 768px) {
  .graphs-section {
    flex-direction: row;
  }
  .graph-container {
    width: 48%;
    height: 350px;
  }
}

/* Extended London Section */
.extended-london-section {
  margin-top: 40px;
}

.extended-london-section h2 {
  font-size: 1.5em;
  margin-bottom: 20px;
  color: #004080;
}

.extended-london-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.extended-london-prices .price-box {
  flex: 1 1 180px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
}

/* Flash animations for price changes */
@keyframes flashGreen {
  from { background-color: #e0f7e9; }
  to { background-color: transparent; }
}

@keyframes flashRed {
  from { background-color: #fdecea; }
  to { background-color: transparent; }
}

.flash-up {
  animation: flashGreen 1s ease;
}

.flash-down {
  animation: flashRed 1s ease;
}

/* Night Theme Adjustments */
body.night-theme .header {
  background-color: #00264d;
}

body.night-theme .theme-toggle-btn {
  border-color: #f1f1f1;
  color: #f1f1f1;
}

body.night-theme .theme-toggle-btn:hover {
  background-color: #f1f1f1;
  color: #00264d;
}

body.night-theme .ticker-container,
body.night-theme .graph-container,
body.night-theme .price-box {
  background-color: #2c2c2c;
  border-color: #444;
}

body.night-theme .price-box h2,
body.night-theme .price-box h3,
body.night-theme .extended-london-section h2 {
  color: #a3c2f2;
}

body.night-theme .price-box p {
  color: #ffffff;
}

body.night-theme .btn {
  background-color: #003366;
}

body.night-theme .btn:hover {
  background-color: #004080;
}
