* {
    margin: 0;
    box-sizing: border-box;
}

body {
      background: linear-gradient(to bottom, #808080, #dddbdb);
    background-repeat: no-repeat;
    background-attachment: fixed;
}


   .post-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px 30px;

    max-width: 1400px;
    margin: 0 auto;
    padding:20px;
}

.post-item {
    width: 300px;
     height: 500px;
    flex: 0 0 300px;
}

.post-item-wrap {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.post-link {
    text-decoration: none;
    display: block;
}

.post-item img {
    width: 100%;
     height: 500px;
    object-fit: cover;
    display: block;
}

.text-wrapper {
    position: absolute;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    width: 86%;
    padding: 20px;
    background: #dddbdb;
    transform: translate3d(-100%, 0, 0);
    transition: transform .5s cubic-bezier(.33, .02, 0, .93);
}

.post-item:hover .text-wrapper {
    transform: translate3d(0, 0, 0);
    transition: transform .5s cubic-bezier(.33, .02, 0, .93) .3s;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 5;
    background: #636262;
    transform: translate3d(-100%, 0, 0);
    transition: transform .4s cubic-bezier(.33, .02, 0, .93) .2s;
}

.post-item:hover .overlay {
    transform: translate3d(0, 0, 0);
    transition: transform .5s cubic-bezier(.33, .02, 0, .93);
}

.post-cat {
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #2A2A2A;
    font-weight: 500;
     font-size: 24px;

}

.post-title {
    font-size: 20px;
    font-weight: 400;
    color: #2A2A2A;
    font-style: italic;
}

.game-button {
    width: 100%;
    margin-top: 10px;
    padding: 12px;

    background: rgba(0,0,0,0.5);
    color: #e5e5e5;

    border: 1px solid #e5e5e5;
    border-radius: 8px;

    font-size: 16px;
    cursor: pointer;

    transition: 0.3s;
}

@media (max-width: 500px) {
    .post-wrap {
        grid-template-columns: repeat(1, 1fr);
    }
}
.header {
  width: 100%;
  height: 90px;
  background-color: #808080;
  display: flex;
  align-items: center;
  justify-content: center;
 
}

/* MENU */
.menu {
  display: flex;
  gap: 25px;
}

.menu a {
  text-decoration: none;
  color: #2B2B2B;
  font-size: 23px;
  padding: 6px 12px;
}
@media (max-width:600px){

    .post-wrap{
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
    }

    .post-item{
        flex: none;
        width:300px;
    }

    .menu{
        flex-wrap:wrap;
        justify-content:center;
        gap:10px;
    }

    .menu a{
        font-size:18px;
    }
}
@media (max-width:450px){

    .text-wrapper{
        width:100%;
        padding:15px;
    }

    .post-cat{
        font-size:22px;
        margin-bottom:12px;
    }

    .post-title{
        font-size:18px;
        line-height:1.45;
    }
}
