.wrapper {
height: 100%;
}
.sidebar {
height: 100vh;
padding: 30px 0 0 20px;
justify-self: center;
position: fixed;
width: 200px;
}
.content {
padding: 50px;
padding-left: 300px;
}
.sidebar-heading {
margin: 30px;
font-weight: bold;
font-size: 30px;
}
.list-item {
margin: 30px;
list-style-type: none;
}
#list-link {
text-decoration: line-through;
color: #ff4e4e;
}
.list-color {
color: #291800;
}
.btn {
border-radius: 25px;
margin: 30px;
width: 129px;
height: 48px;
background-color: #ff4e4e;
color: #fff;
font-size: 18px;
border: none;
}
.header {
display: flex;
margin: 70px 0 50px;
}
.main-heading {
font-weight: bold;
font-size: 70px;
width: 60%;
margin-right: 30px;
}
.side-text {
font-weight: lighter;
font-size: 0.9em;
line-height: 1.65em;
position: relative;
overflow: hidden;
}
.side-text.p1 {
width: 25%;
padding: 30px 80px 40px 0;
}
.side-text:after {
content: "";
position: absolute;
background: #ff4e4e;
height: 3px;
width: 100%;
bottom: 30px;
left: -75%;
z-index: 1;
}
.side-text.p2 {
display: none;
}
.cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
grid-gap: 20px;
text-align: center;
}
.card {
width: 220px;
padding: 10px;
position: relative;
border-radius: 20px;
background-color: #fff;
padding-top: 20px;
z-index: 1;
}
.card:after {
content: "";
position: absolute;
border-radius: 20px;
height: 100%;
width: 100%;
top: 0;
left: 0;
z-index: -1;
box-shadow: 14px 21px 46px 0px #ccc;
}
.card img {
border-radius: 50%;
height: 150px;
width: 150px;
}
.card-title {
margin: 35px 0 20px 0;
font-weight: bold;
}
.mobile-nav {
align-items: center;
justify-content: space-between;
display: none;
position: fixed;
padding: 15px; left: 0;
right: 0;
z-index: 1000;
background-color: #fff;
}
.mobile-nav span {
font-size: 30px;
font-weight: bold;
} .ham-menu {
width: 35px;
height: 40px;
cursor: pointer;
overflow: hidden;
}
.line {
position: relative;
width: 100%;
height: 2px;
background: #ff4e4e;
margin-top: 10px;
border-radius: 1px;
transition: transform 0.2s;
}
#line1 {
left: 45%;
}
#line2 {
left: 25%;
transition: transform 0s;
}
#line3 {
left: 30%;
}
.open #line1 {
transform-origin: left;
transform: translateX(-45%) rotateZ(45deg);
}
.open #line2 {
transform: translateX(150%);
}
.open #line3 {
transform-origin: left;
transform: translateX(-30%) rotateZ(-45deg);
} .mobile-sidebar {
position: fixed;
width: 250px;
height: 100vh; left: -250px;
transition: transform 0.2s;
background: linear-gradient(to right, #fff, #eee);
padding-top: 100px;
z-index: 100;
}
.mobile-sidebar.open {
transform: translateX(250px);
}
.overlay {
position: fixed; left: 0;
width: 100vw;
height: 100vh;
z-index: 50;
overflow: hidden;
display: unset!important;
} @media (max-width: 1100px) {
.side-text.p1 {
display: none;
}
.side-text.p2 {
display: block;
margin-top: 50px;
padding-bottom: 40px;
}
.side-text.p2:after {
bottom: 0;
}
}
@media (max-width: 800px) {
.sidebar {
display: none;
}
.mobile-nav {
display: flex;
}
.content {
overflow: auto;
height: auto;
padding: 25px;
}
.main-heading {
width: 100%;
font-size: 35px;
text-align: center;
}
.cards {
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.card {
width: 160px;
justify-self: center;
}
.card img {
width: 120px;
height: 120px;
}
.card-title {
margin: 15px 0 15px 0;
}
}