body {
  background: #121212;
  color: white;
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
}

h1 {
  margin: 20px 0;
}

#main-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  margin: 20px auto;
  max-width: 900px;
}

#cardContainer img {
  width: 300px;
  border-radius: 10px;
  transition: opacity 0.5s ease;
}

#cardInfo {
  max-width: 400px;
  text-align: left;
}

#controls {
  margin-top: 20px;
}

button {
  background: #333;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #555;
}

#timerDisplay {
  margin-top: 10px;
  font-style: italic;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background: #1e1e1e;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  text-align: left;
}

.modal-buttons {
  text-align: center;
  margin-top: 20px;
}
