body {
font-family: Arial;
background-color: #111;
color: white;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
/* КАРТОЧКА */
.card {
background: #222;
padding: 20px;
border-radius: 10px;
text-align: center;
cursor: pointer;
transition: 0.3s;
}
.card:hover {
transform: scale(1.05);
}
.card img {
width: 200px;
border-radius: 10px;
}
/* МОДАЛКА */
.modal {
display: none; /* скрыто */
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.7);
justify-content: center;
align-items: center;
}
/* ВНУТРИ */
.modal-content {
background: #222;
padding: 30px;
border-radius: 10px;
width: 300px;
text-align: center;
position: relative;
}
/* КРЕСТИК */
.close {
position: absolute;
top: 10px;
right: 15px;
cursor: pointer;
font-size: 20px;
}