html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  color: #333;
  display: flex;
  justify-content: center;   /* horizontally center */
  align-items: flex-start;   /* align content to the top instead of center */
}


header {
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(5px);
  width: 100%;
  box-sizing: border-box;
}

header h1 {
  margin: 0;
  font-weight: 600;
}

.container {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  padding: 20px;
  margin-top: 25%;
}

.pair-select-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

/* Custom dropdown styles */
.pair-dropdown {
  position: relative;
  width: 300px;
}

.pair-dropdown-button {
  width: 100%;
  background: #fff;
  border: none;
  padding: 10px 12px;
  font-size: 1em;
  border-radius: 25px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: left;
  cursor: pointer;
  position: relative;
  font-family: 'Open Sans', sans-serif;
}

.pair-dropdown-button::after {
  content: '▼';
  font-size: 0.8em;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.pair-dropdown-panel {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  z-index: 20;
}

.pair-dropdown-panel.open {
  display: flex;
}

.pair-dropdown-search {
  width: 100%;
}

.pair-dropdown-search input {
  width: 100%;
  padding: 8px 12px;
  font-size: 1em;
  border-radius: 25px;
  border: none;
  outline: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pair-dropdown-list {
  max-height: 200px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pair-dropdown-list li {
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pair-dropdown-list li:hover {
  background: #f0f0f0;
}

.exchanges {
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.exchange {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  flex: 1 1 250px;
  min-width: 350px;
  padding: 20px;
  text-align: center;
  transition: background 0.3s ease;
}

.exchange:hover {
  background: rgba(255, 255, 255, 0.95);
}

.exchange h2 {
  margin-top: 0;
  font-weight: 600;
  letter-spacing: 1px;
  color: #555;
}

.price {
  font-size: 2.5em;
  font-weight: 600;
  margin: 10px 0;
  transition: color 0.3s ease;
  word-wrap: break-word;
}

.footer-note {
  text-align: center;
  font-size: 0.9em;
  color: #444;
  opacity: 0.8;
}
