﻿
#robotImage {
    width: 300px; /* Adjust size as needed */
    animation: float 3s ease-in-out infinite, glow 4s ease-in-out infinite;
}
/* Glowing effect using your accent color */
@keyframes glow {
    0% {
        filter: drop-shadow(0 0 5px var(--accent-color));
    }

    50% {
        filter: drop-shadow(0 0 20px var(--accent-color));
    }

    100% {
        filter: drop-shadow(0 0 5px var(--accent-color));
    }
}
/* Bounce animation keyframes */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

/* On hover, apply the bounce animation */
#robotImage:hover {
    animation: bounce 1s;
}


/* Main robot container */
.robot {
    position: relative;
    width: 200px;
    height: 300px;
    margin: 0;
    padding: 20px;
    background-color: transparent;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #00c8ff;
    font-family: Arial, sans-serif;
    justify-content: center;
    align-items: center;
}

    /* Glowing blue light on top of the head */
    .robot::before {
        content: "";
        position: absolute;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 20px;
        background-color: #00c8ff;
        border-radius: 50%;
        box-shadow: 0 0 10px #00c8ff, 0 0 20px #00c8ff;
    }

/* Robot head container */
.robot-head {
    width: 80%;
    height: 100px;
    background-color: #315995;
    border-radius: 20px;
    border: solid 2px black;
    padding: 2px;
    box-shadow: -7px 0 0 #1e3a5f;
    animation: head-bob 2s infinite ease-in-out;
}

    .robot-head > div {
        border: solid 2px black;
        width: 100%;
        height: 100%;
        border-radius: 18px;
        background-color: #0a6caf;
        padding: 4px;
        margin: 0 auto;
    }

@keyframes head-bob {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


/* Face on the head */
.robot .robot-head .face {
    width: 100%;
    height: 100%;
    background-color: #17aad3;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    border: solid 2px aqua;
    justify-content: center;
    align-items: center;
}

    .robot .robot-head .face .eyes {
        display: flex;
        justify-content: space-between;
        width: 60px;
        margin-bottom: 5px;
    }

        .robot .robot-head .face .eyes div {
            width: 20px;
            height: 25px;
            margin: 3px;
            background-color: #0c1b2f;
            border-radius: 50%;
        }

@keyframes blink {
    0%, 90%, 100% {
        transform: scaleY(1);
    }

    95% {
        transform: scaleY(0.1);
    }
}

.robot .robot-head .face .eyes div {
    animation: blink 4s infinite;
}

.robot .robot-head .face .mouth {
    width: 20px;
    height: 10px;
    background-color: #0c1b2f;
    border-radius: 0 0 20px 20px;
}

@keyframes talk {
    0%, 100% {
        height: 10px;
    }

    20%, 60% {
        height: 10px;
    }

    30%, 70% {
        height: 15px;
    }

    40%, 80% {
        height: 5px;
    }

    50%, 90% {
        height: 15px;
    }
}

.face .eyebrows {
    display: none;
    /*    display: flex;*/
    justify-content: space-between;
    width: 60px;
    margin-bottom: 0px;
    margin-top: 8px;
    position: relative;
}

.face .eyebrow {
    width: 22px;
    height: 5px;
    background: #0c1b2f;
    border-radius: 10px 10px 0 0;
    margin: 0 2px;
    position: relative;
}

    .face .eyebrow.left {
        transform: rotate(-15deg) translateY(2px);
    }

    .face .eyebrow.right {
        transform: rotate(15deg) translateY(2px);
    }

.face .mouth {
    animation: talk 10s infinite;
}


/* Robot body container */
.robot-body {
    width: 80%;
    height: 100px;
    background-color: #315995;
    border-radius: 20px;
    border: solid 2px black;
    padding: 2px;
    transform: skewX(20deg) translateX(20px);
    z-index: 100;
    position: relative;
    animation: body-bob 2s infinite ease-in-out;
}

@keyframes body-bob {
    0%, 100% {
        transform: skewX(20deg) translateX(20px) translateY(0);
    }

    50% {
        transform: skewX(20deg) translateX(20px) translateY(-10px);
    }
}
.robot-body .case {
    width: 100%;
    height: 100%;
    background-color: #1e3a5f;
    border-radius: 20px;
    transform: translateX(-12px) translateY(12px);
    /*border: solid 2px aqua;*/
    z-index: 99;
    position: absolute;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
    .robot-body .screen {
        height: 100%;
        border-radius: 20px;
        border: solid 1px #00c8ff;
        padding: 5px;
        z-index: 100;
        position: absolute;
    }

        .robot-body .screen .text {
            font-size: 11px;
            border-left: solid 1px #00c8ff;
            border-bottom: solid 1px #00c8ff;
            line-height: 1.5;
            margin: 2%;
            height: 70%;
            color:aquamarine
        }

/* Simple graphical elements on the screen */
    .robot-body .graphs {
        margin: 1px;
        display: flex;
        justify-content: space-between;
        height: 25%;
        border-left: solid 1px #00c8ff;
        border-bottom: solid 1px #00c8ff;
        border-radius: 5px;
    }

    .robot-body .bar-chart,
    .robot-body .line-chart {
        width: 40%;
        height: 100%;
        padding:0;
        position:relative;
    }
.robot-body .bar-chart div {
    width: 15%;
    margin: 0;
    height: 100%;
    background-color: aquamarine;
    display: inline-block;
}
.robot-body .bar-chart div:nth-child(3n) {
        height:50%;
    }
    .robot-body .bar-chart div:nth-child(2n) {
    width: 1%;
    background-color: transparent;
}
        .robot-body .line-chart div {
            width: 45%;
            height: 2px;
            background-color: aquamarine;
            display: inline-block;
            position: absolute;
            left: 0;
            transform-origin: left;
        }
            .robot-body .line-chart div:first-child {
                transform: rotate(-45deg);
                margin-right: 60%;
                bottom: 20%;
            }
            .robot-body .line-chart div:nth-child(2) {
                transform: rotate(45deg);
                top: 0;
                margin-left: 30%;
                margin-right: 30%;
            }
            .robot-body .line-chart div:nth-child(3) {
                transform: rotate(-45deg);
                bottom: 30%;
                margin-left: 60%;
            }
    /* Robot arms */
.robot-arm {
    position: absolute;
    top: 50px;
    width: 80px;
    height: 80px;
    background-color: #315995;
    border: solid 3px #1e3a5f;
    display: flex;
    justify-content: center;
    align-items: center;
}

    /* Left arm (waving) with animation */
    .robot-arm.left {
        left: -40px;
        transform-origin: top right;
        animation: wave 2s infinite ease-in-out;
    }

    /* Right arm (static) */
    .robot-arm.right {
        right: -40px;
        border-radius: 0 0 50% 60%;
        z-index: 79;
    }
        .robot-arm.right div:nth-child(1) {
            content: "";
            display: block;
            width: 40px;
            height: 65px;
            background-color: white;
            position: absolute;
            top: -5px;
            left: -5px;
            border-radius: 0 0 0 50%;
            z-index: 80;
            transform:skewX(10deg)
        }
        .robot-arm.right div:nth-child(2) {
            content: "";
            display: block;
            width: 40px;
            height: 65px;
            border-radius: 0 0 50% 30%;
            background-color: white;
            position: absolute;
            top: -5px;
            left: 20px;
            z-index: 80;
        }
            .robot-hand {
    width: 30px;
    height: 30px;
    background-color: #00c8ff;
    border-radius: 50%;
}

/* Wave animation for the left arm */
@keyframes wave {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-20deg);
    }

    100% {
        transform: rotate(0deg);
    }
}
