/* Reset and base */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background: #111;
    color: #fff;
    overflow: hidden; /* prevent scroll */
}

/* Fullscreen particles background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Center container */
.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    z-index: 1;
}

/* Floating card */
.floating-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center; /* center title/input/button */
    background: rgba(20, 20, 20, 0.85);
    border-radius: 16px;
    padding: 32px 40px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.7);
    min-width: 360px;
    max-width: 500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* smooth hover effect */
}

/* Hover grow effect */
.floating-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0,0,0,0.85);
}

/* Title */
.floating-card .title {
    margin: 0 0 16px;
    font-size: 1.8rem;
    text-align: center;
    color: #00ffff;
}

/* Inputs and button */
.floating-card input, .floating-card button {
    margin-top: 8px;
    padding: 10px 14px;
    font-size: 1em;
    border-radius: 8px;
    border: none;
    outline: none;
    width: 100%; /* full width of card */
    box-sizing: border-box;
}

.floating-card input {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
}

.floating-card input::placeholder {
    color: #888;
}

.floating-card button {
    background: linear-gradient(135deg, #00ffff,#ff00ff);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.floating-card button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Bubble UI */
.bubble {
    display: flex;
    align-items: center;
    position: absolute;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.bubble span { font-weight: bold; margin-right: 6px; }
.bubble.info { background-color: #3498db; color: #fff; }
.bubble.error { background-color: #e74c3c; color: #fff; }
.bubble.eta { background-color: #2ecc71; color: #fff; }

.bubble::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid;
}

.bubble.info::after { border-bottom-color: #3498db; }
.bubble.error::after { border-bottom-color: #e74c3c; }
.bubble.eta::after { border-bottom-color: #2ecc71; }

#request-button.shifted {
    margin-top: 55px;
    transition: margin-top 0.3s ease;
}
