/*--------------------------------------------------------------
# Search Box
--------------------------------------------------------------*/
.search-container {
    position: relative;
}

#search-input {
    padding: 11px 16px;
    border-top: 1px solid #dfe1e5;
    border-right: 1px solid #dfe1e5;
    border-bottom: 1px solid #dfe1e5;
    border-left: 1px solid #dfe1e5;
    line-height: 22px;
    color: rgba(0, 0, 0, .87);
    word-wrap: break-word;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
    border-radius: 24px;
    border: 1px solid #dfe1e5;
    width: auto;
    /* max-width: 584px; */
    position: relative;
    z-index: 1;
}

.suggestion-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 6px rgba(32, 33, 36, .28);
    border: 0;
    padding-bottom: 4px;
    z-index: 2;
}

#search-input.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 2px 8px 1px rgba(64, 60, 67, .24);
    border-color: transparent;
    border-bottom: 0;
    border: 0;
}

.search-divider {
    border-top: 1px solid #e8eaed;
    margin: 0 20px 0 14px;
    padding-bottom: 4px;
}

.suggestion-box__list {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.suggestion-box__item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    cursor: default;
    -webkit-user-select: none;
}

.suggestion-box__item:hover {
    border-radius: 4px;
    background: #f3f5f6;
}

.suggestion-box__item-container {
    flex: auto;
    display: flex;
    align-items: center;
    margin: 0 20px 0 14px;
}

.suggestion-box__item-container .suggestion-box__item-img {
    display: flex;
    align-items: center;
    background: center / contain no-repeat;
    border-radius: 4px;
    min-height: 32px;
    min-width: 32px;
    margin: 4px 7px 4px -5px;
}

.suggestion-box__item-container .suggestion-box__item-title {
    display: flex;
    font-size: 16px;
    color: #212121;
    flex: auto;
    align-items: center;
    word-break: break-word;
    padding-right: 8px;
    line-height: 18px;
}

.suggestion-box__item-container .suggestion-box__item-title .suggestion-box__item-title-text {
    line-height: 18px;
    flex: auto;
    text-align: left;
}

.suggestion-box__item-container .suggestion-box__item-subtitle {
    line-height: 12px;
    font-size: 13px;
    color: #70757a;
    margin-top: 2px;
    padding-right: 8px;
}

.suggestion-box__item-container .suggestion-box__item-subtitle .suggestion-box__item-subtitle-text {
    line-height: 12px;
    font-size: 13px;
    color: #70757a;
    margin-top: 2px;
    float: left;
}


.suggestion-box__item-icon {
    display: flex;
    align-items: center;
    margin: 0 13px 0 1px;
    background: url(/assets/img/icons/searchbox-sprites.webp) no-repeat 0 0;
    background-size: 20px;
    min-height: 20px;
    min-width: 20px;
    height: 20px;
    width: 20px;
}

.suggestion-box__item-text {
    display: flex;
    flex: auto;
    flex-direction: column;
    min-width: 0;
    padding: 6px 0;
}

.suggestion-box__item-text-content {
    display: flex;
    font-size: 16px;
    color: #212121;
    flex: auto;
    align-items: center;
    word-break: break-word;
    padding-right: 8px;
}

.suggestion-box__buttons {
    text-align: left;
    z-index: 3;
    cursor: default;
    -webkit-user-select: none;
    width: 100%;
    margin-top: -1px;
    height: 70px;
}

.suggestion-box__buttons-container {
    display: block;
    text-align: -webkit-center;
    unicode-bidi: isolate;
}

.suggestion-box__button {
    background-color: #f8f9fa;
    border: 1px solid #f8f9fa;
    border-radius: 4px;
    color: #3c4043;
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin: 11px 4px;
    padding: 0 16px;
    line-height: 27px;
    height: 36px;
    min-width: 54px;
    text-align: center;
    cursor: pointer;
    user-select: none;

    appearance: auto;
    box-sizing: border-box;
}

.suggestion-box__button:hover {
    box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
    background-color: #f8f9fa;
    border: 1px solid #dadce0;
    color: #202124;
}

/*--------------------------------------------------------------
# Mobile Search Box
--------------------------------------------------------------*/
.mobile-search {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #fff;
    z-index: 989;
    border-radius: 0;
    overflow: auto;
}

.mobile-search__header {
    display: flex;
    border-radius: 20px;
    background: #fff;
    border: none;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    height: auto;
    border-bottom: none;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.mobile-search__header .mobile-search__back-button {
    outline: none;
    background: none;
    border: none;
    margin-left: 6px;
    padding: 0 12px;
    flex: 0 0 auto;
    height: 48px;
}

.mobile-search__header .mobile-search__back-button .mobile-search__back-icon {
    color: #1a73e8;
    height: 24px;
}

.mobile-search__header .mobile-search__back-button .mobile-search__back-icon span {
    display: inline-block;
    fill: currentColor;
    height: 24px;
    line-height: 24px;
    position: relative;
    width: 24px;
}

.mobile-search__header .mobile-search__back-button .mobile-search__back-icon span svg {
    display: block;
    height: 100%;
    width: 100%;
}

.mobile-search__header .mobile-search__input-container {
    unicode-bidi: isolate;
    flex: 1;
    display: flex;
    padding: 12px 0;
}

.mobile-search__header .mobile-search__input-container .mobile-search__input-wrapper {
    display: grid;
    flex: 1;
    font-family: Roboto, Helvetica Neue, Arial, sans-serif;
    font-size: 10pt;
}

.mobile-search__header .mobile-search__input-container .mobile-search__input-wrapper .mobile-search__input {
    background: none;
    margin: 0;
    padding: 0;
    border: none;
    font-size: 18px;
    font-family: Roboto, Helvetica Neue, Arial, sans-serif;
    color: #202124;
    word-wrap: break-word;
    outline: none;
    display: flex;
    flex: 1;
    -webkit-tap-highlight-color: transparent;
    width: 100%;
    max-height: 144px;
    resize: none;
    overflow: hidden;
    grid-area: 1 / 1 / 2 / 2;
    box-sizing: border-box;
    line-height: 24px;
    overflow-y: auto;
    white-space: normal;
}

.mobile-search__header .mobile-search__input-container .mobile-search__input-wrapper .mobile-search__input-before {
    background: none;
    margin: 0;
    padding: 0;
    border: none;
    font-size: 18px;
    font-family: Roboto, Helvetica Neue, Arial, sans-serif;
    color: #202124;
    outline: none;
    display: flex;
    flex: 1;
    -webkit-tap-highlight-color: transparent;
    width: 100%;
    max-height: 144px;
    resize: none;
    overflow: hidden;
    grid-area: 1 / 1 / 2 / 2;
    box-sizing: border-box;
    visibility: hidden;
    line-height: 24px;
    overflow-y: auto;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.mobile-search__header .mobile-search__action-icons {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    margin-right: 6px;
    height: 48px;
}

.mobile-search__header .mobile-search__action-icons .mobile-search__clear-button {
    display: flex;
    align-items: center;
    flex: 1;
    color: #70757a;
    cursor: pointer;
    padding: 0 12px;
    margin: 0;
    border: 0;
    background: transparent;
}

.mobile-search__header .mobile-search__action-icons .mobile-search__clear-button span {
    display: inline-block;
    fill: currentColor;
    height: 24px;
    line-height: 24px;
    position: relative;
    width: 24px;
}

.mobile-search__header .mobile-search__action-icons .mobile-search__clear-button span svg {
    display: block;
    height: 100%;
    width: 100%;
}

.mobile-search__header .mobile-search__action-icons .mobile-search__voice-search {
    flex: 1;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0 12px;
}

.mobile-search__header .mobile-search__action-icons .mobile-search__voice-search svg {
    height: 24px;
    width: 24px;
    vertical-align: middle;
}

.mobile-search__header .mobile-search__action-icons .mobile-search__camera-search {
    display: flex;
}

.mobile-search__header .mobile-search__action-icons .mobile-search__camera-search .mobile-search__camera-link {
    display: flex;
    align-items: center;
    flex: 1;
    cursor: pointer;
    border: 0;
    background: transparent;
    padding: 0 12px;
}

.mobile-search__header .mobile-search__action-icons .mobile-search__camera-search .mobile-search__camera-link svg {
    height: 24px;
    width: 24px;
    vertical-align: middle;
}

.mobile-search .mobile-search__suggestions {
    background: #fff;
    position: relative;
    text-align: left;
    border-radius: 0;
    z-index: 0;
    overflow-x: hidden;
    cursor: default;
    border: none;
    margin: 0 6px 0 10px;
    border-top: 1px solid #dadce0;
}

.mobile-search .mobile-search__suggestions .mobile-search__suggestion-box {
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.mobile-search .mobile-search__suggestions .mobile-search__suggestion-box .mobile-search__suggestion-presentation {
    padding: 0;
    margin: 0;
}

.mobile-search .mobile-search__suggestions .mobile-search__suggestion-box .mobile-search__suggestion-presentation .mobile-search__suggestion-list {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-search .mobile-search__suggestions .mobile-search__suggestion-item {
    padding: 0;
    display: flex;
    align-items: center;
    min-width: 0;
}

.mobile-search .mobile-search__suggestions .mobile-search__suggestion-item .mobile-search__suggestion-item-container {
    display: flex;
    flex: auto;
    align-items: center;
    min-width: 0;
}

.mobile-search .mobile-search__suggestions .mobile-search__suggestion-item-container .mobile-search__suggestion-icon {
    background: url(/assets/img/icons/searchbox-sprites.webp) no-repeat 0 0;
    background-size: 24px;
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    margin: 12px;
    margin-left: 8px;
}

.mobile-search .mobile-search__suggestions .mobile-search__suggestion-item-container .mobile-search__suggestion-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    margin: 5px 0 5px 0;
}

.mobile-search .mobile-search__suggestions .mobile-search__suggestion-item-container .mobile-search__suggestion-text .mobile-search__suggestion-text-wrapper {
    display: flex;
    font-size: 16px;
    line-height: 22px;
    flex: 1;
    align-items: center;
    word-break: break-word;
}

.mobile-search .mobile-search__suggestions .mobile-search__suggestion-item-container .mobile-search__suggestion-text .mobile-search__suggestion-text-wrapper .mobile-search__suggestion-text-content {
    display: flex;
    font-size: 16px;
    line-height: 22px;
    flex: 1;
    align-items: center;
    word-break: break-word;
    flex: 1;
    font-weight: normal;
    color: #202124;
}

.mobile-search__suggestion-item .mobile-search__suggestion-box__item-text-group {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    margin: 5px 0 5px 0;
}

.mobile-search__suggestion-item .mobile-search__suggestion-box__item-text-group .mobile-search__suggestion-box__item-title {
    display: flex;
    font-size: 16px;
    line-height: 22px;
    flex: 1;
    align-items: center;
    word-break: break-word;
}

.mobile-search__suggestion-item .mobile-search__suggestion-box__item-text-group .mobile-search__suggestion-box__item-title .mobile-search__suggestion-box__item-title-text {
    flex: 1;
    font-weight: normal;
    color: #202124;
}

.mobile-search__suggestion-item .mobile-search__suggestion-box__item-text-group .mobile-search__suggestion-box__item-subtitle {
    display: flex;
    font-size: 12px;
    color: #767676;
    flex: 1;
    align-items: center;
}

.mobile-search__suggestion-item .mobile-search__suggestion-box__item-text-group .mobile-search__suggestion-box__item-subtitle .mobile-search__suggestion-box__item-subtitle-text {
    white-space: nowrap;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-search__suggestion-item .mobile-search__suggestion-box__item-img {
    background-size: contain;
    height: 36px;
    width: 36px;
    border-radius: 4px;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 6px;
}

/*--------------------------------------------------------------
# Thinking Overlay
--------------------------------------------------------------*/
/* Zamagljena pozadina i pozicioniranje overlay-a */
.thinking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    /* Suptilna bela sa 60% transparentnosti */
    backdrop-filter: blur(3px);
    /* Blago zamagljenje */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    /* Uvek iznad ostalih elemenata */
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Stil za bazu animacije */
.base {
    display: flex;
    align-items: center;
    justify-content: center;
}

.base .circ {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    position: absolute;
    transform-style: preserve-3d;
    border: 1.9px solid;
    border-top-color: rgba(220, 128, 109, 0.5);
    border-bottom-color: rgba(151, 93, 193, 0.5);
    border-left-color: rgba(151, 93, 193, 0.5);
    border-right-color: rgba(220, 128, 109, 0.5);
    opacity: 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    /* Suptilna svetla senka */
}


.base .circ.circ-1 {
    transform: rotate3d(0, 1, 0, 24deg);
    animation: rotate 2s linear infinite;
    animation-delay: 0.1333333333s;
}

.base .circ.circ-2 {
    transform: rotate3d(0, 1, 0, 48deg);
    animation: rotate 2s linear infinite;
    animation-delay: 0.2666666667s;
}

.base .circ.circ-3 {
    transform: rotate3d(0, 1, 0, 72deg);
    animation: rotate 2s linear infinite;
    animation-delay: 0.4s;
}

.base .circ.circ-4 {
    transform: rotate3d(0, 1, 0, 96deg);
    animation: rotate 2s linear infinite;
    animation-delay: 0.5333333333s;
}

.base .circ.circ-5 {
    transform: rotate3d(0, 1, 0, 120deg);
    animation: rotate 2s linear infinite;
    animation-delay: 0.6666666667s;
}

.base .circ.circ-6 {
    transform: rotate3d(0, 1, 0, 144deg);
    animation: rotate 2s linear infinite;
    animation-delay: 0.8s;
}

.base .circ.circ-7 {
    transform: rotate3d(0, 1, 0, 168deg);
    animation: rotate 2s linear infinite;
    animation-delay: 0.9333333333s;
}

.base .circ.circ-8 {
    transform: rotate3d(1, 0, 0, 192deg);
    animation: rotate-2 3s linear infinite;
    animation-delay: 1.0666666667s;
}

.base .circ.circ-9 {
    transform: rotate3d(1, 0, 0, 216deg);
    animation: rotate-2 3s linear infinite;
    animation-delay: 1.2s;
}

.base .circ.circ-10 {
    transform: rotate3d(1, 0, 0, 240deg);
    animation: rotate-2 3s linear infinite;
    animation-delay: 1.3333333333s;
}

.base .circ.circ-11 {
    transform: rotate3d(1, 0, 0, 264deg);
    animation: rotate-2 3s linear infinite;
    animation-delay: 1.4666666667s;
}

.base .circ.circ-12 {
    transform: rotate3d(1, 0, 0, 288deg);
    animation: rotate-2 3s linear infinite;
    animation-delay: 1.6s;
}

.base .circ.circ-13 {
    transform: rotate3d(1, 0, 0, 312deg);
    animation: rotate-2 3s linear infinite;
    animation-delay: 1.7333333333s;
}

.base .circ.circ-14 {
    transform: rotate3d(1, 0, 0, 336deg);
    animation: rotate-2 3s linear infinite;
    animation-delay: 1.8666666667s;
}

.base .circ.circ-15 {
    transform: rotate3d(1, 0, 0, 360deg);
    animation: rotate-2 3s linear infinite;
    animation-delay: 2s;
}

@keyframes rotate {
    from {
        opacity: 1;
        transform: rotate3d(0, 1, 1, 360deg);
    }

    to {
        transform: rotate3d(0, 1, 1, 0deg);
        opacity: 1;
    }
}

@keyframes rotate-2 {
    from {
        opacity: 1;
        transform: rotate3d(1, 0, 1, 0deg);
    }

    to {
        opacity: 1;
        transform: rotate3d(1, 0, 1, 360deg);
    }
}

/*--------------------------------------------------------------
# Search Modal
--------------------------------------------------------------*/
.search-modal--material .search-modal__content {
    background-color: #ffffff;
    color: rgba(0, 0, 0, 0.87);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
    border: none;
    border-radius: 8px;
    position: relative;
    /* omogućava apsolutno pozicioniranje unutar */
}

/* HEADER */
.search-modal--material .search-modal__header {
    position: relative;
    /* neophodno za .search-modal__close-btn */
    padding: 1rem 1.5rem;
    border-bottom: none;
    /* uklanja Bootstrap liniju, ako je bila */
}

.search-modal--material .search-modal__title {
    font-weight: 500;
    font-size: 1.25rem;
    margin: 0;
    color: rgba(0, 0, 0, 0.87);
}


/* BODY */
.search-modal--material .search-modal__body {
    padding: 1.5rem;
}

.search-modal--material .search-modal__image-wrapper {
    text-align: center;
    margin-bottom: 1rem;
}

.search-modal--material .search-modal__image {
    max-height: 400px;
    border-radius: 4px;
}

.search-modal--material .search-modal__description {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.54);
    margin-bottom: 1rem;
}

/* FOOTER */
.search-modal--material .search-modal__footer {
    padding: 0.75rem 1.5rem;
    border-top: none;
    display: flex;
    justify-content: flex-end;
}

.search-modal--material .search-modal__footer .search-modal__close-action {
    background: none;
    border: none;
    color: #6200ee;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
}

.search-modal--material .search-modal__footer .search-modal__close-action:hover {
    background-color: rgba(98, 0, 238, 0.08);
}

.search-modal--material .search-modal__footer .search-modal__close-action:focus,
.search-modal--material .search-modal__footer .search-modal__close-action:active {
    outline: none;
    background-color: rgba(98, 0, 238, 0.16);
}

/*********************************************************
# Speech Dialog – Responsive + Bootstrap Example
*********************************************************/

/*=== DIALOG sam po sebi ===*/
.speech-dialog {
    background: transparent;
    border: none;
}

/*=== OSNOVNI KONTEJNER (.speech) ===*/
.speech {
    /* Pozadina, npr. tamno-siva */
    background: #1f1f1f;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    z-index: 10000;
    text-align: left;

    /* Transicije za prikaz/sakrivanje dijaloga */
    transition:
        visibility 0s linear 0.218s,
        background-color 0.218s,
        opacity 0.218s;
}

/* Klasa za aktivno prikazivanje */
.speech {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    /* uklanja kašnjenje */
}

/*=== DUGME ZA ZATVARANJE ===*/
.speech__close-btn {
    background: none;
    border: none;
    color: #9e9e9e;
    cursor: pointer;
    font-size: 26px;

    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;

    line-height: 15px;
    opacity: 0.6;
    margin: -1px -1px 0 0;
    padding: 0 0 2px 0;
    height: 48px;
    width: 48px;
}

.speech__close-btn:hover {
    opacity: 0.8;
}

.speech__close-btn:active {
    opacity: 1;
}

/*=== SADRŽAJ / OMOTAČ ===*/
.speech__content {
    /* 
          Sada ćemo iskoristiti .container-fluid, .row i .col-12 
          za centriranje. 
          Ovde ostavimo minimalno, jer je Bootstrap 'radi posao'. 
        */
    pointer-events: none;
    /* Onemogućili klik svuda osim na dugme */
    position: relative;
}

.speech__inner {
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
    transition: opacity 0.318s ease-in;
}

.speech .speech__inner {
    opacity: 1;
    transition: opacity 0s;
}

/*=== KONTEJNER DUGMETA (mikrofon) ===*/
.speech__button-container {
    pointer-events: none;
    position: relative;
    width: 165px;
    height: 165px;

    /* Prvobitno Google: top: -70px; right: -70px;
           Sada ga centriramo preko Bootstrapa, 
           tako da ne treba "float" i "offset". */
    margin: 0;

    transform: scale(0.1);
    transition: transform 0.218s, opacity 0.218s ease-in;
}

.speech .speech__button-container {
    transform: scale(1);
}

/*=== EFEKAT PULSA OKO DUGMETA ===*/
.speech__pulse {
    position: absolute;
    left: -69px;
    top: -69px;
    width: 301px;
    height: 301px;
    background-color: #dadce0;
    border-radius: 50%;
    pointer-events: none;
    transform: scale(0.01);
    opacity: 1;
    transition: opacity 0.218s;
    display: inline-block;
    animation: none;
}

.speech.speech--active .speech__pulse {
    animation: speechPulse 1.5s ease-out infinite;
}

/*=== SAMO DUGME (mikrofon dugme) ===*/
.speech__button {
    background-color: #fff;
    border: 1px solid #f8f9fa;
    border-radius: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    cursor: pointer;

    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    opacity: 0;
    pointer-events: none;
    transition:
        background-color 0.218s,
        border 0.218s,
        box-shadow 0.218s;
}

.speech .speech__button {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/*=== MIKROFON (ikonica) ===*/
.speech__microphone {
    position: absolute;
    left: 43px;
    top: 47px;
    width: 42px;
    height: 87px;
    pointer-events: none;
    transform: scale(1);
}

.speech__receiver {
    position: absolute;
    left: 25px;
    background-color: #999;
    width: 24px;
    height: 46px;
    border-radius: 30px;
    pointer-events: none;
}

.speech.speech--active .speech__receiver {
    background-color: #f44;
}

.speech__wrapper {
    position: absolute;
    bottom: 0;
    left: 11px;
    width: 52px;
    height: 53px;
    overflow: hidden;
    pointer-events: none;
}

.speech__stem {
    position: absolute;
    left: 22px;
    bottom: 14px;
    width: 9px;
    height: 14px;
    background-color: #999;
    pointer-events: none;
    z-index: 1;
}

.speech.speech--active .speech__stem {
    background-color: #f44;
}

.speech__shell {
    position: absolute;
    left: 0;
    bottom: 27px;
    width: 38px;
    height: 57px;
    border: 7px solid #999;
    border-radius: 28px;
    pointer-events: none;
    z-index: 0;
    box-sizing: content-box;
    /* da border ne utiče na dimenzije */
}

.speech.speech--active .speech__shell {
    border-color: #f44;
}

/*=== TEKSTUALNI DEO ===*/
.speech__text-container {
    pointer-events: none;
    position: absolute;
    margin-top: 1rem;
    text-align: center;
    /* Centriran tekst ispod mikrofona */
    width: 100%;
}

.speech__text {
    font-size: 32px;
    font-weight: normal;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
    transition:
        opacity 0.1s ease-in,
        margin-left 0.5s ease-in,
        top 0s linear 0.218s;
    color: #fff;
}

.speech .speech__text {
    opacity: 1;
    transition:
        opacity 0.5s ease-out,
        margin-left 0.5s ease-out;
}

.speech__final-text {
    font-size: 32px;
    line-height: 1.2;
    color: #bdc1c6;
    text-align: center;
    font-weight: normal;
    display: block;
    margin-top: 0.5rem;
}

/*=== TRAKA ZA DOZVOLU (opciono) ===*/
.speech__permission-bar {
    position: absolute;
    width: 500px;
    margin-top: -100px;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.218s ease-in,
        margin-top 0.4s ease-in;
}

.speech .speech__permission-bar {
    margin-top: -300px;
    opacity: 1;
    transition:
        opacity 0.5s ease-out 0.218s,
        margin-top 0.218s ease-out 0.218s;
}

.speech__permission-bar-gradient {
    position: fixed;
    top: -80px;
    left: 0;
    right: 0;
    height: 80px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 1px 0px #4285f4;
    transition:
        opacity 0.218s,
        box-shadow 0.218s;
}

.speech .speech__permission-bar-gradient {
    opacity: 1;
    box-shadow: 0 1px 80px #4285f4;
    animation: allow-alert .75s 0 infinite;
    animation-direction: alternate;
    animation-timing-function: ease-out;
}

@-webkit-keyframes allow-alert {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.35;
    }
}

@keyframes speechPulse {
    0% {
        transform: scale(0.01);
        opacity: 1;
    }

    70% {
        transform: scale(1);
        opacity: 0.05;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/*********************************************************
# PRIMER MEDIA QUERIES ZA MANJE EKRANE (ispod 576px)
*********************************************************/
@media (max-width: 576px) {
    .speech__button-container {
        width: 120px;
        height: 120px;
    }

    .speech__pulse {
        width: 200px;
        height: 200px;
        left: -40px;
        top: -40px;
    }

    .speech__microphone {
        left: 25px;
        top: 25px;
        transform: scale(0.9);
    }

    .speech__text {
        font-size: 24px;
    }

    .speech__final-text {
        font-size: 24px;
    }
}