@font-face {
    font-family: "Consolas";
    src: url("fonts/consolas.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Consolas", monospace;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    padding: 15px;
    position: relative;
    background-image: url("images/background-new.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: -1;
}

.screen-container {
    height: calc(100vh - 30px);
    width: calc(100vw - 30px);
    border: 1px solid #333333;
    padding: 10px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.ascii-container {
    display: flex;
    justify-content: center;
    padding-top: 320px;
}

.ascii-logo {
    font-family: "Consolas", monospace;
    white-space: pre;
    line-height: 1.2;
    font-size: 14px;
    text-align: center;
    background: linear-gradient(to right, #ff0000, #ff00ff, #0000ff, #00ffff, #00ff00, #ff0000);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-flow 15s linear infinite;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 400% 50%;
    }
}

.buttons-container {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    margin-bottom: 64px;
    gap: 16px;
}

.tragic-button {
    display: inline-block;
    background-color: #0a0a0a;
    color: #ffffff;
    border: 1px solid #1a1a1a;
    padding: 8px 24px;
    font-family: "Consolas", monospace;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.telegram-button:hover {
    border-color: #5865f2;
    text-decoration: none;
    box-shadow: 0 0 8px rgba(88, 101, 242, 0.5);
}

.preview-button:hover {
    text-decoration: none;
    animation: rainbow-effect 4s infinite alternate;
}

@keyframes rainbow-effect {
    0% {
        border-color: #ff00ff;
        box-shadow: 0 0 8px rgba(255, 0, 255, 0.6);
    }
    20% {
        border-color: #ff0000;
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
    }
    40% {
        border-color: #ffff00;
        box-shadow: 0 0 8px rgba(255, 255, 0, 0.6);
    }
    60% {
        border-color: #00ff00;
        box-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
    }
    80% {
        border-color: #00ffff;
        box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    }
    100% {
        border-color: #0000ff;
        box-shadow: 0 0 8px rgba(0, 0, 255, 0.6);
    }
}

.tragic-button:active {
    transform: translateY(1px);
}

@media (max-width: 768px) {
    .ascii-logo {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .ascii-logo {
        font-size: 8px;
    }
}

a {
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}