/* clear any browser styles */ * { margin: 0; padding: 0; box-sizing: border-box; } /* color pallet */ :root { --dark-blue: #2b2b54; --mid-blue: #325288; --ballet-pink: #f4eee8; --light-pink: #f5cebe; --dark-teal: #114e60; --serif: Georgia, serif; --sans-serif: Arial, Helvetica, sans-serif; } /* global styles */ html { scroll-behavior: smooth; } body { font-family: var(--sans-serif); max-width: 1500px; margin: 0 auto; color: var(--dark-blue); } h1 { font-family: var(--sans-serif); font-size: 40px; color: var(--dark-blue); } h2 { font-family: var(--serif); font-size: 18px; color: var(--dark-blue); text-align: right; padding-top: 5px; } h3 { font-family: var(--serif); flex: 0 17%; font-size: 33px; padding-top: 20px; padding-left: 30px; } h3::after { content: ""; display: block; border-bottom: 2px solid var(--dark-blue); width: 75px; padding-top: 10px; } li a:hover, li a:active { border-bottom: 2px solid var(--dark-teal); color: var(--dark-teal); } /* global styles end */ /* header styles */ header { display: flex; flex-wrap: wrap; justify-content: space-between; position: sticky; background-color: #FFF; border-bottom: 3px solid var(--ballet-pink); top: 0; z-index: 9999; } header nav { padding-right: 35.2px; display: flex; align-items: center; } header nav ul { list-style-type: none; display: flex; flex-wrap: wrap; padding-top: 10px; } header nav ul li a { padding: 15px 0 5px; margin: 25px; text-decoration: none; color: var(--dark-blue); font-weight: bold; font-size: 18px; } .h1-block { padding: 20px 30px; margin-left: 30px; } /* header styles end */ /* hero styles */ .hero { background-color: var(--ballet-pink); height: 50px; } .hero h2 { display: flex; justify-content: flex-end; align-items: flex-end; padding: 70px 60px 20px 0; } /* hero styles end */ /* main content styles */ main > section { display: flex; flex-wrap: wrap; } /* about me styles */ .about-me { padding: 30px; margin: 0 auto; } .about-me img { flex: 0 14%; width: 200px; height: 100%; border-radius: 50%; margin-right: 140px; } .about-me div { flex: 2; align-self: center; padding-left: 20px; } .about-me div > * { padding-bottom: 20px; } .about-me div p { width: 85%; } /* about me styles end */ /* my work styles */ .my-work { justify-content: space-between; background-color: var(--light-pink); padding: 30px; } .my-work .project-list { display: flex; flex-wrap: wrap; flex: 1 80%; list-style-type: none; } .project-list > a { display: flex; align-items: flex-end; flex: 1 45%; padding-left: 20px; height: 375px; margin: 5px 15px 20px 5px; position: relative; z-index: 1; text-decoration: none; background-color: var(--ballet-pink); /* fall back for project background images */ } .project-list > a:hover { border-bottom: none; /* prevent border from appearing on project images */ } .project-list > a::before { content: ""; opacity: 0.7; width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: -1; } .project-list > a:hover::before { opacity: 1; } .project-list .featured-project { flex: 1 100%; } /* my work background images */ .project-list .featured-project::before { background-image: url(./images/parktime-2-home.png); background-size: cover; } .project-list .project-one::before { background-image: url(./images/tech-blog-home.png); background-size: cover; } .project-list .project-two::before { background-image: url(./images/notetaker-notes.png); background-size: cover; } .project-list .project-three::before { background-image: url(./images/workday-scheduler-tasks.png); background-size: cover; } .project-list .project-four::before { background-image: url(./images/weather-dash-search-history.png); background-size: cover; } .project-list .project-five::before { background-image: url(./images/js-api-quiz.png); background-size: cover; } .project-six::before { background-image: url(./images/password-generator.png); background-size: cover; } .project-list .project-description { display: block; padding: 20px 20px 15px; background-color: var(--mid-blue); color: #FFF; height: fit-content; width: fit-content; border-radius: 0 15px 15px 0; position: relative; right: 20px; bottom: 40px; } .project-list a .project-description::after { content: ""; display: block; border-bottom: 2px solid transparent; padding-bottom: 5px; } .project-list a .project-description:hover::after { content: ""; display: block; border-bottom: 2px solid #FFF; width: 100%; /* padding-top: 10px; */ } .project-title { padding-bottom: 5px; } /* my work styles end */ /* contact me styles */ .contact-me { padding: 30px; align-items: baseline; } .contact-me-links { flex: 1; } .contact-me-links section:first-child { padding-bottom: 40px; } .contact-me-links li { list-style-type: none; display: inline-block; margin-bottom: 30px; margin-left: 20px; } .contact-me-links a { font-family: var(--sans-serif); color: var(--dark-blue); font-size: 18px; text-decoration: none; margin: 15px 0 0 50px; padding-bottom: 5px; } .contact-me-links li::before { background-size: 100% 100%; background-repeat: no-repeat; display: block; width: 40px; height: 40px; position: relative; top: 27px; } .phone-number { pointer-events: none; } /* contact me icons */ /* .contact-me-links li:nth-child(1):before { content: " "; background-image: url(./icons/icon-telephone.png); } .contact-me-links li:nth-child(2):before { content: " "; background-image: url(./icons/icon-email2.png); width: 40px; height: 30px; } */ .contact-me-links li:nth-child(1):before { content: " "; background-image: url(./icons/icon-linkedin.png); } .contact-me-links li:nth-child(2):before { content: " "; background-image: url(./icons/icon-github.png); } .contact-me-links li:nth-child(3):before { content: " "; background-image: url(./icons/icon-hackerrank.png); } .contact-me-links li:nth-child(4):before { content: " "; background-image: url(./icons/icon-codecademy.png); } /* contact me icons end */ /* footer styles */ footer { background-color: var(--ballet-pink); } footer p { padding: 50px; text-align: center; } /* footer styles end */ /* medium screen styles */ @media screen and (max-width: 1365px) { h3 { flex: 0 20%; } .about-me div p { width: 95%; } .about-me img { margin-right: 40px; } .my-work .project-list { flex: 1 70%; } } /* medium screen styles end */ /* horizonal tablet */ @media screen and (max-width: 1024px) { h3 { flex: 0 25%; } .phone-number { pointer-events: auto; } } /* horizontal tablet end */ @media screen and (max-width: 980px) { header nav { justify-content: space-around; padding: 0 0 20px; } h3 { flex: 1 100%; margin-bottom: 20px; padding: 0; } .about-me img { position: relative; bottom: 40px; } } @media screen and (max-width: 840px) { .h1-block { margin-left: 0; } header nav ul li a { margin: 16px; } } /* vertical tablet */ @media screen and (max-width: 768px) { header { justify-content: center; } } /* vertical tablet end */ /* @media screen and (max-width: 690px) { .project-list .project-two, .project-list .project-four { margin: 5px 5px 20px 5px; } } */ /* small screens */ @media screen and (max-width: 575px) { .about-me img { margin: 0 auto; flex: 0 70%; width: 70%; } .about-me div { flex: 1 100%; padding: 20px 30px; } .about-me img { bottom: 10px; } .project-list a:not(.featured-project) { flex: 1 100%; height: 250px; } .contact-me h3 { margin-bottom: 10px; } .contact-me-links li { display: block; } .contact-me-links li a { margin-left: 50px; } } @media screen and (max-width: 524px) { h1 { margin-left: 0; padding: 10px 0 0; } header nav ul { justify-content: center; padding-top: 0; } header nav ul li { padding-top: 20px; } header nav ul li a { margin: 10px; } .about-me div { padding: 20px 0 0; } .about-me div p { font-size: 18px; width: 100%; } .about-me img { margin-top: 20px; } } @media screen and (max-width: 414px) { .hero h2 { justify-content: center; padding-right: 0; } .my-work { padding: 10px; } .my-work h3 { padding: 20px 0 0 20px; } .contact-me-links { margin-bottom: 30px; } .contact-me-links section:first-child { padding-bottom: 0px; } .contact-me-links li { margin-bottom: 0; } .contact-me-links li::before { top: 28px; } } /* small screens end */