:root {
--darkest-blue: #0a0b0f;
--dark-blue: #2B2D42;
--light-blue: #8D99AE;
--blue: #00a6fb;
--light-grey: #EDF2F4;
--light-red: #EF233C;
--dark-red: #D90429;
--green: #0ead69;
--dark-green: #0b8e55;
--standard-font: montserrat, verdana, arial;
--standard-font-size: 1.2rem;
--heading-font: bakbak, arial black, arial;
--max-width: 1000px;
}
* {
box-sizing: border-box;
}
@font-face {
font-family: bakbak;
src: url(//thewebdeveloperguide.com/wp-content/themes/webdevguidev2/BakBak_One/BakbakOne-Regular.ttf);
font-display: swap;
}
@font-face {
font-family: montserrat;
src: url(//thewebdeveloperguide.com/wp-content/themes/webdevguidev2/Montserrat/Montserrat-VariableFont_wght.ttf);
font-display: swap;
}
body {
background-color: var(--darkest-blue);
color: var(--light-grey);
font-family: var(--standard-font);
font-size: var(--standard-font-size);
margin: 0;
padding: 0;
}
a {
color: var(--light-red);
font-weight: bold;
text-decoration: none;
}
a:hover {
text-decoration: underline;
text-decoration-color: var(--light-blue);
text-decoration-style: dashed;
}
.btn {
background-color: var(--dark-red);
border: 0;
border-radius: .3rem;
color: var(--light-grey);
cursor: pointer;
display: inline-block;
font-family: var(--standard-font);
padding: 1rem 1.5rem;
transition: transform .2s ease-in;
}
.btn:hover {
background-color: var(--light-red);
text-decoration: none;
transform: translateY(5px);
}
.btn--secondary {
background-color: var(--green);
}
.btn--secondary:hover {
background-color: var(--dark-green);
}
header {
display: flex;
justify-content: center;
padding: 1rem;
}
h1, h2, h3, h4 {
font-family: var(--heading-font);
letter-spacing: 5px;
text-transform: uppercase;
}
h1 {
font-size: 1.6rem;
line-height: 1.4;
margin-top: 0;
text-align: center;
}
header a {
color: var(--light-grey);
letter-spacing: 5px;
text-transform: uppercase;
font-size: 1.6rem;
line-height: 1.4;
margin-top: 0;
text-align: center;
}
header a:hover {
text-decoration: none;
}
header img {
height: auto;
transition: transform .3s linear;
width: 25px;
}
header a:hover img {
transform: rotate(20deg);
}
.code, .wp-block-preformatted, pre {
background-color: var(--dark-blue);
font-size: 1rem;
overflow-y: auto;
padding: 1rem 1rem 1rem 5%;
width: 100%;
}
.main-navigation {
display: flex;
font-size: 1rem;
justify-content: center;
}
.main-navigation ul {
list-style-type: none;
display: flex;
justify-content: center;
margin: 0;
padding: 0;
}
.main-navigation ul li {
margin-right: 1.8rem;
}
.main-navigation ul li:last-child {
margin-right: 0;
}
.main-navigation ul li:first-child {
margin-right: 0;
}
.main-navigation ul li a {
border-bottom: 1px solid var(--darkest-blue);
padding-bottom: 5px;
color: var(--light-grey);
font-size: .9rem;
transition: border .3s ease-in;
}
.main-navigation ul li a:hover {
border-bottom: 1px solid var(--light-red);
text-decoration: none;
}
.divider {
background-color: var(--dark-blue);
height: 1px;
max-width: 300px;
margin: 2rem auto 1rem auto;
width: 100%;
}
.stFlx {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.nwFlx {
display: flex;
flex-wrap: nowrap;
}
.stLayout {
margin: 0 auto;
max-width: var(--max-width);
padding: 1rem 0;
width: 100%;
}
.stFlx--centre {
justify-content: center;
}
.stFlx--right {
justify-content: flex-end;
}
.stHeading {
font-family: var(--heading-font);
letter-spacing: 5px;
text-transform: uppercase;
text-align: center;
}
.stHeading span {
color: var(--light-red);
}
.hide--mobile {
display: none;
}
.hide--mobile--small {
display: none;
}
.hide--tablet {
display: initial;
}
.articleList {
padding: 2rem 0;
}
.articleList h2 {
margin: 0 0 4rem 0;
text-align: center;
width: 100%;
}
.articleList__items {
justify-content: space-between;
padding: 0 1rem;
margin-bottom: 2rem;
}
.articleList__item {
color: var(--light-grey);
font-size: 1rem;
line-height: 1.6;
margin-bottom: 4rem;
position: relative;
text-decoration: none;
width: 100%;
}
.articleList__item--single {
width: 100%; 
}
.articleList__item:hover {
text-decoration: none;
}
.articleList__item img {
height: auto;
width: 100%;
}
.articleList__item-date {
color: var(--light-red);
display: block;
font-size: .9rem;
margin-top: 1rem;
text-transform: uppercase;
}
.articleList__item-heading {
text-align: left;
}
.articleList__item-content {
display: flex;
flex-wrap: wrap;
align-items: stretch;
margin-bottom: 1rem;
}
.articleList__item--primary-tag {
background-color: var(--green);
font-size: .8rem;
padding: 0 .6rem;
position: absolute;
top: -.6rem;
left: -.3rem;
z-index: 2;
}
.articleList__item h3 {
font-size: 1.4rem;
}
.articleList__item .btn {
font-size: 1rem;
padding: .5rem .8rem;
}
.topicLayout {
padding-bottom: 2rem;
}
.topicLayout h2 {
text-align: center;
width: 100%;
}
.topics {
margin: 2rem 0 2rem 0;
padding: 0 1rem;
}
.topic {
align-content: center;
align-items: center;
background-color: var(--dark-blue);
border-radius: .3rem;
color: var(--light-grey);
display: flex;
height: 200px;
justify-content: center;
margin: 0 0 1rem 0;
transition: background-color .3s ease-in;
width: 100%;
}
.topic:hover {
background-color: var(--dark-red);
text-decoration: none;
}
.twoCol__content {
align-items: center; 
flex-wrap: wrap;
font-size: 1rem;
line-height: 1.6;
padding-bottom: 8rem;
}
.twoCol strong {
color: var(--blue);
}
.twoCol img, .twoCol picture {
border-radius: 100%;
height: auto;
margin-bottom: 1rem;
max-width: 300px;
width: 100%;
}
.twoCol__text {
overflow: hidden;
width: 100%;
}
.twoCol__text h3 {
font-size: 1rem;
}
footer {
background-color: #000;
display: flex;
flex-wrap: wrap;
justify-content: center;
padding: 2rem 1rem;
}
.footer__content {
display: flex;
flex-wrap: wrap;
max-width: var(--max-width);
width: 100%;
}
footer ul {
line-height: 1.4;
padding: 0;
}
footer ul li {
border-bottom: 1px solid #333;
list-style-type: none;
padding: 1rem 0;
}
.footer__content-list {
flex-basis: 100%;
}
.copyright {
flex-basis: 100%;
font-size: .9rem;
line-height: 1.6;
max-width: var(--max-width);
padding-top: 4rem;
}
.article {
line-height: 2;
margin: 0 auto;
max-width: 800px;
width: 90%;
}
.article blockquote {
font-family: var(--heading-font);
font-size: 1.4rem;
font-style: italic;
font-weight: bold;
letter-spacing: 2px;
line-height: 1.4;
margin: 2rem;
}
.article h1 {
margin: 2rem 0;
}
.article__byline {
font-size: 1rem;
text-align: center;
}
.article__author {
align-items: center;
display: flex;
justify-content: center;
}
.article__author img {
border-radius: 100%;
height: auto;
margin-right: .5rem;
width: 40px;
}
.article__categories {
display: flex;
justify-content: center;
margin-top: .8rem;
}
.article__categories a {
margin-right: .5rem;
}
.article__categories a:last-child {
margin-right: 0;
}
.article__content {
font-size: 1.2rem;
margin-top: 2rem;
}
.post .article__content h2,
.post .article__content h3,
.post .article__content h4   {
margin: 3rem 0;
}
.article__content h2 {
border-top: 6px solid var(--light-red);
font-size: 1.8rem;
padding-top: 1rem;
}
.article__content h3 {
border-left: 8px solid var(--green);
font-size: 1.4rem;
padding-left: 1rem;
}
.article__content h4 {
border-left: 10px solid var(--blue);
padding-left: 1rem;
}
.article__content figure {
margin: 0;
width: 100%;
}
.article__content img {
display: block;
height: auto;
margin: 3rem auto;
max-width: 100%;
width: auto;
}
.article__content .articleList__item img {
margin: 0;
}
.article__bio {
display: flex;
flex-wrap: wrap;
justify-content: center;
line-height: 1.4;
margin: 3rem 0;
}
.article__bio img {
border-radius: 100%;
margin-bottom: 2rem;
}
.search {
align-content: center;
align-items: center;
background-color: var(--dark-red);
border-radius: 100%;
height: 30px;
padding: 1rem;
position: absolute;
top: 1rem;
right: 1rem;
width: 30px
}
.search img {
height: 15px;
width: 15px;
}
.overlay {
background-color: var(--dark-blue);
align-items: center;
align-content: center;
position: fixed;
height: 100vh;
opacity: 0;
visibility: hidden;
top: 0;
transition: opacity .3s ease-in;
width: 100vw;
z-index: 4;
}
.overlay h2 {
font-size: 2rem;
margin: 0 0 3rem 0;
text-align: center;
width: 100%;
}
.show {
opacity: 1;
visibility: visible;
}
.search-input {
background: transparent;
border: 0;
border-bottom: 1px solid var(--light-grey);
color: var(--light-grey);
font-family: var(--standard-font);
font-size: 1.2rem;
padding: .5rem 0;
width: 90%;
}
.search-input:focus, .search-input:focus-visible {
border-bottom: 1px solid var(--light-grey);
outline: 0;
}
.search-form {
max-width: 500px;
width: 70%;
}
.search-button {
background: transparent;
border: 0;
cursor: pointer;
height: auto;
margin-left: 1rem;
width: 25px;
}
.close-search {
background: transparent;
border: 0;
cursor: pointer;
position: absolute;
top: 1rem;
right: 2rem;
}
.recommendation {
border: 1px solid var(--dark-blue);
border-radius: .3rem;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin: 2rem 0;
padding: 2rem;
position: relative;
}
.recommendation__top-pick {
background-color: var(--light-red);
font-size: .8rem;
padding: 0 .6rem;
position: absolute;
top: -10px;
left: -10px;
z-index: 2;
}
.recommendation__content {
align-items: flex-start;
align-content: center;
display: flex;
flex-basis: 100%;
flex-wrap: wrap;
justify-content: center;
order: 1;
}
.recommendation__content__title {
flex-basis: 100%;
font-size: 1.6rem;
line-height: 1.6;
margin-bottom: 1.5rem;
text-align: center;
}
.recommendation__content__title:hover {
text-decoration: none;
}
.recommendation__image {
flex-basis: 100%;
max-width: 300px;
}
.recommendation__content__button {
padding: .5rem .8rem;
}
.recommendation__content__notice {
font-size: .9rem;
font-style: italic;
line-height: 1.6;
margin-top: 1.5rem;
}
.hero {
position: relative;
width: 100%;
}
.subscribe {
background: #2E3840;
border-radius: .3rem;
margin: 3rem auto 0 auto;
width: 100%;
}
.hero img {
display: none;
}
.hero__bg {
border-radius: .3rem;
left: 0;
right: 0;
position: absolute;
z-index: 2;
}
.subscribe__content {
font-size: 1rem;
padding: 1rem;
line-height: 1.4;
text-align: center;
width: 100%;
}
.hero__content {
font-size: 1rem;
padding: 1rem;
line-height: 1.4;
max-width: 600px;
text-align: center;
width: 100%;
}
.hero__content strong {
color: var(--light-red);
}
.hero__content h2,
.subscribe__heading {
font-family: var(--heading-font);
font-size: 1.6rem;
letter-spacing: 5px;
margin: 0;
text-transform: uppercase;
}
.hero__form input {
border: 0;
border-radius: .3rem;
font-family: var(--standard-font);
margin-bottom: .8rem;
max-width: 400px;
padding: .8rem;
flex-basis: 100%;
}
.hero__form button {
margin-top: .6rem;
max-width: 400px;
flex-basis: 100%;
font-size: 1rem;
}
.hero__nospam {
font-size: .9rem;
margin-top: .5rem;
}
@media (min-width: 380px) {
.hide--mobile--small {
display: initial;
}
.hide--tablet {
display: none;
}
.twoCol__text h3 {
font-size: 1.2rem;
}
}
@media (min-width: 500px) {
h1 {
font-size: 2.5rem;
}
header img {
width: 50px;
}
header {
padding: 2rem 0;
}
header a {
font-size: 2.5rem;
}
.main-navigation ul li a {
font-size: 1rem;
}
.main-navigation ul li:first-child {
margin-right: 1.8rem;
}
.divider {
max-width: 600px;
margin: 4rem auto 3rem auto;
}
.hide--mobile {
display: initial;
}
.search {
height: 50px;
top: 2rem;
right: 4rem;
width: 50px
}
.search img {
width: 25px;
}
.hero {
height: 450px;
position: initial;
}
.hero img {
display: block;
height: auto;
margin: 0 auto;
max-width: 100%;
width: max-content;
}
.hero__content {
padding: 2rem 1rem;
position: absolute;
z-index: 3;
}
.subscribe__content {
padding: 2rem 1rem;
}
.hero__content h2,
.subscribe__heading {
font-size: 2.2rem;
margin: initial;
}
.hero__form {
margin-top: 2rem;
}
.hero__nospam {
margin-top: 2rem;
}
.articleList__items {
padding: 0;
}
.articleList__item {
width: calc((100% / 2) - 2rem);
}
.articleList__item--single {
width: 100%; 
}
.article__content {
margin-top: 4rem;
}
.article__content h2 {
font-size: 2rem;
}
.article__content h3 {
font-size: 1.6rem;
}
.article__content .articleList__items .articleList__item--single img {
margin: 0 auto;
}
.articleList__item--single .articleList__item--primary-tag {
left: 0;
right: 0;
margin: 0 auto;
text-align: center;
width: 70px;
}
.article blockquote {
font-size: 1.6rem;
letter-spacing: 2px;
line-height: 1.6;
margin: 4rem;
}
.topics {
margin-bottom: 6rem;
}
.topic {
margin: 0 1rem 1rem 0;
padding: 0;
width: calc((100% / 3) - 2rem);
}
.topic:nth-child(3n) {
margin-right: 0;
}
.twoCol__content {
flex-wrap: nowrap;
}
.twoCol img, .twoCol picture {
margin: 0 4rem 0 0;
max-width: 300px;
}
.twoCol__text {
padding: 0;
}
.twoCol__text h3 {
font-size: 1.4rem;
}
.article__bio {
align-items: center;
display: flex;
flex-wrap: nowrap;
line-height: 1.4;
margin: 6rem 0;
}
.article__bio img {
margin-bottom: 0;
margin-right: 2rem;
}
.footer__content-list {
flex-basis: calc((100% / 3) - 4rem);
margin-right: 4rem;
}
.footer__content-list:last-child {
margin-right: 0;
}
.recommendation__content {
flex-basis: calc(100% - 350px);
order: 0;
}
.post .article__content h2,
{
padding-top: 2rem;
}
.post .article__content h3,
.post .article__content h4  {
padding-left: 2rem;
}
.post .article__content h2,
.post .article__content h3,
.post .article__content h4 {
margin: 5rem 0;
}
.article__content .hero__content h2 {
font-size: 2rem;
margin: 0;
padding: 0;
}
}.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;font-style:normal;font-weight:100;line-height:.68;margin:.05em .1em 0 0;text-transform:uppercase}body.rtl .has-drop-cap:not(:focus):first-letter{float:none;margin-left:.1em}p.has-drop-cap.has-background{overflow:hidden}:root :where(p.has-background){padding:1.25em 2.375em}:where(p.has-text-color:not(.has-link-color)) a{color:inherit}p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[style*="writing-mode:vertical-rl"]{rotate:180deg}