body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #151414;
  margin: 20px;
  max-width: 1860px;
}

h1,
h2 {
  text-align: center;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  color: aliceblue;
}

.main-container {
  display: flex;
  gap: 20px;
}

.coin-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(minmax(120px, 1fr));
  gap: 15px;
  max-height: 80vh;
  overflow: auto;
}

.coin {
  background-color: #2a949e;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.coin:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(228, 227, 227, 0.2);
}

.coin img {
  width: 20px;
  height: 20px;
  margin-bottom: 8px;
}

.right-column {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#coin-details,
#coin-markets {
  background-color: #2a949e;
  padding: 15px;
  border-radius: 8px;
  max-height: 40vh;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(218, 213, 213, 0.1);
}

#coin-markets div {
  padding: 8px;
  margin-bottom: 5px;
  background-color: #2a949e;
  border-radius: 5px;
}

@media screen and (max-width: 760px) {
  .main-container {
    flex-direction: column;
  }
  .coin-grid {
    grid-template-columns: repeat(minmax(100px, 1fr));
  }
}

.positive {
  color: rgb(38, 221, 38);
}

.negative {
  color: red;
}
