/* ====================================
   1. ẨN/HIỆN NỘI DUNG CHÍNH
   ==================================== */

#main-game-content.hidden {
    display: none !important;
}

/* ====================================
   2. MÀN HÌNH LOADING OVERLAY
   ==================================== */

#game-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color:#303030; /* Nền tối */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#game-loader-overlay.fade-out {
    opacity: 0;
}

/* ====================================
   3. CSS SPINNER (THAY THẾ GIF)
   ==================================== */

.loader-content {
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.css-spinner {
    /* Kích thước của vòng quay */
    width: 60px;
    height: 60px;
  border: 6px solid rgba(255, 255, 255, 0.2);
    border-top: 6px solid #ffc107; /* Màu vàng cam */
    border-radius: 50%;

    /* Căn giữa spinner */
    margin: 0 auto;

    /* Bắt đầu hiệu ứng quay */
    animation: spin 1s linear infinite;

    /* Thêm hiệu ứng đổ bóng/lấp lánh nhẹ */
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.loader-content p {
    margin-top: 15px;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #ffc107;
    animation: pulse 2s infinite;
}

/* ====================================
   4. KEYFRAMES
   ==================================== */

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

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
