﻿.voice-search {
    color: var(--maincolor);
    position: absolute;
    right: 50px;
    top: 10px;
    padding: 2px;
    font-size: 20px;
    border: none;
    background: transparent;
}


.hidden-rec {
    display: none;
}

.open-rec {
    display: flex;
}

#recording-container {
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#stop-recording {
    background-color: transparent;
    color: white;
    font-size: 40px;
    cursor: pointer;
    position: absolute;
    right: 30px;
    top: 15px;
}

.circle-wrapper {
    position: relative;
    height: 100%;
}

#circle {
    width: 100px;
    height: 100px;
    background-color: #0d6efd;
    border-radius: 50%;
    transition: transform 0.1s;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
}

#inner-circle {
    width: 100px;
    height: 100px;
    background-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 99999999999999;
    transform: translate(-50%, -50%);
}

.circle-microphone {
    font-size: 50px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #0d6efd;
}

.grid-container {
    height: 100%;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, auto);
    align-content: center;
    justify-content: space-between;
    max-width: 730px;
    margin: 0 auto;
}

.text-container {
    color: white;
    font-size: 32px;
    overflow: hidden; /* Ensures the content is not revealed until the animation */
    white-space: nowrap; /* Keeps the content on a single line */
    margin: 0 auto; /* Gives that scrolling effect as the typing happens */
    animation: typing 0.3s steps(30, end), 0.5s step-end infinite;
}


@media(max-width:900px) {
    .grid-container {
        grid-template-columns: repeat(1, 100%);
        align-content: space-evenly;
    }
}


@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}