diff --git a/donation_website/index.html b/donation_website/index.html
index 1f475f7..b75309a 100644
--- a/donation_website/index.html
+++ b/donation_website/index.html
@@ -457,6 +457,32 @@
+
+
+
+
+
+
Chatbot
+
+
+
+
+
+
+
+
+
diff --git a/donation_website/style.css b/donation_website/style.css
index 81a8a3c..8ff0a31 100644
--- a/donation_website/style.css
+++ b/donation_website/style.css
@@ -663,6 +663,145 @@ form.search i{
.content-2 .show-text .icon-down{
display: none;
}
+/*----- chatbot -----*/
+.chatbot-toggler{
+ display: flex;
+ position: fixed;
+ bottom: 35px;
+ right: 40px;
+ height: 50px;
+ width: 50px;
+ background: #E34234;
+ color: white;
+ border: none;
+ outline: none;
+ border-radius: 50%;
+ cursor: pointer;
+ align-items: center;
+ justify-content: center;
+}
+.chatbot-toggler span{
+ position: absolute;
+}
+.chatbot-toggler span:last-child, .show-chatbot .chatbot-toggler span:first-child{
+ opacity: 0;
+}
+.chatbot-toggler span i{
+ font-size: 22px;
+ line-height: 40px;
+}
+.chatbot{
+ position: fixed;
+ background: white;
+ width: 420px;
+ right: 40px;
+ bottom: 100px;
+ border-radius: 15px;
+ overflow: hidden;
+ box-shadow: 0 0 120px 0 rgba(0, 0, 0, 0.1), 0 32px 64px -48px rgba(0, 0, 0, 0.5);
+ transform: scale(0.5);
+ opacity: 0;
+ pointer-events: none;
+ z-index: 1000;
+}
+.show-chatbot .chatbot{
+ transform: scale(1);
+ opacity: 1;
+ pointer-events: auto;
+}
+.show-chatbot .chatbot-toggler span:last-child{
+ opacity: 1;
+}
+.chatbot .chatbot-container{
+ position: relative;
+ background-color: #E34234;
+ padding: 16px 0;
+}
+.chatbot .chatbot-container h2{
+ color: white;
+ font-size: 20px;
+ text-transform: uppercase;
+}
+.chatbot .chatbot-container span{
+ display: none;
+ position: absolute;
+ right: 20px;
+ top: 50%;
+ color: white;
+ font-size: 22px;
+ transform: translateY(-50%);
+ cursor: pointer;
+}
+.chatbot .chatbox{
+ height: 400px;
+ padding: 30px 20px 70px;
+ overflow-y: auto;
+}
+.chatbox .chat{
+ display: flex;
+}
+.chatbox .chat p{
+ max-width: 75%;
+ background: #E34234;
+ padding: 12px 16px;
+ border-radius: 5px 5px 0 5px;
+ color: white;
+ font-size: 14px;
+}
+.chatbox .incoming span{
+ height: 32px;
+ width: 32px;
+ background: #E34234;
+ color: white;
+ text-align: center;
+ line-height: 36px;
+ border-radius: 5px;
+ margin: 0 10px 10px 0;
+ align-self: flex-end;
+}
+.chatbox .incoming i{
+ font-size: 22px;
+}
+.chatbox .outgoing{
+ justify-content: flex-end;
+ margin: 20px 0;
+}
+.chatbox .incoming p{
+ color: black;
+ background-color: lightgrey;
+ border-radius: 5px 5px 5px 0;
+}
+.chatbot .chat-input{
+ position: absolute;
+ display: flex;
+ width: 100%;
+ padding: 5px 20px;
+ gap: 5px;
+ bottom: 0;
+ background: white;
+ border-top: 1px solid gray;
+}
+.chat-input textarea{
+ border: none;
+ outline: none;
+ font-size: 16px;
+ padding: 16px 15px 16px 0;
+ resize: none;
+ height: 55px;
+ width: 100%;
+ overflow-y: hidden;
+}
+.chat-input textarea:valid ~ span{
+ visibility: visible;
+}
+.chat-input span{
+ font-size: 22px;
+ color: red;
+ cursor: pointer;
+ align-self: self-end;
+ line-height: 55px;
+ visibility: hidden;
+}
@@ -751,4 +890,19 @@ form.search i{
.guide{
padding: 1rem 7rem;
}
+}
+
+@media screen and (max-width:490px){
+ .chatbot{
+ width: 100%;
+ height: 100%;
+ right: 0;
+ bottom: 0;
+ }
+ .chatbot .chatbox{
+ height: 90%;
+ }
+ .chatbot .chatbot-container span{
+ display: block;
+ }
}
\ No newline at end of file