* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Pacifico", cursive;
}

body {
  background: #ffe;
  font-size: 17px;
  color: #231f20;
  overflow: auto;
}

a {
  color: #000000;
  font-size: 20px;
}
#main {
  width: 100%;
  position: relative; /* Bắt buộc có dòng này */
  z-index: 10; /* Cao hơn z-index của ảnh rơi */
}
#wrap {
  position: relative;
  margin: 0 auto;
  width: 1100px;
  height: 680px;
  margin-top: 10px;
}
#text {
  width: 400px;
  height: 425px;
  left: 60px;
  top: 80px;
  position: absolute;
}
#code {
  display: none;
  font-size: 17px;
}

#canvas {
  margin: 0 auto;
  width: 1100px;
  height: 680px;
}

.say {
  margin-left: 5px;
  color: #000000;
}
.space {
  margin-left: 100px;
}
/* CSS cho màn hình kết thúc */
#ending-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9); /* Nền đen mờ che đi web cũ */
  z-index: 10000; /* Phải cao nhất để đè lên tất cả */
  display: none; /* Ẩn đi ban đầu */
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0; /* Để làm hiệu ứng hiện dần */
  transition: opacity 2s ease-in-out;
}

.ending-content h1 {
  color: #ff6b6b;
  font-family: "Pacifico", cursive;
  font-size: 40px;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.8);
}

.ending-content p {
  color: #fff;
  font-size: 20px;
  margin-bottom: 30px;
  font-family: "Poppins", sans-serif;
}

.ending-content button {
  padding: 12px 30px;
  font-size: 18px;
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
  transition: transform 0.3s;
}

.ending-content button:hover {
  transform: scale(1.1);
  background: #ff6b81;
}
