/* =====================================================
   GUESTBOOK
===================================================== */

:root {

    --cream: #faf8f0;
    --cream-dark: #f1eee1;

    --olive: #979a4e;
    --olive-light: #dfe0bd;
    --olive-soft: #eef0dc;

    --text: #585858;
    --muted: #7c7c7c;

    --white: rgba(255,255,255,.78);
    --glass-border: rgba(255,255,255,.85);

    --shadow:
        0 -10px 35px
        rgba(90,90,50,.13);

}


/* =====================================================
   BODY
===================================================== */

* {
    box-sizing: border-box;
}


body {

    margin: 0;
    padding: 0;
    background: transparent;
    font-family:
        'Poppins' sans-serif;
    color: var(--text);

}


/* =====================================================
   MAIN
===================================================== */

.guestbook {

    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 10px 16px 20px;

}


/* =====================================================
   UCAPAN SECTION
===================================================== */

.message-section {

    width: 100%;
    text-align: center;

}


/* =====================================================
   UCAPAN
===================================================== */

.guestbook-list {

    width: 100%;
    min-height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;

}


.entry {

    width: 100%;
    text-align: center;

}


/* NAMA */

.entry .name {

    margin-bottom: 2px;
    font-family:'Poppins',sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);

}


/* UCAPAN */

.entry .message {

    max-width: 340px;
    margin: 0 auto;
    font-family:'Serif',serif;
    font-size: 16px;
    font-style: italic;
    line-height: 1.3;
    color: var(--text);
    white-space: pre-wrap;
    overflow-wrap: break-word;

}


/* =====================================================
   STATUS UCAPAN
===================================================== */

.status-msg {
    color: var(--text);
}

.status-msg.error {
    color: var(--text);
}


/* =====================================================
   LOADING / EMPTY
===================================================== */

.loading,
.empty {

    margin: 0;
    font-size: 12px;
    color: var(--muted);

}


/* =====================================================
   PAGINATION
===================================================== */

.pagination {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 3px;

}


.pagination button {

    width: 30px;
    height: 30px;
    padding: 0;
    display: grid;
    place-items: center;
    border: none;
    background: transparent;
    color: #809ebab8;
    cursor: pointer;
    font-size: 12px;
    transition:
        color .2s ease,
        transform .2s ease;

}


.pagination button:hover:not(:disabled) {

    color: var(--text);
    transform: translateY(-1px);

}


.pagination button:active:not(:disabled) {

    transform: scale(.9);

}


.pagination button:disabled {

    opacity: .25;
    cursor: default;

}


#page-number {

    min-width: 48px;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .5px;

}


/* =====================================================
   FORM SECTION
===================================================== */

.form-section {

    margin-top: 24px;
    padding-top: 18px;
    border-top:
        1px solid
        rgba(140, 140, 140, 0.2);

}


.form-title {

    margin-bottom: 16px;
    text-align: center;
    font-family: 'Tangerine',cursive;
    font-size: 32px;
    color: var(--text);

}


/* =====================================================
   FORM
===================================================== */

#guestbook-form {

    display: flex;
    flex-direction: column;
    gap: 13px;

}


.field {

    display: flex;
    flex-direction: column;
    gap: 5px;

}


.field label {

    font-size: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
    color: var(--text);
    text-align: left;

}

/* =====================================================
   FORM INPUT
===================================================== */

.field input,
.field textarea {

    width: 100%;
    padding: 10px 12px;

    border:
        1px solid
        #aac2d7;

    border-radius: 11px;

    background:
        rgba(255,255,255,.75);

    color: var(--text);

    font-family:
        'Poppins', sans-serif;

    font-size: 13px;

    outline: none;

    box-shadow:
        0 3px 10px
        rgba(167, 167, 167, 0.3);

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}


.field input {

    height: 42px;

}


.field textarea {

    min-height: 82px;
    max-height: 120px;
    resize: vertical;
    line-height: 1.5;

}


/* =====================================================
   FOCUS — BLUE GLOW
===================================================== */

.field input:focus,
.field textarea:focus {

    border-color:
        rgba(120,180,220,.75);

    box-shadow:
        0 0 0 3px
        rgba(120,180,220,.12),

        0 4px 12px
        rgba(120,180,220,.16);

}


/* =====================================================
   PLACEHOLDER
===================================================== */

.field input::placeholder,
.field textarea::placeholder {

    color: rgba(156, 156, 156, 0.4);

    opacity: 1;

}



/* =====================================================
   SUBMIT
===================================================== */

.submit-row {

    display: flex;

    justify-content: flex-end;

    margin-top: 2px;

}


#submit-btn {

    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: #809ebab8;
    color: white;
    cursor: pointer;
    font-size: 15px;
    box-shadow:
        0 5px 14px
        rgba(124, 124, 124, 0.16);
    transition:
        background .2s ease,
        transform .2s ease;

}


#submit-btn:hover {

    background:
        rgba(117, 148, 191.72);
    transform:
        translateY(-1px);

}


#submit-btn:active {

    transform:
        scale(.92);

}


#submit-btn:disabled {

    opacity: .5;
    cursor: default;
    transform: none;

}


/* =====================================================
   STATUS
===================================================== */

.status-msg {

    min-height: 16px;
    margin: 0;
    text-align: center;
    font-size: 11px;
    color: var(--muted);

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 360px) {

    .guestbook {

        padding-left: 12px;
        padding-right: 12px;

    }


    .guestbook-list {

        min-height: 135px;

    }


    .entry .message {

        font-size: 15px;

    }

}