

* {
    margin: 0;
    padding: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

section {
    position: relative;
    margin: 0 auto;
    column-gap: 3rem;
    padding-block: min(20vh, 3rem);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 120px);
}

section h2 {
    letter-spacing: 0.8px;
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1.2;
    color: var(--main-color);
    cursor: pointer;
    padding: 7.5px 0;
}

section p {
    font-size: 1.3rem;
    max-width: 900px;
    line-height: 1.6;
    margin-inline: auto;
    padding: 7px 0;
    color: #666;
}

.swiper-container {
    position: relative;
}

.swiper {
    width: 100%;
    padding: 60px 0 95px 0;
}

.swiper-slide {
    width: 15rem;
    height: 35rem;
    display: flex;
    flex-direction: column;
    align-items: self-start;
    position: relative;
    border-radius: 12px;
    box-shadow: -1px 5px 15px #0000001f;
}

.swiper-slide h3 {
    color: #fff;
    font-size: 2.5rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    letter-spacing: 0.8px;
    position: relative;
    padding: 0px 25px;
}

.swiper-slide p {
    color: #fff;
    line-height: 2;
    font-size: 1.5rem;
    text-align: left;
    /* white-space: pre-wrap; */
}

.swiper-slide .slide-content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 85%;
}

.swiper-slide .slide-content .note-content::before {
    content: "“";
    position: absolute;
    top: 20px;
    left: -20px;
    font-size: 45px;
    color: #f1f1f1;
}

.swiper-slide .slide-content .note-content::after{
    content: "”";
    position: absolute;
    bottom: -45px;
    right: -20px;
    font-size: 45px;
    color: #f1f1f1;
}

.swiper-slide .author {
    grid-template-columns: 1fr;
    justify-items: center;
    position: absolute;
    bottom: -108px;
    width: 100%;
    display: none;
    opacity: 0;
}

.swiper-slide .author .noteauthor {
    color: #666;
    display: block;
    margin: 5px 0 10px 0;
    font-weight: 600;
    font-size: 1.4rem;
}
.swiper-slide .author  .time {
    color: #999;
    display: block;
    margin: 10px 0 13px 0;
    font-size: 1.1rem;
}

.swiper-slide .author img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 50%;
    border: 3.5px solid white;
}

.swiper-slide .author ul {
    display: flex;
    align-items: center;
}

.swiper-slide .author ul li svg {
    width: 20px;
    color: orange;
}

.swiper-slide-active .author {
    display: grid;
    opacity: 1;
}
.swiper-slide .Enlarge {
    width: 25px;
    height: 25px;
    right: 30px;
    position: absolute;
    top: 10px;
    color: #fff;
    font-size: 1.5rem;
    display: none;
}

.swiper-slide .delete {
    width: 25px;
    height: 25px;
    right: 5px;
    position: absolute;
    top: 8px;
    color: #fff;
    font-size: 1.5rem;
    display: none;
}
.swiper-slide .delete i{
    font-size: 20px !important;
}
.swiper-slide:hover .delete {
    display: block;
}


.swiper-slide--one {
    background: var(--main-color);
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to bottom, #021b79, var(--main-color));
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to bottom, #021b79, var(--main-color));
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.swiper-slide--one h3 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
}

.swiper-slide--two {
    background: #23074d;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to bottom, #cc5333, #23074d);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to bottom, #cc5333, #23074d);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.swiper-slide--two h3 {
    font-family: "Quicksand", sans-serif;
}

.swiper-slide--three {
    background: #159957;
}

.swiper-slide--three h3 {
    font-family: "Satisfy", cursive;
    font-weight: 300;
}

.swiper-slide--four {
    background: #b06ab3;
}

.swiper-slide--four h3 {
    font-family: "Courgette", cursive;
    font-weight: 300;
}

.swiper-slide--five {
    background: #093028;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to bottom, #237a57, #093028);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to bottom, #237a57, #093028);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.swiper-slide--five h3 {
    font-family: "Noto Serif Vithkuqi", serif;
    font-weight: 300;
}

.swiper-slide--six {
    background: #b9f;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to bottom, #b9f, #3b2421);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to bottom, #b9f, #3b2421);
}

.swiper-slide--six h3 {
    font-family: "Chonburi", cursive;
    font-weight: 400;
}

.swiper-button-prev {
    background: white;
    border-radius: 50%;
    top: 47%;
    left: -30px;
    width: 50px;
    height: 50px;
    box-shadow: 0px 2px 11px rgba(0, 0, 0, 0.17);
}

.swiper-button-prev::after {
    font-size: 1.4rem;
    content: "";
}

.swiper-button-prev svg {
    width: 25px;
}

.swiper-button-next {
    background: white;
    border-radius: 50%;
    top: 47%;
    right: -30px;
    width: 50px;
    height: 50px;
    box-shadow: 0px 2px 11px rgba(0, 0, 0, 0.17);
}

.swiper-button-next::after {
    font-size: 1.4rem;
    content: "";
}

.swiper-button-next svg {
    width: 25px;
}

.swiper-button-prev,
.swiper-button-next {
    display: none;
}

#ratestars {
    position: absolute;
    left: 240px;
    bottom: 130px;
}
#authorphoto {
    position: absolute;
    right: 58px;
    bottom: 82px;
}

@media (min-width: 760px) {

    .swiper-button-prev,
    .swiper-button-next {
        display: flex;
    }
}

@media (max-width: 993px) {
    .layui-layer {
        max-width: 95% !important;
        max-height: 99% !important;
    }
    #ratestars {
        position: relative;
        left: 0;
        bottom: 0;
    }
    .layui-form-item .layui-input-inline {
        display: block;
        float: left;
        left: 0px !important;
        width: 120px !important;
        margin: 0 0 -32px 0px;
    }
    section h2 {
        font-size: 2.1rem;    
    }
    .swiper-slide h3 {
        font-size: 1.9rem;
    }
    #author{
        width: 188px !important;
    }
    #safecode{
        width: 188px !important;
    }
    #authorphoto {
        position: absolute;
        right: 20px;
        bottom: 80px;
    }
}

.layui-colorpicker-main {
    width: 300px !important;    
}
.layui-btn-primary{
    background-color: #FFF !important;
    border-color: #999 !important;
}  

.enlargen-note-container {
    font-family: "Microsoft YaHei", sans-serif;
}

.enlargen-note-container h2 {
    font-weight: bold;
}
.note-content {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}
.enlargen-content p {
    word-break: break-word;
}

@media (max-width: 768px) {
    .enlargen-outer-container{
        top: 70px !important;
    }
    .enlargen-note-container {
        padding: 15px;
    }

    .enlargen-content {
        padding: 20px !important;
        width: 96% !important;
        max-height: calc(-100px + 100vh) !important;
    }
    .container-close-btn {
        top: 2px !important;
        right: 8px !important;
        z-index: 99;
        color: #fff !important;
    }
}