@font-face {
    font-family: "CoFo";
    src: url("cofo.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "CoFo Pixel";
    src: url("cofo-pixel.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Emoji";
    src: url("NotoColorEmoji-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 1rem;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#background-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border: none;
    z-index: -2;
    pointer-events: none;
}

#bg {
    z-index: -2;
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    overflow: hidden;
}

#bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(to right, black, transparent);
    pointer-events: none;
    z-index: -1;
}

#bg::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 800px;
    height: 100%;
    background: linear-gradient(to left, black, transparent);
    pointer-events: none;
    z-index: -1;
}

#bg-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background: linear-gradient(to top, black, transparent);
    z-index: -1;
    pointer-events: none;
}


#video {
    z-index: -1;
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%; 
    min-height: 100%;
    background-size: cover;
    display: none;
}

#list-container {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 660px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 40px 40px 40px 40px;
    z-index: 1;
    display: inline-block;
    display: none;
}

#list {
    width: 834px;
    height: auto;
    display: block;
}

/*
#glow {
    top: 400px;
    height: 1704px;
    width: 2161px;
    position: absolute;
    background-image: url(glow.png);
    animation: glow-move 25s ease-in-out infinite;
}


@keyframes glow-move {
  0% {right: 1920px;}
  50% {right: -1920px;}
  100% {right: 1920px;}
}
*/

@keyframes scroll-date {
  0% {margin-top: -24px; opacity: 0}
  5% {margin-top: 0px; opacity: 1}
  50% {margin-top: 0px; opacity: 1}
  55% {margin-top: -24px; opacity: 0}
  100% {margin-top: -24px; opacity: 0}
}

@keyframes scroll-weather {
  0% {margin-top: -40px; opacity: 1}
  5% {margin-top: -24px; opacity: 0}
  50% {margin-top: -24px; opacity: 0}
  55% {margin-top: -40px; opacity: 1}
  100% {margin-top: -40px;opacity: 1}
}

#info {
    text-align: right;
    float: right;
    color: white;
    font-family: 'CoFo', sans-serif;
    margin-right: 12px;
}

#time {
    font-size: 6rem;
}

#date {
    font-size: 3.5rem;
     /* animation: scroll-date 10s ease-in-out infinite; */
}

/* Стили для блока с погодой */
#weather {
    font-size: 3.5rem; /* Увеличиваем размер шрифта */
    display: flex; /* Используем flexbox для выравнивания элементов по горизонтали */
    display: none;
    align-items: center; /* Выравниваем элементы по центру по вертикали */
    justify-content: end;
    /* animation: scroll-weather 10s ease-in-out infinite; */
}
        

#weather img {
    margin-left: 0px; /* Добавляем отступ слева от иконки */
    width: 72px;
}

#left {
    position: absolute;
    margin-top: 26rem;
    text-shadow: 0px 0px 16px rgba(0, 0, 0, 0.3);
}

#msg {
    position: absolute;
    display: block;
    display: none;
    color: white;
    font-family: 'CoFo', sans-serif;
    font-size: 2rem;
}

.card-container {
    position: absolute;
    width: 100%;
    bottom: 24px;
    display: flex;
    gap: 20px;
    margin-bottom: -6px;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-height: 280px;
    min-height: 180px;
    width: 360px;
    flex: 1 0 20%;
    color: white;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
    /* backdrop-filter: blur(calc(var(--blur-hard, 160px) / 2)); */ 
}

.user {
    display: flex;
    align-items: center;
    font-family: 'CoFo Pixel', 'Emoji', sans-serif;
    font-size: 24px;
    margin-bottom: 2px;
}

.user-name {
    margin-right: 6px;
}

.likes {
    margin-left: auto; /* Отодвигаем лайки вправо */
    font-size: 20px;
    color: white;
    background-color: rgba(255,255,255,0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
}

.rank-1 {
    background-color: rgb(32 32 35 / 95%);
    border: 1px solid rgb(91 105 171 / 15%);
    color: #FF4343;
}

.rank-2 {
    background-color: rgb(32 32 35 / 95%);
    border: 1px solid rgb(91 105 171 / 15%);
    color: #3EED00;
}

.rank-3 {
    border: 1px solid rgba(0, 209, 255, 0.30);
    background: rgb(2 69 118 / 95%);
    box-shadow: 0px 0px 64px 0px rgba(0, 187, 255, 0.2);
    color: #00D1FF;
}

.rank-4 {
    border: 1px solid rgba(194, 116, 255, 0.60);
    background: rgb(58 20 119 / 95%);
    box-shadow: 0px 0px 64px 0px rgba(128, 0, 255, 0.56);
    color: #E960FF;
}

.rank-icon {
    padding-top: 7px;
    width: 24px;
    height: auto;
    margin-right: 7px;
}

.msgCounter {
    font-size: 16px;
    padding-top: 4px;
}

.message-content {
    font-family: 'CoFo', 'Emoji', sans-serif;
    color: white;
    font-size: 26px;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user, .message-content {
}

.message-image {
    max-height: 160px;
    flex-grow: 4;
    overflow: visible;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.message-image img {
    display: block;
    max-width: 100%;
    height: 100%;
    float: right;
    border: 3px solid white;
    border-radius: 4px;
    position: relative;
    right: -16px;
    bottom: -10px;
}

.message-image video {
    display: block;
    max-width: 100%;
    height: 100%;
    float: right;
    border: 3px solid white;
    border-radius: 4px;
    position: relative;
    right: -16px;
    bottom: -10px;
}

#rating-container {
 display: none;   
}