body { line-height: 1.5; background-color:#F3F1F5; font-family: sans-serif; } * { margin: 0px; padding: 0px; box-sizing: border-box; } /*navbar-css*/ .topnav { background-color: rgb(45 200 45); overflow: hidden; font-family: "Ubuntu", sans-serif; font-weight: bold; } .topnav a { float: left; display: block; color: #f2f2f2; text-align: center; padding: 14px 16px; text-decoration: none; font-size: 17px; } .topnav a:hover { background-color: #d2e4d4; color: black; } .topnav a.active { background-color: #0e6344; color: white; } .topnav .icon { display: none; } .topnav input[type="text"] { float: right; padding: 6px; border: none; margin-top: 8px; margin-right: 16px; font-size: 17px; border-radius: 11px; } @media screen and (max-width: 600px) { .topnav a:not(:first-child) { display: none; } .topnav a.icon { float: right; display: block; } .topnav input { display: none; } } @media screen and (max-width: 600px) { .topnav.responsive { position: relative; } .topnav.responsive a.icon { position: absolute; right: 0; top: 0; } .topnav.responsive a { float: none; display: block; text-align: left; } .topnav.responsive input { float: none; display: block; text-align: left; width: 100%; margin: 0; padding: 14px; border: 2px solid black; } } /*footer-css*/ .footer_div { max-width: 1170px; margin: auto; font-family: "Ubuntu", sans-serif; } .footer_row { display: flex; flex-wrap: wrap; } ul { list-style: none; } .footer { background-color: #3b590e; padding: 70px 0; } .footer_col { width: 25%; padding: 0 15px; } .footer_col h4 { font-size: 18px; color: #ffffff; text-transform: capitalize; margin-bottom: 35px; font-weight: 500; position: relative; } .footer_col h4::before { content: ""; position: absolute; left: 0; bottom: -10px; background-color: #e91e63; height: 2px; box-sizing: border-box; width: 50px; } .footer_col ul li:not(:last-child) { margin-bottom: 10px; } .footer_col ul li a { font-size: 16px; text-transform: capitalize; color: #ffffff; text-decoration: none; font-weight: 300; color: #bbbbbb; display: block; transition: all 0.3s ease; } .footer_col ul li a:hover { color: #ffffff; padding-left: 8px; } .footer_col .social-links a { display: inline-block; height: 40px; width: 40px; background-color: rgba(255, 255, 255, 0.2); margin: 0 10px 10px 0; text-align: center; line-height: 40px; border-radius: 50%; color: #ffffff; transition: all 0.5s ease; } .footer_col .social-links a:hover { color: #24262b; background-color: #ffffff; } #scrollTopBtn { background-color: rgba(64, 64, 64, 0.9); color: #fff; padding: 10px 10px; position: fixed; width: 40px; height: 40px; display: none; bottom: 0; margin-bottom: 0px; cursor: pointer; right: calc(50% - 20px); z-index: 1023; } @media (max-width: 767px) { .footer_col { width: 50%; margin-bottom: 30px; } } @media (max-width: 574px) { .footer_col { width: 100%; } } .container{ display:grid; grid-template-columns:12fr 35fr 8fr; grid-template-rows:(2,auto); } .item{ margin-top: 10%; margin-bottom: 0; padding: 10%; padding-bottom: 0; border-radius: 10px; } .second-nav{ display:none; } .item:nth-of-type(4n){ grid-column-start: 1; grid-column-end: 4; } .bottom{ background-color: red; padding-top: 3%; margin-top: 0; height: fit-content; padding-bottom: 3%; } .left-side{ margin-left: 10%; padding-left: 0; } .right-side{ padding-right: 5%; } .middle{ margin-top: 5%; background-color: white; line-height: 2; padding-left: 5%; padding-right: 5%; padding-top: 5; height:fit-content; padding-bottom: 15%; } .left-side-image{ border-radius: 100%; width: 100%; height: 300px; margin-top: 0; margin-bottom: 2%; } .leftls{ padding: 5%; padding-left: 0; } .left-side-list{ color: black; text-decoration: none; font-size: 1.3rem; } .left-heading{ background-color: #11052C; padding: 5%; margin-top: 5%; } .left-side-heading{ color: white; text-decoration: none; font-weight: normal; } .leftls:hover{ background-color: #7F7C82; color: white; cursor: pointer; } .height-prob{ height: 5%; } hr{ color: grey; } .middle p{ line-height: 1.8; display:block; margin-top: 2%; margin-bottom: 2%; } .middle img{ width: 250px; float: right; margin:2%; border-radius: 100%; height: 200px; } .middle-fst-div{ text-align: left; } .middle h1,h2{ font-weight: normal; } #dsa-types-image{ width: 100%; border-radius: 0; height: auto; margin-top: 3%; margin-bottom: 3%; } .middle .array-img{ width: 80%; height: 20%; float: none; border-radius: 1%; } .structure{ background-color:#F3F1F5; color:black; padding-left: 2%; box-shadow: -8px -8px 15px black; padding:4%; } .structure:hover{ background-color: #7F7C82; color: white; } .practice-prob{ background-color: #002236; border-radius: 0; } .practice-prob-head{ background-color: #002236; color: white; text-align: center; margin-top: 2%; font-size: 2rem; padding-bottom: 10px; } .practice-prob ul{ list-style-type: circle; color: grey; } .practice-prob li{ margin-left: 5%; margin-bottom: 2%; } .practice-prob li a{ text-decoration: none; color: grey; font-size: 1.1rem; } .practice-prob li a:hover{ color: white; font-size: 1.2rem; } .more-prob a{ text-decoration: none; color: white; } .right-side img{ width:100%; height:500px; box-shadow: -10px 10px 4px grey; } @media (min-width:418px) and (max-width:768px){ .left-side{ display:none; } .container{ grid-template-columns: 35fr 5fr; } .item{ margin-left: 2%; } } @media (min-width:0px) and (max-width:418px){ .left-side{ display:none; } .container{ grid-template-columns: 100fr; } .item{ margin-left: 2%; margin-right: 2%; } } @media (min-width:0px) and (max-width:768px){ .second-nav{ display:block; background-color: #002236; height: 40px; overflow: hidden; } .second-nav a{ float:left; font-size: 16px; color: white; text-align: center; padding: 8px 8px; text-decoration: none; } .dropdown { float: left; overflow: hidden; } .dropdown .dropbtn { font-size: 16px; border: none; outline: none; color: white; padding: 8px 8px; background-color: inherit; font-family: inherit; margin: 0; } .dropdown:hover .dropbtn{ color: grey; font-size: 18px; } .dropdown-content { display: none; position: absolute; background-color: #f9f9f9; min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1; } .dropdown-content a { float: none; color: black; padding: 12px 16px; text-decoration: none; display: block; text-align: left; } .dropdown-content a:hover { background-color: #ddd; } .dropdown:hover .dropdown-content { display: block; } } @media (min-width:300px) and (max-width:450px){ .second-nav a{ font-size:10px; } .dropdown .dropbtn { font-size: 10px; } } @media (min-width:0px) and (max-width:300px){ .second-nav a{ font-size:10px; } .dropdown .dropbtn { font-size: 7px; } }