IntelliChat / style.css
ntphuc149's picture
Update style.css
0a3fed4 verified
raw
history blame
16.7 kB
/* Goole Fonts */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Vithkuqi:wght@500&family=Playfair+Display:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
scroll-behavior: smooth;
scroll-padding-top: 3rem;
font-family: var(--font-family-2);
}
/* Variables */
:root {
--main-color: #54372a;
--second-color: #df582e;
--text-color: #060413;
--container-color: #f8e4be;
--bg-color: #f9f6f2;
--text-alter-color: #94908e;
--poppins-font: "Poppins", sans-serif;
--font-family-2: "Playfair Display", serif;
}
body {
color: var(--text-color);
background-color: var(--bg-color);
}
a {
text-decoration: none;
}
img {
width: 100%;
}
section {
padding: 3rem 0 2rem;
}
.container {
max-width: 1920px;
width: 100%;
display: flex;
justify-content: center;
}
header {
width: 100%;
padding: 5px 20px;
display: flex;
justify-content: center;
background-color: #54372a;
column-gap: 2rem;
position: fixed;
top: 0;
left: 0;
z-index: 1;
}
.logo {
font-size: 2.5rem;
font-weight: 700;
color: var(--container-color);
}
.header-container {
width: 60%;
display: flex;
justify-content: space-between;
}
.nav-icons {
display: flex;
align-items: center;
column-gap: 2rem;
margin-left: 45%;
cursor: pointer;
}
nav {
display: flex;
justify-content: end;
align-items: center;
padding: 10px 0 10px 20px;
border-radius: 2rem;
width: 60%;
}
.navbar {
display: flex;
justify-content: center;
align-items: center;
column-gap: 4rem;
width: 100%;
margin-left: 30%;
}
.nav-link {
font-size: 0.8rem;
color: var(--bg-color);
font-weight: 600;
font-family: var(--poppins-font);
transition: 0.4s all cubic-bezier(0.075, 0.82, 0.165, 1);
}
.nav-link:hover {
color: var(--second-color);
transition: 0.4s all cubic-bezier(0.075, 0.82, 0.165, 1);
}
.bx {
color: var(--bg-color);
font-size: 20px;
}
/* Menu Icon */
.menu-icon {
display: none;
flex-direction: column;
align-items: center;
justify-content: center;
row-gap: 5px;
cursor: pointer;
z-index: 100;
transition: 0.3s;
}
.menu-icon div {
display: block;
background: var(--bg-color);
height: 2px;
width: 23px;
transition: 0.3s;
}
.move .line1 {
transform: rotate(-45deg) translate(-5px, 5px);
}
.move .line2 {
opacity: 0;
}
.move .line3 {
transform: rotate(45deg) translate(-5px, -5px);
}
.home {
width: 60%;
min-height: 500px;
display: grid;
grid-template-columns: repeat(2, 1fr);
align-items: center;
gap: 1.5rem;
margin-top: 5rem;
animation: fadeInLeft 1s ease forwards;
}
.home-text h1 {
font-size: 3.5rem;
font-weight: 800;
color: var(--main-color);
}
.home-text p {
max-width: 400px;
font-size: 0.94rem;
font-family: var(--poppins-font);
margin: 1rem 0 1.5rem;
text-align: justify;
}
.btn {
max-width: 168px;
padding: 10px;
display: flex;
align-items: center;
justify-content: center;
column-gap: 0.5rem;
border-radius: 2rem;
background: var(--main-color);
box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.5);
}
.btn span {
font-family: var(--poppins-font);
color: var(--bg-color);
text-transform: uppercase;
}
.btn .bx {
font-size: 20px;
background: var(--second-color);
color: var(--bg-color);
padding: 5px;
border-radius: 50%;
transform: rotate(60deg);
}
.btn:hover {
/* transform: translateY(-5px); */
transform: scale(1.1);
transition: 0.5s;
}
.home-img {
max-width: 560px;
width: 100%;
}
.heading {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.heading h2 {
font-size: 2.2rem;
font-weight: 800;
margin: 1rem 0;
}
.services {
width: 60%;
margin: 3rem auto;
display: flex;
flex-direction: column;
align-items: center;
}
.service-content {
width: 100%;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(auto, 200px));
justify-content: space-between;
gap: 1rem;
margin-top: 2rem;
}
.ser-box {
background: var(--main-color);
display: flex;
flex-direction: column;
align-items: center;
row-gap: 1rem;
padding: 40px 20px;
border-radius: 2rem;
cursor: pointer;
transition: 0.5s;
}
.ser-box img {
width: 100px;
height: 100px;
object-fit: contain;
}
.ser-box p {
color: var(--container-color);
}
.ser-box:hover {
transform: scale(1.1);
}
.heading p {
max-width: 100%;
text-align: justify;
font-size: 0.9rem;
font-family: var(--poppins-font);
margin-top: 1rem;
}
.products .heading {
width: 60%;
}
.product-content {
display: grid;
grid-template-columns: repeat(3, 250px);
justify-content: space-between;
gap: 2rem;
background: #d0a97a;
border-radius: 1.5rem;
padding: 40px 60px;
}
.product-box {
background: #fff8f7;
padding: 20px;
border-radius: 1.5rem;
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
}
.product-box .heart-icon {
position: absolute;
top: 20px;
left: 20px;
padding: 8px;
background: #fff;
color: var(--second-color);
border-radius: 50%;
}
.product-box img {
margin-top: 1.5rem;
width: 140px;
height: 140px;
border-radius: 50%;
object-fit: cover;
box-shadow: 5px 3px 5px rgba(0, 0, 0, 0.25);
}
.product-box p {
font-size: 0.7rem;
font-weight: 500;
font-family: var(--poppins-font);
padding: 2px 7px;
border: 1px solid var(--text-alter-color);
border-radius: 1rem;
background: #fff;
margin: 1rem 0 0.5rem;
}
.product-box h2 {
color: var(--main-color);
font-size: 1.3rem;
font-weight: 500;
}
.product-box:hover {
transform: translateY(-5px);
}
.product-info {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 2rem;
width: 100%;
}
.product-info span {
color: var(--main-color);
font-weight: 500;
}
.product-info .bx {
padding: 8px;
background: var(--second-color);
color: var(--bg-color);
border-radius: 50%;
cursor: pointer;
}
.product-info .bx:hover {
background: var(--main-color);
transition: 0.4s all cubic-bezier(0.075, 0.82, 0.165, 1);
}
iframe {
border-radius: 20px;
width: 100%;
height: 600px;
}
.input-book input {
padding: 2px 10px;
border: none;
background: transparent;
/* font-weight: 700; */
}
.input-book input:focus {
outline: none;
}
.team-content {
width: 60%;
}
.team-box img {
width: 100%;
max-height: 500px;
object-fit: cover;
border-radius: 10px;
}
.team-box h2 {
font-size: 0.94rem;
font-weight: 500;
color: var(--main-color);
font-family: var(--poppins-font);
margin-top: 1rem;
}
.team-box span {
font-size: 0.77rem;
color: var(--text-alter-color);
font-family: var(--poppins-font);
}
.team-box p {
font-size: 0.88rem;
font-family: var(--poppins-font);
color: var(--main-color);
margin-top: 10px;
}
.review {
max-width: 550px;
margin: auto;
width: 100%;
}
.review-box {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
margin-bottom: 3.5rem !important;
}
.review-box img {
width: 100px;
height: 100px;
border-radius: 50%;
border: 7px soild #fff8f7;
object-fit: cover;
object-position: center;
box-shadow: 0 4px 16px hsla(355, 25%, 15%, 0.1);
}
.review-box h2 {
font-size: 1rem;
color: var(--main-color);
font-family: var(--poppins-font);
font-weight: 500;
margin: 1rem 0;
}
.review-box span {
font-size: 1.4rem;
font-weight: 700;
color: var(--main-color);
}
.review-box p {
font-size: 0.9rem;
font-family: var(--poppins-font);
columns: var(--text-alter-color);
margin-top: 1rem;
}
.swiper-wrapper {
overflow: hidden;
position: relative;
}
.swiper-slide {
display: flex;
position: relative;
object-fit: cover;
}
.swiper-pagination-bullet {
width: 8px !important;
height: 8px !important;
border-radius: 0.2rem !important;
background: var(--main-color) !important;
opacity: 1 !important;
}
.swiper-pagination-bullet-active {
width: 1.5rem !important;
background: var(--second-color) !important;
}
.book {
width: 60%;
display: flex;
flex-direction: column;
align-items: center;
color: var(--bg-color);
padding: 40px 20px;
position: relative;
}
.book-img {
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 1rem;
z-index: -1;
}
.book-overlay {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
border-radius: 1rem;
z-index: -1;
}
.book-data {
margin-top: 4rem;
}
.book-data h2 {
font-size: 2rem;
text-align: center;
font-weight: 700;
}
.book-data form {
display: flex;
align-items: center;
gap: 10px;
background: var(--bg-color);
border-radius: 2rem;
padding: 10px;
margin: 1rem 0;
/* opacity: 0.88; */
}
.input-box {
display: flex;
align-items: center;
column-gap: 5px;
}
.input-box .bx {
color: var(--text-color);
}
.input-box input {
width: 100%;
border: none;
outline: none;
padding: 15px 0;
background: transparent;
}
.book-btn {
text-align: center;
font-family: var(--poppins-font);
font-size: 0.8rem;
padding: 10px 14px;
background: var(--main-color);
color: var(--bg-color);
border-radius: 2.5em;
}
.book-btn:hover {
background: #f8e4be;
transition: 0.4s all cubic-bezier(0.075, 0.82, 0.165, 1);
color: #54372a;
}
.book-data p {
font-size: 0.8rem;
text-align: center;
font-weight: 500;
}
.footer {
display: grid;
grid-template-columns: repeat(4, auto);
justify-content: space-between;
gap: 1rem;
margin-top: 3rem !important;
padding: 0 3rem;
}
.footer .logo {
color: var(--main-color);
margin-bottom: 1rem;
}
.social {
display: flex;
align-items: center;
}
.social a {
font-size: 24px;
color: var(--main-color);
margin-right: 1rem;
}
.social a:hover {
color: var(--second-color);
}
.footer-box {
display: flex;
flex-direction: column;
}
.footer-box h3 {
font-size: 1.1rem;
font-weight: 600;
color: var(--main-color);
margin-bottom: 1rem;
}
.footer-box a {
color: var(--main-color);
margin-bottom: 10px;
}
.copyright {
padding: 30px;
color: var(--main-color);
text-align: center;
}
/* Cart */
.bill {
width: 0%;
height: 60%;
position: fixed;
right: 0;
bottom: 20%;
z-index: 10;
display: block;
transition: 1s;
box-shadow: 5px 5px 10px 5px var(--text-alter-color);
border-bottom-left-radius: 10px;
border-top-left-radius: 10px;
background-color: white;
}
.caption {
height: 10%;
width: 100%;
column-gap: 3rem;
border-bottom: 1px solid #94908e;
padding: 6px 5px;
}
.caption h1 {
font-size: 2rem;
margin: 0;
padding: 0;
float: left;
}
.caption img {
width: 40px;
height: 40px;
float: right;
padding: 5px 3px;
margin: 5px;
border-radius: 10px;
border: 2px solid var(--main-color);
cursor: pointer;
}
.billProduct {
height: 70%;
width: 100%;
display: block;
border-bottom: 1px solid #94908e;
overflow: scroll;
}
.billProduct h3 {
text-align: center;
color: var(--second-color);
}
.detailProduct {
width: 100%;
min-height: 15%;
display: flex;
border: 1px solid #d0a97a;
column-gap: 0.4rem;
}
.detailProduct img {
width: 30px;
height: 30px;
border-radius: 50%;
margin: 6px 5px;
}
.detailProduct h4 {
padding: 5px 2px;
width: 50%;
}
.quantity {
height: 100%;
width: 20%;
display: block;
text-align: center;
font-weight: 600;
}
.quantity p {
color: #df582e;
}
.detailProduct img:last-child {
margin: 7px 5px;
cursor: pointer;
}
.inforBill {
width: 100%;
height: 20%;
color: chocolate;
padding: 10px 10px;
display: flex;
column-gap: 60%;
}
.inforBill button {
width: 40%;
height: 40%;
margin: 5px 5%;
float: right;
background-color: #d0a97a;
color: white;
font-weight: 600;
font-size: 1rem;
border: none;
cursor: pointer;
border-radius: 10px;
}
.printer {
width: 0%;
height: auto;
position: fixed;
left: 0;
top: 20%;
transition: 1.5s;
border: 2px solid #d0a97a;
border-radius: 20px;
column-gap: 0.5rem;
display: flex;
color: #df582e;
text-align: center;
box-shadow: #d0a97a 0px 20px 30px -10px;
background-color: var(--bg-color);
}
.printer div {
padding: 1%;
overflow: hidden;
}
.printer img {
width: 40%;
border-radius: 20px;
padding: 3%;
}
.printer div h1:last-child {
font-size: 3.5rem;
}
.footer-content {
width: 80%;
display: flex;
justify-content: space-between;
}
.footer-boxes {
width: 60%;
display: flex;
justify-content: space-between;
}
@media (max-width: 1500px) {
.header-container {
width: 80%;
}
.home {
width: 80%;
}
.services {
width: 80%;
}
.team-content {
width: 80%;
}
.products .heading {
width: 80%;
}
.review {
width: 80%;
}
.book {
width: 80%;
}
.caption h1 {
font-size: 1.2rem;
}
.caption img {
width: 25px;
height: 25px;
padding: 2px;
margin: 2px;
}
.inforBill h1 {
font-size: 1.2rem;
font-weight: 600;
}
.inforBill button {
height: 50%;
margin: 2px 5px;
}
.inforBil {
height: 15%;
}
.billProduct {
height: 75%;
}
.printer {
height: 30%;
font-size: 0.6rem;
}
.printer div h1:last-child {
font-size: 2.5rem;
}
iframe {
height: 500px;
width: 80%;
}
}
@media (max-width: 1080px) {
.header-container {
width: 90%;
}
.home-text h1 {
font-size: 3rem;
}
.product-content {
grid-template-columns: repeat(3, 1fr);
padding: 40px;
}
iframe {
width: 80%;
height: 350px;
}
.book {
width: 100%;
}
}
@media (max-width: 875px) {
section {
padding: 2rem 0;
}
.home-text h1 {
font-size: 2.5rem;
}
iframe {
width: 100%;
}
.service-content {
width: 80%;
}
}
@media (max-width: 770px) {
.home {
min-height: 500px;
grid-template-columns: 1fr;
margin-top: 4.5rem !important;
}
.home-text {
order: 1;
}
.heading h2,
.book-data h2 {
font-size: 1.6rem;
}
.product-content {
grid-template-columns: repeat(2, 1fr);
}
.book {
padding: 20px;
}
.book-data {
margin-top: 3rem;
max-width: 350px;
width: 100%;
}
.book-data form {
display: grid;
padding: 15px;
border-radius: 10px;
}
.input-box {
border-bottom: 1px solid var(--text-alter-color);
}
.footer {
grid-template-columns: repeat(3, auto);
}
.footer-content {
width: 100%;
padding: 0 20px;
}
.footer-boxes {
width: 100%;
display: flex;
justify-content: space-between;
}
}
@media (max-width: 700px) {
.header-container {
width: 100%;
}
nav {
padding: 14px 10px;
}
.logo {
font-size: 2.25rem;
padding: 0 10px;
}
.menu-icon {
display: flex;
}
.navbar {
position: absolute;
top: 100%;
right: -20%;
transform: translate(-50%);
width: 40vw;
background: var(--main-color);
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
}
.open-menu {
clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
}
.nav-link {
display: block;
margin: 1rem 0;
}
iframe {
height: 305px;
}
header {
padding: 12px 20px;
}
.service-content {
justify-content: center;
}
.team-box p {
text-align: justify;
}
}
@media (max-width: 500px) {
.heading h2 br {
display: contents;
}
.service-content {
justify-content: center;
}
.product-content {
grid-template-columns: 1fr;
padding: 20px;
}
.footer {
grid-template-columns: 1fr;
}
iframe {
height: 200px;
}
.service-content {
grid-template-columns: repeat(auto-fit, minmax(auto, 100%));
padding: 50px 20px;
}
.footer-content {
display: block;
}
.home-img {
width: 80%;
margin: 0 10%;
}
}
@media (max-width: 380px) {
.home {
font-size: 2rem;
}
.service-content {
grid-template-columns: repeat(auto-fit, minmax(auto, 140px));
}
.ser-box img {
width: 80px;
height: 80px;
}
p {
font-size: 0.9rem;
}
.heading h2,
.book-data h2 {
font-size: 1.4rem;
}
}
/* Animation */
@keyframes fadeInLeft {
0% {
opacity: 0;
transform: translateX(-30px);
}
100% {
opacity: 1;
transform: translateX(0px);
}
}
@keyframes fadeInRight {
0% {
opacity: 0;
transform: translateX(30px);
}
100% {
opacity: 1;
transform: translateX(0px);
}
}