*{ font-family: Montserrat, sans-serif; margin:0; padding:0; box-sizing: border-box; outline: none; border:none; text-decoration: none; text-transform: capitalize; transition: .2s linear; color:#ffff; } /* Set the banner container width and height */ :root { --color1: #003773; /* #126377 */ --color2: #ffff; /* #20d5d8 */ } .container{ background: var(--color2); padding-top: 0; } .container .heading{ text-align: center; color:#fff; text-shadow: 0 5px 10px rgba(0,0,0,.2); font-size: 1.75rem; font-weight: 600; background: var(--color1); padding: 5px; } .container .box-container{ padding:25px 5%; padding-bottom: 25px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap:25px; } .container .box-container .box{ height: 70vh; box-shadow: 0 8px 16px 0 rgba(0,0,0,.2); border-radius: 5px; text-align: center; padding-top: 0; cursor: pointer; } .container .box-container .box .box-heading{ text-align: center; color:#fff; text-shadow: 0 5px 10px rgba(0,0,0,.2); font-size: 1rem; font-weight: 600; border-radius: 5px; background: var(--color1); padding: 5px; } .container .box-container .box1{ background-image: url(../../px/ARCC/images/layouts/TarongaHome.jpg); background-position: center; background-repeat: no-repeat; background-size: cover ; } .container .box-container .box2{ background-image: url(../../px/images/Logos/TISL_HomePg.png); background-position: center; background-repeat: no-repeat; background-size: cover; } .container .box-container .box3{ background-image: url(../../px/images/Logos/Retreat_HomePg.png); background-position: center; background-repeat: no-repeat; background-size: cover; } .container .box-container .box4{ background-image: url(../../px/Utility_Management_System/images/ZooUMS.jpg); background-position: center; background-repeat: no-repeat; background-size: cover; } .container .box-container .box5{ background-image: url(../../px/WildlifeHospital/images/Layouts/WildlifeHospital.jpg); background-position: center; background-repeat: no-repeat; background-size: cover; } .container .box-container .box:hover{ box-shadow: 0 10px 15px rgba(0,0,0,.3); transform: scale(1.03); } .container .footing { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--color2); /* or any background color you prefer */ border-top: 1px solid var(--color1); padding: 10px 20px; text-align: center; box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); z-index: 1000; } .container .footing p { margin: 0; font-size: 0.75rem; font-weight: 600; color: var(--color1); text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); display: inline-block; } .container .footing p img { vertical-align: middle; height: 20px; margin: 0 5px; } .banner { width: 100%; height: Auto; background: linear-gradient(90deg, rgb(255, 255, 255) 10%, var(--color2) 30%, var(--color1) 70%); /* Set the background color of the banner */ display: flex; /* Use flexbox for easy positioning of the logo and server name */ align-items: center; /* Center the content vertically within the banner */ justify-content: center; } /* Style for the logo */ .logo { flex: 0 0 auto; /* Allow the logo to shrink or grow as needed, and prevent it from growing beyond its original size */ margin-top: 5px; margin-bottom: 5px; margin-left: 20px; /* Add some left margin to the logo for spacing */ max-height: 70px; /* Set the logo height to 70px */ object-fit: contain; /* Set the object-fit property to contain to fit the image within the height while maintaining aspect ratio */ } /* Style for the server name container */ .server-name { flex: 1 1 auto; /* Allow the server name container to grow or shrink as needed, and fill the remaining space */ text-align: right; /* Align the server name container to the right within the banner */ margin-right: 5px; /* Add some right margin to the server name container for spacing */ display: flex; /* Use flexbox for easy positioning of top and bottom lines of text */ flex-direction: column; /* Set the direction of the flex container to column */ } /* Style for the top line of server name text */ .server-name .top-line { font-family: Montserrat, sans-serif; /* Set the font family of the top line text */ font-size: 2rem; /* Set the font size of the top line text */ font-weight: 600; /* Set the font weight of the top line text */ flex-shrink: 0; /* Prevent the top line from shrinking */ color: #FFFFFF; /* Set the color of the top line text to white */ margin-right: 5px; /* Add some right margin to the top line text container for spacing */ } /* Style for the bottom line of server name text */ .server-name .bottom-line { font-family: Montserrat, sans-serif; /* Set the font family of the bottom line text */ font-size: 1.5rem; /* Set the font size of the bottom line text */ font-weight: 600; /* Set the font weight of the bottom line text */ color: #FFFFFF; /* Set the color of the bottom line text to white */ flex-shrink: 0; /* Prevent the bottom line from shrinking */ margin-right: 5px; /* Add some right margin to the bottom line text container for spacing */ } /* Styles for screens other than mobile devices */ @media screen and (min-width: 875px) { .banner { display: flex; justify-content: space-between; align-items: center; } .logo { margin-left: 5px; margin-right: auto; } .server-name { /* Add any styles for the server name text on larger screens here */ margin-left: auto; text-align: right; max-width: 50%; /* Set the maximum width for the server name text */ white-space: nowrap; /* Prevent text from wrapping to new lines */ overflow: hidden; /* Hide any overflowing text */ text-overflow: ellipsis; /* Add ellipsis (...) for truncated text */ } } /* Media query for mobile devices */ @media screen and (min-width: 300px) and (max-width: 875px) { .banner { display: flex; flex-direction: column; justify-content: center; align-items: center; background: linear-gradient(180deg, rgb(255, 255, 255) 10%, var(--color2) 30%, var(--color1) 70%); } .logo { margin: 0 auto; /* Center horizontally */ display: flex; justify-content: center; /* Center vertically */ align-items: center; /* Center vertically */ height: 70px; /* Set height of logo */ } .server-name { display: block; /* Display the server name text as a block element */ text-align: center; /* Center the server name text */ /* Add margin top for spacing between logo and server name text */ width: 100%; /* Set the maximum width for the server name text */ white-space: nowrap; /* Prevent text from wrapping to new lines */ overflow: hidden; /* Hide any overflowing text */ text-overflow: ellipsis; } } @media screen and (max-width: 300px) { .banner { background: var(--color1); } .server-name { display: none; /* Hide .server-name element */ } /* Center the logo */ .logo { margin: 0 auto; /* Center horizontally */ display: flex; justify-content: center; /* Center vertically */ align-items: center; /* Center vertically */ height: 70px; /* Set height of logo */ /* Additional styles for logo, such as width, padding, etc. */ } } @media (max-width:768px){ .container{ padding:20px; } }