﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}


/* ------------------ COMMENT ----------------*/

.comment-bubble {
    border: 1px solid #e3e6f0;
    position: relative;
}

    .comment-bubble::before {
        content: '';
        position: absolute;
        left: -12px;
        top: 20px;
        width: 0;
        height: 0;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-right: 12px solid #fff;
    }

    .comment-bubble::after {
        content: '';
        position: absolute;
        left: -14px;
        top: 19px;
        width: 0;
        height: 0;
        border-top: 9px solid transparent;
        border-bottom: 9px solid transparent;
        border-right: 14px solid #e3e6f0;
    }

.reply-form {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#btnLike.active {
    background-color: #dc3545;
    color: white;
}

    #btnLike.active i {
        color: white;
    }


 /* ----------------------- RATING STAR ------------------------ */
.rate {
    display: inline-block;
    border: 0;
}
    /* Ẩn radio button mặc định */
    .rate > input {
        display: none;
    }
    /* Hiển thị ngôi sao */
    .rate > label {
        float: right;
        color: #ddd;
        font-size: 2rem;
        padding: 0 5px;
        cursor: pointer;
    }

        .rate > label:before {
            content: '★'; 
        }
    /* Khi check vào 1 sao, tô màu nó và tất cả sao ĐẰNG SAU nó (do float right nên là đằng trước về mặt thị giác) */
    .rate > input:checked ~ label {
        color: #ffc107;
    }
    /* Hiệu ứng hover */
    .rate:not(:checked) > label:hover,
    .rate:not(:checked) > label:hover ~ label {
        color: #ffc107;
    }