:root {
    --main-gradient: linear-gradient(to bottom, #202020, #0B0B0B);
    --bg-color: rgba(38, 38, 38, 0.4);
    --chat-bubble: rgba(38, 38, 38, 1);
    --error-bg: #351b1b;
    --error-text: #f96b6b;
    --size: 20px;
    --blur: 2px;
    font-family: "Noto Sans", serif;
    font-weight: 400;
    font-size: 14px;
}

body {
    display: flex;
    align-items: center;
    flex-direction: column;
    background: var(--main-gradient);
    background-repeat: no-repeat;
    background-size: auto;
    margin: 0;
    height: 100vh;
    color: white;
}

.particle-bg {
    overflow: hidden;
    z-index: -1;
    position: absolute;
    background: rgba(255,255,255,.15);
    width: 100%;
    height: 100%;
    mask:
      radial-gradient(circle at 50% 50%, white 2px, transparent 2.5px) 50% 50% / var(--size) var(--size),
      url("https://assets.codepen.io/605876/noise-mask.png") 256px 50% / 256px 256px;
    mask-composite: intersect;
    animation: flicker 20s infinite linear;
  }
  
@keyframes flicker {
    to {
    mask-position: 50% 50%, 0 50%;
    }
}

a {
    text-decoration: none;
    color: white;
}

.fa {
    font-size: 24px;
    transition: .3s ease-out;
}

.fa:hover {
    transform: scale(1.2);
}

header {
    padding-top: 75px;
    padding-bottom: 20px;
    max-width: 500px;
    width: 100%;
}

footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    text-align: center;
    max-width: 500px;
    width: 100%;
    font-weight: 600;
}

.wrapper {
    width: 100%;
    max-width: 500px;
}

input[type=text] {
    width: 100%;
    background-color: var(--bg-color);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    padding: 12px 20px 12px 20px;
    border-radius: 10px;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.25);
    box-sizing: border-box;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-family: "Noto Sans", serif;
}

h1 {
    text-align: center;
    margin: 0;
    font-family: "Jersey 15", serif;
    font-weight: 400;
    font-size: 96px;
    font-style: normal;
    color: white;
    text-shadow: rgba(255,255,255,.5) 0px 0px 25px;
}

h2 {
    text-align: center;
    margin: 0;
    font-weight: 600;
}

.wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chatbox-wrapper {
    background-color: var(--bg-color);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    height: 100%;
    max-height: 400px;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.chatbox {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    display: flex;
    gap: 12px;
    align-items: center;
    max-width: 100%;
}

.message p {
    background-color: var(--chat-bubble);
    padding: 10px 15px;
    border-radius: 12px 12px 12px 0px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    word-wrap: break-word;
    white-space: normal;
    max-width: 75%;
    flex-shrink: 1;
}

.message p.error {
    background-color: var(--error-bg);
    color: var(--error-text);
}

.ai-pfp {
    flex-shrink: 0;
}

.ai-pfp img {
    border-radius: 50%;
}

.outgoing {
    margin-left: auto;
    max-width: 75%;
    display: flex;
    justify-content: flex-end;
}

.outgoing p {
    max-width: 100%;
    word-wrap: break-word;
    white-space: normal;
    border-radius: 12px 12px 0px 12px;
}

.social-icons {
    align-self: center;
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding-top: 10px;
    text-shadow: rgba(255,255,255,.5) 0px 0px 12px;
}

@media only screen and (max-width: 600px) {
    :root {
        font-size: 12px;
    }

    body {
        padding: 0px 20px 0px 20px;
    }

    header {
        padding-top: 50px;
    }
  }