* {
      box-sizing: border-box;
    }

    body {
      font-family: Arial, sans-serif;
      margin: 0;
      /*background-color: #00518a;*/
      background-image: url('../image/pcbg.webp'); 
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
    }
    .card {
      background-color: #ffffff78;
      width: 100%;   
      max-width: 400px;
      border: 3px solid;
      border-radius: 12px;
      box-shadow: 0 15px 55px rgb(23 27 101 / 73%);
      overflow: hidden;
      text-align: center;
      /*animation: blink-border 1.3s infinite;*/
      /*margin: 8px 0;*/
      background-image: url(../image/bg.gif);
      background-size: auto 100vh;
    }
    .card img {
      width: 100%;
      height: auto;
      display: block;
    }
    .card-content {
      padding: 10px 10px 50px 10px;
      background-image: url(../image/bgmall.png);
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }
    .card-content h3 {
      margin: 15px;
      color: #dc0b0bf7;
      font-size: 25px;
      font-weight: 700;
      animation: blinkColor 1.3s infinite;
    }
    @keyframes blinkColor {
      0%   { color: red;    opacity: 1; }
      25%  { color: orange; opacity: 0.6; }
      50%  { color: green;  opacity: 1; }
      75%  { color: blue;   opacity: 0.6; }
      100% { color: purple; opacity: 1; }
    }
    .card-content p {
      margin: 10px 0;
      font-size: 18px;
      border: 1px solid #646ff7;
      border-radius: 50px 0px;
      background-color: #0d0d0d94;
      font-weight: 600;
      padding: 5px;
      color: antiquewhite;
      animation: blink-border 1.3s infinite;
    }
    .buttons {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 10px 45px;
      margin-top: 20px;
      /* bản mới */
      position: fixed;
      left: 0;
      bottom: 0;
      align-items: center;
      justify-content: space-around;
      z-index: 9999;
      width: 100%;
    }
    .buttons a {
      text-decoration: none;
      display: flex;
      justify-content: center;
      align-items: center;
      animation: zoom-pulse 1s infinite ease-in-out;
      max-width: 250px;
      width: 100%;
    }

    .golden-btn {
      background: linear-gradient(to bottom, #f9e29c, #f7c13b, #b97b10);
      color: #000;
      font-weight: bold;
      padding: 14px 20px;
      border-radius: 50px;
      border: none;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
                  inset 0 2px 6px rgba(255, 255, 255, 0.6),
                  inset 0 -2px 6px rgba(0, 0, 0, 0.2);
      text-align: center;
      font-size: 18px;
      text-decoration: none;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .golden-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4),
                  inset 0 3px 8px rgba(255, 255, 255, 0.7),
                  inset 0 -3px 8px rgba(0, 0, 0, 0.3);
    }

    .anh_12 {
      animation: rotate 4s linear infinite;
    }

    @keyframes rotate {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    @keyframes blink-border {
      0%   { border-color: red; }
      25%  { border-color: blue; }
      50%  { border-color: limegreen; }
      75%  { border-color: orange; }
      100% { border-color: red; }
    }

    @keyframes zoom-pulse {
      0%, 100% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.05);
      }
    }

    @media screen and (max-width: 480px) {
      body {
        /*background-image: url('../image/bg.jpg');*/
      }
    }


/* Overlay */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

/* Popup box */
.popup-content {
  background-color: #00000099;
  color: #ffffff;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: popupFade 0.3s ease-out;
}

.popup-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.popup-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.popup-button {
  background-color: #c2a806d6;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.popup-button:hover {
  background-color: #e64a19;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 1.8rem;
  color: #ff0000;
  cursor: pointer;
}

.popup-close:hover {
  color: #000;
}

@keyframes popupFade {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .popup-content {
    padding: 1.5rem;
  }

  .popup-content h2 {
    font-size: 1.35rem;
    color: #00ff7e;
  }

  .popup-button {
    padding: 0.6rem 1.7rem;
    font-size: 0.95rem;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
  }
}

  .open_popup {
    margin: 8px 0;
    font-size: 18px;
    border: 2px solid #19bc6f8f;
    border-radius: 50px 0px;
    background-color: #f5faff00;
    font-weight: 600;
    padding: 5px;
    /* animation: buzz 0.3s linear infinite; */
    animation: blinkColor 1.5s infinite;
  }

  @keyframes buzz {
      0%   { transform: translateX(0px) rotate(0deg); }
      25%  { transform: translateX(-2px) rotate(-1deg); }
      50%  { transform: translateX(2px) rotate(1deg); }
      75%  { transform: translateX(-2px) rotate(-1deg); }
      100% { transform: translateX(0px) rotate(0deg); }
    }