body {
    overflow-x: hidden;
}

/* เมนูที่มีไอคอน svg */
nav ul {
    display: flex;
    align-items: center;
    list-style-type: none; /*เอาจุดออก*/
    position: absolute;
    right: 67px;
    top: 37.5px;
    /*background-color: aqua;*/
}
nav ul li{
    display: inline-block;
    padding-left: 43px;
    /*background-color: blueviolet;*/
}
nav ul li a {
    font-size: 24px;
    font-weight: 500;
    text-decoration: none;
    color: #AAAAAA;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    /* background-color: chocolate; */
    height: 100%;
    margin-top: 2px;
}
nav ul li a span{
    margin-top: 9px;
}
nav ul li a i svg{
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-home svg {
    fill: #AAAAAA;
    width: 35px;
    height: 35px;
}
.icon-diary svg {
    fill: #E53D46;
    width: 35px;
    height: 35px;
}
.active {
    fill: #E53D46;
    color: #3B56A6;
}
nav ul li a i svg{
    font-size: 35px;
    fill: #AAAAAA;
}
li:hover i svg {
    fill: #E53D46;
}
li:hover span {
    color: #3B56A6;
}

.diary-head {
    margin-top: 150px;
    width: 100%;
    height: 847px;
    background: linear-gradient(to top, #FF9042, #E53D46);
    display: flex;
    flex-direction: column;
}

.diary-box1{
    width: 100%;
    height: 115px;
    /* background-color: aqua; */
    position: relative;
}

.diary-head p {
    font-size: 40px;
    color: #fff;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    font-weight: 500;
}

.diary-head svg {
    fill: #fff;
    width: 80px;
    height: 80px;
    display: flex;
    position: absolute;
    top: 35px;
    margin-left: 70px;
}

.diary-box2 {
    max-width: 1300px;
    width: 100%;
    height: 228px;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    /* background-color: rgb(255, 216, 156); */
    align-items: flex-end;
}

.diary-box2 p {
    font-size: 24px;
    text-align: left;
    padding: 0;
    margin: 0;
    /* background-color: black; */
    display: flex;
    flex-direction: column;
    padding-left: 0;
}

.diary-box2 .hi-text {
    font-size: 40px;
}

.diary-box2 img{
    width: 228px;
    height: 228px;
    border-radius: 30px;
}


.diary-box3 {
    max-width: 1300px;
    width: 100%;
    height: 370px;
    margin-top: 64px;
    margin-left: 70px;
    /* background-color: bisque; */
}

.diary-box3 .row1 {
    width: 1300px;
    height: 200px;
    /* background-color: blueviolet; */
    display: flex;
    justify-content: space-between;
    position: relative;
}
.record-box1,
.record-box2,
.record-box3 {
    width: 420px;
    height: 200px;
    background-color: #fff;
    border-radius: 30px;
    display: flex;
    position: relative;
}
.record-box1 p,
.record-box2 p,
.record-box3 p {
    color: black;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.4;
    /* background-color: bisque; */
    position: absolute;
    margin: 0;
    left: 25px;
    top: 25px;
}
.record-box1 img,
.record-box2 img,
.record-box3 img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    /* background-color: black; */
    margin-top: 100px;
    margin-left: 325px;
}

.diary-box3 .row2 {
    width: 1300px;
    height: 150px;
    /* background-color: cadetblue; */
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    position: relative;
}
.record-box4,
.record-box5 {
    width: 640px;
    height: 150px;
    background-color: #fff;
    border-radius: 30px;
    display: flex;
    position: relative;
}
.record-box4 p,
.record-box5 p {
    color: black;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.4;
    /* background-color: bisque; */
    position: absolute;
    margin: 0;
    left: 25px;
    top: 25px;
}
.record-box4 img,
.record-box5 img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    /* background-color: black; */
    margin-top: 41px;
    margin-left: 537px;
}



/* start-diary */
.start-diary {
    width: 100%;
    height: 648px;
    /* background-color: bisque; */
}
.start-head {
    width: 100%;
    height: 200px;
    display: flex;
    gap: 31px;
    /* background-color: aqua; */
}
.start-head svg {
    fill: #E53D46;
    width: 55px;
    height: 60px;
    margin-left: 70px;
    margin-top: 70px;
}
.start-head p {
    font-size: 40px;
    margin-top: 70px;
    font-weight: 500;
}

.diary-4 {
    width: 100%;
    height: 448px;
    /* background-color: aquamarine; */
    display: flex;
    justify-content: center;
}
.diary-row {
    width: 1300px;
    height: 383px;
    /* background-color: chartreuse; */
    display: flex;
    gap: 66px;
}
.new-diary {
    width: 207px;
    height: 290px;
    border-radius: 30px;
    /* background-color: brown; */
    cursor: pointer;
}
.diary-orange,
.diary-yellow,
.diary-red,
.diary-blue {
    width: 207px;
    height: 290px;
    /* background-color: chocolate; */
    cursor: pointer;
}
.new-diary img,
.diary-orange img,
.diary-yellow img,
.diary-red img,
.diary-blue img {
    width: 207px;
    height: 290px;
}

.diary-orange p,
.diary-yellow p,
.diary-red p,
.diary-blue p {
    font-size: 32px;
    line-height: 1.1;
    text-align: center;
    margin-top: 24px;
}

.start-diary button {
    display: none;
}



/* diary-features */
.diary-features {
    width: 100%;
    height: 1632px;
    background-color: #ffffff;
}
.diary-head-red {
    width: 100%;
    height: 150px;
    background-color: #E53D46;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.diary-head-red p {
    font-size: 40px;
    color: #fff;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.diary-head-red svg {
    fill: #fff;
    width: 40px;
    height: 40px;
    position: relative;
    /* background-color: black; */
    margin-left: 70px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.diary-head-red img {
    width: 120px;
    height: 40px;
    position: absolute;
    margin-left: 1170px;
    display: flex;
    align-items: center;
    /* background-color: black; */
    cursor: pointer;
}
.diary-head-red svg {
    width: 40px;
    height: 40px;
    fill: #fff;
    /* background-color: black; */
    margin-right: 70px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.diary-date {
    font-size: 32px;
    color: black;
    font-weight: 400;
    margin-top: 66px;
    display: flex;
    justify-content: center;
}

.diary-details {
    width: 100%;
    height: 310px;
    /* background-color: aqua; */
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.details-row-1 {
    width: 100%;
    height: 142px;
    /* background-color: blue; */
    display: flex;
    gap: 35px;
}

.details-row-2 {
    width: 100%;
    height: 142px;
    /* background-color: blueviolet; */
}

.details-box1 {
    width: 310px;
    height: 142px;
    /* background-color: chartreuse; */
    margin-left: 70px;
    display: flex;
    flex-direction: column;
    gap: 27px;
}

.details-box2 {
    width: 955px;
    height: 142px;
    /* background-color: brown; */
}

.details-box3 {
    width: 1300px;
    height: 142px;
    /* background-color: coral; */
    margin-left: 70px;
}

.details-box1 p {
    color: #FF9042;
    font-size: 32px;
}

.details-box1 input {
    width: 310px;
    height: 80px;
    border-radius: 15px;
    outline: none;
    transition: border-color 0.3s;
    padding: 10px;
    border: 4px solid #FF9042;
    display: flex;
    align-items: center;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-size: 32px;
    margin-top: -18px;
}

.details-box1 input::placeholder {
    font-size: 32px;
    color: black;
    font-family: 'IBM Plex Sans Thai', sans-serif;
}


.details-box2 p {
    color: #3B56A6;
    font-size: 32px;
}

.details-box2 input {
    width: 955px;
    height: 80px;
    border-radius: 15px;
    outline: none;
    transition: border-color 0.3s;
    padding: 10px;
    border: 4px solid #3B56A6;
    display: flex;
    align-items: center;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-size: 32px;
    margin-top: 9px;
}

.details-box2 input::placeholder {
    font-size: 32px;
    color: black;
    font-family: 'IBM Plex Sans Thai', sans-serif;
}



.details-box3 p {
    color: #E53D46;
    font-size: 32px;
}

.details-box3 input {
    width: 1300px;
    height: 80px;
    border-radius: 15px;
    outline: none;
    transition: border-color 0.3s;
    padding: 10px;
    border: 4px solid #E53D46;
    display: flex;
    align-items: center;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-size: 32px;
    margin-top: 9px;
}

.details-box3 input::placeholder {
    font-size: 32px;
    color: black;
    font-family: 'IBM Plex Sans Thai', sans-serif;
}

.diary-pic {
    width: 1300px;
    height: 860px;
    margin-top: 70px;
    margin-left: 70px;
    /* background-color: darkmagenta; */
}

.diary-pic-desk img {
    width: 1300px;
    height: 860px;
}

.diary-pic-mobile img {
    display: none;
}


/* comment-box */
.comment-box {
    width: 100%;
    height: 422px;
    background-color: #D9D9D9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.comment-box-white {
    width: 1300px;
    height: 282px;
    background-color: #ffffff;
    border-radius: 30px;
    position: relative;
}
.comment-box-white i {
    font-size: 62px;
    color: #3B56A6;
    z-index: 2;
    position: absolute;
    cursor: pointer;
    top: 170px;
    right: 50px;
}
.comment-box-white textarea {
    width: 1300px;
    height: 282px;
    border: none;
    outline: none;
    resize: none;
    font-size: 32px;
    border-radius: 30px;
    padding: 35px;
    box-sizing: border-box;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    background-color: #fff;
    cursor: pointer;
}


/* rate */
.rate {
    width: 100%;
    height: 759px;
    /* background-color: olive; */
    display: flex;
    flex-direction: column;
    position: relative;
}
.rate-head {
    width: 100%;
    height: 162px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: aquamarine; */
}
.rate-head p {
    font-size: 40px;
    color: #E53D46;
    font-weight: 500;
}
.rate-box {
    width: 1300px;
    height: 387px;
    /* background-color: blue; */
    display: flex;
    justify-content: center;
    position: relative;
    margin-left: 70px;
    gap: 70px;
}
.rate-left {
    width: 615px;
    height: 387px;
    /* background-color: coral; */
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 25px;
}
.rate-right {
    width: 615px;
    height: 387px;
    /* background-color: blueviolet; */
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 60px;
}
.rate-box-1,
.rate-box-2,
.rate-box-3,
.rate-box-4,
.rate-box-5 {
    width: 615px;
    height: 90px;
    /* background-color: beige; */
}
.rate-box-1 p,
.rate-box-2 p,
.rate-box-3 p,
.rate-box-4 p,
.rate-box-5 p {
    font-size: 32px;
    margin-top: -12px;
    font-weight: 500;
}
.rate-box-1 img,
.rate-box-2 img,
.rate-box-3 img,
.rate-box-4 img,
.rate-box-5 img {
    width: 215px;
    height: 35px;
    margin-top: 15px;
}
.rate-box-1 .box-score-rate,
.rate-box-2 .box-score-rate,
.rate-box-3 .box-score-rate,
.rate-box-4 .box-score-rate,
.rate-box-5 .box-score-rate {
    width: 76px;
    height: 68px;
    background-color: #FF9042;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 539px;
    margin-top: -100px;
}
.rate-box-1 .box-score-rate p,
.rate-box-2 .box-score-rate p,
.rate-box-3 .box-score-rate p,
.rate-box-4 .box-score-rate p,
.rate-box-5 .box-score-rate p {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
    color: #fff;
    font-weight: 500;
}

.rate-comment {
    position: relative;
    width: 615px;
}
.rate-comment i {
    font-size: 40px;
    color: #3B56A6;
    cursor: pointer;
    position: absolute;
    bottom: 10px;
    right: 25px;
}
.rate-comment textarea {
    width: 615px;
    height: 150px;
    border: none;
    outline: none;
    resize: none;
    font-size: 24px;
    border-radius: 15px;
    padding: 32px;
    box-sizing: border-box;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    background-color: #fff;
    cursor: pointer;
    border: 4px solid #E53D46;
}

.send-rate {
    width: 100%;
    height: 210px;
    /* background-color: chartreuse; */
    display: flex;
    justify-content: center;
    align-items: center;
}
.send-rate button {
    width: 220px;
    height: 70px;
    background-color: #3B56A6;
    border: none;
    cursor: pointer;
    border-radius: 15px;
    font-size: 32px;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    color: #fff;
}










/* start mobile size */
@media screen and (max-width: 400px) {

    .box_logo img {
        width: 90px;
        height: 44.3px;
        position: absolute;
        left: 25px;
        top: 15px;
    }

    .search {
        width: 220px;
        height: 35px;
        border-radius: 7.5px;
        top: 20px;
        left: 150px;
        border: solid 2px #E53D46;
    }

    .search input[type="search"] {
        font-size: 14px;
        width: 180px;
        height: 18px;
        padding-left: 10px;
    }

    .search i {
        font-size: 16px;
        top: 6px;
        right: 12px;
    }

    nav {
        width: 100%;
        height: 175px;
        bottom: 1px;
        background-color: #fff;
    }

    nav ul {
        right: 25px;
        left: 25px;
        top: 95px;
        /* background-color: aqua; */
        display: flex;
        justify-content: space-between;
    }

    nav ul li {
        padding: 0;
        /* background-color: blue; */
    }

    nav ul li a {
        font-size: 14px;
    }

    nav ul li a i svg {
        width: 24px;
        height: 24px;
    }

    .icon-diary svg {
        width: 24px;
        height: 24px;
    }

    .icon-home svg {
        width: 24px;
        height: 24px;
    }
    

    .diary-head {
        width: 390px;
        height: 735px;
    }

    .diary-box1{
        width: 100%;
        height: 115px;
        /* background-color: aqua; */
    }

    .diary-head p {
        font-size: 24px;
    }

    .diary-head svg {
        width: 30px;
        height: 30px;
        margin-left: 25px;
        top: 55px;
    }

    .diary-box2 {
        width: 100%;
        height: 75px;
        /* background-color: rgb(255, 216, 156); */
        padding: 0 25px;
    }

    .diary-box2 img{
        width: 75px;
        height: 75px;
        border-radius: 10px;
    }

    .diary-box2 p {
        font-size: 14px;
    }

    .diary-box2 .hi-text {
        font-size: 20px;
    }

    .diary-box3 {
        width: 340px;
        height: 493px;
        /* background-color: bisque; */
        display: flex;
        flex-direction: column;
        position: relative;
        margin-top: 25px;
        margin-left: 25px;
    }

    .diary-box3 .row1 {
        width: 340px;
        height: 151px;
        /* background-color: blueviolet; */
        position: relative;
        flex-direction: column;
    }

    .record-box1 {
        width: 340px;
        height: 151px;
        background-color: #fff;
        position: absolute;
        border-radius: 15px;
    }

    .record-box2,
    .record-box3 {
        width: 160px;
        height: 151px;
        border-radius: 15px;
        background-color: #fff;
        position: absolute;
        margin-top: 171px;
    }

    .record-box3, .record-box5 {
        margin-left: 180px;
    }

    .record-box4,
    .record-box5 {
        width: 160px;
        height: 151px;
        position: absolute;
        border-radius: 15px;
        margin-top: 171px;
        background-color: #fff;
    }

    .record-box1 p {
        font-size: 16px;
        left: 20px;
        top: 20px;
    }

    .record-box2 p,
    .record-box3 p,
    .record-box4 p,
    .record-box5 p {
        font-size: 16px;
        left: 20px;
        top: 20px;
    }

    .record-box1 img {
        width: 50px;
        height: 50px;
        object-fit: cover;
        /* background-color: black; */
        margin-top: 80px;
        margin-left: 268px;
    }

    .record-box2 img,
    .record-box3 img,
    .record-box4 img,
    .record-box5 img {
        width: 50px;
        height: 50px;
        object-fit: cover;
        /* background-color: black; */
        margin-top: 80px;
        margin-left: 85px;
    }

    /* start-diary */
    .start-diary {
        height: 750px;
        /* background-color: bisque; */
    }

    .start-head {
        height: 80px;
        gap: 20px;
    }

    .start-head svg {
        width: 27.5px;
        height: 30px;
        margin-left: 25px;
        margin-top: 25px;
    }

    .start-head p {
        font-size: 24px;
        margin-top: 23px;
    }
    
    .diary-4 {
        height: 568px;
        /* background-color: aquamarine; */
    }

    .diary-row {
        height: 568px;
        flex-direction: column;
        margin-left: 25px;
        /* margin-top: 25px; */
        margin-right: 25px;
        margin-bottom: 0;
    }

    .new-diary {
        width: 160px;
        height: 220px;
        border-radius: 23px;
        /* background-color: brown; */
    }
    .diary-orange,
    .diary-yellow,
    .diary-red,
    .diary-blue {
        width: 160px;
        height: 220px;
        /* background-color: chocolate; */
    }
    .new-diary img,
    .diary-orange img,
    .diary-yellow img,
    .diary-red img,
    .diary-blue img {
        width: 160px;
        height: 220px;
    }
    
    .diary-orange p,
    .diary-yellow p,
    .diary-red p,
    .diary-blue p {
        font-size: 20px;
        line-height: 1.1;
        text-align: center;
        margin-top: 6px;
    }

    .diary-orange {
        margin-top: 0;
        position: absolute;
        margin-left: 180px;
    }

    .diary-red {
        margin-top: 306px;
        position: absolute;
        margin-left: 180px;
    }

    .diary-yellow {
        margin-top: 20px;
    }

    .diary-blue {
        display: none;
    }

    .start-diary button {
        width: 100px;
        height: 30px;
        background-color: #3B56A6;
        border-radius: 7.5px;
        font-size: 14px;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-family: 'IBM Plex Sans Thai', sans-serif;
        border: none;
        margin-top: 35px;
        margin-left: 145px;
    }
    
    /* diary-features */
    .diary-features {
        height: 754px;
        /* background-color: #aaa; */
    }
    .diary-head-red {
        height: 64px;
    }
    .diary-head-red p {
        font-size: 20px;
        white-space: nowrap;
    }
    .diary-head-red svg {
        width: 25px;
        height: 25px;
        margin-right: 25px;
        margin-left: 25px;
    }
    .diary-head-red img {
        display: none;
    }

    .diary-date {
        font-size: 16px;
        margin-top: 24px;
    }
    .diary-details {
        height: 142px;
        margin-top: 25px;
    }
    .details-row-1 {
        height: 60px;
        gap: 0px;
    }
    .details-row-2 {
        height: 63px;
    }
    .details-box1,
    .details-box2 {
        width: 161px;
        height: 60px;
        margin-left: 25px;
    }
    .details-box2{
        margin-right: 25px;
    }
    .details-box3{
        width: 341px;
        height: 60px;
        margin-left: 25px;
    }
    .details-box1 p,
    .details-box2 p,
    .details-box3 p   {
        font-size: 14px;
    }
    .details-box1 input {
        width: 160px;
        height: 35px;
        border-radius: 7.5px;
        border: 2px solid #FF9042;
        margin-top: -25px;
    }
    .details-box1 input::placeholder,
    .details-box2 input::placeholder,
    .details-box3 input::placeholder {
        font-size: 16px;
    }
    .details-box2 input {
        width: 155px;
        height: 35px;
        border-radius: 7.5px;
        border: 2px solid #3B56A6;
        margin-top: 2px;
    }
    .details-box3 input {
        width: 340px;
        height: 35px;
        border-radius: 7.5px;
        border: 2px solid #E53D46;
        margin-top: 2px;
    }
    
    .diary-pic-desk img {
        display: none;
    }

    .diary-pic {
        width: 340px;
        height: 426px;
        margin-top: 25px;
        margin-left: 25px;
        display: flex;
        justify-content: center;
        position: relative;
    }

    .diary-pic-mobile img {
        width: 340px;
        height: 426px;
        display: block;
    }

    /* comment-box */
    .comment-box {
        width: 100%;
        height: 174px;
        background-color: #D9D9D9;
    }
    .comment-box-white {
        width: 340px;
        height: 124px;
        border-radius: 7.5px;
    }
    .comment-box-white i {
        font-size: 26px;
        top: 75px;
        right: 25px;
    }
    .comment-box-white textarea {
        width: 340px;
        height: 124px;
        border: none;
        outline: none;
        resize: none;
        font-size: 14px;
        border-radius: 30px;
        padding: 13px;
        box-sizing: border-box;
        font-family: 'IBM Plex Sans Thai', sans-serif;
        background-color: #fff;
        cursor: pointer;
    }
    

    /* rate */
    .rate {
        height: 610px;
    }
    .rate-head {
        height: 71px;
    }
    .rate-head p {
        margin-top: 25px;
        font-size: 24px;
    }
    .rate-box {
        height: 441px;
        flex-direction: column;
        margin-left: 25px;
        margin-top: 30px;
        gap: 0px;
    }
    .rate-left{
        gap: 15px;
    }
    .rate-right{
        gap: 15px;
        margin-bottom: 15px;
    }
    .rate-box-1,
    .rate-box-2,
    .rate-box-3,
    .rate-box-4,
    .rate-box-5 {
        width: 341px;
        height: 45px;
    }
    .rate-box-1 p,
    .rate-box-2 p,
    .rate-box-3 p,
    .rate-box-4 p,
    .rate-box-5 p {
        font-size: 20px;
        margin-top: -8px;

    }
    .rate-box-1 img,
    .rate-box-2 img,
    .rate-box-3 img,
    .rate-box-4 img,
    .rate-box-5 img {
        width: 108px;
        height: 18px;
        margin-top: 3px;
    }
    .rate-box-1 .box-score-rate,
    .rate-box-2 .box-score-rate,
    .rate-box-3 .box-score-rate,
    .rate-box-4 .box-score-rate,
    .rate-box-5 .box-score-rate {
        width: 40px;
        height: 40px;
        border-radius: 7.5px;
        margin-left: 300px;
        margin-top: -55px;
    }
    .rate-box-1 .box-score-rate p,
    .rate-box-2 .box-score-rate p,
    .rate-box-3 .box-score-rate p,
    .rate-box-4 .box-score-rate p,
    .rate-box-5 .box-score-rate p {
        margin-top: 4px;
    }

    .send-rate {
        width: 100%;
        height: 80px;
    }
    .send-rate button {
        width: 100px;
        height: 30px;
        border-radius: 7.5px;
        font-size: 14px;
        margin-bottom: 50px;
    }
    .rate-comment {
        width: 340px;
    }
    .rate-comment i {
        font-size: 26px;
        bottom: 10px;
        right: 15px;
    }
    .rate-comment textarea {
        width: 340px;
        height: 100px;
        font-size: 14px;
        border-radius: 12px;
        padding: 20px;
        border: 2px solid #E53D46;
    }

}