반응형

/* 클릭 유도 버튼 스타일 */ .custom-button { display: block; /* 블록 요소로 만들어 줄바꿈 */ width: fit-content; /* 내용에 맞춰 너비 자동 조절 */ margin: 20px auto; /* 중앙 정렬 및 위아래 여백 */ padding: 15px 30px; /* 버튼 내부 여백 */ background-color: #4CAF50; /* 버튼 배경색 (초록색 예시) */ color: white; /* 텍스트 색상 */ text-align: center; text-decoration: none; /* 밑줄 제거 */ font-size: 18px; /* 폰트 크기 */ font-weight: bold; /* 폰트 굵기 */ border-radius: 8px; /* 모서리 둥글게 */ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 그림자 효과 */ transition: background-color 0.3s ease, transform 0.2s ease; /* 호버 효과 */ cursor: pointer; } .custom-button:hover { background-color: #45a049; /* 호버 시 배경색 변경 */ transform: translateY(-2px); /* 약간 위로 떠오르는 효과 */ } .custom-button.blue { background-color: #007bff; /* 파란색 버튼 예시 */ } .custom-button.blue:hover { background-color: #0056b3; } .custom-button.red { background-color: #dc3545; /* 빨간색 버튼 예시 */ } .custom-button.red:hover { background-color: #c82333; }