    html, body {
      line-height: 1;
      height: 100%;
      width: 100%;
      margin: 0;
      padding: 0;
      overflow:hidden;
      }


    body {
      font-family: 'Gotham', sans-serif;
      font-size: 1em;
      background-color: black;
      background-size: cover;
      background-image: url('../images/sgbacken.jpg');
      background-attachment: scroll;
      position: relative;
      background-repeat: no-repeat; 
      max-height: 700px;  
      width: 100%;    
      }

        .red-packet {
            position: relative;
            text-align: center;
            top: 230px;
            left: 0%;
        }

        .red-packet img {
            width: 220px;
        }

        .title img {
            width: 50px;
            margin-top: 150px;
        }

        .cta-button {
            position: absolute; /* Ensure absolute positioning */
            top: 55%; /* Center vertically */
            left: 25%; /* Move to the right by increasing the percentage */
            transform: translate(-50%, -50%); /* Keep centering adjustments */
            background-color: transparent;
            border: none;
            cursor: pointer;
            
        }
        
    


        .cta-button-popup {
            position: absolute;
            top: 35%;
            left: 16%;
            transform: translateX(-50%);
            background-color: transparent;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            width: 200px;
        }

        .steps {
            position: absolute;
            top: 650px;
            left: 60%;
            transform: translateX(-50%);
            font-size: 12px;
            color: black;
            padding: 10px;
            border-radius: 5px;
            width: 80%;
        }

        .popup {
            display: none;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: transparent;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            font-size: 20px;
            color: #ff0000;
        }

        /* Popup GIF */  
        #overlay {
            position: fixed; 
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh; /* Changed from 830vh to 100vh */
            background-color: rgba(0, 0, 0, 0.8); 
            z-index: 1888; 
            display: none;    
        }

        #gifContainer {
            position: fixed;
            top: 25%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 1900;
            display: none;
        }

        #gifContainer img {
            width: 350px; 
            height: auto;
        }

        #popup {
            position: fixed;
            height: 400px;
            width: 300px;    
            top:78%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 10000;
            display: none;
            text-align: center;
            padding: 50px; 
            border-radius: 10px; 
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); 
        }

        #popup p {
            color: #fff; 
            font-size: 14px; 
            margin: 0px 10px;
        }

        

        #popup .cta-button-popup {
            display: inline-block;
            padding: 0px 20px;
            text-decoration: none;
            border-radius: 5px;
            font-size: 18px;
            filter: drop-shadow(0 7px 10px rgba(218, 165, 32, 0.9));
            animation: zoomInOut 0.7s infinite;
            transform: translateX(-50%, -50%);
            margin-left: 20px; 
            margin-top:10%;
        } 


        .announcement-container {
            position: absolute;
            bottom: 48px;
            left: 0;
            width: 100%;
            overflow: hidden; /* 隐藏超出范围的内容 */
            text-align: center;
            height: 40px;
        }
        
        .announcement {
            position: relative;
            white-space: nowrap; /* 确保内容不换行 */
            font-size: 16px;
            font-weight: bold;
            color: #333;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 5px;
            padding: 10px 20px;
            animation: slide-left 6s linear infinite; /* 定义动画 */
        }
        
        /* 从右到左的动画 */
        @keyframes slide-left {
            0% {
                transform: translateX(100%); /* 从屏幕右侧开始 */
                opacity: 0; /* 渐入开始 */
            }
            10% {
                opacity: 1; /* 渐入完成 */
            }
            50% {
                transform: translateX(0); /* 中央停留 */
                opacity: 1;
            }
            90% {
                opacity: 1; /* 渐出开始 */
            }
            100% {
                transform: translateX(-100%); /* 离开屏幕左侧 */
                opacity: 0; /* 渐出完成 */
            }
        }
        
        
        
        
        @keyframes zoomInOut {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.13);
            }
        }

    
 
   /* Media Queries */

@media (min-width: 320px) and (max-width: 344px)  {
    body {
        background-size: 320px;
        max-width: 320px;
        background-position: top;
        left: 50%;
        transform: translateX(-50%);
    }    
    
    .red-packet img {
            width: 180px;
            top: 100px;
        }
     
     .red-packet {
            position: relative;
            text-align: center;
            top: 200px;
            left: 0%;
        }
    
     

    
      .steps {
            position: absolute;
            top: 610px;
            left: 60%;
            transform: translateX(-50%);
            font-size: 12px;
            color: #000000;
            padding: 10px;
            border-radius: 5px;
            width: 80%;
        }
}
    
@media (min-width: 345px) and (max-width: 360px)  {
    
      body {
        background-size: 350px;
        max-width: 350px;
        background-position: top;
        left: 50%;
        transform: translateX(-50%);
    }    
    
    .red-packet img {
            width: 210px;
            top: 100px;
        }
     
     .red-packet {
            position: relative;
            text-align: center;
            top: 210px;
            left: 0%;
        }
    
    

    
     .steps {
            position: absolute;
            top: 610px;
            left: 60%;
            transform: translateX(-50%);
            font-size: 13px;
            color: #000000;
            padding: 10px;
            border-radius: 5px;
            width: 80%;
        }
}
    
    
@media (min-width: 361px) and (max-width: 369px)  {
        
      body {
        background-size: 360px;
        max-width: 360px;
        background-position: top;
        left: 50%;
        transform: translateX(-50%);
    }    
    
    .red-packet img {
            width: 210px;
            top: 100px;
        }
     
     .red-packet {
            position: relative;
            text-align: center;
            top: 220px;
            left: 0%;
        }
    
    
    
     
    
       .steps {
            position: absolute;
            top: 610px;
            left: 60%;
            transform: translateX(-50%);
            font-size: 13px;
            color: #000000;
            padding: 10px;
            border-radius: 5px;
            width: 80%;
        }
}
    
@media (min-width: 370px) and (max-width: 399px)  {
    
    body {
        background-size: 370px;
        max-width: 370px;
        background-position: top;
        left: 50%;
        transform: translateX(-50%);
    }    
    
    .red-packet img {
            width: 230px;
            top: 100px;
        }
     
     .red-packet {
            position: relative;
            text-align: center;
            top: 220px;
            left: 0%;
        }
    
     
     
    
      .steps {
            position: absolute;
            top: 610px;
            left: 60%;
            transform: translateX(-50%);
            font-size: 14px;
            color: #000000;
            padding: 10px;
            border-radius: 5px;
            width: 80%;
        }
}
    
@media (min-width: 400px) and (max-width: 767px)  {
    
       
    body {
        background-size: 400px;
        max-width: 400px;
        background-position: top;
        left: 50%;
        transform: translateX(-50%);
    }    
    
    .red-packet img {
            width: 240px;
            top: 100px;
        }
     
     .red-packet {
            position: relative;
            text-align: center;
            top: 240px;
            left: 0%;
        }
   
    
      .steps {
            position: absolute;
            top: 610px;
            left: 60%;
            transform: translateX(-50%);
            font-size: 15px;
            color: #000000;
            padding: 10px;
            border-radius: 5px;
            width: 80%;
        }
}
    
   @media (min-width: 768px)  {

         body {
        background-size: 400px;
        max-width: 400px;
        background-position: top;
        left: 50%;
        transform: translateX(-50%);
    }    
    
    .red-packet img {
            width: 240px;
            top: 100px;
        }
     
     .red-packet {
            position: relative;
            text-align: center;
            top: 240px;
            left: 0%;
        }
    
       
       
        .steps {
            position: absolute;
            top: 660px;
            left: 58%;
            transform: translateX(-50%);
            font-size: 15px;
            color: #000000;
            padding: 10px;
            border-radius: 5px;
            width: 80%;
        }
}
