* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Inter", sans-serif; } body { width: 100%; min-height: 100vh; background-color: #a9c9ff; background-image: linear-gradient(180deg, #a9c9ff 0%, #ffbbec 100%); font-family: Arial, sans-serif; color: #333; padding: 0 10px; justify-content: center; } #chatbot-toggler { position: fixed; bottom: 30px; right: 35px; border: none; height: 50px; width: 50px; display: flex; cursor: pointer; align-items: center; justify-content: center; border-radius: 50%; background: #5350c4; box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); transition: all 0.2s ease; z-index: 9999; } body.show-chatbot #chatbot-toggler { transform: rotate(90deg); } #chatbot-toggler span { color: #fff; position: absolute; } #chatbot-toggler span:last-child, body.show-chatbot #chatbot-toggler span:first-child { opacity: 0; } body.show-chatbot #chatbot-toggler span:last-child { opacity: 1; } /* Overlay when chatbot is open */ .chatbot-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 9998; opacity: 0; transition: opacity 0.3s ease; } body.show-chatbot .chatbot-overlay { display: block; opacity: 1; } .chatbot-popup { position: fixed; right: 35px; bottom: 90px; width: 420px; overflow: hidden; background: #fff; border-radius: 15px; opacity: 0; pointer-events: none; transform: scale(0.2); transform-origin: bottom right; box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1), 0 32px 64px -48px rgba(0, 0, 0, 0.5); transition: all 0.1s ease; z-index: 10000; /* Ensures it stays above the overlay */ } body.show-chatbot .chatbot-popup { opacity: 1; pointer-events: auto; transform: scale(1); } .chat-header { display: flex; align-items: center; padding: 15px 22px; background: #5350c4; justify-content: space-between; } .chat-header .header-info { display: flex; gap: 10px; align-items: center; } .header-info .chatbot-logo { width: 35px; height: 35px; padding: 6px; fill: #5350c4; flex-shrink: 0; background: #fff; border-radius: 50%; } .header-info .logo-text { color: #fff; font-weight: 600; font-size: 1.31rem; letter-spacing: 0.02rem; } .chat-header #close-chatbot { border: none; color: #fff; height: 40px; width: 40px; font-size: 1.9rem; margin-right: -10px; padding-top: 2px; cursor: pointer; border-radius: 50%; background: none; transition: 0.2s ease; } .chat-header #close-chatbot:hover { background: #3d39ac; } .chat-body { padding: 25px 22px; gap: 20px; display: flex; height: 460px; overflow-y: auto; margin-bottom: 82px; flex-direction: column; scrollbar-width: thin; scrollbar-color: #ccccf5 transparent; } .chat-body, .chat-form .message-input:hover { scrollbar-color: #ccccf5 transparent; } .chat-body .message { display: flex; gap: 11px; align-items: center; } .chat-body .message .bot-avatar { width: 35px; height: 35px; padding: 6px; fill: #fff; flex-shrink: 0; margin-bottom: 2px; align-self: flex-end; border-radius: 50%; background: #5350c4; } .chat-body .message .message-text { padding: 12px 16px; max-width: 75%; font-size: 0.95rem; } .chat-body .bot-message.thinking .message-text { padding: 2px 16px; } .chat-body .bot-message .message-text { background: #f2f2ff; border-radius: 13px 13px 13px 3px; } .chat-body .user-message { flex-direction: column; align-items: flex-end; } .chat-body .user-message .message-text { color: #fff; background: #5350c4; border-radius: 13px 13px 3px 13px; } .chat-body .user-message .attachment { width: 50%; margin-top: -7px; border-radius: 13px 3px 13px 13px; } .chat-body .bot-message .thinking-indicator { display: flex; gap: 4px; padding-block: 15px; } .chat-body .bot-message .thinking-indicator .dot { height: 7px; width: 7px; opacity: 0.7; border-radius: 50%; background: #6f6bc2; animation: dotPulse 1.8s ease-in-out infinite; } .chat-body .bot-message .thinking-indicator .dot:nth-child(1) { animation-delay: 0.2s; } .chat-body .bot-message .thinking-indicator .dot:nth-child(2) { animation-delay: 0.3s; } .chat-body .bot-message .thinking-indicator .dot:nth-child(3) { animation-delay: 0.4s; } @keyframes dotPulse { 0%, 44% { transform: translateY(0); } 28% { opacity: 0.4; transform: translateY(-4px); } 44% { opacity: 0.2; } } .chat-footer { position: absolute; bottom: 0; width: 100%; background: #fff; padding: 15px 22px 20px; } .chat-footer .chat-form { display: flex; align-items: center; position: relative; background: #fff; border-radius: 32px; outline: 1px solid #cccce5; box-shadow: 0 0 8px rgba(0, 0, 0, 0.06); transition: 0s ease, border-radius 0s; } .chat-form:focus-within { outline: 2px solid #5350c4; } .chat-form .message-input { width: 100%; height: 47px; outline: none; resize: none; border: none; max-height: 180px; scrollbar-width: thin; border-radius: inherit; font-size: 0.95rem; padding: 14px 0 12px 18px; scrollbar-color: transparent transparent; } .chat-form .chat-controls { gap: 3px; height: 47px; display: flex; padding-right: 6px; align-items: center; align-self: flex-end; } .chat-form .chat-controls button { height: 35px; width: 35px; border: none; cursor: pointer; color: #706db0; border-radius: 50%; font-size: 1.15rem; background: none; transition: 0.2s ease; } .chat-form .chat-controls button:hover, body.show-emoji-picker .chat-controls #emoji-picker { color: #3d39ac; background: #f1f1ff; } .chat-form .chat-controls #send-message { color: #fff; display: none; background: #5350c4; } .chat-form .chat-controls #send-message:hover { background: #3d39ac; } .chat-form .message-input:valid ~ .chat-controls #send-message { display: block; } .chat-form .file-upload-wrapper { position: relative; height: 35px; width: 35px; } .chat-form .file-upload-wrapper :where(button, img) { position: absolute; right: 30%; top: -15%; } .chat-form .file-upload-wrapper img { height: 100%; width: 100%; object-fit: cover; border-radius: 100%; } .chat-form .file-upload-wrapper #file-cancel { color: #ff0000; background: #fff; } .chat-form .file-upload-wrapper :where(img, #file-cancel), .chat-form .file-upload-wrapper.file-uploaded #file-upload { display: none; } .chat-form .file-upload-wrapper.file-uploaded img, .chat-form .file-upload-wrapper.file-uploaded:hover #file-cancel { display: block; } em-emoji-picker { position: absolute; left: 50%; top: -337px; width: 100%; max-width: 350px; visibility: hidden; max-height: 330px; transform: translateX(-50%); } body.show-emoji-picker em-emoji-picker { visibility: visible; } /* Responsive media query for mobile screens */ @media (max-width: 520px) { #chatbot-toggler { right: 20px; bottom: 20px; } .chat-form .file-upload-wrapper :where(button, img) { position: absolute; right: 30%; top: -15%; } .chatbot-popup { right: 0; bottom: 0; height: 100%; border-radius: 0; width: 100%; } .chat-header .header-info .logo-text { font-size: 1rem; } .chat-footer { padding: 20px 15px 15px; } .chat-form .message-input { font-size: 0.9rem; } } header { background: #007bff; color: #fff; text-align: center; padding: 20px 15px; border-radius: 10px; margin-top: 1.5rem; } header h1 { margin-bottom: 10px; } .running-text { background: white; overflow: hidden; padding: 10px; border-radius: 5px; } .running-text p { display: inline-block; font-size: 1.4em; font-weight: bold; font-family: Verdana, Geneva, Tahoma, sans-serif; background: linear-gradient(90deg, #007bff, #00bfff); -webkit-background-clip: text; color: transparent; white-space: nowrap; animation: moveText 27s linear infinite, linear infinite alternate; } @keyframes moveText { from { transform: translateX(100%); } to { transform: translateX(-100%); } } .container { max-width: 1200px; margin: 20px auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; } .form-section { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); position: relative; } .form-section h2 { margin-bottom: 15px; font-size: 1.5em; color: #333; } input[type="text"] { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 1em; } button { padding: 10px 20px; background: #007bff; border: none; color: #fff; cursor: pointer; font-size: 1em; border-radius: 5px; margin-top: 10px; /* Space above button */ } button:hover { background: #0056b3; } p { margin-top: 10px; font-size: 1.1em; color: #007bff; word-wrap: break-word; } .Btn { width: 100px; height: 35px; display: flex; align-items: center; justify-content: flex-start; border: none; border-radius: 4px; overflow: hidden; box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.164); cursor: pointer; } .text { width: 65%; height: 100%; display: flex; align-items: center; justify-content: center; color: white; background-color: rgb(2, 153, 153); } .svgIcon { width: 35%; height: 100%; display: flex; align-items: center; justify-content: center; color: white; background-color: teal; } .Btn:hover .text { background-color: rgb(0, 133, 133); } .Btn:hover .svgIcon { background-color: rgb(0, 105, 105); } /* Footer Styles */ footer { background: #333; color: #fff; padding: 40px 0; text-align: center; margin-top: 140px; } footer p { margin-bottom: 10px; } .container1 { max-width: 800px; margin: 0 auto; } .notification { display: flex; flex-direction: column; isolation: isolate; position: relative; margin-top: 4rem; width: 19.2rem; height: 9rem; background: #29292c; border-radius: 1rem; overflow: hidden; font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif; font-size: 16px; --gradient: linear-gradient(to bottom, #2eadff, #3d83ff, #7e61ff); --color: #32a6ff; } .notification:before { position: absolute; content: ""; inset: 0.0625rem; border-radius: 0.9375rem; background: #18181b; z-index: 2; } .notification:after { position: absolute; content: ""; width: 0.25rem; inset: 0.65rem auto 0.65rem 0.5rem; border-radius: 0.125rem; background: var(--gradient); transition: transform 300ms ease; z-index: 4; } .notification:hover:after { transform: translateX(0.15rem); } .notititle { color: var(--color); padding: 0.65rem 0.25rem 0.4rem 1.25rem; font-weight: 500; font-size: 1.1rem; transition: transform 300ms ease; z-index: 5; } .notification:hover .notititle { transform: translateX(0.15rem); } .notibody { color: #99999d; padding: 0 1.25rem; transition: transform 300ms ease; z-index: 5; } .notification:hover .notibody { transform: translateX(0.25rem); } .notiglow, .notiborderglow { position: absolute; width: 20rem; height: 20rem; transform: translate(-50%, -50%); background: radial-gradient( circle closest-side at center, white, transparent ); opacity: 0; transition: opacity 300ms ease; } .notiglow { z-index: 3; } .notiborderglow { z-index: 1; } .notification:hover .notiglow { opacity: 0.1; } .notification:hover .notiborderglow { opacity: 0.1; } .note { color: var(--color); position: fixed; top: 80%; left: 50%; transform: translateX(-50%); text-align: center; font-size: 0.9rem; width: 75%; } h1 { text-align: center; font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif; margin-bottom: 20px; color: #333; } details { margin-bottom: 15px; border-radius: 8px; background-color: #fff; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); padding: 10px; transition: all 0.3s ease-in-out; } details summary { font-size: 18px; font-weight: bold; cursor: pointer; padding: 10px; background-color: #007bff; color: white; border-radius: 5px; transition: background-color 0.3s ease; outline: none; } details summary:hover { background-color: #0056b3; } details[open] { background-color: #eef7ff; } details p { font-size: 16px; color: #555; margin-top: 10px; padding: 10px; } @media (max-width: 768px) { details summary { font-size: 16px; } details p { font-size: 14px; } } .social-links a { margin: 0 10px; color: #fff; text-decoration: none; font-size: 1.2em; } .social-links a:hover { text-decoration: underline; } .wave-group { position: relative; } .wave-group .input { font-size: 16px; padding: 10px 10px 10px 5px; display: block; width: 200px; border: none; border-bottom: 1px solid #515151; background: transparent; } .wave-group .input:focus { outline: none; } .wave-group .label { color: #999; font-size: 18px; font-weight: normal; position: absolute; pointer-events: none; left: 5px; top: 10px; display: flex; } .wave-group .label-char { transition: 0.2s ease all; transition-delay: calc(var(--index) * 0.05s); } .wave-group .input:focus ~ label .label-char, .wave-group .input:valid ~ label .label-char { transform: translateY(-20px); font-size: 14px; color: #5264ae; } .wave-group .bar { position: relative; display: block; width: 200px; } .wave-group .bar:before, .wave-group .bar:after { content: ""; height: 2px; width: 0; bottom: 1px; position: absolute; background: #5264ae; transition: 0.2s ease all; -moz-transition: 0.2s ease all; -webkit-transition: 0.2s ease all; } .wave-group .bar:before { left: 50%; } .wave-group .bar:after { right: 50%; } .wave-group .input:focus ~ .bar:before, .wave-group .input:focus ~ .bar:after { width: 50%; } /* Responsive Design */ @media (min-width: 769px) { .container { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 768px) { .container { grid-template-columns: 1fr; } .form-section { padding: 15px; } input[type="text"], button { font-size: 0.9em; } } .card { width: 190px; height: 194px; bottom: 1rem; margin-top: 3rem; background: #07182e; position: relative; display: flex; place-content: center; place-items: center; overflow: hidden; border-radius: 20px; } @keyframes colorChange { 0% { color: rgb(255, 0, 0); } /* Merah */ 20% { color: rgb(255, 165, 0); } /* Oranye */ 40% { color: rgb(255, 255, 0); } /* Kuning */ 60% { color: rgb(0, 255, 0); } /* Hijau */ 80% { color: rgb(0, 110, 255); } /* Biru */ 100% { color: rgb(137, 40, 206); } /* Indigo */ } .card h2 { z-index: 1; font-size: 1.9em; margin-left: 0.6rem; animation: colorChange 5s infinite; /* Durasi animasi dan pengulangan */ } .card::before { content: ""; position: absolute; width: 100px; background-image: linear-gradient( 180deg, rgb(0, 183, 255), rgb(255, 48, 255) ); height: 130%; animation: rotBGimg 3s linear infinite; transition: all 0.2s linear; } @keyframes rotBGimg { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .card::after { content: ""; position: absolute; background: #07182e; inset: 5px; border-radius: 15px; } .card:hover:before { background-image: linear-gradient(180deg, rgb(255, 8, 0), rgb(220, 243, 9)); animation: rotBGimg 3.5s linear infinite; } .button5 { --main-focus: #2d8cf0; --font-color: #323232; --bg-color-sub: #dedede; --bg-color: #eee; --main-color: #323232; position: relative; width: 183px; height: 40px; cursor: pointer; display: flex; align-items: center; border: 2px solid var(--main-color); box-shadow: 4px 4px var(--main-color); background-color: var(--bg-color); border-radius: 10px; overflow: hidden; } .button5, .button5__icon, .button5__text { transition: all 0.3s; } .button5 .button5__text { transform: translateX(30px); color: var(--font-color); font-weight: 600; } .button5 .button5__icon { position: absolute; transform: translateX(109px); height: 100%; width: 39px; background-color: var(--bg-color-sub); display: flex; align-items: center; justify-content: center; } .button5 .svg { width: 20px; fill: var(--main-color); } .button5:hover { background: var(--bg-color); } .button5:hover .button5__text { color: transparent; } .button5:hover .button5__icon { width: 148px; transform: translateX(0); } .button5:active { transform: translate(3px, 3px); box-shadow: 0px 0px var(--main-color); } .clock-container { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; border-radius: 20px; background: linear-gradient(135deg, #4e54c8, #868cf5, #6a82fb, #fc5c7d); background-size: 200% 200%; animation: gradientAnimation 6s ease-in-out infinite; box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.3); color: white; margin: 20px auto; transition: transform 0.3s ease-in-out; max-width: 400px; width: 90%; } @keyframes gradientAnimation { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } .clock-container:hover { transform: translateY(-5px); box-shadow: 0px 20px 35px rgba(0, 0, 0, 0.4); } .clock { font-size: 3.5em; font-weight: 700; margin: 15px 0; letter-spacing: 2px; text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3); animation: pulse 0.9s infinite; } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } } .date { font-size: 1.4em; font-weight: 500; margin-top: 5px; opacity: 0.85; text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2); } @media (max-width: 768px) { .clock { font-size: 2.8em; } .date { font-size: 1.1em; } } @media (max-width: 480px) { .clock-container { padding: 15px; border-radius: 15px; } .clock { font-size: 2.2em; } .date { font-size: 0.95em; } } .greeting { font-size: 1.5em; margin-top: 10px; text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.3); } .modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.801); display: flex; justify-content: center; align-items: center; z-index: 10; animation: fadeIn 0.3s ease-in-out; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .modal-content { background: linear-gradient(135deg, #4e54c8, #8f94fb); padding: 25px; border-radius: 20px; text-align: center; max-width: 400px; width: 90%; box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2); animation: slideUp 0.4s ease-in-out; } @keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .modal-content h2 { margin-bottom: 20px; color: white; font-size: 1.8em; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); } .modal-content input { width: 85%; padding: 12px; margin-bottom: 15px; border: 2px solid #ddd; border-radius: 8px; box-shadow: inset 1px 1px 5px rgba(0, 0, 0, 0.1); transition: border 0.3s ease-in-out; } .modal-content input:focus { border-color: #4e54c8; outline: none; } .modal-content button { background: #4e54c8; color: white; border: none; padding: 12px 25px; border-radius: 25px; cursor: pointer; transition: background 0.3s, transform 0.2s; box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2); } .modal-content button:hover { background: #3e44a0; transform: translateY(-2px); box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3); } .pmodal { font-size: 1.3em; /* Adjust font size as needed */ font-family: monospace; animation: colorChange 5s infinite; /* Animation for changing colors */ } /* Keyframes for color-changing effect */ @keyframes colorChange { 0% { color: #ff7e7e; /* Soft red */ } 25% { color: #ffb74d; /* Soft orange */ } 50% { color: #70ce75; /* Soft green */ } 75% { color: #2f95e9; /* Soft blue */ } 100% { color: #db2d7e; /* Soft pink */ } }