@font-face {
    font-family: main-font;
    src: url(./fonts/8bitOperatorPlus-Regular.woff) format("opentype");
    font-style: normal
}

@font-face {
    font-family: bold-font;
    src: url(./fonts/8bitOperatorPlus-Bold.woff) format("opentype");
    font-style: normal
}

* {
    image-rendering: pixelated;
    font-family: main-font,monospace;
}

.background {
    position: relative;
    min-height: 100vh;
}

.background::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(./images/bunnybackground.jpg);
    background-repeat: repeat;
    background-size: auto 50%;
    background-position: 0 0;
    animation: background-scroll 10s linear infinite;
    filter: blur(4px);
    z-index: -1;
    
}

@keyframes background-scroll {
    from { background-position: 0 0; }
    to   { background-position: -100% -100%; }
}

.center {
    display: flex;
    align-items: center;
    justify-content: top;
    flex-direction: column;
}

.frame {
    position: sticky;
    width: 90vw;
    max-width: 800px;
    margin: 0rem auto;
    border: 3px solid white;
    box-sizing: border-box;
    height: 500%;
}

.frame .center {
    width: 100%;
    height: 100%;
    padding: 1rem;
}

.about-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.about-text {
    max-width: 400px;
}

.favorites-banner {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    margin-top: 2rem;
    color: #ffffff;
    font-size: 1.5rem;
}

.favorites-banner .scrolling {
    display: inline-block;
    animation: zoom 8s linear infinite;
}

@keyframes zoom {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* chat room styles */
.chat-room {
    display: flex;
    flex-direction:row;
    width: 90%;
    max-width: 700px;
    max-height: 300px;
    margin: 2rem auto;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 2px solid #fff;
    box-sizing: border-box;
    align-items: stretch;
}
.chat-room h2 {
    width: 100%;
}
.messages {
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    border: 1px solid #fff;
}
.msg {
    font-size: 0.9rem;
    color: black;
    height: 100%;
    max-height: fit-content;
    max-width: 100%;
    
}
.msg p {
    margin: 0.2rem;
    padding-bottom: 5px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}
.msg strong {
    margin: 0.2rem;
}
.chat-form {
    margin: 5px;

    flex-direction: column;
    width: 100%;
}
.chat-form input[type="text"],
.chat-form textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.5rem;
    padding: 0.3rem;
    font-family: main-font, monospace;
}
.chat-form button {
    padding: 0.5rem 1rem;
    font-family: bold-font, monospace;
    cursor: pointer;
}

@keyframes background-pan {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* heart-shaped mask for images */
.heart-mask {
    -webkit-mask-image: url(https://files.strawcdn.com/icons/10-solid.svg);
    -webkit-mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    rotate: 20deg;
    margin-top:-6rem;
    margin-left: 20rem
}
