.grid-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
margin: 0 auto;
max-width: 1200px;
}
.grid-item {
position: relative;
display: flex;
justify-content: center;
align-items: center;
height: 150px;
border: 2px solid #ccc;
overflow: hidden;
cursor: pointer;
transition: box-shadow 0.3s ease-in-out;
}
.grid-item:hover {
box-shadow: 0 0 67px black;
}
.grid-item img {
max-width: 100%;
max-height: 100%;
transition: transform 0.3s ease-in-out;
}
.grid-item:hover img {
transform: scale(1.3);
}
.grid-item.selected {
border: 4px solid #007bff;
box-shadow: 0 0 10px 5px rgba(0, 123, 255, 0.5);
}
.check-icon {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 60px;
color: #fff;
background-color: rgba(0, 0, 0, 0.5);
border-radius: 50%;
padding: 10px;
display: none;
}
.grid-item.selected .check-icon {
display: block;
}
.questions-container {
margin-bottom: 30px;
text-align: center;
padding: 0 15px;
}
.question {
margin-bottom: 20px;
}
#sendmail {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
margin-top: 20px;
}
.bold {
font-weight: bold;
}
input[type="radio"] {
cursor: pointer;
margin-right: 5px;
}
.link-dest {
text-decoration: none;
color: #104c9a;
font-weight: bold;
font-size: xx-large;
}
.link-dest:hover {
color: cornflowerblue;
}
@media screen and (max-width: 767px) {
.grid-container {
grid-template-columns: repeat(2, 1fr);
gap: 10px;
padding: 0 15px;
}
.grid-item {
height: 120px;
}
.img-sondaggio {
width: 100%;
height: 100%;
object-fit: cover;
}
.check-icon {
font-size: 40px;
}
.questions-container {
margin-bottom: 20px;
}
.question {
margin-bottom: 15px;
}
.question label {
display: block;
margin-bottom: 5px;
}
#confirmSelection {
width: 100%;
max-width: 300px;
font-size: 18px;
}
}
@media screen and (max-width: 480px) {
.grid-container {
grid-template-columns: 1fr;
}
.grid-item {
height: 200px;
}
}