@font-face {
    src: url("../fonts/Gotham\ Bold\ Regular.ttf");
    font-family: Gotham;
}

html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

main {
    max-width: 1600px;
    width: 80%;
    height: 70%;

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

}

main .grid {
    height: 80%;
    
    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;
}

main .item {
    transition: all .5s;
    box-sizing: border-box;
    position: relative;
    cursor: pointer;

    overflow: hidden;
    width: 300px;
    height: 100%;

    margin: 30px;
    border-radius: 10px;
    flex-grow: grow;
    
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    
}



main .item .overlay {
    width: 100%;
    height: 150%;

    position: absolute;
    top: 0;
    left: 0;

    background-color: #181b21;
    opacity: 0.1;

    transition: all .5s;

    z-index: 2;
}


.item:hover .overlay {
    opacity: 0.6;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.item .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;

    display: flex;
    justify-content: center;
    align-items: center;
}

.item img {
    min-height: 100%;
}

.item .text {
    position: absolute;
    top: 0;
    left: 0;

    height: 100%;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    z-index: 4;
    font-family: "Gotham";
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    font-size: 30px;

    text-align: center;
}

main .snake .info {
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 100;
    font-style: italic;
}




@media screen and (max-width: 1600px) {
    main {
        width: 100%;
    }

    main .grid {
        width: auto;
    }
}

@media screen and (max-width: 1200px) {
    main .item {
        flex-grow: 1;
    }
}

@media screen and (max-width: 700px) {
    main {
        height: 100%;
    }

    main .grid {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}