body { font-family: Arial, sans-serif; text-align: center; background-color: #f5f5f5; } .container { max-width: 400px; margin: auto; padding: 20px; background: white; border-radius: 10px; } .logo { margin-top: 20px; } #welcome-text { font-weight: bold; margin: 20px 0 10px; } #description { color: #555; margin-bottom: 20px; } .pagination { display: flex; justify-content: center; margin-bottom: 20px; } .pagination-dot { width: 8px; height: 8px; border-radius: 50%; background-color: #ddd; margin: 0 4px; } .pagination-dot.active { background-color: #007bff; } .button { background-color: #007bff; color: white; padding: 10px 20px; border: none; border-radius: 5px; margin: 10px 0; cursor: pointer; width: 100%; font-size: 16px; } .login-link { color: #007bff; text-decoration: none; display: block; margin-top: 10px; } .language-container { position: absolute; top: 20px; right: 20px; } .language-btn { padding: 10px 15px; cursor: pointer; } .language-menu { display: block; background-color: #f1f1f1; border: 1px solid #ccc; padding: 10px; position: absolute; top: 40px; right: 0; width: 100px; box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); border-radius: 4px; z-index: 1000; } .language-menu.hidden { display: none; } .language-menu ul { list-style-type: none; padding: 0; margin: 0; } .language-menu ul li { padding: 8px; cursor: pointer; text-align: center; } .language-menu ul li:hover { background-color: #ddd; } .hidden { display: none; } #icon { position: relative; /* Để sử dụng position cho hiệu ứng trượt */ transition: transform 0.5s ease-in-out; /* Hiệu ứng chuyển động */ } .slide-in-left { animation: slideInLeft 0.5s forwards; /* Hiệu ứng trượt vào từ trái */ } .slide-out-left { animation: slideOutLeft 0.5s forwards; /* Hiệu ứng trượt ra trái */ } .slide-in-right { animation: slideInRight 0.5s forwards; /* Hiệu ứng trượt vào từ phải */ } .slide-out-right { animation: slideOutRight 0.5s forwards; /* Hiệu ứng trượt ra phải */ } @keyframes slideInLeft { from { transform: translateX(-100%); /* Bắt đầu từ bên trái */ opacity: 0; /* Bắt đầu với độ mờ */ } to { transform: translateX(0); /* Kết thúc ở vị trí gốc */ opacity: 1; /* Hiển thị hoàn toàn */ } } @keyframes slideOutLeft { from { transform: translateX(0); /* Bắt đầu ở vị trí gốc */ opacity: 1; /* Hiển thị hoàn toàn */ } to { transform: translateX(-100%); /* Kết thúc ra ngoài bên trái */ opacity: 0; /* Mờ dần */ } } @keyframes slideInRight { from { transform: translateX(100%); /* Bắt đầu từ bên phải */ opacity: 0; /* Bắt đầu với độ mờ */ } to { transform: translateX(0); /* Kết thúc ở vị trí gốc */ opacity: 1; /* Hiển thị hoàn toàn */ } } @keyframes slideOutRight { from { transform: translateX(0); /* Bắt đầu ở vị trí gốc */ opacity: 1; /* Hiển thị hoàn toàn */ } to { transform: translateX(100%); /* Kết thúc ra ngoài bên phải */ opacity: 0; /* Mờ dần */ } }