@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css');
@import url('https://fonts.googleapis.com/css?family=DotGothic16');
@import url('https://fonts.googleapis.com/css?family=DotGothic16');
@import url('https://fonts.googleapis.com/css?family=DotGothic16');
@import url('https://fonts.googleapis.com/css?family=DotGothic16');
@import url("https://db.onlinewebfonts.com/c/069fb64d1f685b25507f0ece8707f4ab?family=rainyhearts");


* {
    overflow: visible;
    font-weight: 400;
    scroll-behavior: smooth
}

.user-and-pronoun-anim {
  z-index: 10;
}

.main-container {
    display: flex;
    height: 97%;
    margin-left: 15px;
    margin-right: 30px;
    margin-top: 15px;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
}

.message-row {
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    vertical-align: baseline;
    width: 100%;
    max-width: 800px;
    align-self: flex-start;
    height: auto;
    margin-left: 16px;
    margin-bottom: 13px;
    position: relative;
}

.user-and-message {
    display: flex;
    flex-direction: column;
    width: fit-content;
}
.user-and-pronoun {
    display: inline-flex;
    position: relative;
    background: #fffaff;
    margin-left: calc(22px * -1.0);
    margin-top: calc(22px * -0.85);
    padding-right: 5px;
    z-index: 15;
}
.user-box {
    align-self: flex-start;
    display: inline-block;
    font-family: 'DotGothic16', sans-serif;
    font-size: calc(25px);
    margin-bottom: calc(25px * 0.2);
    padding-top: calc(25px * 0.5);
    padding-bottom: calc(25px * 0.06);
    padding-left: calc(25px * 0.75);
    padding-right: calc(25px * 0.25);
    color: #ef5fdd;
    background: #fecef5;
    text-align: center;
    justify-content: center;
    overflow: visible;
    border-radius: calc(22px * 0.35);
    border: 2px solid #ed53ca;
    letter-spacing: -1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 10;
}

.pronoun-box {
    align-self: flex-start;
    display: inline;
    font-family: 'DotGothic16', sans-serif;
    font-size: calc(25px - 3px);
    margin-left: calc(25px * 0.25);
    padding-top: calc(25px * 0.6);
    padding-bottom: calc(25px * 0.08);
    padding-left: calc(25px * 0.45);
    padding-right: calc(25px * 0.45);
    color: #ef5fdd;       
    background: #fecef5;
    text-align: center;
    justify-content: center;
    overflow: visible;
    letter-spacing: -1px; 
    border-radius: calc(22px * 0.35);
    border: 2px solid #ed53ca;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 10;
}

.pronouns {
    line-height: 1;     
}

.badge {
    display: inline;
    width: calc(22px - 5px);
    transform: translateY(1px);
}

.lines-container {
    position: absolute;
    top: calc(25px * 0.35);
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.lines-container .notebook-line {
    width: 100%;
    height: 1.5px;
    background: #fecef5;
    margin-top: calc(22px * 0.98);
}
.message-content {
    position: relative;
    z-index: 2;
}

.user-message {
    position: relative; 
    align-self: flex-start;
    display: inline-block;
    color: #5a5a5a;
    background: #fffaff;
    font-family: 'DotGothic16', sans-serif;
    font-size: 22px;
    padding-top: calc(22px * 0.18);
    padding-bottom: calc(22px * 0.5);
    padding-left: calc(22px * 0.7);
    padding-right: calc(22px * 2);
    margin-top: calc(22px * 0.3);
    height: auto;
    word-wrap: break-word; 
    overflow-wrap: anywhere;
    white-space: normal;
    border-radius: calc(22px * 0.35);
    border: 2px solid #ed53ca;
    box-shadow: 0 0 8px #ed53ca;
    letter-spacing: -1px; 
    overflow: hidden;
    z-index: 10;
}

.emote {
    vertical-align: middle;
    background-repeat: no-repeat;
    z-index: 10;
}

.action {
    font-style: italic;
}

.alert-main {
    display: inline-flex;
    width: fit-content;
    position: relative;
    justify-content: flex;
    padding: 13px 5px 3px 5px;
}

.corner-symbol-1 {
    position: absolute;
    top: -9px;
    left: -10px;
    display: flex;
    transform: rotate(90deg);
    color: #ecd3a0;
    z-index: 20;
}
.corner-symbol-2 {
    position: absolute;
    top: -9px;
    right: -4px;
    display: flex;
    transform: rotate(180deg);
    color: #ecd3a0;
    z-index: 20;
}
.corner-symbol-3 {
    position: absolute;
    bottom: -10px;
    left: -10px;
    display: flex;
    transform: rotate(0deg);
    color: #ecd3a0;
    z-index: 20;
}
.corner-symbol-4 {
    position: absolute;
    bottom: -10px;
    right: -4px;
    display: flex;
    transform: rotate(270deg);
    color: #ecd3a0;
    z-index: 20;
}
.alert-container {
    display: inline-flex;
    position: relative;
    align-items: center;
    flex-direction: row;
    flex-shrink: 0;
    width: auto;
    overflow: visible;
    margin-bottom: 5px;
    margin-top: 5px;
}

.amount {
    display: inline-flex;
    align-items: flex-start;
    flex-direction: row;
    padding-top: calc(22px * 0.41);
    padding-bottom: calc(22px * 0.41);
    padding-left: calc(22px * 0.58);
    padding-right: calc(22px * 0.58);
    min-width: calc(22px * 0.78);
    justify-content: center;
    margin-right: -5px;
    background-color: #ecd3a0;
    border-radius: calc(22px * 0.3);
    border: 2px solid #ec8727;
    box-shadow: 0 0 8px #ec8727;
}
.amount-number {
    font-family: 'DotGothic16', sans-serif;
    font-size: calc(22px * 1.07);
    color: #ec8727;
    font-weight: 600;
}

.alert-content {
    display: inline-flex;
    position: relative;
    flex-direction: column;  
    padding-top: calc(22px * 0.45);
    padding-bottom: calc(22px * 0.45);
    padding-left: calc(22px * 1.1);
    padding-right: calc(22px * 1.49);
    background-color: #fff8e9;
    border-radius: calc(22px * 0.3);
    border: 2px solid #ec8727;
    box-shadow: 0 0 8px #ec8727;
    overflow: hidden;
}
.vertical-line-1 {
    position: absolute;
    background-color: #ecd3a0;
    top: 0;
    left: 10px;
    width: 1.5px;
    height: 200px;
}
.horizontal-line-1 {
    position: absolute;
    background-color: #ecd3a0;
    left: 0;
    top: calc(22px * 0.5);
    height: 1.5px;
    width: 1500px;
    z-index: 1;
}
.horizontal-line-2 {
    position: absolute;
    background-color: #ecd3a0;
    left: 0;
    bottom: calc(22px * 0.5);
    height: 1.5px;
    width: 1500px;
    z-index: 1;
}

.alert-message {
    white-space: nowrap;
    font-family: 'DotGothic16', sans-serif;
    font-size: calc(22px * 1);
    letter-spacing: -1px;
    font-weight: 500;
    color: white;
    display: flex;
    align-items: center;
    text-align: left;
    z-index: 10;
}

/* Follower alert */
.follow-alert .alert-content {
    margin: 0 10px;
    border: 2px solid #ec8727;
    box-shadow: 0 0 8px #ec8727;
}
.follow-alert .alert-message {
    color: #5a5a5a;
}
/* Subscriber alert */
.sub-alert .alert-content {
    background-color: #e4fee2;
    margin: 0 10px;
    border: 2px solid #70eb5c;
    box-shadow: 0 0 8px #70eb5c;
}
.sub-alert .amount-number {
    color: #70eb5c;
}
.sub-alert .amount {
    background-color: #d4fece;
    border: 2px solid #70eb5c;
    box-shadow: 0 0 8px #70eb5c;
}
.sub-alert .alert-message {
    color: #5a5a5a;
}
.sub-alert .corner-symbol-1 svg path,
.sub-alert .corner-symbol-2 svg path,
.sub-alert .corner-symbol-3 svg path,
.sub-alert .corner-symbol-4 svg path {
    fill: #d4fece;
    stroke: #70eb5c;
}
.sub-alert .horizontal-line-1,
.sub-alert .horizontal-line-2,
.sub-alert .vertical-line-1 {
    background-color: #d4fece;
}

/* Tip alert */
.tip-alert .alert-content {
    background-color: #fbf6ff;
    margin: 0 10px;
    border: 2px solid #af7bfa;
    box-shadow: 0 0 8px #af7bfa;
}
.tip-alert .amount-number {
    color: #af7bfa;
}
.tip-alert .amount {
    background-color: #efd6ff;
    border: 2px solid #af7bfa;
    box-shadow: 0 0 8px #af7bfa;
}
.tip-alert .alert-message {
    color: #5a5a5a;
}
.tip-alert .corner-symbol-1 svg path,
.tip-alert .corner-symbol-2 svg path,
.tip-alert .corner-symbol-3 svg path,
.tip-alert .corner-symbol-4 svg path {
    fill: #efd6ff;
    stroke: #af7bfa;
}
.tip-alert .horizontal-line-1,
.tip-alert .horizontal-line-2,
.tip-alert .vertical-line-1 {
    background-color: #efd6ff;
}
/* Cheer alert */
.cheer-alert .alert-content {
    background-color: #f4f6fe;
    margin: 0 10px;
    border: 2px solid #455bee;
    box-shadow: 0 0 8px #455bee;
}
.cheer-alert .amount-number {
    color: #455bee;
}
.cheer-alert .amount {
    background-color: #d4d9ff;
    border: 2px solid #455bee;
    box-shadow: 0 0 8px #455bee;
}
.cheer-alert .alert-message {
    color: #5a5a5a;
}
.cheer-alert .corner-symbol-1 svg path,
.cheer-alert .corner-symbol-2 svg path,
.cheer-alert .corner-symbol-3 svg path,
.cheer-alert .corner-symbol-4 svg path {
    fill: #d4d9ff;
    stroke: #455bee;
}
.cheer-alert .horizontal-line-1,
.cheer-alert .horizontal-line-2,
.cheer-alert .vertical-line-1 {
    background-color: #d4d9ff;
}