* {
    font-family: "Nunito", "Times New Roman", Times, serif;
}

body {
    overflow-x: hidden;
}

.content {
    transition: .2s;
    margin: auto;
    max-width: 80rem;
    transition: .2s;
}

h2 {
    position: relative;
    margin: 1rem .75rem .75rem 2.5rem;
    font-size: 1.5rem;
    transition: .2s;
}

h3 {
    margin: .75rem 0 0 2rem;
}

button {
    padding: .2rem .5rem;
    font-size: 1.1rem;
    color: #fff;
    background-color: var(--theme-color);
    border: solid .2rem var(--theme-color);
    border-radius: .5rem;
    box-shadow: 0 .1rem .2rem #ddd;
    transition: .15s;
}

button:hover {
    color: var(--theme-color);
    background-color: transparent;
}

button:active {
    transform: scale(.98);
}

a {
    color: var(--theme-color);
}

@media only screen and (max-width: 700px) {
    .content {
        grid-template-columns: 100%;
        margin-right: 0;
        width: 100vw;
    }
}

@media (prefers-color-scheme: dark) {
    button {
        box-shadow: 0 .2rem .2rem #000;
    }
}







.guestbook {
    padding-top: 2rem;
    position: relative;
}

.guestbook * {
    font-family: "Comic Sans MS", "Comic Sans", cursive;
}

.guestbook .messages {
    margin: 1rem 0;
    text-align: center;
}

.guestbook .messages::-webkit-scrollbar {
    display: none;
  }

.guestbook .card {
    display: inline-block;
    margin: 0 .3rem;
    min-height: 14rem;
    min-width: 20rem;
    max-width: 24rem;
    /* max-width: 700px; */
    border: solid .2rem var(--theme-color);
    border-radius: 1rem;
    white-space: wrap;
    vertical-align: top;
    margin-bottom: .8rem;
    padding: 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.guestbook .card .message {
    margin: 0;
    font-size: 1.4rem;
}

.guestbook .card .name {
    text-decoration: none;
}

.guestbook .card .name:hover {
    text-decoration: underline;
}

.guestbook .card i {
    font-size: .9rem;
    color: #888;
    font-style: italic;
}

.guestbook .post-button {
    position: absolute;
    top: 0;
    right: 0;
}

.guestbook .show-all-messages {
    margin: auto;
    text-align: center;
}

.guestbook .guestbook-title {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1.5rem;
    font-family: inherit;
    padding-bottom: 2rem;
}

.new-message-container {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eeeeee88;
    backdrop-filter: blur(.2rem);
    pointer-events: none;
    opacity: 0;
    transition: .2s;
}

.new-message {
    padding: 2rem;
    border-radius: 2rem;
    background-color: #ddddddaa;
    box-shadow: 0 0 .2rem #999;
    backdrop-filter: blur(.5rem);
    text-align: center;
}

.new-message .message-header {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.new-message textarea {
    min-width: 20rem;
    min-height: 6rem;
    margin: 1rem 0;
    padding: .5rem;
    font-size: 1.2rem;
    box-sizing: border-box;
    border-radius: 1rem;
    background-color: #fff;
    border: solid .2rem #aaa;
    color: #222;
    transition: .2s;
}

.new-message textarea:focus {
    outline: none;
    border-color: var(--theme-color);
}

.new-message .text-label {
    margin: 4rem;
}

.new-message input.text {
    padding: .3rem .6rem;
    font-size: 1rem;
    box-sizing: border-box;
    border-radius: 1rem;
    background-color: #fff;
    border: solid .2rem #aaa;
    color: #222;
    transition: .2s;
}

.new-message input.text:focus {
    outline: none;
    border-color: var(--theme-color);
}

.new-message input[type="submit"] {
    padding: .3rem .6rem;
    font-size: 1rem;
    box-sizing: border-box;
    border-radius: 1rem;
    background-color: var(--theme-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: .2s;
}

.new-message input[type="submit"]:active {
    transform: scale(.95);
}


@media (prefers-color-scheme: dark) {
    .new-message-container {
        background-color: #00000088;
    }

    .new-message {
        background-color: #222222aa;
        box-shadow: 0 0 .2rem #444;
    }

    .new-message textarea {
        background-color: #111;
        border: solid .2rem #333;
        color: #fff;
    }
    .new-message input.text {
        background-color: #111;
        border: solid .2rem #333;
        color: #fff;
    }
}