/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
  background: #f4f6f9;
  color: #333;
  line-height: 1.6;
}

header {
  position: relative;
  background: url('/acutisheader.jpeg') no-repeat center center;
  background-size: cover;
  color: yellow;
  padding: 20px;
  text-align: center;
  z-index: 1;
}

header::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5); /* lớp mờ 50% */
  z-index: -1;
}

}


header h1 {
  font-size: 1.5rem; /* gần 1/2 so với 2rem */
  margin-bottom: 5px;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  transition: 0.3s;
}

nav a:hover { color: #ffeb3b; }

main {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.card:hover { transform: translateY(-5px); }

/* Button */
button {
  padding: 14px 26px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  background: #28a745;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}
button:hover:enabled { background: #218838; }
button:disabled { background: #aaa; cursor: not-allowed; }

/* Results */
#results {
  margin-top: 20px;
  font-size: 20px;
  font-weight: bold;
  line-height: 2;
  min-height: 50px;
  text-align: center;
}

.power { color: #d4af37; }
.mega { color: #dc3545; }
.lotto { color: #28a745; }
.special { color: #007bff; }

.arrow {
  color: #007bff;
  margin-right: 8px;
  animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Spinner */
.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #007bff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 20px auto;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Clock */
#clock {
  font-size: 14px;
  font-weight: bold;
  color: #4da6ff;
  text-align: center;
  margin-top: 20px;
}

/* Counter */
#so {
  font-size: 48px;
  font-weight: bold;
  color: red;
  text-align: center;
  margin-top: 50px;
}

footer {
  background: #222;
  color: #aaa;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
}


    .hinh-bo-tron {
      max-width: 100%;
      height: auto;
      border: 5px solid #ccc;        /* Viền màu xám nhạt */
      border-radius: 15px;           /* Bo tròn góc */
      box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Đổ bóng nhẹ */
      display: block;
      margin: 20px auto;             /* Căn giữa hình */
    }