/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #f1f1f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 600px;
  max-width: 350px;
  margin: 0 auto;
  padding: 20px 15px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 28px;
  user-select: none;
}
header h1 {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255 255 255 / 0.3);
}
header .subtitle {
  font-weight: 400;
  font-size: 1rem;
  margin-top: 6px;
  color: #cfd8dc;
  letter-spacing: 1px;
}

/* Main container */
main {
  width: 100%;
}

/* Market container */
.market-container {
  background: rgba(255 255 255 / 0.07);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  padding: 18px 22px;
  margin-bottom: 25px;
  transition: background-color 0.3s ease;
  user-select: none;
}
.market-container:hover,
.market-container:focus-within {
  background: rgba(255 255 255 / 0.12);
}

/* Market title */
.market-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
  color: #fff;
}

/* Prediction result */
.prediction-result {
  font-weight: 900;
  font-size: 2.6rem;
  letter-spacing: 5px;
  text-align: center;
  margin: 18px 0 20px;
  color: #fff;
  text-shadow: 
    0 0 8px rgba(255 255 255 / 0.7),
    0 0 22px rgba(255 255 255 / 0.6);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.generate-btn {
  display: block;
  width: 100%;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(45deg, #ff7e5f, #feb47b);
  border: none;
  border-radius: 30px;
  padding: 12px 0;
  box-shadow: 0 6px 16px rgba(255, 126, 95, 0.6);
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.1s ease;
}
.generate-btn:hover,
.generate-btn:focus {
  background: linear-gradient(45deg, #ff956f, #ffbc8c);
  box-shadow: 0 8px 22px rgba(255, 144, 112, 0.8);
  outline: none;
}
.generate-btn:active {
  transform: scale(0.95);
  box-shadow: 0 4px 10px rgba(255, 126, 95, 0.9);
}

/* Market specific colors for prediction result */
#sydney .prediction-result {
  color: #00e5ff;
  text-shadow:
    0 0 6px #00e5ff,
    0 0 18px #00ffd7bb;
}
#hongkong .prediction-result {
  color: #ff5252;
  text-shadow:
    0 0 6px #ff5252,
    0 0 18px #ff525590;
}
#singapore .prediction-result {
  color: #ffd600;
  text-shadow:
    0 0 6px #ffd600,
    0 0 18px #ffeb3b90;
}

/* Footer */
footer {
  margin-top: auto;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: #bbb;
  user-select: none;
  padding-top: 15px;
  padding-bottom: 10px;
}

/* Responsive for max width 350 */
@media (max-width: 400px) {
  body {
    padding: 15px 10px;
  }
  header h1,h2,p,ol,ul,li {
    font-size: 1.6rem;
  }
  .prediction-result {
    font-size: 2.1rem;
    letter-spacing: 4px;
    min-height: 50px;
  }
  .generate-btn {
    font-size: 1rem;
    padding: 11px 0;
  }
}
