﻿/*.menu {
    cursor: pointer;
    margin: 0% !important;
    padding: 2% !important;
    transition: transform 0.3s;
}
.menu:hover {*/
    /*background-color: white;*/
    /*border-radius: 10px;
    transform: scale(1.3);
}
.menu image {
    width: 50%;
}*/
.icon_menu {
    transition: transform 0.3s ease; /* thời gian & hiệu ứng zoom */
}
/*kiêm tra xem thiết bị có hổ trợ hove rkhoong*/
@media (hover: hover) and (pointer: fine) {
    .icon_menu:hover {
        transform: scale(1.2);
    }
   
}
.icon_menu label {
    /* Đảm bảo nó được căn giữa */
    text-align: center;
    /* Font size phải đủ để vừa 2 dòng */
    font-size: 14px;
    line-height: 1.2;
    /* Thiết lập chiều cao cố định cho 2 dòng văn bản */
    /* Chiều cao này nên là (line-height * 2) + padding/margin */
    height: 51px; /* Điều chỉnh con số này cho phù hợp với font-size và line-height thực tế */
    /* Thêm một khoảng cách nhỏ với icon */
    margin-top: 5px;
    margin-bottom: 0;
}
.menu {
    cursor: pointer;
    margin: 8px;
    padding: 16px;
    width: 110px; /* Kích thước ô */
    height: 110px;
    border-radius: 20px; /* Bo góc */
   
    /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);*/
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s;
}

.mau1 {
    background-image: linear-gradient(to left bottom, #1efa36, #6afe79, #9bffab, #c9ffd6, #f8fffa);
}
.mau2 {
    background-image: linear-gradient(to left bottom, #eee6ff, #cfecff, #9df6ff, #7bfefa, #96ffc5);
}
.mau3 {
    background-image: linear-gradient(to right top, #00c406, #66d55e, #9be596, #ccf3cb, #fefffe);
}
.menu img {
    width: 80%;
    height: auto;
}

.menu p {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: #000;
}
/*nut nhan*/
.dendo:hover {
    background-color: red !important;
}

.denvang:hover {
    background-color: chocolate !important;
}

.denxanh:hover {
    background-color: green !important;
}
/*nut phone*/
label.switch {
    text-align: left;
    width: 60px;
    height: calc(60px / 2);
    border-radius: 20px;
    background-color: #4ed164;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

    label.switch > span {
        display: block;
        width: 100%;
        height: 100%;
    }

    label.switch > input[type="checkbox"] {
        opacity: 0;
        position: absolute;
    }

    label.switch > span:before, label.switch > span:after {
        content: "";
        cursor: pointer;
        position: absolute;
    }

    label.switch > input[type="checkbox"]:focus ~ span {
        box-shadow: 0 0 0 4px #43b556;
    }

    label.switch > input[type="checkbox"]:checked:focus ~ span {
        box-shadow: 0 0 0 4px #fff;
    }

    label.switch > span {
        border-radius: 60px;
    }

        label.switch > span:before {
            width: 100%;
            height: 100%;
            box-sizing: border-box;
            background-color: #f1f1f1;
            border-radius: 20px;
            transition: opacity .2s ease-out .1s, transform .2s ease-out .1s;
            transform: scale(1);
            opacity: 1;
        }

        label.switch > span:after {
            top: 50%;
            z-index: 3;
            transition: transform .4s cubic-bezier(0.44,-0.12, 0.07, 1.15);
            width: calc(60px / 2);
            height: calc(60px / 2);
            transform: translate3d(0, -50%, 0);
            background-color: #fff;
            border-radius: 100%;
            box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
        }


    label.switch > input[type="checkbox"]:checked ~ span:before {
        transform: scale(0);
        opacity: .7;
    }

    label.switch > input[type="checkbox"]:checked ~ span:after {
        transform: translate3d(100%, -50%, 0);
    }