@keyframes slideInLeft {
    from {
        transform: translateX(-300px);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {

        transform: translateY(300px);
    }

    to {

        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        transform: scale(0);
    }

    90% {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

@keyframes pulsing {
    from {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    } 
}

@keyframes blink {
    50% {
        opacity: 1;
    }
}

@keyframes wave {
    0% {
        transform: translateY(-1rem) ;
        background: rgba(255, 255, 255, 1);
    }
    25% {
        transform: translateY(-2rem) scale(1.3);
        background: rgba(226, 207, 1, 1);
    }
    50% {
        transform: translateY(-1rem) scale(1) ;
        background: rgb(255, 255, 255);
    }
    75% {
        transform: translateY(-2rem) scale(1.3);
        background: rgba(253, 218, 13, 1);
    }
    100% {
        transform: translateY(-1rem);
        
        background: rgba(255, 255, 255, 1);
    }
}


.slideInAnimation {
    animation: slideInLeft 1s ease-in;
}

.slideUpAnimation {
    animation: slideUp 1s ease-in;
}

.popInAnimation {
    animation: popIn 1s ease-in-out;
}




.my-center {
    display: flex;
    justify-content: center;
}

section {
    display: block;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}



/* CSS */
.button-54 {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    color: #000;
    cursor: pointer;
    border: 3px solid;
    padding: 0.25em 0.5em;
    box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px 0px, 5px 5px 0px 0px;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-54:active {
    box-shadow: 0px 0px 0px 0px;
    top: 5px;
    left: 5px;
}

@media (min-width: 768px) {
    .button-54 {
        padding: 0.25em 0.75em;
    }
}

body {
    font-family: 'Fira Code', monospace;
}

#chatbox {
    display: block;
    border: none;
    border-width: thick;
    border-radius: 20px;
}

.audio-record-ai {

    border-radius: 15px;
    height: fit-content;
    margin: 20px;
    margin-left: 25px;
    margin-right: 25px;

    background-color: #000;
    color: white;
}

.audio-record-user {

    border-radius: 15px;
    height: fit-content;
    margin: 20px;
    margin-left: 25px;
    margin-right: 25px;
    background-color: white;
    color: black;
}


#ai-sub {
    margin: 5px;
    padding: 5px;
}

#user-sub{
    margin: 5px;
    padding: 5px;
    text-align: right;
    font-weight: bold;
}

#user {
    align-self: end;
}

#ai-control {
    margin-top: 20px;
    margin-left: 30px
}

.recordButton {
    background: url(/img/mic-default.png) no-repeat;
    background-size: cover;
    width: 100px;
    height: 100px;
    border: none;
    margin: 10px;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(#5a99d4, .5);
    animation: pulsing 2s ease-in-out 0s infinite;
    align-self: center;
    justify-self: center;
}

.recordButton:active {
    background: url(img/mic-pressed.png) no-repeat;
    background-size: cover;
    width: 100px;
    height: 100px;
    border: none;
}

.recordButton:hover {
    animation: none;
}

#mic-select{
    max-width: 90px;
}

#lang-select{
    max-width: 140px;
}

#typingText{
    position: fixed;
    top: 50%;
    left: 50%;
    /* bring your own prefixes */
    transform: translate(-50%, -50%);
    width: 90%
}

.footer{
    display: flex;
    flex-direction: column;
    flex: 1;
    flex-grow: 1;
    justify-content: flex-end;
    margin-bottom:100px
}

#outer {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dot {
    border-radius: 9999px;
    height: 0.5rem;
    width: 0.5rem;
    background-color: white;
    animation: wave 10s infinite;
    opacity: 1;
}
.dot:nth-child(1) {
    animation-delay: 0.5s;
}
.dot:nth-child(2) {
    animation-delay: 0.6s;
}
.dot:nth-child(3) {
    animation-delay: 0.8s;
}
.dot:nth-child(4) {
    animation-delay: 1s;
}
.dot:nth-child(5) {
    animation-delay: 1.2s;
}


.text-bubble {
    align-items: center;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}