techbar {
    position: relative;
    width: 100%;
    background-color: #111;
    color: white;
    display: flex;
    flex-direction: column;
    margin-bottom: 1vh;
    overflow: hidden;
}

techbar h3 {
    margin-left: 5vw;
    z-index: 2;
}

techgrid {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin-bottom: 3vh;
    user-select: none;
    padding: 0 10vw;
    gap: 5vw;
}

techbar img {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    filter: blur(0.4vw);
}

techblock {
    position: relative;
    height: 25vh;
    width: 20vh;
    display: flex;
    flex-direction: column;
    border-radius: 1vh;
    justify-content: center;
}

techblock img {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    opacity: 1;
    transition: opacity 500ms ease-in-out;
    z-index: 1;
    transform: scale(0.7);
    filter: none;
    object-fit: contain;
}

techblock:hover img,
techblock:active img {
    opacity: 0.2;
}
techblock h4 {
    width: 100%;
    position: absolute;
    bottom: 0;
    margin: 0;
    margin-bottom: 1vh;
    text-align: center;
    opacity: 1;
    transition: opacity 500ms ease-in-out;
}

techblock:hover h4 {
    opacity: 0;
}

techblock p {
    opacity: 0;
    width: 100%;
    margin: 1vh 0vh;
    padding: 1vh;
    transition: opacity 500ms ease-in-out;
    z-index: 2;
    border: 1px solid #aaa;
    border-radius: 3vh;
    font-size: small;
}

techblock:hover p {
    opacity: 1;
}

@media (max-aspect-ratio: 1/1) {
    techblock {
        width: 20vw;
    }

    techgrid {
        padding: 0 5vw
    }
}
