:root {
    --primary: #00a7ee;
    --primaryHover: #038dc7;
    --primaryText: #fff;
}

@font-face {
    font-family: Raleway;
    src: url(../font/Raleway.ttf);
}

@keyframes scaleHover {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: Raleway, sans-serif;
}

.header {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 13px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    grid-auto-rows: minmax(100px, auto);

}


.header img {
    width: auto;
    height: 10vh;
}

.container {
    display: flex;
    gap: 20px;
    width: 90%;
    margin-left: 5%;
    margin-top: 15px;
    flex-wrap: wrap;
    position: relative;
    padding: 5px;
    overflow: auto;
    height: calc(100vh - 150px);
    justify-content: center;
    overflow-x: hidden;
}

.item {
    width: 290px;
    height: 290px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 3px 2px #888888;
    border-radius: 5px;
    overflow: hidden;
}


.hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
    display: none;
}

.item:hover .hover {
    display: flex;
}

.hover button {
    background: #ffffff59;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px;
    font-size: 18px;
}

.item:hover button {
    animation: scaleHover 1.5s infinite linear;
}

.item a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
}

.itemImage {
    height: 240px;
    width: auto;
}

.title {
    font-size: 18px;
    color: var(--primaryText);
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: 100%;
    background: var(--primary);
}

.item:hover title {
    background: var(--primaryHover);
}

.title p {
    margin: 0;
    text-align: center;
}

.searchBar {
    height: 30px;
    margin-top: 30px;
    margin-right: 30px;
    width: 200px;
    border-radius: 30px;
    padding: 0 15px;
    border: 1px solid var(--primary);
    outline: none;
    float: right;
}

@media (max-width: 1000px) {

    /* mobile CSS: hide .desktop div */
    h2 {
        display: none
    }
}

.title-container {
    text-align: center;
}

.image-container {
    display: inline-block;
    min-width: 2.2cm;
    text-align: center;
    vertical-align: middle;
}

.div-title {
    display: inline-block;
    vertical-align: middle;
}