html,
body {
    height: 100%;
    margin: 0;
}




/* === Card Container === */
.cardcontainer {
    width: 100%;
    height: auto;
    background-color: white;
    margin: 0 auto;
    transition: 0.3s;
}

.cardcontainer:hover {
    box-shadow: 0 0 45px gray;
}

/* === Photo Section === */
.photo {
    width: 100%;
    height: auto;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === Text Styling === */
.txt1 {
    margin: auto;
    text-align: center;
    font-size: 17px;
}

.txt2 {
    font-size: 12px;
    position: relative;
    top: 20px;
}

.txt3 {
    color: gray;
    font-size: 14px;
    position: relative;
    top: 18px;
}

.txt4 {
    font-size: 14px;
    position: relative;
    color: #e74c3c;
    top: 33px;
}

/* === Card Content === */
.content {
    width: 95%;
    height: 60px;
    margin: 0 auto;
    position: relative;
    top: -33px;
}

/* === Footer Area Inside Card === */
.footer {
    width: 80%;
    height: 70px;
    margin: 0 auto;
    background-color: white;
    position: relative;
    top: -15px;
}

/* === Button Position === */
.btn {
    position: relative;
    top: 20px;
}

/* === Comments Icon (Right Top) === */
.comments {
    float: right;
    cursor: pointer;
}

/* === Swiper Customization === */
.swiper {
    width: 100%;
    padding: 10px 0;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 100%;
    height: auto;
}

.swiper-slide img {
    display: block;
    width: 100%;
}

/* === Horizontal Scroll Navigation === */
.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.4rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

/* === Container for Main Content (Sticky Footer Setup) === */
main.custom-container {
    margin: 0 auto;
    height: 100vh;
    /* Agar main mengisi viewport */
    display: flex;
    flex-direction: column;
}

/* Ukuran khusus di layar besar */
@media (min-width: 992px) {
    .custom-container {
        width: 30%;
    }
}

/* === Action Icons in Card (Bottom Right) === */
.action-icons {
    position: absolute;
    bottom: -25px;
    right: 5px;
}

.action-icons img {
    width: 40px;
    margin-left: 5px;
    cursor: pointer;
}

/* === Love Section === */
.love-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.love-icon {
    margin-bottom: 1px;
}

.love-count {
    font-size: 10px;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 5px;
}

/* === HTML Content Holder (Frame with Image Inside) === */
#html-content-holder {
    position: relative;
    overflow: hidden;
}

#uploaded-image {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
}

/* === Heartbeat Animation === */
@keyframes heartbeat {

    0%,
    28%,
    70% {
        transform: scale(1);
    }

    14%,
    42% {
        transform: scale(1.3);
    }
}

/* === SweetAlert2 Customization === */
.swal2-icon.swal2-no-border {
    border: none !important;
    box-shadow: none !important;
    animation: heartbeat 1.5s infinite;
}

.swal2-custom {
    background-color: rgba(0, 0, 0, 0.3) !important;
}

.swal2-custom .swal2-title,
.swal2-custom .swal2-content {
    color: red !important;
}

.swal2-custom .swal2-text {
    color: white !important;
}

.swal2-custom .swal2-confirm,
.swal2-custom .swal2-cancel {
    color: white !important;
}

.swal2-custom .swal2-confirm {
    background-color: red !important;
}

.swal2-custom .swal2-cancel {
    background-color: grey !important;
}

.swal2-custom .swal2-html-container {
    color: white !important;
}