
/* Nút mở popup, Nút link tải */


button#button-linktai, a.fc-download-button, button#button-linktai, a.fc-td-download-button {
    background: linear-gradient(-45deg, #ec0009, #F7C600, #c4048f, #c2022c);
    font-family: inherit;
    background-size: 400% 400%;
    animation: gradient 4s ease infinite;
    border-radius: 20px;
    border: 2px solid #F7C600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    color: #ffef5a !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1em;
    margin: 0 10px;
    float: right;
}

@keyframes gradient {
	0% {
		background-position: 0% 40%;
	}
	50% {
		background-position: 100% 40%;
	}
	100% {
		background-position: 0% 60%;
	}
}


button#button-linktai svg, a.fc-download-button svg, button#button-linktai svg, a.fc-td-download-button svg {
    fill: #ffffff;
    width: 16px;
    margin-right: 10px;
    animation: upDown 1.5s ease-in-out infinite;
}

@keyframes upDown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0);
  }
}

button#button-linktai-listing {
    font-size: 13px;
    font-weight: 500;
    line-height: 1em;
    background: #F7C600;
    color: #000;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 15px;
    margin: 10px 10px 0 0;
    float: left;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2), 3px 3px 0 0 rgba(0, 0, 0, 0.2);
}



.open-popup-fc:hover {
    color: #ffec06;
}

.open-popup-fc img {
    margin-bottom: -1px;
    display: inline-block !important;
    border-radius: 0;
}

/* Popup overlay */
.popup-fc-container {
    display: none; /* Ẩn popup ban đầu */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
}

/* Popup nội dung (container tĩnh) */
.popup-fc-content {
    position: fixed;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 1000px;
    max-width: 90%;
    max-height: 80%;
    height: 75%;
    padding: 0px 5px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 6px 10px rgba(0,0,0,0.19);
    border-top: 20px solid #ffffff;
    border-right: 10px solid #ffffff;
    border-left: 20px solid #ffffff;
    border-bottom: 20px solid #ffffff;
    
    display: flex;
    flex-direction: column;
}

.popup-fc-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-top: 10px;
  box-sizing: border-box;
}



/* Scrollbar cho Chrome, Edge, Safari */
.popup-fc-inner::-webkit-scrollbar {
    width: 6px;
    border-radius: 20px;
}

/* Track của scrollbar */
.popup-fc-inner::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 20px;
}

/* Thanh cuộn (Thumb) */
.popup-fc-inner::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px; /* Bo góc thanh cuộn */
}

/* Hover trên thanh cuộn */
.popup-fc-inner::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}


.close-popup-fc {
    position: absolute;
    top: -28px;
    right: -20px;
    width: 28px;
    height: 28px;
    font-size: 30px;
    line-height: 1.2em;
    color: #111;
    background: #fff;
    border-radius: 10px;
    padding: 0 5px 5px 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-popup-fc:hover {
    color: red;
}


/* Nút link tải trong Popup */
.download-buttons-popup {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;  
    margin: 20px;
    z-index: 99;
    position: relative;
}


.popup-font-lien-quan {
  margin-top: auto;       /* dồn nó xuống đáy của .popup-fc-inner */
  text-align: center;
  opacity: .6;
  transition: opacity .3s ease;
}

.popup-font-lien-quan:hover {
    opacity: 1;
}

/* Responsive cho mobile (max-width: 820px) */
@media all and (max-width: 820px) {
    .popup-fc-content {
        width: 90%;
        max-height: 80%;
        min-height: 650px;
        border: 5px solid #ffffff;
        padding: 0px 5px 10px;
    }

    .close-popup-fc {
        top: -15px;
        right: -12px;
        width: 30px;
        height: 30px;
        font-size: 26px;
        padding: 0 4px 3px 5px;
    
    }
    .popup-fc-inner {
     padding-right: 0;   
    }

}
