gpt4free
1@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");2
3.adsbox {4backdrop-filter: blur(20px);5-webkit-backdrop-filter: blur(20px);6background-color: var(--blur-bg);7height: 100%;8width: 100%;9border-radius: var(--border-radius-1);10border: 1px solid var(--blur-border);11}
12
13.ads {14align-items: center;15margin: auto;16display: flex;17flex-direction: column;18gap: 16px;19max-width: 200px;20padding: var(--section-gap);21overflow: none;22flex-shrink: 0;23display: flex;24flex-direction: column;25justify-content: space-between;26}
27
28@media screen and (max-width: 728px) {29.ads {30display: none;31}32}
33
34/* :root {
35--colour-1: #ffffff;
36--colour-2: #000000;
37--colour-3: #000000;
38--colour-4: #000000;
39--colour-5: #000000;
40--colour-6: #000000;
41
42--accent: #ffffff;
43--blur-bg: #98989866;
44--blur-border: #00000040;
45--user-input: #000000;
46--conversations: #000000;
47} */
48
49:root {50--colour-1: #000000;51--colour-2: #ccc;52--colour-3: #e4d4ff;53--colour-4: #f0f0f0;54--colour-5: #181818;55--colour-6: #242424;56
57--accent: #8b3dff;58--blur-bg: #16101b66;59--blur-border: #84719040;60--user-input: #ac87bb;61--conversations: #c7a2ff;62--conversations-hover: #c7a2ff4d;63}
64
65:root {66--font-1: "Inter", sans-serif;67--section-gap: 25px;68--border-radius-1: 8px;69}
70
71* {72margin: 0;73padding: 0;74box-sizing: border-box;75position: relative;76font-family: var(--font-1);77}
78
79html,
80body {81scroll-behavior: smooth;82overflow: hidden;83}
84
85body {86padding: var(--section-gap);87background: var(--colour-1);88color: var(--colour-3);89height: 100vh;90}
91
92.row {93display: flex;94gap: var(--section-gap);95height: 100%;96}
97
98.box {99backdrop-filter: blur(20px);100-webkit-backdrop-filter: blur(20px);101background-color: var(--blur-bg);102height: 100%;103width: 100%;104border-radius: var(--border-radius-1);105border: 1px solid var(--blur-border);106}
107
108.conversations {109max-width: 260px;110padding: var(--section-gap);111overflow: auto;112flex-shrink: 0;113display: flex;114flex-direction: column;115justify-content: space-between;116}
117
118.conversation {119width: 100%;120display: flex;121flex-direction: column;122gap: 15px;123}
124
125.conversation #messages {126width: 100%;127height: 100%;128display: flex;129flex-direction: column;130overflow: auto;131overflow-wrap: break-word;132padding-bottom: 50px;133}
134
135.conversation .user-input {136max-height: 200px;137}
138
139.conversation .user-input input {140font-size: 15px;141width: 100%;142height: 100%;143padding: 12px 15px;144background: none;145border: none;146outline: none;147color: var(--colour-3);148}
149
150.conversation .user-input input::placeholder {151color: var(--user-input)152}
153
154.gradient:nth-child(1) {155--top: 0;156--right: 0;157--size: 70vw;158--blur: calc(0.5 * var(--size));159--opacity: 0.3;160animation: zoom_gradient 6s infinite;161}
162
163.gradient {164position: absolute;165z-index: -1;166border-radius: calc(0.5 * var(--size));167background-color: var(--accent);168background: radial-gradient(circle at center, var(--accent), var(--accent));169width: 70vw;170height: 70vw;171top: 50%;172right: 0;173transform: translateY(-50%);174filter: blur(calc(0.5 * 70vw)) opacity(var(--opacity));175}
176
177.conversations {178display: flex;179flex-direction: column;180gap: 16px;181}
182
183.conversations .title {184font-size: 14px;185font-weight: 500;186}
187
188.conversations .convo {189padding: 8px 12px;190display: flex;191gap: 10px;192align-items: center;193user-select: none;194justify-content: space-between;195border: 1px dashed var(--conversations);196border-radius: var(--border-radius-1);197}
198
199.conversations .convo .left {200cursor: pointer;201display: flex;202align-items: center;203gap: 10px;204}
205
206.conversations i {207color: var(--conversations);208cursor: pointer;209}
210
211.convo-title {212color: var(--colour-3);213font-size: 14px;214text-overflow: ellipsis;215overflow: hidden;216white-space: nowrap;217}
218
219.message {220width: 100%;221overflow-wrap: break-word;222display: flex;223gap: var(--section-gap);224padding: var(--section-gap);225padding-bottom: 0;226}
227
228.message:last-child {229animation: 0.6s show_message;230}
231
232@keyframes show_message {233from {234transform: translateY(10px);235opacity: 0;236}237}
238
239.message .user {240max-width: 48px;241max-height: 48px;242flex-shrink: 0;243}
244
245.message .user img {246width: 100%;247height: 100%;248object-fit: cover;249border-radius: 8px;250outline: 1px solid var(--blur-border);251}
252
253.message .user:after {254content: "63";255position: absolute;256bottom: 0;257right: 0;258height: 60%;259width: 60%;260background: var(--colour-3);261filter: blur(10px) opacity(0.5);262z-index: 10000;263}
264
265.message .assistant{266max-width: 48px;267max-height: 48px;268flex-shrink: 0;269}
270
271.message .assistant img {272width: 100%;273height: 100%;274object-fit: cover;275border-radius: 8px;276outline: 1px solid var(--blur-border);277}
278
279.message .assistant:after {280content: "63";281position: absolute;282bottom: 0;283right: 0;284height: 60%;285width: 60%;286background: var(--colour-3);287filter: blur(10px) opacity(0.5);288z-index: 10000;289}
290
291.message .content {292display: flex;293flex-direction: column;294gap: 18px;295}
296
297.message .content,
298.message .content a:link,
299.message .content a:visited{300font-size: 15px;301line-height: 1.3;302color: var(--colour-3);303}
304.message .content pre{305white-space: pre-wrap;306}
307
308.message .content img{309max-width: 400px;310}
311
312.message .user i {313position: absolute;314bottom: -6px;315right: -6px;316z-index: 1000;317}
318
319.message .assistant i {320position: absolute;321bottom: -6px;322right: -6px;323z-index: 1000;324}
325
326.new_convo {327padding: 8px 12px;328display: flex;329gap: 18px;330align-items: center;331cursor: pointer;332user-select: none;333background: transparent;334border: 1px solid var(--conversations);335border-radius: var(--border-radius-1);336transition: all 0.2s ease;337}
338
339.new_convo:hover {340box-shadow: inset 0px 0px 20px var(--conversations-hover);341}
342
343.new_convo span {344color: var(--colour-3);345font-size: 14px;346}
347
348.stop_generating, .regenerate {349position: absolute;350bottom: 158px;351left: 50%;352transform: translateX(-50%);353z-index: 1000000;354}
355
356.stop_generating button, .regenerate button{357backdrop-filter: blur(20px);358-webkit-backdrop-filter: blur(20px);359background-color: var(--blur-bg);360border-radius: var(--border-radius-1);361border: 1px solid var(--blur-border);362padding: 10px 15px;363color: var(--colour-3);364display: flex;365justify-content: center;366align-items: center;367gap: 12px;368cursor: pointer;369animation: show_popup 0.4s;370}
371
372@keyframes show_popup {373from {374opacity: 0;375transform: translateY(10px);376}377}
378
379@keyframes hide_popup {380to {381opacity: 0;382transform: translateY(10px);383}384}
385
386.stop_generating-hidden #cancelButton, .regenerate-hidden #regenerateButton {387animation: hide_popup 0.4s;388display: none;389}
390
391.typing {392position: absolute;393top: -25px;394left: 0;395font-size: 14px;396animation: show_popup 0.4s;397}
398
399.typing-hiding {400animation: hide_popup 0.4s;401}
402
403.typing-hidden {404display: none;405}
406
407#image, #file {408display: none;409}
410
411label[for="image"]:has(> input:valid){412color: var(--accent);413}
414
415label[for="file"]:has(> input:valid){416color: var(--accent);417}
418
419label[for="image"], label[for="file"] {420cursor: pointer;421position: absolute;422top: 10px;423left: 10px;424}
425
426label[for="file"] {427top: 32px;428left: 10px;429}
430
431.buttons input[type="checkbox"] {432height: 0;433width: 0;434display: none;435}
436
437.buttons label {438cursor: pointer;439text-indent: -9999px;440width: 50px;441height: 30px;442backdrop-filter: blur(20px);443-webkit-backdrop-filter: blur(20px);444background-color: var(--blur-bg);445border-radius: var(--border-radius-1);446border: 1px solid var(--blur-border);447display: block;448border-radius: 100px;449position: relative;450overflow: hidden;451transition: 0.33s;452}
453
454.buttons label:after {455content: "";456position: absolute;457top: 50%;458transform: translateY(-50%);459left: 5px;460width: 20px;461height: 20px;462background: var(--colour-3);463border-radius: 90px;464transition: 0.33s;465}
466
467.buttons input:checked+label {468background: var(--accent);469}
470
471.buttons input:checked+label:after {472left: calc(100% - 5px - 20px);473}
474
475.buttons {476display: flex;477align-items: center;478justify-content: left;479width: 100%;480}
481
482.field {483height: fit-content;484display: flex;485align-items: center;486gap: 16px;487padding-right: 15px488}
489
490.field .about {491font-size: 14px;492color: var(--colour-3);493}
494
495
496select {497-webkit-border-radius: 8px;498-moz-border-radius: 8px;499border-radius: 8px;500
501-webkit-backdrop-filter: blur(20px);502backdrop-filter: blur(20px);503
504cursor: pointer;505background-color: var(--blur-bg);506border: 1px solid var(--blur-border);507color: var(--colour-3);508display: block;509position: relative;510overflow: hidden;511outline: none;512padding: 8px 16px;513
514appearance: none;515width: 250px;516}
517
518.input-box {519display: flex;520align-items: center;521padding-right: 15px;522cursor: pointer;523}
524
525.info {526padding: 8px 12px;527display: flex;528gap: 18px;529align-items: center;530user-select: none;531background: transparent;532border-radius: var(--border-radius-1);533width: 100%;534cursor: default;535border: 1px dashed var(--conversations)536}
537
538.bottom_buttons {539width: 100%;540display: flex;541flex-direction: column;542gap: 10px;543}
544
545.bottom_buttons button {546padding: 8px 12px;547display: flex;548gap: 18px;549align-items: center;550cursor: pointer;551user-select: none;552background: transparent;553border: 1px solid var(--conversations);554border-radius: var(--border-radius-1);555width: 100%;556}
557
558.bottom_buttons button span {559color: var(--colour-3);560font-size: 14px;561}
562
563.conversations .top {564display: flex;565flex-direction: column;566gap: 16px;567overflow: auto;568}
569
570
571#cursor {572line-height: 17px;573margin-left: 3px;574-webkit-animation: blink 0.8s infinite;575animation: blink 0.8s infinite;576width: 7px;577height: 15px;578display: inline-block;579}
580
581@keyframes blink {5820% {583background: #ffffff00;584}585
58650% {587background: white;588}589
590100% {591background: #ffffff00;592}593}
594
595@-webkit-keyframes blink {5960% {597background: #ffffff00;598}599
60050% {601background: white;602}603
604100% {605background: #ffffff00;606}607}
608
609
610ol,
611ul {612padding-left: 20px;613}
614
615
616@keyframes spinner {617to {618transform: rotate(360deg);619}620}
621
622.spinner:before {623content: '';624box-sizing: border-box;625position: absolute;626top: 50%;627left: 45%;628width: 20px;629height: 20px;630
631border-radius: 50%;632border: 1px solid var(--conversations);633border-top-color: white;634animation: spinner .6s linear infinite;635}
636
637.grecaptcha-badge {638visibility: hidden;639}
640
641.mobile-sidebar {642display: none !important;643position: absolute;644z-index: 100000;645top: 0;646left: 0;647margin: 10px;648font-size: 20px;649cursor: pointer;650backdrop-filter: blur(20px);651-webkit-backdrop-filter: blur(20px);652background-color: var(--blur-bg);653border-radius: 10px;654border: 1px solid var(--blur-border);655width: 40px;656height: 40px;657justify-content: center;658align-items: center;659transition: 0.33s;660}
661
662.mobile-sidebar i {663transition: 0.33s;664}
665
666.rotated {667transform: rotate(360deg);668}
669
670@media screen and (max-width: 990px) {671.conversations {672display: none;673width: 100%;674max-width: none;675}676
677.buttons {678align-items: flex-start;679flex-wrap: wrap;680gap: 15px;681}682
683.field {684width: fit-content;685}686
687.mobile-sidebar {688display: flex !important;689}690}
691
692.shown {693display: flex;694}
695
696
697a:-webkit-any-link {698color: var(--accent);699}
700
701.conversation .user-input textarea {702font-size: 15px;703width: 100%;704height: 100%;705padding: 12px 15px;706background: none;707border: none;708outline: none;709color: var(--colour-3);710
711resize: vertical;712max-height: 150px;713min-height: 80px;714}
715
716/* style for hljs copy */
717.hljs-copy-wrapper {718position: relative;719overflow: hidden720}
721
722.hljs-copy-wrapper:hover .hljs-copy-button,
723.hljs-copy-button:focus {724transform: translateX(0)725}
726
727.hljs-copy-button {728position: absolute;729transform: translateX(calc(100% + 1.125em));730top: 1em;731right: 1em;732width: 2rem;733height: 2rem;734text-indent: -9999px;735color: #fff;736border-radius: .25rem;737border: 1px solid #ffffff22;738background-color: #2d2b57;739background-image: url('data:image/svg+xml;utf-8,<svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6 5C5.73478 5 5.48043 5.10536 5.29289 5.29289C5.10536 5.48043 5 5.73478 5 6V20C5 20.2652 5.10536 20.5196 5.29289 20.7071C5.48043 20.8946 5.73478 21 6 21H18C18.2652 21 18.5196 20.8946 18.7071 20.7071C18.8946 20.5196 19 20.2652 19 20V6C19 5.73478 18.8946 5.48043 18.7071 5.29289C18.5196 5.10536 18.2652 5 18 5H16C15.4477 5 15 4.55228 15 4C15 3.44772 15.4477 3 16 3H18C18.7956 3 19.5587 3.31607 20.1213 3.87868C20.6839 4.44129 21 5.20435 21 6V20C21 20.7957 20.6839 21.5587 20.1213 22.1213C19.5587 22.6839 18.7957 23 18 23H6C5.20435 23 4.44129 22.6839 3.87868 22.1213C3.31607 21.5587 3 20.7957 3 20V6C3 5.20435 3.31607 4.44129 3.87868 3.87868C4.44129 3.31607 5.20435 3 6 3H8C8.55228 3 9 3.44772 9 4C9 4.55228 8.55228 5 8 5H6Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7 3C7 1.89543 7.89543 1 9 1H15C16.1046 1 17 1.89543 17 3V5C17 6.10457 16.1046 7 15 7H9C7.89543 7 7 6.10457 7 5V3ZM15 3H9V5H15V3Z" fill="white"/></svg>');740background-repeat: no-repeat;741background-position: center;742transition: background-color 200ms ease, transform 200ms ease-out743}
744
745.hljs-copy-button:hover {746border-color: #ffffff44747}
748
749.hljs-copy-button:active {750border-color: #ffffff66751}
752
753.hljs-copy-button[data-copied="true"] {754text-indent: 0;755width: auto;756background-image: none757}
758
759@media(prefers-reduced-motion) {760.hljs-copy-button {761transition: none762}763}
764
765.hljs-copy-alert {766clip: rect(0 0 0 0);767clip-path: inset(50%);768height: 1px;769overflow: hidden;770position: absolute;771white-space: nowrap;772width: 1px773}
774
775.visually-hidden {776clip: rect(0 0 0 0);777clip-path: inset(50%);778height: 1px;779overflow: hidden;780position: absolute;781white-space: nowrap;782width: 1px;783}
784
785
786.color-picker>fieldset {787border: 0;788display: flex;789width: fit-content;790background: var(--colour-1);791margin-inline: auto;792border-radius: 8px;793-webkit-backdrop-filter: blur(20px);794backdrop-filter: blur(20px);795cursor: pointer;796background-color: var(--blur-bg);797border: 1px solid var(--blur-border);798color: var(--colour-3);799display: block;800position: relative;801overflow: hidden;802outline: none;803padding: 6px 16px;804}
805
806.color-picker input[type="radio"]:checked {807background-color: var(--radio-color);808}
809
810.color-picker input[type="radio"]#light {811--radio-color: gray;812}
813
814.color-picker input[type="radio"]#pink {815--radio-color: white;816}
817
818.color-picker input[type="radio"]#blue {819--radio-color: blue;820}
821
822.color-picker input[type="radio"]#green {823--radio-color: green;824}
825
826.color-picker input[type="radio"]#dark {827--radio-color: #232323;828}
829
830.pink {831--colour-1: #ffffff;832--colour-2: #000000;833--colour-3: #000000;834--colour-4: #000000;835--colour-5: #000000;836--colour-6: #000000;837
838--accent: #ffffff;839--blur-bg: #98989866;840--blur-border: #00000040;841--user-input: #000000;842--conversations: #000000;843}
844
845.blue {846--colour-1: hsl(209 50% 90%);847--clr-card-bg: hsl(209 50% 100%);848--colour-3: hsl(209 50% 15%);849--conversations: hsl(209 50% 25%);850}
851
852.green {853--colour-1: hsl(109 50% 90%);854--clr-card-bg: hsl(109 50% 100%);855--colour-3: hsl(109 50% 15%);856--conversations: hsl(109 50% 25%);857}
858
859.dark {860--colour-1: hsl(209 50% 10%);861--clr-card-bg: hsl(209 50% 5%);862--colour-3: hsl(209 50% 90%);863--conversations: hsl(209 50% 80%);864}
865
866:root:has(#pink:checked) {867--colour-1: #ffffff;868--colour-2: #000000;869--colour-3: #000000;870--colour-4: #000000;871--colour-5: #000000;872--colour-6: #000000;873
874--accent: #ffffff;875--blur-bg: #98989866;876--blur-border: #00000040;877--user-input: #000000;878--conversations: #000000;879}
880
881:root:has(#blue:checked) {882--colour-1: hsl(209 50% 90%);883--clr-card-bg: hsl(209 50% 100%);884--colour-3: hsl(209 50% 15%);885--conversations: hsl(209 50% 25%);886}
887
888:root:has(#green:checked) {889--colour-1: hsl(109 50% 90%);890--clr-card-bg: hsl(109 50% 100%);891--colour-3: hsl(109 50% 15%);892--conversations: hsl(109 50% 25%);893}
894
895:root:has(#dark:checked) {896--colour-1: hsl(209 50% 10%);897--clr-card-bg: hsl(209 50% 5%);898--colour-3: hsl(209 50% 90%);899--conversations: hsl(209 50% 80%);900}
901
902#send-button {903border: 1px dashed #e4d4ffa6;904border-radius: 4px;905cursor: pointer;906padding-left: 8px;907padding-right: 5px;908padding-top: 2px;909padding-bottom: 2px;910top: 20px;911left: 8px;912}
913
914#send-button:hover {915border: 1px solid #e4d4ffc9;916}
917