@keyframes t{
    0%{
        transform: translate(-50%,50%);
    }
    100%{
        transform: translate(-50%,0%);
    }
}

@media screen and (min-width: 600px) {
    .tools{
        width: 150px;
        height: 200px;
        margin-right: 30px;
    }
    #maintext{
        width: 80%;
    }
}

@media screen and (max-width: 600px) {
    .tools{
        width: 150px;
        height: 200px;
        margin-left: 25px;
    }
    #maintext{
        width: 100%;
        
    }
}

body{
    width: 100%;
    height: 100%;
}
#maintext{
    position: absolute;
    left: 50%;
    transform: translate(-50%,0%);
    animation: t 1s;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.tools{
    text-align: center;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.23);
    font-size: 20px;
    border-radius: 5px;
    transition: 0.5s;
    margin-top: 40px;
    border: 0px;
    cursor: pointer;
    background-color: var(--bg-color);
    color: var(--text-color);
}
.tools:hover{
    transform: translate(0px,20px);
}
.tools img{
    height: 65%;
}