* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: monospace;
    background-color: #1a1a2e;
    color: #e0e0ff;
    overflow: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #0f0c29, #302b63, #24243e); /* Градиентный фон */
}


#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a2e;
    color: #e0e0ff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    z-index: 1000;
}

.loading-bar {
    width: 200px;
    height: 10px;
    background-color: #333;
    margin-top: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.loading-progress {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #00f6ff, #8e2de2, #ff0080);
    animation: load 3s linear forwards;
    border-radius: 5px;
}

@keyframes load {
    from { width: 0; }
    to { width: 100%; }
}


.content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100vh;
    color: #e0e0ff;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.character {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 40vw;
    max-height: 80vh;
    filter: drop-shadow(0 0 15px #8e2de2);
    margin-right: -50px;
}

.character img {
    width: 100%;
    height: auto;
}

/* Стили для облачка ответа */
.speech-bubble {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #e0e0ff;
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 80vw;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translate(-50%, 20px);
    box-shadow: 0px 0px 15px rgba(0, 255, 255, 0.5);
}


.speech-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: #1a1a2e transparent transparent transparent;
}


.speech-bubble.right-align {
    left: auto;
    right: 0;
    transform: translateX(-10%);
}


.speech-bubble.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.terminal {
    background-color: rgba(26, 26, 46, 0.9);
    border: 2px solid #8e2de2;
    padding: 20px;
    width: 40vw;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #e0e0ff;
    font-family: 'VT323', monospace;
    font-size: 18px;
}

.terminal-header {
    background: linear-gradient(90deg, #00f6ff, #8e2de2);
    color: #1a1a2e;
    padding: 10px;
    font-weight: bold;
    text-align: center;
}

#terminal-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    font-family: 'VT323', monospace;
    font-size: 18px;
}

.input-line {
    display: flex;
    align-items: center;
    font-family: 'VT323', monospace;
    font-size: 18px;
}

input[type="text"] {
    background-color: #1a1a2e;
    border: none;
    outline: none;
    color: #00f6ff;
    font-family: 'VT323', monospace;
    flex-grow: 1;
    padding: 5px;
}

/* Canvas Styles */
canvas {
    position: absolute;
    top: 0;
    left: 0;
}


.social-icons {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.icon {
    color: #00f6ff;
    font-size: 40px;
    transition: color 0.3s, text-shadow 0.3s;
}

.icon:hover {
    color: #ff0080;
    text-shadow: 0 0 10px #ff0080, 0 0 20px #ff0080;
}

.icon svg {
    width: 42px;
    height: 42px;
    fill: #00f6ff;
    transition: fill 0.3s, filter 0.3s;
    filter: drop-shadow(0 0 1px #00f6ff) drop-shadow(0 0 5px #00f6ff);
}

.icon:hover svg {
    fill: #ff0080;
    filter: drop-shadow(0 0 10px #ff0080) drop-shadow(0 0 20px #ff0080);
}

.icon i {
    text-shadow: 0 0 5px #00f6ff, 0 0 10px #00f6ff;
}


.contract-address {
    position: fixed;
    bottom: 20px; /* Position at the bottom */
    left: 20px; /* Align to the left */
    color: #00f6ff;
    font-family: 'VT323', monospace;
    font-size: 24px;
    z-index: 10;
    background-color: rgba(26, 26, 46, 0.9);
    padding: 5px 10px;
    border: 2px solid #8e2de2;
    box-shadow: 0px 0px 15px rgba(0, 255, 255, 0.5);
    border-radius: 5px;
    transition: color 0.3s, text-shadow 0.3s;
}

.contract-address:hover {
    color: #ff0080;
    text-shadow: 0 0 10px #ff0080, 0 0 20px #ff0080;
}

