.medium {
  width: 150px;
  height: 100px;
  background-color: #8e44ad;
  border-radius: 8px;
  transition-duration: 0.5s;
  transition-property: transform, box-shadow;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.medium:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}