.home-info{ margin-top: 60px; animation: fadein1 8s; -moz-animation: fadein1 8s; /* Firefox */ -webkit-animation: fadein1 8s; /* Safari and Chrome */ -o-animation: fadein1 8s; /* Opera */ width: 100%; } @keyframes fadein1 { from { opacity: 0; } to { opacity: 1; } } @-moz-keyframes fadein1 { /* Firefox */ from { opacity: 0; } to { opacity: 1; } } @-webkit-keyframes fadein1 { /* Safari and Chrome */ from { opacity: 0; } to { opacity: 1; } } @-o-keyframes fadein1 { /* Opera */ from { opacity: 0; } to { opacity: 1; } } .home-info p{ text-align: center; padding: 10px; margin-top: 1em; font-size: 1.3em; } /* style for room section and suite section in frontpage */ .room-section { display: flex; padding-top: 20px; justify-content: space-between; align-items: center; margin-top: 20px; border-top: 1px solid var(--yellow); margin-bottom: 20px; border-bottom: 1px solid var(--yellow); animation: fadein2 14s; -moz-animation: fadei2 14s; /* Firefox */ -webkit-animation: fadein2 14s; /* Safari and Chrome */ -o-animation: fadein2 14s; /* Opera */ } .room-section div { width: 50%; padding-bottom: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; } .room-section img { width: 100%; margin: auto; display: inline-block; } .room-section a { background-color: var(--white); color: #000; padding: 6px; border: none; border-radius: 10rem; width: 120px; height: 50px; display: inline-block; border-radius: 8px; transition: all 0.3s; z-index: 1; display: flex; align-items: center; justify-content: center; margin-top: 20px; } .room-section a:hover { background-color: var(--yellow); } @keyframes fadein2 { from { opacity: 0; } to { opacity: 1; } } @-moz-keyframes fadein2 { /* Firefox */ from { opacity: 0; } to { opacity: 1; } } @-webkit-keyframes fadein2 { /* Safari and Chrome */ from { opacity: 0; } to { opacity: 1; } } @-o-keyframes fadein2 { /* Opera */ from { opacity: 0; } to { opacity: 1; } } /* style for service section in frontpage */ .service-section { display: flex; flex-wrap: wrap; justify-content: space-around; margin-bottom: 20px; border-bottom: 1px solid var(--yellow); margin-top: 1em; } .service-section article{ width: 300px; height: 300px; display: flex; flex-direction: column; justify-content: center; align-items: center; margin-bottom: 20px; position: relative; } .service-section img { height: 90%; width: 90%; object-fit: cover; } .service-section a{ position: absolute; padding: 16px; background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)); } .service-section a:hover{ color: var(--yellow); } /* style for news section in front page */ .news-heading{ text-align: center; align-items: center; font-size: 2em; } .news-section { display: flex; flex-wrap: wrap; justify-content: space-around; margin-bottom: 20px; margin-top: 30px; justify-content: center; flex-wrap: wrap; align-items: center; } .news-section article { margin-bottom: 40px; margin: 20px; padding: 15px; flex: 0 1 40%; } .news-img-wrapper { width: 400px; height: 400px; display: flex; align-items: center; justify-content: center; margin: auto; } .news-img-wrapper img { height: 90%; width: 90%; object-fit: cover; display: flex; align-items: center; justify-content: center; } .news-header{ font-size: 1.4em; font-weight: bolder; text-align: center; } .news-section a { background-color: var(--white); color: var(--black); padding: 1px; border: none; width: 120px; height: 40px; display: inline-block; border-radius: 8px; transition: all 0.3s; display: flex; align-items: center; justify-content: center; align-items: center; text-align: center; margin: 0 auto; margin-bottom: 20px; } .news-section a:hover { background-color: var(--yellow); } #first_widget{ text-align: center; list-style: none; border: 1px solid var(--yellow) ; padding: 30px; font-size: 1.3em; animation: fadein1 8s; -moz-animation: fadein1 8s; /* Firefox */ -webkit-animation: fadein1 8s; /* Safari and Chrome */ -o-animation: fadein1 8s; /* Opera */ max-width: 1170px; } @keyframes fadein1 { from { opacity: 0; } to { opacity: 1; } } @-moz-keyframes fadein1 { /* Firefox */ from { opacity: 0; } to { opacity: 1; } } @-webkit-keyframes fadein1 { /* Safari and Chrome */ from { opacity: 0; } to { opacity: 1; } } @-o-keyframes fadein1 { /* Opera */ from { opacity: 0; } to { opacity: 1; } } @media only screen and (max-width: 820px) { .room-section { flex-direction: column; } .suite-section{ flex-direction: column-reverse !important; } .service-section img { height: 70%; width: 70%; } .news-section article { margin-bottom: 40px; margin: 20px; padding: 15px; flex: 0 1 70%; } .news-img-wrapper { width: 100%; display: flex; align-items: center; justify-content: center; } .news-img-wrapper img { width: 80%; } } @media only screen and (max-width: 630px) { .room-section a { width: 80px; height: 40px; } .news-heading{ font-size: 1.4em; } .news-section article { margin-bottom: 40px; margin: 20px; padding: 15px; flex: 0 1 70%; } .service-section img { height: 70%; width: 70%; } .article-img-wrapper { width: 100%; display: flex; align-items: center; justify-content: center; } .article-img-wrapper img { width: 80%; } } @media only screen and (max-width: 500px){ .news-img-wrapper { width: 100%; height: auto; } .news-img-wrapper img { width: 100%; height: auto; } } @media only screen and (min-width: 401px) { .home-info p { font-size: 1.1em; } }