* {
    font-family: sans-serif;
    /*box-sizing: border-box;*/
}

body {
    overflow-y: scroll;
    position: relative;
}

#chat {
    width: 400px;
    margin-right: auto;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    scroll-behavior: auto;
    overflow: hidden;
    /*height: 80vh;*/
    /*background-color: #f9f9f9;*/
    border-radius: 8px;
    margin-top: 10vh;
    margin-bottom: 10vh;
    transition: all 1s;
}

.man {
    position: relative;
    margin-top: 75px;
    border-radius: 8px;
    background-color: #b9efd3;
    padding: 12px 16px;
    margin-right: 50px;
    /*font-family: 'Yanone Kaffeesatz', 'Arial Narrow', sans-serif;*/
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.25;
    word-spacing: 3px;
    align-self: flex-end;
    /*transition: all 1s;*/
}

.man p {
    margin-top: 0;
    margin-bottom: 0;
}

.man:before {
    content: '';
    width: 55px;
    height: 55px;
    background-color: #ffd5fe;
    position: absolute;
    top: -50px;
    right: -50px;
    border-radius: 50%;
    border: 1px solid #acabab;
}

.man-right {
    margin-left: 50px;
    margin-right: 12px;
    background-color: #d1e4f6;
    align-self: flex-start;
}

.man-right:before {
    left: -50px;
}

.image-pozdr {
    width: 100%;
    /*margin-left: 10%;*/
    margin-top: 16px;
    border-radius: 8px;
}

.line {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    flex-direction: row;
    transition: all 1s;
}

.line div:first-child {
    margin-right: 8px;
}

.partlineToRight {
    /*align-self: flex-end;*/
    text-align: right;
}

.personName {
    position: absolute;
    top: -30px;
    font-weight: bold;
    font-size: 16px;
    color: #999;
    left: 16px;
    width: 370px;
    text-align: left;
}

.personName-right {
    left: inherit;
    right: 16px;
    text-align: right;
}

.date {
    text-align: center;
    padding: 4px 8px;
    border-radius: 8px;
    background-color: red;
    color: white;
    font-weight: bold;
    font-size: 16px;
    margin-top: 18px;
    margin-bottom: 18px;
}

.action {
    text-align: center;
    margin-top: 46px;
    margin-bottom: 24px;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 2s;
}

.action ~ .action {
    margin-top: 0;
}

.actionWithPB {
    /*margin-bottom: 10vh;*/
    margin-top: 42px !important;
    padding-top: 16px;
    padding-bottom: 2px;
    font-size: 19px;
    color: red;
    font-weight: bold;
    font-style: normal;

    /*border-top: 1px solid red;*/
    /*border-bottom: 1px solid red;*/

    line-height: 1.5;
}


.goBookaas {
    /*margin-top: 10px;*/
    margin-bottom: 12px;
    cursor: pointer;
    color: red;
    text-decoration: none;
    border-bottom: 1px solid red;
    font-size: 16px;
    text-align: center;
    padding-bottom: 20px;
    /*font-weight: bold;*/
    font-style: italic;
    animation: chat-book 1s ease 0s infinite alternate;
}

.goBookaas:hover {
    /*text-decoration: underline;*/
}

.man:before {
    background-image: url(../images/man1.png);
    background-size: cover;
    /*background-repeat: no-repeat;*/
    /*background-size: 100%;*/
}

.man-0:before {
    background-image: url(../images/man0.png);
    /*background-image: url(../images/man0-0-Animated.gif);*/
}

.man-1:before {
    background-image: url(../images/cosmo1.jpg);
    /*background-image: url(../images/man1-0-Animated.gif);*/
}

.man-2:before {
    background-image: url(../images/cosmo2.jpg);
    /*background-image: url(../images/man2-0-Animated.gif);*/
}

.man-3:before {
    background-image: url(../images/man3.png);
    /*background-image: url(../images/man3-0-Animated.gif);*/
}

.man-4:before {
    background-image: url(../images/man4.png);
    /*background-image: url(../images/man4-0-Animated.gif);*/
}

.man-5:before {
    background-image: url(../images/man5.png);
    /*background-image: url(../images/man5-0-Animated.gif);*/
}

.man-6:before {
    background-image: url(../images/man6.png);
    /*background-image: url(../images/man6-0-Animated.gif);*/
}

.man-7:before {
    background-image: url(../images/man7.png);
    /*background-image: url(../images/man7-0-Animated.gif);*/
}

.man-8:before {
    background-image: url(../images/man8.png);
    /*background-image: url(../images/man8-0-Animated.gif);*/
}

.man-9:before {
    background-image: url(../images/man9.png);
    /*background-image: url(../images/man9-0-Animated.gif);*/
}

.man-10:before {
    background-image: url(../images/man10.png);
    /*background-image: url(../images/man10b-0-Animated.gif);*/
}

[class*="personName-color-"] {
    font-weight: bold;
}

.personName-color-1 {
    color: #6db5fa;
}
.personName-color-2 {
    color: #64f3a9;
}

.char {
    /*color: #b9efd3;*/
    /*color: black;*/
    opacity: 0;
}

.char {
    /*color: #d1e4f6;*/
    opacity: 0;
    /*color: black;*/
}

.char.active {
    font-size: 15.9px;
    /*color: gray;*/
    opacity: 0.5;
    /*transition: all 1s;*/
}

.char.activated {
    /*color: black;*/
    opacity: 1;
    transition: all 300ms;
}

.active:after {
    content: '.....';
    position: absolute;
}

@keyframes chat-book {
    from {
        color: white;
    }
    to {
        color: #fa1af7;
    }
}

#soundNewMessage, #soundNewImage {

}

#sounds, #velocity {
    position: fixed;
    top: 4px;
    left: 16px;
    z-index: 10;
    display: none;
    transition: all 2s;
}



#velocity {
    display: block;
    left: inherit;
    right: 16px;
    transition: all 1s;
    /*background: white;*/
    /*width: 100vw;*/
}

.menDiv {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 32px;
}

.aniMan {
    width: 55px;
    margin-right: 8px;
    margin-top: 12px;
    border-radius: 50%;
    height: 55px;
    background-image: url(../images/man1.png);
    background-size: cover;
    border: 1px solid darkgrey;
}

.buttonGO {
    padding: 8px;
    margin-top: 0;
    margin-bottom: 16px;
    background-color: #ffd5fe;
    color: #fa1af7;
    font-weight: bold;
    font-size: 18px;
    border-radius: 8px;
    border: none;
}

.ani {
    margin-top: 32px;
    animation: chat-book 1s ease 0s infinite alternate;
}


#preload {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    width: 10px;
    left: 0;
    top: -10000px;
    height: 100vh;
    opacity: 1;
}

#back1 {
    background-color: #fff;
    position: fixed;
    width: 100%;
    height: 28px;
    left: 0;
    top: 0;
    z-index: 1;
    opacity: 0.9;
}

.header {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;

}

.info {
    text-align: center;
    font-style: italic;
    font-size: 0.8rem;
}

span.pause {
    width: 0;
}

p.enter {
    text-align: center;
    font-style: italic;
    font-size: 0.9em;
    margin-bottom: 0;
    word-spacing: 3px;
}

.img-chat {
    width: 100%;
    border-radius: 8px;
    margin-top: 16px;
    margin-bottom: 8px;
}


.man p {
    margin-right: 12px;
}
