@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --discord-bg: #121214;
    --discord-card: #1a1a1e;
    --discord-accent: #5865f2;
    --discord-username: #fff;
    --discord-message: #dbdee1;
    --discord-profile-border: #232428;
    --discord-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.37);
    --discord-font: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

*,
*::after,
*::before {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--discord-bg);
    color: var(--discord-message);
    font-family: var(--discord-font);
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 5vw;
    padding: 4vw;
}

.alert {
    position: relative;
    background: var(--discord-card);
    border-radius: calc(0.1 * var(--alert-width, 100vw));
    box-shadow: var(--discord-shadow);
    padding: calc(0.025 * var(--alert-width, 100vw)) calc(0.03 * var(--alert-width, 100vw));
    max-width: calc(0.9 * var(--alert-width, 100vw));
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: calc(0.05 * var(--alert-width, 100vw));
    transition: box-shadow 0.2s, transform 500ms;
    transform: scale(1);
    animation: fadeIn 0.5s linear(0 0%, 0 1.8%, 0.01 3.6%, 0.03 6.35%, 0.07 9.1%, 0.13 11.4%, 0.19 13.4%, 0.27 15%, 0.34 16.1%, 0.54 18.35%, 0.66 20.6%, 0.72 22.4%, 0.77 24.6%, 0.81 27.3%, 0.85 30.4%, 0.88 35.1%, 0.92 40.6%, 0.94 47.2%, 0.96 55%, 0.98 64%, 0.99 74.4%, 1 86.4%, 1 100%);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.alert.fadeout {
    animation: fadeOut 0.5s forwards linear(0 0%, 0 1.8%, 0.01 3.6%, 0.03 6.35%, 0.07 9.1%, 0.13 11.4%, 0.19 13.4%, 0.27 15%, 0.34 16.1%, 0.54 18.35%, 0.66 20.6%, 0.72 22.4%, 0.77 24.6%, 0.81 27.3%, 0.85 30.4%, 0.88 35.1%, 0.92 40.6%, 0.94 47.2%, 0.96 55%, 0.98 64%, 0.99 74.4%, 1 86.4%, 1 100%);
}

.content {
    display: flex;
    flex-direction: column;
    gap: calc(0.015 * var(--alert-width, 100vw));
}

.profile {
    width: calc(0.24 * var(--alert-width, 100vw));
    height: calc(0.24 * var(--alert-width, 100vw));
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--discord-profile-border);
    background: #232428;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.18);
}

.header {
    font-size: calc(0.1 * var(--alert-width, 100vw));
    font-weight: 700;
    color: var(--discord-username);
    word-break: break-word;
    letter-spacing: 0.01em;
}

.body {
    font-size: calc(0.05 * var(--alert-width, 100vw));
    color: var(--discord-message);
    background: transparent;
    border-radius: 12px;
    word-break: break-word;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}

.progress-bar {
    position: absolute;
    bottom: calc(0.01 * var(--alert-width, 100vw));
    left: calc(0.08 * var(--alert-width, 100vw));
    right: calc(0.08 * var(--alert-width, 100vw));
    height: calc(0.01 * var(--alert-width, 100vw));
    background: rgba(88, 101, 242, 0.1);
    border-radius: calc(0.01 * var(--alert-width, 100vw));
    overflow: hidden;
    margin-top: calc(0.01 * var(--alert-width, 100vw));
}

.progress-fill {
    height: 100%;
    background: var(--discord-accent);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: calc(0.01 * var(--alert-width, 100vw));
}

.halo {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200vw;
    height: 200vw;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.15) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    filter: blur(100px);
    z-index: 1;
    pointer-events: none;
    animation: pulse 6s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}