* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background: rgb(35, 30, 43);
}

.wrapper {
    margin: 10px auto;
    width: 95%;
}

.wrapper ul {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.add-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    width: 100%;
    margin: 10px 0 40px;
}

.add-box .icon {
    font-size: 3rem;
    color: rgb(17, 41, 86);
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-box p {
    color: rgb(17, 41, 86);
    font-size: 1.5rem;
    
}

.wrapper .note {
    background-color: white;
    margin: 10px 0;
    list-style-type: none;
    border-radius: 12px;
    width: 100%;
}

.wrapper ul li .details {
    padding: 10px;
}


.wrapper ul li .details p {
    font-size: 2.0rem;
    color: rgb(39, 2, 2);
    margin-bottom: 10px;
}

.wrapper ul li .details span {
    color: rgb(67, 67, 67);
    font-size: 1.2rem;
    overflow-wrap: break-word;
    /* overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical; */
}

.wrapper ul li .bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgb(40, 3, 80);
    border-bottom: 1px solid rgb(40, 3, 80);
    background: rgb(255, 255, 255);
    padding: 5px;
    border-radius: 5px;
}

.wrapper ul li .bottom-content span {
    padding-top: 15px;
    color: rgb(2, 11, 28);
    font-size: 15px;
}

.settings .fa-ellipsis {
    font-size: 30px;
}

.wrapper .note .bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    padding: 0 15px 20px;
}

.wrapper .note .bottom-content .settings {
    position: relative;
}

.wrapper .note .bottom-content .settings .menu {
    list-style-type: none;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: rgb(236, 235, 236);
    border-radius: 5px;
    position: absolute;
    left: -70px;
    top: -77px;
    transform: scale(0);
    transition: transform 0.2s ease;
    transform-origin: bottom right;
}

.bottom-content .settings .menu li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    width: 100%;
    font-size: 1.1rem;
    border: 1px solid rgb(20, 17, 17, 0.14);
}

.wrapper ul li .bottom-content .settings .menu li:hover,
.wrapper ul li .bottom-content .settings .menu li:focus {
    background-color: rgb(13, 2, 37);
    color: white;
    
}

.wrapper ul li .bottom-content .settings.show .menu{
    transform: scale(1);
}


.popup, header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.popup-box {
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.14);
}

.popup-box .popup {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 83%;
    margin: 0 auto;
    z-index: 3;
    max-width: 400px;
    height: 470px;
    border-radius: 10px;
    transition: translate(-50%, -50%);
    justify-content: center;
}

.popup-box, .popup-box .popup {
    opacity: 0;
    pointer-events: none;
}

.popup-box.show, .popup-box.show .popup {
    opacity: 1;
    pointer-events: auto;
    transition: all 0.25s easy;
}

.popup .content {
    width: calc(100% - 7px);
    background: white;
    border-radius: 5px;
}

.popup .content header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.popup .content header {
    padding: 15px 25px;
    border-bottom: 1px solid #ccc;
}

.content header p {
    font-size: 18px;
    font-weight: 500;
}

.content header i {
    color: #101120;
    cursor: pointer;
    font-size: 23px;
}

.content form {
    margin: 15px;
}

.content form .row {
    margin-bottom: 20px;
}

.content form label, .popup {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
}

.content form :where(input, textarea) {
    width: 100%;
    border: 1px solid #999;
    height: 50px;
    border-radius: 4px;
    outline: none;
    padding: 0 15px;
    font-size: 17px;
}

.content form textarea {
    height: 150px;
    resize: none;
    padding: 8px 15px;
}

.content button {
    width: 100%;
    height: 50px;
    border: none;
    outline: none;
    background-color: rgb(12, 21, 37);
    color: aliceblue;
    cursor: pointer;
    border-radius: 10px;
    margin-bottom: 20px;
}

@media (min-width: 750px) {
    .wrapper {
        width: 0 100%;
        margin: auto;
    }

    .wrapper ul {
       display: flex;
       align-items: center;
       justify-content: space-around; 
       flex-direction: row;
       flex-wrap: wrap;
       gap: 5px;
    }

    .wrapper .note { 
        width: 45%;
    }
    .wrapper .note .details {
        min-height: 250px;
    }
    .wrapper .note .details span {
        overflow-wrap: break-word;
    }
}

@media (min-width: 1000px) {
    .wrapper {
        width: 85%;
    }
    .wrapper .note {
        width: 32%;
    }
}