@import url('https://fonts.googleapis.com/css2?family=Fugaz+One&family=Open+Sans:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'Fugaz One', cursive;
    font-family: 'Open Sans', sans-serif; */
}

html,
body {
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #121212;
}

.toolbar {
    position: fixed;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    padding: 10px 0;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Fugaz One', cursive;
    box-shadow: 0px 3px 10px 2px rgba(0, 0, 0, 0.356);
    background-color: rgba(255, 255, 255, 0.613);
    z-index: 5;
    flex-wrap: wrap;
}

.logo {
    height: 30px;
}

.tools-container {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.search-container,
.gif-sticker-container {

    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 300px;
    position: relative;
    gap: 20px;

}


.btn-bg2,
.btn-bg1 {
    border-radius: 5px;
    z-index: -1;
    height: 100%;
    width: 50%;
    background-color: #87F5A3;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 3px 3px 5px 2px rgba(0, 0, 0, 0.20);
}



.search-button,
.word-gif-button,
.gif-button,
.stickers-button {
    overflow: hidden;
    height: 40px;
    width: 50%;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}


.main-container {
    background-image: url(./images/background.gif);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 90vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 0 10000px rgba(0, 0, 0, 0.475);
    position: relative;
}

.title {
    margin-top: 200px;
    font-family: 'Fugaz One', cursive;
    font-size: 30px;
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
}

.search-bar {
    height: 50px;
    border: none;
    border-radius: 5px;
    padding-left: 40px;
    background-image: url(./images/search.png);
    background-size: 20px;
    background-repeat: no-repeat;
    background-position-x: 10px;
    background-position-y: 50%;
    width: 80%;
    outline: none;
    font-size: 16px;
    font-weight: bold;
}

.search-img {
    width: 20px;
    position: absolute;
    left: 0;
    bottom: 30px;
}

.header-container {
    padding: 20px;
    width: 100vw;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sub-title {
    text-align: center;
    margin-top: 30px;
    font-size: 20px;
}

@keyframes slide-right {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes slide-left {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0);
    }
}

.images-container {
    padding: 10px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;

}

.img {
    height: 150px;
    overflow: hidden;
    border-radius: 5px;
    margin: 5px;
    background-size: cover;
}

.trending {
    color: rgba(255, 255, 255, 0.70);
    margin: 0 auto;
    margin-top: 10px;
    font-size: 26px;
    font-weight: bold;
    font-family: 'Fugaz One', cursive;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trending-img {
    width: 30px;
    margin-right: 15px;
}

.animation-container {
    position: absolute;
    bottom: -150px;
    height: 150px;
    width: 150px;
}

.animation {
    width: 30px;
    height: 30px;
    background-color: #87F5A3;
    position: absolute;
    top: 50%;
    left: 15%;
    animation: box-animation 2s infinite;
    display: none;

}


@keyframes box-animation {
    0% {
        top: 50%;
        left: 15%;
        border-radius: 25px;

    }

    25% {
        top: 50%;
        left: 65%;
        border-radius: 5px;
    }

    50% {
        top: 100%;
        left: 65%;
        border-radius: 25px;
    }

    75% {
        top: 100%;
        left: 15%;
        border-radius: 5px;
    }

    100% {
        top: 50%;
        left: 15%;
        border-radius: 25px;
    }
}

.error{
    padding: 10px 0;
    width: 100vw;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Fugaz One', cursive;
    box-shadow: 0px 3px 10px 2px rgba(0, 0, 0, 0.356);
    z-index: 5;
    flex-wrap: wrap;
    background-color: rgba(255, 0, 0, 0.80);
    display: none;
    transition: 1s;
}