* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Akshar&display=swap'); /* font-family: 'Akshar', sans-serif; */
@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&display=swap'); /* font-family: 'Fjalla One', sans-serif; */
/* End Google Font */

/* Color */
:root {
    --grannysmithapple: #B4FF9F;
    --crystal: #A1E3D8;
    --seagreen: #00FFC6;
    --black: #180A0A;
    --white: #FFFFFF;
    --red: #B20600;
    --green: #005555;
    --manatee: #979dac;
    --sheengreen: #4E944F;
    --linen: #FFF1E6;
    --issablline: #f0efeb;
}
/* End Color */

/* Header */
.navbar {
    background: var(--grannysmithapple);
}

.navbar .container a {
    font-weight: 600;
}

.navbar .container .collapse ul li a {
    color: var(--green);
}

/* Content */
.main-pages {
    position: relative;
    top: 20px;
    /* margin-left: 300px; */
    height: auto;
    padding: 14px 8px 14px 8px;
    /* background: linear-gradient(
      to left,
      var(--grannysmithapple),
      var(--red)
    ); */
    transition: all 0.3s;
    z-index: 1;
}

@media screen and (max-width: 768px) {
    .main-pages {
      margin-left: 0px;
      padding-left: 0px;
      padding-right: 0px;
    }
  
    .main-pages .row .text-start {
      font-size: 12px;
    }
  
    .main-pages .row .text-start .garis {
      display: none;
    }
  
    .main-pages .row .text-start .text-dark {
      display: grid;
    }
  
    .main-pages .row .text-end {
      font-size: 12px;
    }
  
    .main-pages .row .text-end .garis {
      display: none;
    }
  
    .main-pages .row .text-end .text-danger {
      display: grid;
    }

    .main-pages .row .section-body .table {
        font-size: 12px;
    }

    .main-pages .row .section-body .table .btn-group a .btn {
        font-size: 12px;
    }
  }

/* Footer */
.footer {
    position: absolute;
    line-height: 2rem;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--crystal);
    height: auto;
    width: 100%;
    font-family: 'Akshar', sans-serif;
    padding-top: 25px;
    /* margin: 5px 0; */
}

.footer-content{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.footer-content h3 {
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: capitalize;
    line-height: 3rem;
}

.footer-content p {
    max-width: 500px;
    margin: 10px auto;
    line-height: 20px;
    font-size: 14px;
}

.socials {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.socials li {
    margin: 0 15px;
}

.socials a {
    text-decoration: none;
    color: var(--black);
}

.socials a i {
    font-size: 1rem;
    transition: color .4s ease;
}

.socials a:hover {
    color: var(--grannysmithapple);
}

.footer-bottom {
    background: var(--grannysmithapple);
    width: 100%;
    padding: 20px 0 5px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    word-spacing: 2px;
    text-transform: capitalize;
}

.footer-bottom span {
    text-transform: uppercase;
    opacity: .4;
    font-weight: 200;
}

@media screen and (max-width: 768px) {
    .footer {
        position: relative;
    }
}

/* Scan QRCOde */

.webcam {
    width: 100%;
}

.webcam .panel {
    line-height: 50px;
}

.webcam .panel .panel-title {
    font-size: 20px;
    text-align: center;
}

/* End Scan QRCOde */

/* User-Page */
.user-page {
    padding: 25px 30px;
}

.user-page header {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    justify-content: space-between;
    border-bottom: 1px solid var(--black);
}

.wrapper img {
    object-fit: cover;
    border-radius: 50%;
}

.user-page header .content {
    display: flex;
}

.user-page header .content img {
    height: 50px;
    width: 50px;
}

.user-page header .content .details {
    margin-left: 15px;
}

.user-page header .content .details span {
    font-size: 17px;
    font-weight: 500;
}

.user-page header .content .details p {
    color: var(--black);
    font-weight: 400;
}

.user-page header .content .details .status-user {
    color: var(--sheengreen);
}

.user-page header .content .details .status-user.offline {
    color: var(--red);
}

.user-page header .logout {
    color: var(--white);
    font-size: 17px;
    padding: 7px 15px;
    background: var(--black);
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 15px;
}

.user-page .search {
    margin: 20px 0px;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
}

.user-page .search .text {
    font-size: 18px;
}

.user-page .search input {
    position: absolute;
    height: 42px;
    width: calc(100% - 50px);
    padding: 15px;
    font-size: 15px;
    display: flex;
    border: 1px solid var(--black);
    border-radius: 5px 0 0 5px;
    outline: none;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.user-page .search input.active {
    opacity: 1;
    pointer-events: auto;
}

.user-page .search button {
    width: 50px;
    height: 42px;
    border: none;
    outline: none;
    color: var(--black);
    background: var(--white);
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: all 0.4s ease;
}

.user-page .search button.active {
    color: var(--white);
    background: var(--black);
}

.user-page .search button.active i::before {
    content: "\F659";
}

.user-page .search button i {
    font-size: 20px;
}

/* End User-Page */

/* User-Content */
.user-content {
    max-height: 350px;
    overflow-y: auto;
    border-radius: 5px;
    background: var(--issablline);
}

.user-content::-webkit-scrollbar {
    width: 0;
}

.user-content a {
    display: flex;
    align-items: center;
    padding: 25px;
    justify-content: space-between;
    border-radius: 5px;
    border-bottom: 5px solid var(--black);
    text-decoration: none;
    font-size: 14px;
    color: var(--black);
}

.user-content a {
    margin-bottom: 15px;
    page-break-after: 10px;
    padding-right: 15px;
}

.user-content a:last-child {
    border: none;
    margin: 0;
}

.user-content a:hover {
    color: var(--black);
}

.user-content a .content {
    display: flex;
}

.user-content a .content img {
    height: 45px;
    width: 45px;
}

.user-content a .content .details {
    margin-left: 15px;
}

.user-content a .content .details span {
    font-size: 18px;
    font-weight: 600;
}

.user-content a .content .details p {
    color: var(--manatee);
    font-weight: 500;
}

.user-content .status-user {
    font-size: 25px;
    color: var(--sheengreen);
}

/* Jika Akun Sedang Logout/Tidak Aktif == PHP Script */
.user-content .status-user.offline {
    content: "\F623";
    color: var(--red);
}
/* End User-Content */

/* User-Chat */
.user-chat {
    border-radius: 5px;
    background: var(--linen);
}

.user-chat header {
    display: flex;
    align-items: center;
    padding: 10px 40px;
    align-items: center;
}

.user-chat header .user-back {
    font-size: 35px;
    color: var(--black);
    cursor: pointer;
}

.user-chat header img {
    height: 40px;
    width: 40px;
    margin-left: 15px;
}

.user-chat header .details {
    margin-left: 15px;
    margin-top: 15px;
}

.user-chat header .details span {
    font-size: 18px;
    font-weight: 600;
}

.user-chat header .details p {
    color: var(black);
    font-size: 14px;
}

.user-chat header .details p .status-user {
    color: var(--sheengreen);
}

/* Jika Akun Sedang Logout/Tidak Aktif == PHP Script */
.user-chat header .details p .status-user.offline {
    color: var(--red);
}

.typing-area {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
}

.typing-area .textComment {
    font-size: 14px;
    font-weight: 500;
    padding: 5px 15px;
    border: 1px solid var(--black);
    border-radius: 2px 0 0 2px;
    width: 120px;
    color: var(--white);
    background: var(--black);
}

.typing-area input {
    padding: 3.5px 15px;
    width: calc(100% - 50px);
    border: 1px solid var(--black);
    outline: none;
}

.typing-area button {
    padding: 3.5px 20px;
    color: var(--white);
    background: var(--black);
    border: 1px solid var(--black);
    border-radius: 0 2px 2px 0;
    outline: none;
}
/* End User-Chat */

/* User-Box */
.user-box {
    height: 500px;
    overflow-y: auto;
    background: var(--issablline);
    border-radius: 0 0 5px 5px;
    padding: 10px 30px 20px 30px;
    box-shadow: inset 0 32px 32px -32px rgb(0 0 0 / 5%),
                inset 0 -32px 32px -32px rgb(0 0 0 / 5%);
}

.user-box::-webkit-scrollbar {
    width: 0;
}

.user-box .chat {
    margin: 15px 0;
}

.user-box .chat .details p {
    word-wrap: break-word;
    padding: 10px 20px;
    box-shadow: inset 0 32px 32px -32px rgb(0 0 0 / 5%),
                inset 0 -32px 32px -32px rgb(0 0 0 / 5%);
}

.user-box .outgoing {
    display: flex;
}

.user-box .outgoing .details {
    margin-left: auto;
    max-width: calc(100% - 130px);
}

.user-box .outgoing .details p {
    background: var(--black);
    color: var(--white);
    border-radius: 15px 0 0 0;
}

.user-box .incoming {
    display: flex;
    align-items: flex-end;
}

.user-box .incoming img {
    height: 35px;
    width: 35px;
}

.user-box .incoming .details {
    margin-left: 15px;
    margin-right: auto;
    max-width: calc(100% - 130px);
}

.user-box .incoming .details p {
    background: var(--white);
    color: var(--black);
    border-radius: 0 0 15px 0;
}
/* End User-Box */