* {
    spellcheck: false;
}



a {
    text-decoration: none;
}

a.ItemTitleFont  {
 float: left;
}


h2.ItemTitleFont {
    font-size: 18px;
    font-weight: 500;
    color: #000;
}





.no-spellcheck {
    -webkit-text-decoration-skip: none;
    text-decoration: none;
}

.site-content {margin-top: 80px;} 


.container{
    max-width: 2560px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    @media screen and (min-width: 600px) {
        padding: 0 40px;
    }
}

@media (min-width: 1260px) {
    .container {
        max-width: 1440px;
    }
}




button { 
  cursor:pointer;
}

.header-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    padding: 0 14px;
}


}
/* CSS TOOL FONT */

.tester-text-tool {
        display: flex;
    flex-direction: row;
    -webkit-box-pack: start;
    justify-content: flex-start;
    -webkit-box-align: stretch;
    align-items: stretch;
    border-bottom: 1px solid var(--c-spirits-200);
}
.tester-text-setting {
    padding: 0px 24px;
    display: flex;
    flex-direction: row;
    -webkit-box-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    align-items: center;
    gap: 24px;
    height: 56px;
    width: 100%; 
    

}

#customText {
    border: none;
}
#customText:focus { 
    outline: none;
}
.tester-text-setting-col {
     display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 20px;
}



.tester-text-setting-col .tester-text__custom-pingram{
   display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 20px;
}
/* CSS cho Reset*/
.tester-text-tool-reset {
    padding: 8px;
    font-size: 13px;
    line-height: 10px;
    font-family: var(--ff-h-mt-text-md);
    background: var(--c-transparent);
    border: none;
    width: auto;
    height: auto;
    display: flex
;
    flex-direction: row;
    -webkit-box-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    align-items: center;
}



/* CSS cho Căn lề */

 


/* End CSS cho Căn lề */

/* CSS cho Font-size */

     .ff-range-group {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        gap: .5rem;
        margin: 0;
    }



input[type="range"] {
    -webkit-appearance: none; /* Loại bỏ kiểu mặc định trên WebKit */
    width: auto; /* Độ dài thanh trượt */
    height: 6px; /* Độ dày thanh trượt */
    background: #ddd; /* Màu nền thanh trượt */
    border-radius: 3px;
    outline: none;
}

/* Tùy chỉnh phần nút trượt */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; /* Kích thước nút kéo */
    height: 20px;
    background: #ff6600; /* Màu của nút */
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ff6600;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
}




/* End CSS cho Font-size */

/* CSS cho Nhập nội dung */
.tester-text {
    width: 100%;
    position: relative;
}


/* Tạo kiểu cho div thay thế button */
.toggle-button {
    display: inline-flex;
    align-items: center;
    padding: 10px;
    background-color: #3498db;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    user-select: none;
    width: auto;
    justify-content: space-between;
}

/* Hover effect */
.toggle-button:hover {
    background-color: #2980b9;
}

/* Định dạng icon */
.tester-text__icon-arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

/* Khi mở danh sách, thay đổi class riêng */
.icon-rotated {
    transform: rotate(180deg);
}

/* Định dạng danh sách pangram */
#ff_font_pangrams.visible {
    
    position: absolute;
    top: 50px; /* Điều chỉnh để phù hợp với vị trí div */
    left: 0;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    width: 250px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Ẩn/hiện danh sách */
.hidden {
    display: none;
}

.visible {
    display: block;
}




















/* CSS cho nút switch */
    .switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 25px;
    }
    
    .switch input { display: none; }
    
    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: .4s;
        border-radius: 25px;
    }
    
    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 4px;
        bottom: 3.5px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }
    
    input:checked + .slider {
        background-color: #000;
    }
    
    input:checked + .slider:before {
        transform: translateX(25px);
    }

    /* Dark mode */
    body.dark-mode {
        background-color: #222;
        color: white;
    }
/* End CSS cho nút switch */





/*Layout*/

#fontContainer.grid-view {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.font-cover { 
    overflow: hidden;
    text-align: center;
 }


.font-cover .text h1 {
    font-size: 2em;
    display: inline-block;
    width: 100%;
    text-align: center;
    /* font-weight: 400; */
}


/*grid-view*/

#fontContainer.grid-view .font-item {
    width: calc((100% - 60px) / 4); /* 3 cột, 2 khoảng cách 20px */
    box-sizing: border-box;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
}

.itemContainerFont {
    background: #f9f9f9; 
    padding: 15px;
    border-radius:10px; 
}

#fontContainer.grid-view .font-item .catItemfont-header, #fontContainer.grid-view .font-item .font-preview {
    display: none;
}




/*list-view*/
#fontContainer.list-view {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#fontContainer.list-view .font-item {
    width: 100%;        
    
}

#fontContainer.list-view .font-item .itemContainerFont {
    border: 0;
    border-top: 1px dotted #0006;
    border-radius: 0;
    position: relative;
    background: #FFF;
    padding: 15px 0;
}

.font-cover {
    opacity: 1;
    transition: opacity 0.3s ease;
}

#fontContainer.list-view .font-cover {
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}





/*List*/
.catItemfont-header {
    display: flex;
    flex-direction: row;
    -webkit-box-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    align-items: center;
    color: var(--c-spirits-700);
    width: 100%;
    padding: 0px;
    margin: 0px 0px 16px;
    white-space: nowrap;
}




/*ITEM*/
.item-top-font {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -20px;
    margin-left: -20px;  
    margin-bottom: 1.5rem; 

}

.cover-custom-font {       
        height: 100%;
    background-color: #222222;
    /* background-color: #1a1a1a; */
    color: #fff;
    background-position: center center;
    background-size: cover;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* background: #000 !important;*/
}


.cover-custom-font .text {
    position: relative;
    z-index: 10;
    padding: 40px;
    display: block;
    width: 100%; 
    -webkit-animation: trim2 1s ease forwards;
    animation: trim2 1s ease forwards;
}

.cover-custom-font .text p {
    font-size: 1.2em;
    color: #aaa;
}

.cover-custom-font .text h1 {
    font-size: 6em;
    display: inline-block;
    width: 100%;
    text-align: center;
    font-weight: 400;
}


.col-12 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .col-md-7 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 58.33333333%;
        flex: 0 0 58.33333333%;
        max-width: 58.33333333%;
    }
    .col-md-5 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 41.66666667%;
        flex: 0 0 41.66666667%;
        max-width: 41.66666667%;
    }
}















.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl, .col-xl-auto {
    position: relative;
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
}