#home-main { position: relative; height: 850px; } .mainpic-home { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 2s ease-in-out; } .mainpic-home img { width: 100%; height: 100%; object-fit: cover; } .mainpic-home:first-child { opacity: 1; } .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); } .main-container { position: relative; } .container { padding: 0px 20px; margin: 0px 50px; } #home-main { bottom: 0; width: 100%; position: relative; } .text-container { position: absolute; top: 40%; left: 50%; width: 80%; transform: translate(-50%, -50%); z-index: 1; color: #ffffff; padding: 20px; border-radius: 20px; margin: 10px; overflow: auto; justify-content: center; } .main-pic { position: relative; z-index: -1; } .mainpic-home { margin-top: 0; } .mainpic-home img { width: 100%; } #heading { font-size: 55px; font-weight: 500; text-align: center; margin-top: 50px; } #subheading { font-size: 25px; text-align: center; font-style: italic; margin-top: -10px; } #about-us { margin-bottom: 100px; } .about-container h1 { display: flex; text-align: center; justify-content: center; color: #3B3B3B; font-size: 32px; } .offer { color: #3B3B3B; } .about-content { display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 50px; } .text-about { text-align: center; display: flex; justify-content: space-between; align-items: center; flex-direction: column; } .grid2 { display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 20px; } .about-content .box { text-align: center; position: relative; margin-top: 10px; } .about-content .box h4 { position: relative; margin-top: -10px; font-size: 15px; } .box { padding: 5px; border-radius: 10px; display: flex; justify-content: space-evenly; align-items: center; } #rooms-img, #restaurant-about, #gym, #meeting { height: 50px; width: 50px; padding: 5px; } .about-content img { padding: 10px; width: 30rem; } .text-about h2 { color: #3B3B3B; } .text-about p { margin: 16px; } .view-about { border: none; background: #213E9E; border-radius: 5px; color: #ffffff; font-size: 14px; font-weight: bold; display: flex; padding: 10px 20px; height: 40px; margin-top: 10px; cursor: pointer; transition: background 0.3s, color 0.3s; align-items: center; justify-content: center; } .view-about:hover { background: #18307e; color: #ffffff; } #popular-rooms { margin-bottom: 60px; } .main-rooms { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-right: 10px; } .more-rooms a { height: 40px; font-weight: 500; text-decoration: none; color: #3B3B3B; } .more-rooms a:hover { color: #18307e; cursor: pointer; } .headings h1 { text-align: center; color: #3B3B3B; font-size: 32px; } .subheadings p { color: #555555; padding: 20px; } .card { display: flex; flex-wrap: wrap; justify-content: center; margin-right: 10px; } .card-room1 { border-radius: 8px; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); background-color: #fff; box-shadow: 0.3s; width: 280px; height: 410px; margin: 30px; border: #ffffff; position: relative; } .headings-popular { color: #3B3B3B; } .card-room1 img { width: 100%; height: 60%; position: absolute; border-radius: 8px; } .card-room1:hover { box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); transform: scale(1.1); cursor: pointer; transition: transform 0.5s ease; } .discount p { position: absolute; margin-top: 0px; right: 0px; background-color: rgba(220, 20, 20, 0.8); box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.8); color: #fff; padding: 10px; font-weight: bold; } .text-room { position: relative; top: 65%; text-align: center; } .text-room h2 { font-size: 20px; font-weight: bold; color: #3B3B3B; } .available { position: absolute; top: 45%; right: 10px; } .text-available { text-align: center; box-shadow: 0px 0px 20px rgb(180, 175, 175); background-color: rgba(26, 24, 24, 0.8); color: #ffffff; height: 20px; padding: 10px; border-radius: 5px; font-size: 14px; font-weight: bold; } .room-facilities { position: absolute; display: flex; top: 65%; left: 20px; } .view-price { display: flex; align-items: center; justify-content: center; margin: 20px; } .price { position: absolute; left: 15px; font-size: 16px; color: #000; font-weight: 500; bottom: 10px; } .total-night { position: absolute; left: 55px; font-size: 16px; color: #000; font-weight: 500; bottom: 10px; } .view-room { position: absolute; right: 15px; border: none; border-radius: 5px; background: #213E9E; color: #ffffff; font-size: 14px; font-weight: bold; padding: 10px 20px; height: 20px; cursor: pointer; align-items: center; justify-content: center; transition: background 0.3s, color 0.3s; bottom: 15px; text-decoration: none; } .view-room:hover { background: #18307e; color: #ffffff; } #customers-say { padding: 20px; background-color: rgb(238, 238, 238); margin-bottom: 40px; } .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 2rem; } .client-card { padding: 1rem; background-color: var(--white); border-radius: 1rem; box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1); display: flex; justify-content: center; align-items: center; flex-direction: column; height: auto; width: auto; overflow: auto; } .client-card h2, .client-card p { text-align: center; color: #3B3B3B; } .client-card h2{ font-size: 18px; margin-bottom: 0; order: 1; } .client-card p { flex-grow: 1; order: 2; } #customers-say .subheadings p { text-align: center; color: #555555; } .letus-know { position: absolute; border: none; border-radius: 5px; background: #213E9E; color: #ffffff; font-size: 14px; padding: 10px 20px; cursor: pointer; align-items: center; justify-content: center; transition: background 0.3s, color 0.3s; bottom: 10px; text-decoration: none; } .letus-know:hover { background: #18307e; color: #ffffff; } #our-facilities { margin-bottom: 60px; } .headings p { text-align: center; color: #3B3B3B; } .service-facilities { padding: 20px; display: flex; flex-wrap: wrap; justify-content: center; margin-right: 10px; } .headings h3 { color: #3B3B3B; text-align: center; } .service { border-radius: 8px; width: 280px; height: 300px; margin: 20px; position: relative; display: flex; justify-content: center; align-items: center; align-content: center; text-align: justify; flex-direction: column; } .service h3 { text-align: center; color: #3B3B3B; } .service p { margin-top: -5px; } .service-img { background-color: #213E9E; width: 45%; height: 40%; border-radius: 50%; display: flex; justify-content: center; align-items: center; } .service-img img { width: 50%; height: 50%; } .other-facilities { padding: 20px; display: flex; flex-wrap: wrap; justify-content: center; margin-right: 10px; } .facility { border-radius: 10px; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); background-color: #fff; box-shadow: 0.3s; width: 280px; height: 410px; margin: 30px; border: #ffffff; position: relative; } .head-facility { width: 100%; position: absolute; bottom: -6%; left: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 1; color: #f1ebeb; overflow: auto; background-color: rgba(32, 18, 89, 0.8); border-radius: 10px; } .img-facility img { border-radius: 10px; width: 100%; height: 100%; position: absolute; } .card-des { display: flex; justify-content: center; align-items: center; flex-direction: row; } .card_destinations { position: relative; display: flex; justify-content: center; align-items: center; width: 70%; padding: 15px; overflow: hidden; margin-bottom: 30px; border-radius: 40px; } .card_destinations:hover { overflow: visible; } .card_destinations img { width: 100%; transition: transform 0.8s ease; border-radius: 40px; box-shadow: 5px 4px 8px rgba(0, 0, 0, 0.2); } .card_destinations:hover img { transform: scale(1.1); border-radius: 40px; box-shadow: 10px 4px 8px rgba(0, 0, 0, 0.2); margin: 0; } .card_destinations p { position: absolute; bottom: 0; left: 0; width: 100%; opacity: 0; transform: translateY(100%); background: rgba(32, 18, 89, 0.8); color: white; text-align: center; padding: 20px; box-sizing: border-box; transition: all 0.5s ease; border-radius: 40px; } .card_destinations:hover p { opacity: 1; transform: translateY(0%); } section:not(#nav, #footer) { opacity: 0; transform: translateY(50px); transition: all 1s ease-in-out; will-change: transform, opacity; } section:not(#nav, #footer).show { opacity: 1; transform: translateY(0); } .create-feedback{ display: flex; flex-direction: column; margin: 20px; align-items: center; text-align: center; } .client-card.rating-container { color: #d3d3d3; position: fixed; color: #333; } .rating-container{ color: #fdd835; font-size: 30px; } @media screen and (max-width: 880px) { .about-content { display: block; } } @media screen and (max-width: 770px) { .about-content img { width: 80%; } .container { padding: 0px; margin: 0px; } #heading { font-size: 30px; text-align: center; } #subheading { font-size: 20px; } .main-rooms { display: block; padding: 20px; } .card-grid { display: block; } .view-about { float: right; margin: 20px; } .card-des { margin: 20px; flex-direction: column; } .card_destinations { position: relative; width: 60%; padding: 0px; } .client-card{ margin-bottom: 15px; } .text-about { margin: 16px; } } @media screen and (max-width: 395px) { #heading { font-size: 20px; font-weight: bold; text-align: center; } #subheading { font-size: 12px; text-align: center; } .box { flex-direction: column; } .about-content { font-size: 14px; } .view-room { bottom: 15px; right: 10px; font-size: 10px; padding: 10px 15px; height: 15px; } .service-facilities { padding: 10px; } .service { width: 240px; height: 300px; } .service-img img { width: 50%; height: 50%; } .service h3 { font-size: 14; } .card{ padding: 0px; margin-right: 0px; } .other-facilities{ padding: 0px; margin-right: 0px; } .facility{ height: 300px; } } @media screen and (max-width:300px){ .text-container { position: absolute; top: 40%; left: 45%; padding: 10px; margin: 10px; } #heading { font-size: 12px; font-weight: bold; } #subheading { font-size: 8px; } }