﻿@font-face {
    font-family: "Ubuntu";
    src: url("/fonts/Ubuntu-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Ubuntu";
    src: url("/fonts/Ubuntu-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Ubuntu";
    src: url("/fonts/Ubuntu-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Ubuntu";
    src: url("/fonts/Ubuntu-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "ChatLogFont";
    src: url("/fonts/21345.ttf") format("truetype");
}

@font-face {
    font-family: "21345";
    src: url("/fonts/21345.ttf") format("truetype");
}

img {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #cccccc; /* Новый цвет фона вокруг игры */
    overflow: hidden;
    font-family: Arial, sans-serif;
	-webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;  
}

#gameContainer {
    position: relative;
    width: 1040px;
    height: 780px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-radius: 15px; /* Скругленные углы */
    overflow: hidden; /* Чтобы содержимое не выходило за скругленные углы */
    
    /* Двойная рамка */
    border: 3px solid #3b3b3b; /* Внутренняя рамка */
    outline: 4px solid #9b9b9b; /* Внешняя рамка */
    box-sizing: border-box; /* Чтобы рамки не влияли на размеры */
}

#gameCanvas {
    background-color: #333;
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    text-align: center;
    line-height: 1.5;
    pointer-events: auto;
    max-width: 600px;
    width: 90%;
}

#chatContainer {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#chatDecoration {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 21;
}

#chatDecoration:hover {
    transform: translateY(-50%) scale(1.1);
}

#chatDecoration:active {
    transform: translateY(-50%) scale(0.9);
}

#sendButton {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 25px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#sendButton:active {
    transform: translateY(-50%) scale(0.9);
}

#chatInput {
    width: 100%;
    padding: 8px;
    padding-left: 40px;
	padding-right: 50px;
    border: 2px solid #000;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
    font-family: "18120", sans-serif;
    background-color: #fff;
    box-sizing: border-box;
}

#chatInput::placeholder {
    color: #999;
}

#chatInput:focus {
    border-color: #000;
}

#messageInput:focus {
    outline: none !important;
    border: 1px solid #ffffff !important;
}

#chatLogsOverlay {
    position: absolute;
    bottom: 63px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 300px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(102, 102, 102, 0.3);
    border-radius: 8px;
    display: none;
    z-index: 1050;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#chatLogsHeader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(102, 102, 102, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    box-sizing: border-box;
}

#chatLogsTitle {
    color: white;
    font-family: "ChatLogFont", Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
}

#chatLogsClose {
    color: #ff6b6b;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s ease;
    width: 30px;
    height: 30px;
}

#chatLogsClose:hover {
    color: #ff4757;
    transform: scale(1.1);
}

#chatLogsClose:active {
    transform: scale(0.9);
}

#chatLogsContent {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: calc(100% - 30px);
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
}

.chat-log-entry {
    margin-bottom: 8px;
    padding: 6px 8px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    border-left: 3px solid #4CAF50;
}

.chat-log-entry.rp-log-me {
    border-left-color: #FFB366;
}

.chat-log-entry.rp-log-do {
    border-left-color: #66B3FF;
}

.chat-log-entry.rp-log-try {
    border-left-color: #FFB3D9;
}

.chat-log-rp-text-me {
    color: #FFB366 !important;
}

.chat-log-rp-text-do {
    color: #66B3FF !important;
}

.chat-log-rp-text-try {
    color: #FFB3D9 !important;
}

.chat-log-rp-success {
    color: #81C784 !important;
}

.chat-log-rp-fail {
    color: #E57373 !important;
}

.chat-log-message {
    color: white;
    font-family: "ChatLogFont", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.3;
    word-wrap: break-word;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

.chat-log-timestamp {
    color: #999;
    font-family: "ChatLogFont", Arial, sans-serif;
    font-size: 12px;
    margin-top: 2px;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

#chatLogsContent::-webkit-scrollbar {
    width: 6px;
}

#chatLogsContent::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#chatLogsContent::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

#chatLogsContent::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

#mapOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

#mapImage {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    cursor: pointer;
}

.location {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.location-btn {
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.location-btn:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}

#panelContainer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1040px;
    height: 200px; /* Высота панели */
    z-index: 10;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

#panelImage {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#buttonsContainer {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

.panel-btn {
    position: absolute; /* Абсолютное позиционирование */
	width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100px;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 11;
    pointer-events: auto;
}

.panel-btn:hover {
    transform: scale(1.2); /* При наведении */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}

.panel-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    pointer-events: none;
}

.panel-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Чат поверх панели */
#chatContainer {
    z-index: 20;
}

#bubblesContainer {
    z-index: 20;
}

.char-btn {
    padding: 10px 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.2s;
}

.char-btn:hover {
    background: #45a049;
    transform: scale(1.05);
}

.char-btn:active {
    transform: scale(0.95);
}

#emojiContainer {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    z-index: 1000;
}

#emojiWindow {
    position: relative;
    width: 450px;
    height: 560px;
}

#emojiBack {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 1002;
    transition: transform 0.2s ease;
}

#emojiBack:hover {
    transform: scale(1.1);
}

#emojiBack:active {
    transform: scale(0.9);
}

#emojiGrid {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 30px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 8px;
    overflow-y: hidden;
    padding: 5px;
    z-index: 1001;
    height: calc(100% - 40px);
}
    
.emoji-btn {
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: none;
    border: none;
    padding: 0;
}

.emoji-btn:hover {
    transform: scale(1.2);
}

.emoji-btn:active {
    transform: scale(0.9);
}

.emoji-in-chat {
    width: 56px;
    height: 56px;
    vertical-align: middle;
}

#inventoryContainer {
    pointer-events: auto;
}

#closeInventory:hover {
    transform: scale(1.1);
}

#closeInventory:active {
    transform: scale(0.9);
}

.empty-inventory-message {
    width: 100%;
    text-align: center;
    font-family: Arial, sans-serif;
    color: #071033;
    font-size: 18px;
    margin-top: 150px;
}

#characterSelection {
    margin-top: 20px;
    text-align: center;
}

#characterSelection h3 {
    color: #10074b;
    margin-bottom: 15px;
    font-size: 24px;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 0 auto;
    max-width: 400px;
}

.character-option {
    cursor: pointer;
    transition: transform 0.2s;
    text-align: center;
}

.character-option img {
    width: 78px;
    height: 116px;
    object-fit: contain;
}

.character-option.selected img {
    transform: scale(1.1);
}

.store-item:hover {
    transform: scale(1.1);
}

.store-item:active {
    transform: scale(0.95);
}

#closeStoreButton:hover {
    transform: scale(1.1);
}

#closeStoreButton:active {
    transform: scale(0.9);
}

#openCatalogButton:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

#openCatalogButton:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.item-slot {
    position: relative;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid #999;
	margin-top: 40px;
	margin-left: 40px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.item-slot:hover {
    transform: scale(1.1);
    border-color: #fff;
}

.item-slot img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.purchase-notification {
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    40% { transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

#itemContextMenu button:hover {
    background-color: #f0f0f0;
}

.store-item-container {
    position: absolute;
    display: flex;
    flex-direction: column;
}

.store-item-name {
    font-family: "Ubuntu", Arial, sans-serif;
    font-size: 22px;
    font-weight: bold;
    color: #10074b;
    text-shadow: 
       -1px -1px 0 #fff,  
       1px -1px 0 #fff,
       -1px 1px 0 #fff,
       1px 1px 0 #fff;
    margin-bottom: 8px;
    white-space: nowrap;
}

.store-price-container {
    display: flex;
    align-items: center;
}

.store-price-text {
    font-family: "Ubuntu", Arial, sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #10074b;
    text-shadow: 
       -1px -1px 0 #fff,  
       1px -1px 0 #fff,
       -1px 1px 0 #fff,
       1px 1px 0 #fff;
}

.store-price-icon {
    width: 24px;
    height: 24px;
}

.store-buy-button {
    width: 120px;
    height: 50px;
    cursor: pointer;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

.store-buy-button:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255,215,0,0.7));
}

.store-buy-button:active {
    transform: scale(0.95);
}

.memory-card {
    width: 129px;
    height: 169px;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.memory-card.is-flipped {
    transform: rotateY(180deg);
}

.memory-card.is-matched {
    opacity: 0.7;
    cursor: default;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden; /* Safari */
}

.card-back {
    transform: rotateY(180deg);
}

#memoryAlbumPlayBtn:hover, #memoryAlbumExitBtnIntro:hover {
    transform: scale(1.05);
}

#memoryAlbumExitBtnWin, #memoryAlbumExitBtnFail {
    transform: translateX(-50%);
}

#memoryAlbumExitBtnWin:hover, #memoryAlbumExitBtnFail:hover {
    transform: translateX(-50%) scale(1.05);
}

.map-tooltip {
    position: absolute;
    background-color: #faffff;
    border: 2px solid #435f75;
    color: #435f75;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1003;
    pointer-events: none;
    opacity: 0;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(-100%); 
}

.map-tooltip-title {
    font-weight: bold;
    font-size: 16px;
}

.map-tooltip-players {
    font-size: 12px;
    margin-top: 4px;
}

#itemPreviewContainer {
    position: absolute;
    top: 200px;
    left: 565px;
    width: 300px;
    height: 350px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 2002;
}

#itemPreviewImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(3px 3px 5px rgba(0,0,0,0.4));
}

/* Home */
#buttonsContainer img:nth-child(1) {
    top: 140px;
    left: 770px;
}

/* Profile */
#buttonsContainer img:nth-child(2) {
    top: 140px;
    left: 10px;
}

/* Friendlist */
#buttonsContainer img:nth-child(3) {
    top: 143px;
    left: 160px;
}

/* Emojilist */
#buttonsContainer img:nth-child(4) {
    top: 10px;
    left: 10px;
}

/* Bag */
#buttonsContainer img:nth-child(5) {
    top: 145px;
    left: 90px;
}

/* Add */
#buttonsContainer img:nth-child(6) {
    top: 80px;
    left: 970px;
}

/* Map */
#buttonsContainer img:nth-child(7) {
    top: 140px;
    left: 700px;
}

/* Honk */
#buttonsContainer img:nth-child(8) {
    top: 85px;
    left: 10px;
}

/* Mail1 */
#buttonsContainer img:nth-child(9) {
    top: 144px;
    left: 230px;
}

/* Gift */
#buttonsContainer img:nth-child(10) {
    top: 140px;
    left: 300px;
}

/* Settings */
#buttonsContainer img:nth-child(11) {
    top: 135px;
    left: 980px;
}

/* Unmute */
#buttonsContainer img:nth-child(12) {
    top: 137px;
    left: 840px;
}

/* Screen */
#buttonsContainer img:nth-child(13) {
    top: 145px;
    left: 910px;
}

#buttonsContainer img:nth-child(14) {
    top: 10px;
    left: 980px;
}

.char-btn {
    padding: 10px 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.2s;
}

.char-btn:hover {
    background: #45a049;
    transform: scale(1.05);
}

.char-btn:active {
    transform: scale(0.95);
}

.char-btn.selected {
    background: #2196F3;
    border: 2px solid #1976D2;
}

.char-btn.selected:hover {
    background: #1976D2;
}

.speech-bubble {
    position: absolute;
    max-width: 250px;
    min-width: 80px;
    background: white;
    border: 2px solid #7f7f7f;
    border-radius: 16px;
    padding: 15px 20px;
    margin: 0;
    font-family: "18120", sans-serif;
    font-size: 23px;
	color: black;
    text-shadow: none;
	font-stretch: 75%;
	font-weight: bold; 
    text-align: center;
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    box-sizing: border-box;
    z-index: 100;
    line-height: 1.4;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition: z-index 0s;
}

.speech-bubble:hover {
    z-index: 1000 !important;
}

.remote-bubble {
    background: white;
    border: 2px solid #7f7f7f;
    font-size: 23px;
    z-index: 200;
    max-width: 250px;
	min-width: 80px;
	padding: 15px 20px;
    border-radius: 16px;
    font-family: "18120", sans-serif;
    opacity: 1;
	color: black;
    text-shadow: none;
	font-weight: bold;
	font-stretch: 75%;
}

.rp-bubble-me {
    background: #FFF5E6 !important;
    border-color: #FFB366 !important;
}

.rp-bubble-do {
    background: #E6F7FF !important;
    border-color: #66B3FF !important;
}

.rp-bubble-try {
    background: #FFF0F5 !important;
    border-color: #FFB3D9 !important;
}

.rp-text-me {
    color: #FFB366 !important;
    font-style: italic;
}

.rp-text-do {
    color: #66B3FF !important;
    font-style: italic;
}

.rp-text-try {
    color: #FFB3D9 !important;
    font-style: italic;
}

.rp-result-success {
    color: #81C784 !important;
    font-weight: bold;
}

.rp-result-fail {
    color: #E57373 !important;
    font-weight: bold;
}

/* Authentication loading and error styles */
.auth-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    font-size: 16px;
    z-index: 2002;
}

.auth-error {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 2001;
}

@keyframes menuIn {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    60% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes menuOut {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

#friendListOverlay {
    font-family: Arial, sans-serif;
}

#friendsList {
    scrollbar-width: thin;
    scrollbar-color: #888 transparent;
}

#friendsList::-webkit-scrollbar {
    width: 6px;
}

#friendsList::-webkit-scrollbar-track {
    background: transparent;
}

#friendsList::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#friendsList::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.friend-list-item {
    display: flex;
    align-items: center;
    padding: clamp(4px, 0.8vw, 8px) clamp(6px, 1vw, 10px);
    margin: clamp(1px, 0.2vw, 2px) 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 1px solid transparent;
}

.friend-list-item:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.friend-list-item.selected {
    background: rgba(100, 150, 255, 0.4);
    border-color: rgba(100, 150, 255, 0.8);
}

.friend-list-item .friend-avatar {
    width: clamp(16px, 2.5vw, 24px);
    height: clamp(16px, 2.5vw, 24px);
    margin-right: clamp(4px, 0.8vw, 8px);
    border-radius: 2px;
    flex-shrink: 0;
}

.friend-list-item .friend-name {
    flex: 1;
    font-size: clamp(8px, 1vw, 12px);
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-list-item .friend-status {
    width: clamp(8px, 1.2vw, 12px);
    height: clamp(8px, 1.2vw, 12px);
    margin-left: clamp(2px, 0.4vw, 4px);
    flex-shrink: 0;
}

#friendSearchInput {
    color: #333;
}

#friendSearchInput::placeholder {
    color: #666;
}

#friendActionButtons img {
    transition: transform 0.2s ease, filter 0.2s ease;
}

#friendActionButtons img:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

#friendActionButtons img:active {
    transform: scale(0.95);
}

#friendActionButtons img.disabled {
    filter: grayscale(1) brightness(0.7);
    cursor: not-allowed;
}

#friendActionButtons img.disabled:hover {
    transform: none;
    filter: grayscale(1) brightness(0.7);
}

#friendListClose {
    transition: transform 0.2s ease;
}

#friendListClose:hover {
    transform: scale(1.1);
}

#friendListClose:active {
    transform: scale(0.9);
}

#postcardClose {
    transition: transform 0.2s ease;
}

#postcardClose:hover {
    transform: scale(1.1);
}

#postcardClose:active {
    transform: scale(0.9);
}

#composerBack {
    transition: transform 0.2s ease;
}

#composerBack:hover {
    transform: scale(1.1);
}

#composerBack:active {
    transform: scale(0.9);
}

#postcardSelectionBack {
    transition: transform 0.2s ease;
}

#postcardSelectionBack:hover {
    transform: scale(1.1);
}

#postcardSelectionBack:active {
    transform: scale(0.9);
}

#answerButton {
    transition: transform 0.2s ease;
}

#answerButton:hover {
    transform: scale(1.05);
}

#answerButton:active {
    transform: scale(0.95);
}

#discardButton {
    transition: transform 0.2s ease;
}

#discardButton:hover {
    transform: scale(1.05);
}

#discardButton:active {
    transform: scale(0.95);
}

#composerBackButton {
    transition: transform 0.2s ease;
}

#composerBackButton:hover {
    transform: scale(1.05);
}

#composerBackButton:active {
    transform: scale(0.95);
}

#postcardSendButton {
    transition: transform 0.2s ease;
}

#postcardSendButton:hover {
    transform: scale(1.05);
}

#postcardSendButton:active {
    transform: scale(0.95);
}

.typing-indicator {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 16px;
    font-family: "18120", sans-serif;
    font-size: 22px;
    font-weight: bold;
    z-index: 300;
    pointer-events: none;
    transform: translateX(-50%);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.typing-indicator span {
    display: inline-block;
    animation: typingBounce 1.2s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}
