.image {display: block;width: 100%;height: auto;}.card-container {position: relative;width: 100%;}.overlay {position: absolute;top: 0;bottom: 0;left: 0;right: 0;height: 100%;width: 100%;opacity: 0;transition: 0.5s ease;background-color: #c52625;border-radius: 31px;}.card-container:hover .overlay {opacity: 1;}.text {color: white;font-size: 1rem;position: absolute;top: 50%;left: 10%;-webkit-transform: translate(-5%, -50%);-ms-transform: translate(-5%, -50%);transform: translate(-5%, -50%);text-align: center;}.overlay-card-title {text-align: center;margin-top: 1rem;color: #000;font-weight: 500;}