/* =========================================
   SPACE1993
   GUESTBOOK
   ========================================= */


/* =========================================
   BLUE SCREEN FONT
   ========================================= */

@font-face {

    font-family: "Blue Screen";

    src:
        url("fonts/Blue%20Screen.ttf")
        format("truetype");

    font-weight: normal;

    font-style: normal;

    font-display: block;

}


/* =========================================
   GLOBAL
   ========================================= */

* {

    box-sizing: border-box;

}


html,
body {

    margin: 0;

    padding: 0;

    background: #080908;

    color: #888888;

}


body {

    font-family:
        "Courier New",
        Courier,
        monospace;

}


/* =========================================
   PAGE
   ========================================= */

main {

    width: 100%;

    padding: 20px;

}


/* =========================================
   BANNER
   ========================================= */

.banner {

    position: relative;

    width: 100%;

    max-width: 1400px;

    height: 88vh;

    margin: 0 auto;

    overflow: hidden;

    background: #11120f;

}


.banner img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    opacity: .78;

    filter:
        brightness(.72)
        contrast(1.08)
        saturate(.75);

}


/* =========================================
   FIXED TITLE
   ========================================= */

.guestbook-title {

    position: absolute;

    top: 45px;

    left: 50%;

    transform:
        translateX(-50%);

    width: 72%;

    max-width: 1100px;

    color: #383834;

    font-family:
        "Blue Screen",
        monospace;

    font-size: 22px;

    font-weight: normal;

    letter-spacing: 0;

    word-spacing: 0;

    line-height: 1;

    text-align: center;

    z-index: 10;

    pointer-events: none;

}


.guestbook-title span {

    display: inline;

    margin: 0;

    padding: 0;

}


/* =========================================
   BACK ARROW
   ========================================= */

.guestbook-back {

    position: absolute;

    left: 0;

    top: 50%;

    transform:
        translateY(-50%);

    color: #383834;

    font-family:
        "Blue Screen",
        monospace;

    font-size: 28px;

    font-weight: normal;

    line-height: 1;

    text-decoration: none;

    pointer-events: auto;

}


.guestbook-back:hover {

    color: #555550;

}


/* =========================================
   SCROLLING GUESTBOOK
   ========================================= */

.guestbook {

    position: absolute;

    top: 65px;

    bottom: 58px;

    left: 50%;

    transform:
        translateX(-50%);

    width: 82%;

    max-width: 900px;

    overflow-y: auto;

    padding:
        10px 20px 30px;

    z-index: 5;

    scrollbar-width: thin;

    scrollbar-color:
        #080908
        transparent;

}


.guestbook::-webkit-scrollbar {

    width: 6px;

}


.guestbook::-webkit-scrollbar-track {

    background: transparent;

}


.guestbook::-webkit-scrollbar-thumb {

    background: #080908;

}


/* =========================================
   INNER CONTENT
   ========================================= */

.guestbook-inner {

    width: 100%;

    max-width: 820px;

    margin: 0 auto;

}


/* =========================================
   FORM
   ========================================= */

.guestbook-form {

    width: 100%;

    max-width: 680px;

    margin:
        0 auto 5px;

}


.guestbook input,
.guestbook textarea {

    display: block;

    width: 100%;

    margin:
        0 0 12px;

    padding:
        12px 14px;

    border: none;

    border-radius: 0;

    background:
        rgba(8, 9, 8, .72);

    color: #aaaaaa;

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 14px;

    outline: none;

    box-shadow: none;

    transition:
        background .2s ease;

}


.guestbook input {

    height: 48px;

}


.guestbook textarea {

    min-height: 105px;

    resize: vertical;

    line-height: 1.5;

}


.guestbook input::placeholder,
.guestbook textarea::placeholder {

    color: #666666;

    opacity: 1;

}


.guestbook input:focus,
.guestbook textarea:focus {

    background:
        rgba(8, 9, 8, .82);

}


/* =========================================
   FORM BOTTOM
   ========================================= */

.form-bottom {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;

}


/* =========================================
   POST MESSAGE
   ========================================= */

.guestbook button {

    display: block;

    width: fit-content;

    margin: 0 auto;

    padding:
        9px 15px;

    border: none;

    border-radius: 0;

    background:
        rgba(185, 185, 185, .22);

    color: #383834;

    font-family:
        "Blue Screen",
        monospace;

    font-size: 16px;

    font-weight: normal;

    line-height: 1;

    letter-spacing: 0;

    word-spacing: 0;

    cursor: pointer;

    outline: none;

    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, .10);

    appearance: none;

    transition:
        background .2s ease;

}


.guestbook button span {

    display: inline;

    margin: 0;

    padding: 0;

}


.guestbook button:hover {

    background:
        rgba(205, 205, 205, .30);

    color: #383834;

}


.guestbook button:active {

    background:
        rgba(160, 160, 160, .28);

}


.guestbook button:disabled {

    opacity: .5;

    cursor: default;

}


/* =========================================
   STATUS
   ========================================= */

.guestbook-status {

    min-height: 18px;

    color: #777777;

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 12px;

    letter-spacing: .3px;

}


/* =========================================
   MESSAGES
   ========================================= */

.messages {

    width: 100%;

    max-width: 780px;

    margin: 0 auto;

}


.message {

    margin-bottom: 14px;

    padding:
        17px 19px 19px;

    border: none;

    background:
        rgba(8, 9, 8, .40);

    box-shadow:
        0 5px 20px
        rgba(0, 0, 0, .12);

}


/* =========================================
   MESSAGE NAME
   ========================================= */

.message-name {

    margin-bottom: 9px;

    color: #a2a2a2;

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 15px;

    letter-spacing: 1px;

}


/* =========================================
   DATE + TIME
   ========================================= */

.message-date {

    margin-left: 8px;

    color: #555555;

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 11px;

    letter-spacing: 0;

}


/* =========================================
   MESSAGE TEXT
   ========================================= */

.message-text {

    color: #858585;

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 13px;

    line-height: 1.65;

    white-space: pre-wrap;

    overflow-wrap: anywhere;

}


/* =========================================
   EMPTY MESSAGE
   ========================================= */

.empty-message {

    padding:
        25px 10px;

    color: #000000;

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 12px;

    letter-spacing: 1px;

    text-align: center;

}


/* =========================================
   FIXED PAGINATION
   ========================================= */

.pagination {

    position: absolute;

    left: 50%;

    bottom: 18px;

    transform:
        translateX(-50%);

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 18px;

    z-index: 20;

}


.pagination button {

    display: block;

    padding: 0;

    border: none;

    background: transparent;

    color: #666666;

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 13px;

    line-height: 1;

    cursor: pointer;

    appearance: none;

    box-shadow: none;

    opacity: 1;

}


.pagination button:hover {

    color: #aaaaaa;

}


.pagination button.active {

    color: #b0b0b0;

}


.pagination button:focus {

    outline: none;

}


/* =========================================
   MOBILE
   ========================================= */

@media screen and (max-width: 600px) {

    main {

        padding: 10px;

    }


    .banner {

        height: 88vh;

    }


    .guestbook-title {

        top: 25px;

        width: 88%;

        font-size: 18px;

        letter-spacing: 0;

        word-spacing: 0;

    }


    .guestbook-back {

        font-size: 24px;

    }


    .guestbook {

        top: 65px;

        bottom: 50px;

        width: 94%;

        padding:
            10px 8px 25px;

    }


    .guestbook-form {

        margin-bottom: 5px;

    }


    .guestbook input,
    .guestbook textarea {

        font-size: 13px;

    }


    .guestbook input {

        height: 45px;

    }


    .guestbook textarea {

        min-height: 100px;

    }


    .guestbook button {

        font-size: 14px;

        padding:
            9px 14px;

    }


    .guestbook-status {

        margin-top: 0;

    }


    .message {

        padding:
            15px 15px 17px;

        margin-bottom: 12px;

    }


    .message-name {

        font-size: 14px;

    }


    .message-date {

        font-size: 10px;

    }


    .message-text {

        font-size: 12px;

        line-height: 1.6;

    }


    .pagination {

        bottom: 15px;

        gap: 16px;

    }


    .pagination button {

        font-size: 12px;

    }

}


/* =========================================
   VERY SMALL
   ========================================= */

@media screen and (max-width: 380px) {

    .guestbook-title {

        top: 23px;

        width: 90%;

        font-size: 16px;

    }


    .guestbook-back {

        font-size: 22px;

    }


    .guestbook {

        top: 63px;

        bottom: 47px;

        width: 96%;

        padding:
            10px 5px 20px;

    }


    .guestbook input,
    .guestbook textarea {

        font-size: 12px;

    }


    .guestbook button {

        font-size: 13px;

        padding:
            8px 13px;

    }


    .message {

        padding:
            13px 13px 15px;

    }


    .pagination {

        bottom: 13px;

        gap: 14px;

    }

}