.imessage {
    background-color: #fff;
    /* border: 1px solid #e5e5ea; */
    border-radius: 0.25rem;
    display: flex;
    flex-direction: column;
    font-family: "SanFrancisco";
    font-size: 1.25rem;
    margin: 0 auto 1rem;
    max-width: 1000px;
    padding: 0.5rem 1.5rem;
}

.recommendations {
    flex-direction: row;
    display: flex;
    gap: 0.5em;
}
.game {
    flex: 1 1 auto;
}
.game img {
    width: 100%;
}

a.susd_recommended::after {
    content: url(https://www.shutupandsitdown.com/wp-content/uploads/2016/03/SUSD_Gold.png);
    position: absolute;
    left: -8px;
    bottom: -6px;
}

.imessage p {
    border-radius: 1.15rem;
    line-height: 1.25;
    max-width: 75%;
    padding: 0.5rem .875rem;
    position: relative;
    word-wrap: break-word;
}

.imessage p a {
    position: relative;
}

.price-sticker {
    position: absolute;
    top: 5px;
    right: 0px;
    background-color: #FF9900;
    /* #B12704; */
    color: #000000;
    /* #ffffff; */
    padding: 2px 5px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-sticker .cents {
    font-size: 8px;
    vertical-align: super;
}

.imessage p::before,
.imessage p::after {
    bottom: -0.1rem;
    content: "";
    height: 1rem;
    position: absolute;
}

p.from-me {
    align-self: flex-end;
    background-color: #248bf5;
    color: #fff;
}

p.from-me::before {
    border-bottom-left-radius: 0.8rem 0.7rem;
    border-right: 1rem solid #248bf5;
    right: -0.35rem;
    transform: translate(0, -0.1rem);
}

p.from-me::after {
    background-color: #fff;
    border-bottom-left-radius: 0.5rem;
    right: -40px;
    transform: translate(-30px, -2px);
    width: 10px;
}

p[class^="from-"] {
    margin: 0.5rem 0;
    width: fit-content;
}

p.from-me~p.from-me {
    margin: 0.25rem 0 0;
}

p.from-me~p.from-me:not(:last-child) {
    margin: 0.25rem 0 0;
}

p.from-me~p.from-me:last-child {
    margin-bottom: 0.5rem;
}

p.from-them {
    align-items: flex-start;
    background-color: #e5e5ea;
    color: #000;
}

p.from-them:before {
    border-bottom-right-radius: 0.8rem 0.7rem;
    border-left: 1rem solid #e5e5ea;
    left: -0.35rem;
    transform: translate(0, -0.1rem);
}

p.from-them::after {
    background-color: #fff;
    border-bottom-right-radius: 0.5rem;
    left: 20px;
    transform: translate(-30px, -2px);
    width: 10px;
}

p[class^="from-"].emoji {
    background: none;
    font-size: 2.5rem;
}

p[class^="from-"].emoji::before {
    content: none;
}

.no-tail::before {
    display: none;
}

.margin-b_none {
    margin-bottom: 0 !important;
}

.margin-b_one {
    margin-bottom: 1rem !important;
}

.margin-t_one {
    margin-top: 1rem !important;
}














/* general styling */
@font-face {
    font-family: "SanFrancisco";
    src:
        url("https://cdn.rawgit.com/AllThingsSmitty/fonts/25983b71/SanFrancisco/sanfranciscodisplay-regular-webfont.woff2") format("woff2"),
        url("https://cdn.rawgit.com/AllThingsSmitty/fonts/25983b71/SanFrancisco/sanfranciscodisplay-regular-webfont.woff") format("woff");
}

body {
    font-family: -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen-Sans,
        Ubuntu,
        Cantarell,
        "Helvetica Neue",
        sans-serif;
    font-weight: normal;
    margin: 0;
}

.container {
    margin: 0 auto;
    max-width: 1000px;
    padding: 1rem;
}

h1 {
    font-weight: normal;
    margin-bottom: 0.5rem;
}

h2 {
    border-bottom: 1px solid #e5e5ea;
    color: #666;
    font-weight: normal;
    margin-top: 0;
    padding-bottom: 1.5rem;
}

.comment {
    color: #222;
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    max-width: 100%;
    padding: 0;
}

@media screen and (max-width: 800px) {
    body {
        margin: 0 0.5rem;
    }

    .container {
        padding: 0.5rem;
    }

    .imessage {
        font-size: 1.05rem;
        margin: 0 auto 1rem;
        max-width: 1000px;
        padding: 0.25rem 0.875rem;
    }

    .imessage p {
        margin: 0.5rem 0;
    }
}

.typing__dot {
    float: left;
    width: 8px;
    height: 8px;
    margin: 8px 4px;
    background: #8d8c91;
    border-radius: 50%;
    opacity: 0;
    animation: loadingFade 1s infinite;
}

.typing__dot:nth-child(1) {
    animation-delay: 0s;
}

.typing__dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing__dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingFade {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
    }
}

form {
    margin: 0 auto 1rem;
    max-width: 1000px;
    padding: 0.5rem 1.5rem;
    display: flex;
}

input {
    flex: 1;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    border-style: solid;
    border-color: lightgray;
    width: 81%;
    font-size: 16px;
}

input:focus {
    outline: none;
    /* box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); */
}

button {
    margin-left: 0.5rem;
    background-color: #3b82f6;
    color: white;
    border-radius: 9999px;
    padding: 0.5rem;
    font-size: 16px;
}

button:hover {
    background-color: #2563eb;
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

  .suggestions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  #suggestion-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  #suggestion-list.initial {
    align-items: center;
  }
  
  #suggestion-list li {
    cursor: pointer;
    color: #666;
    margin: 10px 0;
    padding: 5px 15px;
  }

  #suggestion-list.initial li {
    border: 1px solid #ddd;
    border-radius: 5px;
    width: fit-content;
  }

  .prefix {
    color: #aaa;
  }

  #suggestion-list li:hover {
    background-color: #eee;
  }