.PS4-1 {
  display: inline-block;
  margin-top: 50px;
  margin-left: 60px;
  width: 300px;
  height: 400px;
  background-color: #DCDCDC;
  border-radius: 20px;
  vertical-align: top;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  user-select: none;
}


.PS4-1 h4 {
    margin-top: 20px;
    text-align: center;
    font-size: 30px;
    user-select: none;
}

.PS4-1 img {
    text-align: center;
    margin-left: 30px;
    width: 250px;
    user-select: none;
}





.PS4-1:hover{
    transform: scale(1.01);
    box-shadow: 4px 4px 8px rgba(0,0,0,0.3);
}



.PS4-1 .PS4-text,
.PS4-1 .details {
    inset: 0; /* занимает всю карточку */
    transition: opacity 0.3s ease;
}

.PS4-1 .details {
    opacity: 0;
}

.PS4-1:hover .PS4-text {
    opacity: 0;
}

.PS4-1:hover .details{
    opacity: 1;
    position: absolute;
    margin-top: 170px;
    font-size: 50px;
    text-align: center;
    align-items: center;
    justify-content: center;
}



.clock {
    text-align: center;
    font-size: 50px;
}




/* PS 4 2 card */

.PS4-2 {
  display: inline-block;
  position: relative;
  margin-top: 50px;
  margin-left: 60px;
  width: 300px;
  height: 400px;
  background-color: #DCDCDC;
  border-radius: 20px;
  vertical-align: top;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  user-select: none;
}

.PS4-2 h4 {
    margin-top: 20px;
    text-align: center;
    font-size: 30px;
    user-select: none;
}

.PS4-2 img {
    text-align: center;
    margin-left: 30px;
    width: 250px;
    user-select: none;
}

.PS4-2:hover{
    transform: scale(1.01);
    box-shadow: 4px 4px 8px rgba(0,0,0,0.3);
}


.PS4-2 .PS4-text,
.PS4-2 .details {   
    inset: 0; /* занимает всю карточку */
    transition: opacity 0.4s ease;
}


.PS4-2 .details {
    opacity: 0;
}

.PS4-2:hover .PS4-text {
    opacity: 0;
}

.PS4-2:hover .details{
    position: absolute;
    opacity: 1;
    font-size: 50px;
    margin-top: 170px;
    text-align: center;
    align-items: center;
    justify-content: center;
}







.timer {
    text-align: center;
    font-size: 40px;
    width: 100%;
    background-color: #FFFF00;
}


.card a {
    text-decoration: none;
    color: black;
}

.game_ps {
    display: block;
    background-color: white;
    margin-top: 100px;
    width: 100%;
    height: 250px;
}

.game_card {
    display: inline-block;
    margin-left: 10px;
    margin-top: 30px;
    border-radius: 20px;
    width: 300px;
    height: 220px;
    transition: transform 0.4s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}


.game_card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.game_card img {
    object-fit: cover; /* заполнит всю карточку, сохраняя пропорции */
    display: block;
    width: 100%;
    height: 100%;
}






@media (max-width: 600px){
    .PS4-1 {
        margin-left: 10px;
    }

    .PS4-2 {
        margin-left: 10px;
    }    

    .game_card {
        display: none;
    }
}

















