@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap');
body {
  margin:0;
  font: 600 18px 'Source Sans Pro', sans-serif;
  letter-spacing: 0.64px;
  color: #585d74;
}
.topnav {
  background-color:#dc7f37;
  color:#da2626;
  padding:10px;
}
.topnav a:link, .topnav a:visited {
  text-decoration: none;
  color: #ffffff; 
}
.topnav a:hover, .topnav a:active {
  text-decoration: underline;
}
.mycard {
  background-color: #f1f1f1;
  background-image: linear-gradient(to bottom, #375BDC, #4D70EF); 
  background-size: 100% 120px;
  background-repeat: no-repeat;
  margin: 40px auto;
  width: 350px;
  border-radius: 5px;
  box-shadow: 0 5px 7px -1px rgba(51, 51, 51, 0.23); 
  padding: 20px;
}
.mycard h1 {
  text-align: center;
  color:#553737;
  margin:20px 0 60px 0;
}
ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
li {
  background-color: #7b2929;
  background-image: linear-gradient(to right, #375BDC, #4D70EF); 
  background-size: 50px 60px;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform .25s;
  border-radius: 5px;
  box-shadow: 0 5px 7px -1px rgba(51, 51, 51, 0.23);
  padding: 15px;
  padding-left: 70px;
  margin-top: 5px;
}
li:hover {
  transform: scale(1.1);
}
a:link, a:visited {
  color: #375BDC; 
}
.main, .main h1 {
  text-align:center;
  color:#bb3a3a;
}

.centered-button {
  display: inline;

  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
}

.monster-button {
  display: flex;
  justify-content: center;   /* centers horizontally */
  align-items: center;       /* centers vertically */
  gap: 20px;                 /* space between them */
}

#monsterCanvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

.answer-btn {
  padding: 10px 14px;
  border: 1px solid #aaa;
  border-radius: 6px;
  background: #f8f8f8;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.answer-btn.correct {
  background-color: #4caf50; /* green */
  color: white;
  border-color: #3d8b3d;
  transform: scale(1.05);
}

.answer-btn.wrong {
  background-color: #e74c3c; /* red */
  color: white;
  border-color: #c0392b;
  transform: scale(0.95);
}

.answer-btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}
