web_php/hotel_booking/style.css

542 lines
9.8 KiB
CSS

*{
font-family: "Lora", serif;
}
body{
color: #000;
background-color: #f4f4f4;
transition: background-color 1s ease;
}
a{
text-decoration: none !important;
}
ul{
list-style: none;
}
.logo-font{
font-family: "Tangerine";
}
.font-title{
font-size: 56px;
}
/*---Background color---*/
.panel{
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.color-khaki{
background-color: #CBC0AF;
}
.color-cream{
background-color: #DDD8D0;
}
.color-pink{
background-color: #EDD8D8;
}
/*---Btn---*/
.btn-main{
background-color: #3C3633;
border: none;
color: white;
padding: 6px 12px;
text-align: center;
font-size: 14px;
border-radius: 3px;
}
.btn-main:hover, .btn-minor:hover, .btn-th:hover{
background-color: #625e5b;
color: white;
transition: all 0.5s ease;
}
.btn-minor{
background-color: #747264;
border: none;
color: white;
padding: 6px 12px;
text-align: center;
font-size: 14px;
border-radius: 3px;
}
.btn-th{
border: 1px solid #747264;
padding: 15px 35px;
border-radius: 3px;
color: black;
}
/*-Hero-*/
.logo-img{
width: 13vw;
}
.hero{
position: relative;
height: 100vh;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
width: 100%;
animation: slide 15s infinite;
display: flex;
flex-direction: column;
}
@keyframes slide{
0%{
background-image: url(images/home1.jpg);
}
20%{
background-image: url(images/home1.jpg);
}
20.01%{
background-image: url(images/home2.jpg);
}
40%{
background-image: url(images/home2.jpg);
}
40.01%{
background-image: url(images/home3.jpg);
}
60%{
background-image: url(images/home3.jpg);
}
60.01%{
background-image: url(images/home4.jpg);
}
80%{
background-image: url(images/home4.jpg);
}
80.01%{
background-image: url(images/home5.jpg);
}
100%{
background-image: url(images/home5.jpg);
}
}
.load{
animation: slide 0.2s;
}
.hero::before{
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
z-index: 0;
}
.hero-content{
height: 100vh;
display: flex;
flex-direction: column;
color: #fff;
z-index: 1;
justify-content: center;
align-items: center;
padding-left: 10px;
padding-right: 10px;
}
.hero-head{
padding-left: 10px;
padding-right: 10px;
text-align: center;
margin-bottom: 30px;
}
.hero-title{
font-size: 56px;
text-transform: uppercase;
margin-bottom: 10px;
animation: fadeInUp 1s ease-in-out;
}
.hero-subtitle{
font-size: 18px;
animation: fadeInUp 1s ease-in-out 0.5s;
}
@keyframes fadeInUp{
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/*--- Navbar ---*/
.nav-parent{
width: 100%;
position: fixed;
top: 0;
z-index: 3;
}
.nav-wrapper{
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-wrapper ul{
display: flex;
justify-content: center;
align-items: center;
gap: 1rem;
}
.nav-wrapper ul li a::after{
content: '';
display: flex;
width: 0%;
height: 2px;
transition: all .3s ease;
}
.nav-wrapper ul li a:hover::after {
width: 100%;
}
.nav-item .nav-link{
color: white;
}
.nav-item .nav-link:hover{
color: #B0A695;
}
.branding{
display: none;
}
.burger {
display: none;
justify-content: space-between;
align-items: center;
flex-direction: column;
width: 50px;
height: 10px;
}
.burger.active .bar:nth-child(1) {
transform: rotate(45deg) translateY(6px);
}
.burger.active .bar:nth-child(2) {
transform: rotate(-45deg) translateY(-5px);;
}
.burger .bar {
width: 100%;
height: 2px;
background: white;
transition: all .3s ease;
}
.burger-links {
display: none;
justify-content: center;
align-items: center;
text-align: center;
font-size: 26px;
width: 100%;
height: 100vh;
position: fixed;
z-index: 2;
background: black;
top: -100%;
transition: all .3s ease;
}
.burger-links a{
color: white;
}
.burger-links.active {
top: 0%;
}
/*-- pre section --*/
.pre-header{
opacity: 0;
transform: translateY(50px);
transition: all 1.2s ease-out;
text-align: center;
font-size: 50px;
margin-bottom: 50px;
width: 50%;
}
.headerVisible{
opacity: 1;
transform: translateY(0);
}
/*-- pre section2 --*/
.pre-section2-container{
position: absolute;
z-index: 1;
width: 350px;
height: 400px;
background-color:white;
}
.pre-section2-wrapper{
width: 300px;
height: 350px;
border: 1px solid lightgray;
margin-top: 25px;
margin-left: 25px;
}
.pre-section2-text{
width: 300px;
height: 350px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
/*-Swiper-*/
.swiper{
width: 80%;
height: 800px;
}
.swiper-slide{
text-align: center;
font-size: 18px;
display: flex;
justify-content: center;
align-items: center;
}
.swiper-slide img{
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
/*-- services --*/
.service-card{
display: flex;
flex-direction: column;
justify-content: center;
align-items:center;
text-align: center;
color: white;
width: 100%;
background-color: rgba(0, 0, 0, 0.6);
}
.card-title-service{
font-size: 32px;
}
.card-text-service{
font-size: 14px;
}
/*--testimonials--*/
.swiper-testimonials{
width: 850px;
height: 50vh;
justify-content: center;
align-items: center;
}
.testimonials-text{
font-size: 22px;
}
.testimonials-user{
color: #3C3633;
}
.pre-header-testimonials{
width: 100px;
margin-bottom: 100px;
margin-top: 100px;
}
/*--Footer--*/
.footer{
width: 100%;
height: 100%;
}
.footer-grid{
display: grid;
grid-auto-rows: 1fr;
grid-template-columns: 1fr 1fr 1fr;
}
.footer-grid-1, .footer-grid-2{
display: flex;
flex-direction: column;
background-color: #194141;
height: 100vh;
padding-left: 100px;
padding-top: 250px;
color: #93B1A6;
}
.footer-grid-1 a{
color: #93B1A6;
font-size: 40px;
margin-bottom: 30px;
transition: all 0.3s ease;
}
.footer-grid-2 a{
color: #93B1A6;
margin-bottom: 20px;
transition: all 0.3s ease;
}
.footer-grid-2-title a{
display: flex;
flex-direction: row;
align-items: center;
gap: 20px;
color: #93B1A6;
font-size: 22px;
margin-bottom: 30px;
}
.footer-grid-1 a:hover, .footer-grid-2 a:hover{
color: white;
}
.footer-grid-3{
background-color: #112E2E;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
.footer-grid-3-title, .footer-grid-3-social{
color: lightgray;
}
.wave-area{
position: relative;
height: -2vh;
background-color: #194141;
}
.waves{
position: absolute;
width: 100%;
height: 15vh;
min-height: 200px;
max-height: 150px;
bottom: 0;
left: 0;
}
.parallax>use{
animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}
.parallax>use:nth-child(1){
animation-delay: -2s;
animation-duration: 7s;
}
.parallax>use:nth-child(2){
animation-delay: -3s;
animation-duration: 10s;
}
.parallax>use:nth-child(3){
animation-delay: -4s;
animation-duration: 13s;
}
.parallax>use:nth-child(4){
animation-delay: -5s;
animation-duration: 20s;
}
@keyframes move-forever{
0% {
transform: translate3d(-90px, 0, 0);
}
100% {
transform: translate3d(85px, 0, 0);
}
}
/*---------- Responsive ----------*/
@media (max-width:980px) {
.logo-img{
width: 15vw;
}
.pre-header{
width: 80%;
}
.swiper{
width: 95%;
}
.font-title{
font-size: 50px;
}
.profile{
padding-left: 50px;
padding-right: 50px;
}
.footer-grid{
display: block;
}
.footer-grid-1, .footer-grid-2{
height: 50vh;
padding-left: 50px;
padding-top: 100px;
}
}
@media (max-width:768px) {
.nav-wrapper {
padding: 30px;
}
.nav-wrapper ul {
display: none;
}
.branding {
display: flex;
font-size: 28px;
}
.branding .logo-font:hover{
color: #B0A695;
}
.burger{
display: flex;
}
.burger-links{
display: flex;
}
.pre-header{
font-size: 40px;
}
.font-title{
font-size: 40px;
}
.waves {
height: 60px;
min-height: 80px;
}
}
@media (max-width: 450px){
.hero-head{
margin-bottom: 10px;
}
.hero-title{
font-size: 40px;
}
.hero-subtitle{
font-size: 14px;
}
.row-form{
padding-left: 10px;
padding-right: 10px;
}
.pre-header{
font-size: 30px;
}
.pre-section2-container{
width: 280px;
height: 450px;
}
.pre-section2-wrapper{
width: 230px;
height: 400px;
margin-top: 25px;
margin-left: 25px;
}
.pre-section2-text{
width: 230px;
height: 400px;
}
.swiper{
height: 700px;
}
.profile{
padding-left: 30px;
padding-right: 30px;
}
.pre-header-testimonials{
margin-bottom: 50px;
}
.footer-grid-1 a{
color: #93B1A6;
font-size: 30px;
margin-bottom: 20px;
}
.footer-grid-2 a{
margin-bottom: 10px;
}
.footer-grid-2-title a{
font-size: 22px;
margin-bottom: 30px;
}
}