#Italválaszték{
    padding: 50px 20px;
    padding-bottom: 0px;
    padding-top: 20px;
}


.ital-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.ital{
    border-radius: 10px;
    position: relative;
    overflow: hidden;

}
.ital img{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}
.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.6), goldenrod);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: left;
    font-size: 16px;
    transition: height 0.5s;
}
@media only screen and (max-width: 1200px){
    .layer{
        font-size: 16px;
    }
}
@media only screen and (max-width: 1050px){
    .layer{
        font-size: 13px;
    }
}


@media only screen and (max-width: 610px){
    .layer{
        font-size: 14px;
    }

}
.layer h3{
    font-weight: 700;
    margin-bottom: 20px;
}
.layer a{
    margin-top: 20px;
    color: goldenrod;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}
li{
    padding: 5px 0;
}

.ital:hover img{
    transform: scale(1.1);
}

.ital:hover .layer{
    height: 100%;
}

.btn{
    display: block;
    background-color: transparent;
    font-size: 15px;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid goldenrod;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    transition: background-color 0.5s;
}


.displayNone {
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
  }

.btn:hover{
    background-color: goldenrod;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-300px);
    }

    to {
        transform: translateX(0);
    }
}

.slideleft {
    animation-name: slideInLeft;
    animation-duration: 1.2s;
    animation-timing-function: ease-out;
    animation-delay: 0s;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-fill-mode: forwards;

    
}

