/* PBot.css */
#guide-container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    position: fixed;
    top: 60px;
    right: 20px;
    transform: none;
    transition: all 0.5s ease;
    z-index: 1000;
}

.bot {
    width: 110px;
    height: 110px;
    background: linear-gradient(145deg, #5a8cc0, #243b5e);
    /* Brighter metallic blue */
    border-radius: 20% / 15%;
    /* Gives more of a robot head shape */
    position: relative;
    margin-right: 20px;
    animation: bounceBot 1.6s ease-in-out infinite;
    flex-shrink: 0;

    /* Enhanced lighting and shadowing */
    box-shadow:
        inset -2px -2px 5px rgba(255, 255, 255, 0.2),
        inset 2px 2px 4px rgba(0, 0, 0, 0.25),
        4px 4px 12px rgba(0, 0, 0, 0.4);

    /* Slight 3D tilt for a "character" feel */
    transform: perspective(500px) rotateX(5deg) rotateY(-3deg);
    transition: transform 0.3s ease-in-out;
}

.bot::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 30px;
    background: #555;
}

.bot::after {
    content: '';
    position: absolute;
    top: -38px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: red;
    border-radius: 50%;
    box-shadow: 0 0 6px red;
}

.ear-left,
.ear-right {
    width: 15px;
    height: 15px;
    background: #666;
    border-radius: 50%;
    position: absolute;
    top: 40%;
}

.ear-left {
    left: -10px;
}

.ear-right {
    right: -10px;
}

.bot-eye {
    position: absolute;
    top: 30%;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #cccccc);
    border-radius: 50%;
    animation: blink 4s infinite;
    box-shadow: inset -1px -1px 3px rgba(0, 0, 0, 0.4);
}

.eye-left {
    left: 20%;
}

.eye-right {
    right: 20%;
}

@keyframes blink {

    0%,
    97%,
    100% {
        height: 15px;
    }

    98%,
    99% {
        height: 2px;
    }
}

.bot-mouth {
    position: absolute;
    bottom: 20%;
    left: 50%;
    width: 40px;
    height: 10px;
    margin-left: -20px;
    background: linear-gradient(to bottom, white, #ccc);
    border-radius: 50%;
    transform-origin: center center;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.4), inset 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.bot-mouth.talking {
    animation: talk 0.5s infinite ease-in-out;
}

@keyframes talk {
    0% {
        transform: scale(1, 1);
    }

    25% {
        transform: scale(1.1, 1.4);
    }

    50% {
        transform: scale(1.05, 1.1);
    }

    75% {
        transform: scale(1.15, 1.3);
    }

    100% {
        transform: scale(1, 1);
    }
}

.bot-hand {
    width: 20px;
    height: 40px;
    background: linear-gradient(to bottom, #d0d0d0, #888888);
    border-radius: 50% 50% 10px 10px;
    position: absolute;
    top: 10%;
    left: -20px;
    transform-origin: top center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

    animation:
        wave 2s infinite ease-in-out,
        handBounce 2s infinite ease-in-out;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(20deg);
    }

    40% {
        transform: rotate(-15deg);
    }

    60% {
        transform: rotate(15deg);
    }

    80% {
        transform: rotate(-10deg);
    }

    90% {
        transform: rotate(10deg);
    }
}

@keyframes handBounce {

    0%,
    100% {
        top: 10%;
    }

    50% {
        top: 9%;
    }
}

.speech-bubble {
    background: rgba(255, 255, 255, 0.95);
    /* Subtle transparency */
    border: 3px solid #4f79a8;
    padding: 15px 20px;
    border-radius: 20px;
    position: relative;
    max-width: 420px;
    font-family: "Segoe UI", sans-serif;
    font-size: 16px;
    color: #333;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    animation: pulse 2.5s ease-in-out infinite;
    transition: transform 0.2s ease-in-out;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    top: 24px;
    left: -18px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right-color: #ffffff;
    z-index: 1;
    filter: drop-shadow(-2px 2px 1px rgba(0, 0, 0, 0.1));
    animation: tail-move 1.2s ease-in-out infinite alternate;
}

@keyframes tail-move {
    0% {
        top: 18px;
    }

    100% {
        top: 22px;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes tail-move {
    0% {
        top: 22px;
    }

    100% {
        top: 26px;
    }
}


button {
    margin-top: 15px;
    padding: 8px 16px;
    border: none;
    background-color: #4f79a8;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #243b5e;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px 2px #ff0000;
    }

    50% {
        box-shadow: 0 0 10px 4px #ff0000;
    }

    100% {
        box-shadow: 0 0 5px 2px #ff0000;
    }
}

.glow {
    animation: glow 1.5s infinite;
    border-color: #ff0000;
}