@import url('https://fonts.googleapis.com/css?family=Knewave');

.okvir {
    text-align: center;
}

p {
    position: relative;
    margin: 0;
    padding: 0;
    top: 10vh;
    font-size: 2vh;
    font-weight: bold;
    font-style: italic;
}

.element {
    position: relative;
    margin: 0;
    padding: 0;    
    width: 100vw;
    height: auto;
    top: 4vh;
    font-style: italic;
    font-family: 'Knewave', cursive;
    font-size: 14vh;
    color: rgba(0, 176, 255, 1);
    text-shadow: 0.3vh 0.3vh 0.3vh black, 0.3vh 0.3vh 0.3vh white;
    text-align: center;
    font-weight: bolder;
    white-space: nowrap;
}

.element:hover {
    text-align: center;
    animation-name: narrow;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-delay: 0;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    animation-fill-mode: none;
    animation-play-state: running;
    display: inline-block;
    white-space: nowrap;
}

@keyframes narrow {
    0% {
        transform: scale(1);
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
    }

    25% {
        transform: scale(0.75);
        -webkit-transform: scale(0.75);
        -moz-transform: scale(0.75);
        -ms-transform: scale(0.75);
        -o-transform: scale(0.75);
        opacity: 0.7;
    }

    50% {
        transform: scale(0.5);
        -webkit-transform: scale(0.5);
        -moz-transform: scale(0.5);
        -ms-transform: scale(0.5);
        -o-transform: scale(0.5);
        opacity: 0.5;
    }

    75% {
        transform: scale(0.25);
        -webkit-transform: scale(0.25);
        -moz-transform: scale(0.25);
        -ms-transform: scale(0.25);
        -o-transform: scale(0.25);
        opacity: 0.2;
    }

    100% {
        transform: scale(0);
        -webkit-transform: scale(0);
        -moz-transform: scale(0);
        -ms-transform: scale(0);
        -o-transform: scale(0);
        opacity: 0;
    }

    75% {
        transform: scale(0.25);
        -webkit-transform: scale(0.25);
        -moz-transform: scale(0.25);
        -ms-transform: scale(0.25);
        -o-transform: scale(0.25);
        opacity: 0.2;
    }

    50% {
        transform: scale(0.5);
        -webkit-transform: scale(0.5);
        -moz-transform: scale(0.5);
        -ms-transform: scale(0.5);
        -o-transform: scale(0.5);
        opacity: 0.5;
    }

    25% {
        transform: scale(0.75);
        -webkit-transform: scale(0.75);
        -moz-transform: scale(0.75);
        -ms-transform: scale(0.75);
        -o-transform: scale(0.75);
        opacity: 0.7;
    }

    0% {
        transform: scale(1);
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
    }
}