@import url("pygment_highlights.css");

:root {
  /* It's better to one source of truth for colors; doing it this way means we can switch the color theme globally, making it much easier to use downstream */
  --font-color: #25293b;
  --bg-color-1: #fff;
  --bg-color-2: rgba(255,255,255,0.5);
  --bg-color-3: rgba(255,255,255,0.8);
  
  /* TO-DO: remove theme specific variables, use the unified system described above */ 
  --light-theme-font-color: #25293b;
  --light-theme-date-bg: #e6e6e6;
  --light-theme-post-bg: rgba(255,255,255,0.8);
  --light-theme-border-color: var(--light-theme-font-color);

  /* --dark-theme-alt-font-color: #9bf0ff; */
  --dark-theme-alt-font-color: var(--dark-theme-font-color);
  --dark-theme-font-color:  #fff;
  --dark-theme-border-color: #9bf0ff;
  --dark-theme-bg: rgb(33,  35, 53);
  --dark-theme-alt-bg: #25293b;
  --dark-theme-alt2-bg: #3e3e3e;

  --body-font-family: Roboto, Arial, "Helvetica Neue", Helvetica, sans-serif;
  --alt-font-family: 'Space Mono', monospace;
}

.dark-mode {
  --font-color: #fff;
  --dark-mode-font-color: #9bf0ff;
  --bg-color-1: rgb(33, 35, 53);
  --bg-color-2: #25293b;
  --bg-color-3: #3e3e3e;
}

.cat-tag-container a {
  color: white !important;
}

.dark-mode .glow-in-the-dark-text {
  text-shadow: 0 0 1px var(--dark-mode-font-color);
  color: var(--dark-mode-font-color);
}


/* dark-mode transitions */
html {
  transition: 150ms background-color linear;
  scroll-behavior: auto !important;
}

.post-preview .post-meta date,
.dark-mode-switch-wrapper *
{
  transition: 150ms all linear;
}

.dark-mode-switch-wrapper {
  display: flex;
  justify-content: flex-end;
}

/* --- General --- */

body {
  font-size: 16px;
  color: inherit;
  position: relative;
}

html, .menu-is-open #menu-container {
  background-color: var(--bg-color-1);
  color: var(--font-color);
  background-image: 
  url(/img/assets/light-bg-noise@2x.png),
  url(/img/assets/eth-top-left@2x.png),
  url(/img/assets/eth-bottom-right@2x.png);
  background-size: 50%, 40%, 40%;
  background-attachment: scroll, fixed, fixed;
  background-position: center, top left, bottom right;
  background-repeat: repeat, no-repeat, no-repeat;
}

@media only screen and (min-width: 480px) {
  html {
    background-size: 50%, 25%, 25%;
  }
}
 
html.dark-mode, .dark-mode .menu-is-open #menu-container {
  background-image: 
  url(/img/assets/eth-top-left@2x.png),
  url(/img/assets/eth-bottom-right@2x.png);
  background-size: 25%, 25%;
  background-attachment: fixed, fixed;
  background-position: top left, bottom right;
  background-repeat: no-repeat, no-repeat;
} 

body {
  font-family: var(--body-font-family);
  color: var(--light-theme-font-color);
  background-color: transparent;
  overflow-x: hidden;
}
.dark-mode body {
  color: var(--dark-theme-font-color);
}

p {
  line-height: 1.5;
  margin: 30px 0;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--alt-font-family);
  font-weight: 700;
}

.container h3 {
  margin: 20px 20px 10px;
}

a {
  color: #008AFF;
}
a:hover,
a:focus,
a:active {
  color: #0085A1;
  outline: 0;
}

article a { color: #009ab5; }
article a:active { text-decoration: none; }
article a:hover {
  text-decoration: none;
  box-shadow: inset 0 -8px 0 #a5eaf5;
}

.dark-mode article a { color: #9bf0ff; }
.dark-mode article a:hover {
  box-shadow: inset 0 -8px 0 #009ab5;
  color: #9bf0ff;
}


.dark-mode blockquote {
  color: #ccc
}
blockquote {
  color: #808080;
  font-style: italic;
}
blockquote p:first-child {
  margin-top: 0;
}
hr.small {
  max-width: 100px;
  margin: 15px auto;
  border-width: 4px;
  border-color: inherit;
  border-radius: 3px;
}

.main-content {
  padding-top: 80px;
}
@media only screen and (min-width: 768px) {
  .main-content {
    padding-top: 130px;
  }
}

.main-explain-area {
  padding: 15px inherit;
}

.hideme {
  display: none;
}

::-moz-selection {
  color: white;
  text-shadow: none;
  background-color: #0085A1;
}
::selection {
  color: white;
  text-shadow: none;
  background-color: #0085A1;
}
img::selection {
  color: white;
  background: transparent;
}
img::-moz-selection {
  color: white;
  background: transparent;
}

img {
  max-width: 100%;
}

.disqus-comments {
  margin-top: 30px;
}

@media only screen and (min-width: 768px) {
  .disqus-comments {
    margin-top: 40px;
  }
}

.linked-section {
  padding-top: 60px;
  margin-top: -25px;
}

.aspect {
  position: relative;
  padding-bottom: 56.25%;
  width: 100%;
}

.aspect > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- Navbar --- */

.dark-mode-switch {
  display: inline-block;
  width: 80px;
  height: 34px;
  border: 1px solid var(--light-theme-border-color);
  border-radius: 16px;
  padding: 4px 5px;
  overflow: hidden;
  cursor: pointer;
  color: var(--light-theme-font-color);
}

.dark-mode-switch i {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--light-theme-font-color);
}
.dark-mode-switch i::before, .dark-mode-switch i::after {
  content: "mode";
  position: relative;
  font-family: var(--alt-font-family);
  font-size: 12px;
  font-style: normal;
  top: -1px;
}
.dark-mode-switch i::before {
  left: -39px;
}
.dark-mode-switch i::after {
  left: 4px;
}

.dark-mode-switch:hover i {

}


.dark-mode .dark-mode-switch {
  border-color: var(--font-color);
  color: var(--font-color);
  /* border-color: var(--dark-theme-border-color);
  box-shadow: inset 0 0 4px 0 var(--dark-theme-border-color),
              0 0 4px 0 var(--dark-theme-border-color);
  color:  var(--dark-theme-border-color) */
}
.dark-mode .dark-mode-switch i {
  transform: translateX(44px);
  background-color: #fff;
}


@keyframes dark-mode-switch-hover-animation {
  0%  {  }
  50% {  }
}

.date-filter.open {
  margin-bottom: 1rem;
}

.date-filter > .date-filter-month {
  display: none;
}

.date-filter.open > .date-filter-month {
  display: inline-block;
}

.date-filter.open > .date-filter-accordion-toggle > i {
  transform: rotateX(0deg);
}

.date-filter-accordion-toggle:hover h3 {
  text-decoration: underline;
}

.date-filter > .date-filter-accordion-toggle > i {
  transition: all 0.2s;
  transform: rotateX(180deg);
}

.date-filter-accordion-toggle {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-bottom: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.date-filter-accordion-toggle h3 {
  margin: 0px;
  margin-top: 0px !important;
}

/* --- Bootstrap overrides --- */

.container {
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 768px) {
  .container {
    max-width: 650px;
    width: auto;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 850px;
    width: auto;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1080px;
    width: auto;
  }  
}

@media only screen and (min-width: 768px) {
  .container {
    padding-right: 8px;
    padding-left: 8px;
  }

}


/* --- Footer --- */

footer {
  padding: 30px 0;
  margin-top: 50px;
  font-size: 14px;
  text-align: center;
  background-image: linear-gradient(to bottom, rgba(96, 109, 167, 0.4), rgba(96, 109, 167, 0.84));
}

footer a {
  color: var(--dark-mode-font-color);
}

footer .list-inline {
  margin: 0;
  padding: 0;
}

footer .copyright {
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--light-theme-border-color);
  border-bottom: 1px solid var(--light-theme-border-color);
  display: inline-block;
}

footer .copyright {
  display: inline-block;
  margin: 3rem 0;
  font-family: var(--alt-font-family);
}

footer .theme-by {
  text-align: center;
  margin: 0;
}

footer .footer-links a, 
footer .footer-links a:hover {
  color: var(--light-theme-font-color);
}

.dark-mode footer .copyright {
  color: var(--dark-theme-alt-font-color);
  border-color: var(--dark-theme-alt-font-color);
}


@media only screen and (min-width: 768px) {
  footer {
    padding: 50px 0;
  }
  footer .footer-links {
    font-size: 18px;
  }
  footer .copyright {
    font-size: 16px;
  }
}

/* --- Post preview --- */

.post-preview {
  margin: 35px 0;
}

@media only screen and (min-width: 768px) {
  .post-preview {
    padding: 20px 0;
    margin: 20px 0;
  }
}

.post-preview:last-child {
  border-bottom: 0;
}

.post-preview a {
  text-decoration: none;
  color: #404040;
}

.post-preview a:focus,
.post-preview a:hover {
  text-decoration: none;
  color: #0085A1;
}

.post-preview .post-title {
  margin: 0 0 23px;
  position: relative;
  z-index: 10;
}

.post-preview .post-title a {
  font-size: 18px;
  background-color: #555474;
  color: white;
  line-height: 0;
  padding: 0.9rem 1rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.dark-mode .post-preview .post-title a {
  color: var(--dark-mode-font-color);
}

.post-preview .post-title a:hover {
  color: white !important;
  box-shadow: inset 0 -8px 0 #36364c;
}

.dark-mode .post-preview .post-title a:hover {
  color: #9bf0ff !important;
  box-shadow: inset 0 -8px 0 #009ab5;
}

.post-preview .post-subtitle {
  margin: 0;
  font-weight: 300;
  margin-bottom: 10px;
}

.post-title {
  color: var(--dark-mode-font-color, --font-color);
}

.post-preview .post-exerpt {
  margin: 0 12px 24px;
  line-height: 1.6em;
  font-size: 15px;
}
@media only screen and (min-width: 768px) {
  .post-preview .post-exerpt {
    margin: 0 24px 24px;
  }
}


.post-preview .post-author {
  display: block;
  margin: 7px 24px 13px;

  font-family: var(--alt-font-family);
  font-weight: bold;
}


.post-preview .post-meta {
  color: var(--light-theme-font-color);
  font-family: var(--alt-font-family);
  font-weight: bold;
  font-size: 14px;
  display: flex;
  margin-bottom: -16px;
  position: relative;
  z-index: 10;
}
.post-preview .post-meta li {
  display: inline-block;
}
.post-preview .post-meta date {
  background-color: var(--light-theme-date-bg);
  padding: 5px 16px;

}
.dark-mode .post-preview .post-meta date {
  background-color: var(--dark-theme-alt2-bg);
  color: var(--dark-theme-font-color)
}

.post-preview .post-meta a[class^=category-] {
  padding: 5px 16px;
}

.post-meta a {
  color: white !important; 
}

.post-preview .post-meta,
.post-heading .post-meta {
}
.post-preview .post-entry {
  flex-grow: 1;
  background-color: var(--bg-color-3);
  border: 1px solid transparent;
  padding: 0 0 2px;
}
.dark-mode .post-preview .post-entry {
  border: solid 1px rgba(155, 240, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
}

.post-preview .post-title a:hover {
  color: inherit;
}
.dark-mode .post-preview .post-title a {
  background-color: var(--dark-theme-alt-bg);
}


.post-entry-container {
  display: inline-block;
  width: 100%;
}
.post-entry {
  width: 100%;
}

.post-preview .post-image {
  position: relative;
  perspective: 1000px;
  padding: 0;
  margin-bottom: -16px;
  min-height: 32px;
}
@media only screen and (min-width: 768px) {
  .post-preview .post-image {
    padding: 0 16px;
  }
}

.post-preview .post-image img {
  transition: 100ms ease-out transform;
  width: 100%;
  height: 225px;
  object-fit: cover;
}

.post-preview .post-read-more {
  font-weight: 700;
}

@media only screen and (min-width: 768px) {
  .post-preview .post-title {
  }
}

/* --- Tags --- */

.blog-tags {
  color: #999;
  font-size: 15px;
  margin-bottom: 30px;
}

.blog-tags a {
  color: #008AFF;
  text-decoration: none;
  padding: 0px 5px;
}

.blog-tags a:hover {
  border-radius: 2px;
  color: #0085A1;
  background-color: #EEE;
}

.post-preview .blog-tags {
  margin-top: 5px;
  margin-bottom: 0;
}

@media only screen and (min-width: 768px) {
  .post-preview .blog-tags {
    margin-top: 10px;
  }
}

@media only screen and (max-width: 500px) {
  .post-image, .post-image img {
  }

  .post-image {
    width: 100%;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    /* float: left; */
  }

  .post-preview .post-meta {
    margin-bottom: -0.625rem;
  }
}
/* --- Post and page headers --- */

.intro-header {
  margin: 80px 0 20px;
  position: relative;
}

.intro-header.no-img {
  margin-top: 20px;
}

.intro-header.big-img {
  background: no-repeat center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
  margin-top: 51px; /* The small navbar is 50px tall + 1px border */
  margin-bottom: 35px;
}
.intro-header.big-img  .big-img-transition {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: no-repeat center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
  -webkit-transition: opacity 1s linear;
  -moz-transition: opacity 1s linear;
  transition: opacity 1s linear;
}
.intro-header .page-heading {
  text-align: center;
}
.intro-header.big-img .page-heading,
.intro-header.big-img .post-heading {
  padding: 100px 0;
  color: #FFF;
  text-shadow: 1px 1px 3px #000;
}
.intro-header .page-heading h1 {
  margin-top: 0;
  font-size: 36px;
}
.intro-header .post-heading h1 {
  margin-top: 0;
  font-size: 28px;
}
.intro-header .page-heading .page-subheading,
.intro-header .post-heading .post-subheading {
  font-size: 24px;
  line-height: 1.1;
  display: block;
  font-weight: 300;
  margin: 10px 0 0;
}
.intro-header .post-heading .post-subheading {
  margin-bottom: 20px;
}
.intro-header.big-img .page-heading .page-subheading,
.intro-header.big-img .post-heading .post-subheading {
  font-weight: 400;
}
.intro-header.big-img .page-heading hr {
  box-shadow: 1px 1px 3px #000;
  -webkit-box-shadow: 1px 1px 3px #000;
  -moz-box-shadow: 1px 1px 3px #000;
}
.intro-header.big-img .post-heading .post-meta {
  color: #EEE;
}
.intro-header.big-img .img-desc {
  background: rgba(30, 30, 30, 0.6);
  position: absolute;
  padding: 5px 10px;
  font-size: 11px;
  color: #EEE;
  right: 0;
  bottom: 0;
  display: none;
}
.post-category-list {
  list-style: none;
  padding: 0;
  margin: .5em 0;
}

.post-category-list li {
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 0.4em;
}

.post-category-list a {
  font-size: 15px;
}

.blog-post {
  border: solid 1px #ffebfd;
  background-color: rgba(255,255,255,0.8);
  padding: 2rem;
}

.blog-post > p {
  overflow-x: auto;
}

.dark-mode .blog-post {
  border: solid 1px rgba(155, 240, 255, 0.2);
  background-color: rgba(33,35,53, 0.8);
}

a[class^=category-] {
  background-color: #666;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: 5px 16px;
  font-family: var(--alt-font-family);
  font-weight: bold;
  font-size: 14px;
}
a[class^=category-]:hover {
  color: #fff
}

a.category-devcon                    { background-color: rgb(243,206,72); }
a.category-ecosystem-support-program { background-color: rgb(239,116,99); }
a.category-organizational            { background-color: rgb(68,177,101); }
a.category-research-and-development  { background-color: rgb(138,81,153); }
a.category-security                  { background-color: rgb(25,158,201); }
a.category-ethereum-org              { background-color: rgb(73 91 153); }

@media only screen and (min-width: 768px) {
  .intro-header {
    margin-top: 130px;
  }
  .intro-header.big-img {
    margin-top: 91px;  /* Full navbar is small navbar + 20px padding on each side when expanded */
  }
  .intro-header.big-img .page-heading,
  .intro-header.big-img .post-heading  {
    padding: 150px 0;
  }
  .intro-header .page-heading h1 {
    font-size: 48px;
  }
  .intro-header .post-heading h1 {
    font-size: 36px;
  }
  .intro-header.big-img .img-desc {
    font-size: 14px;
  }
}

.header-section.has-img .no-img {
  margin-top: 0;
  background-color: #FCFCFC;
  margin: 0 0 40px;
  padding: 20px 0;
  box-shadow: 0 0 5px #AAA;
}
/* Many phones are 320 or 360px, so make sure images are a proper aspect ratio in those cases */
.header-section.has-img .intro-header.no-img {
  display: none;
}
@media only screen and (max-width: 365px) {
  .header-section.has-img .intro-header.no-img {
    display: block;
  }
  .intro-header.big-img {
    width: 100%;
    height: 220px;
  }
  .intro-header.big-img .page-heading,
  .intro-header.big-img .post-heading {
    display: none;
  }
  .header-section.has-img .big-img {
    margin-bottom: 0;
  }
}
@media only screen and (max-width: 325px) {
  .intro-header.big-img {
    height: 200px;
  }
}

.caption {
  text-align: center;
  font-size: 14px;
  padding: 10px;
  font-style: italic;
  margin: 0;
  display: block;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
}

#header-gh-btns {
  margin-bottom: 15px;
}
@media only screen and (max-width: 500px) {
  #header-gh-btns > iframe {
    display: block;
    margin-bottom: 5px;
  }
}

/* --- Pager --- */

.pager li > a {
  padding: 10px 5px;
  background-color: transparent;
  border-radius: 0;
  border-color: var(--light-theme-border-color);

  text-transform: uppercase;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--light-theme-font-color);
  font-family: var(--alt-font-family);
}

.pager li > a:hover, 
.pager li > a:focus {
  background-color: var(--light-theme-border-color);
  color: white;
}

.dark-mode .pager li > a {
  border-color: var(--dark-mode-font-color);
  box-shadow: 0px 0px 1px var(--dark-mode-font-color);
  color: var(--dark-mode-font-color);
}

.dark-mode .pager li > a:hover, 
.dark-mode .pager li > a:focus {
  background-color: rgba(255, 255, 255, 0.15);
}
.dark-mode .pager li > a:active {
  background-color: rgba(255, 255, 255, 0.35);
}

.pager {
  display: flex;
  justify-content: space-between;
  margin: 0px;
  padding: 0 2rem;
}

.pager::before {
  display: none;
}

.pager::after {
  display: none;
}

.pager li:last-child {
  margin-left: 1rem;
}

.pager.blog-pager {
  margin-top: 2rem;
}

@media only screen and (min-width: 768px) {
  .pager li a {
    padding: 15px 25px;
  }

  .pager {
    margin: 10px 0 0;
    justify-content: center;
  }
}

/* --- Tables --- */

table {
  padding: 0;
}
table tr {
  border-top: 1px solid #cccccc;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}
table tr:nth-child(2n) {
  background-color: #f8f8f8;
}
.dark-mode table tr {
  background: var(--bg-color-1);
}

.dark-mode table tr:nth-child(2n) {
  background: var(--bg-color-2);
}
table tr th {
  font-weight: bold;
  border: 1px solid #cccccc;
  text-align: left;
  margin: 0;
  padding: 6px 13px;
}
table tr td {
  border: 1px solid #cccccc;
  text-align: left;
  margin: 0;
  padding: 6px 13px;
}
table tr th :first-child,
table tr td :first-child {
  margin-top: 0;
}
table tr th :last-child,
table tr td :last-child {
  margin-bottom: 0;
}

/* --- Code blocks --- */

pre {
  font-size: 16px;
  line-height: 1.5em;
}
pre code {
  white-space: pre;
}
pre.highlight, .highlight > pre, td.code pre {
  background-color: #FAFAFA;
  background-image: linear-gradient(#F9F9F9 50%, #FDFDFD 50%);
  background-repeat: repeat;
  background-size: 3em 3em;
  background-position: 0px 10px;
  border-left: 7px solid #444;
}
code table, code table td, code table th, code table tbody, code table tr,
td.gutter pre {
  padding: 0;
  border: none;
  background-color: #fff;
}
.highlight > pre {
  padding: 0 0 0 8px;
}
td.code pre {
  border-width: 0 0 0 2px;
  border-style: solid;
  border-color: #444;
  border-radius: 0;
}
td.gutter {
  padding-top: 3px;
}

/* --- Social media sharing section --- */

#social-share-section {
  margin-bottom: 30px;
}

/* --- Notification boxes --- */
.box-note, .box-warning, .box-error {
  padding: 15px 15px 15px 10px;
  margin: 20px 20px 20px 5px;
  border: 1px solid #eee;
  border-left-width: 5px;
  border-radius: 5px 3px 3px 5px;
}

.box-note {
  background-color: #eee;
  border-left-color: #2980b9;
}

.box-warning {
  background-color: #fdf5d4;
  border-left-color: #f1c40f;
}

.box-error {
  background-color: #f4dddb;
  border-left-color: #c0392b;
}

/* Fix table border github gist snippets */

.gist, .gist-file table tr {
  border: unset;
}

.gist, .gist-file table tr td {
  border: unset;
}

/* Fix .navbar-toggle */

.navbar-default button.navbar-toggle:focus,
.navbar-default button.navbar-toggle:hover {
  background-color: initial;
}

.navbar-default button.navbar-toggle[aria-expanded="true"] {
  background-color: rgba(0, 0, 0, 0.2);
}

/* Tags page */

.tag-btn {
  margin: 5px;
}

#full-tags-list {
}

#full-tags-list .tag-entry {
  margin: 0 0 15px 25px;
}

#full-tags-list .tag-entry a {
  font-size: 20px;
}

#full-tags-list .tag-entry .entry-date {
  color: #808080;
  font-style: italic;
  font-size: 16px;
}

.archive-page ul {
  list-style-type: none;
  padding-inline-start: 11px; 
}
.archive-page a {
  color: inherit;
}
.archive-page a:hover {
  color: #0085A1
}
.archive-page ol li {
  margin-bottom: .3em;
}


/* Posts in grid format */

.posts-list {
  display: flex;
  flex-flow: row wrap;
}

.posts-list article {
  flex: 1 0 100%;
}

@media only screen and (min-width: 768px) {
  .blog-post {
    padding: 4rem;
  }

  .posts-list {
    justify-content: space-between;
  }

  .posts-list article {
    flex: 0 0 calc(50% - 2rem);
    flex-grow: 0;
  }

  .posts-list article:first-of-type .post-image img {
    object-fit: cover;
  }

  .posts-list.front-page article:first-of-type .post-image img {
    height: 250px;
    width: 100%;
  }
}

.posts-list.front-page article:first-of-type {
  margin-top: 0px;
  flex: 1 0 100%;
}

#main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.mobile-button {
  padding: 1rem;
}

.desktop-nav {
  display: none;
}

#main-header .mobile-menu-button {
  display: block;
  font-size: 1.5em;
  align-self: center;
  cursor: pointer;
}

/* They need to share width, so the logo is centered on mobile */
#main-header .mobile-menu-button,
#main-header nav {
  /* flex-basis: 80px;  */
}

.menu a[class^="category-"] {
  padding: 5px 16px;
  font-size: 14px;
}
.menu ul {
  list-style-type: none;
  padding: 0;
}
.menu .cat-tag-container {
  /* width: 100px; */
  /* text-align: right; */
  display: inline-block;
}
.menu .list-archive {
  padding: 0 2.5rem;
  margin-bottom: 5rem;
}
.menu .list-archive li {
  margin: 2rem 0;
}
.menu ul {
  font-size: 15px;
}
.menu h2 {
  font-size: 16px;
  padding: 1.2rem;
  border: 1px solid var(--font-color);
}
.menu h3 {
  font-size: 18px;
  font-weight: bold;
  margin-top: 25px;
}

.menu, .menu a {
  color: var(--font-color);
}
.menu {
  font-family: var(--alt-font-family);
}

#main-header .logo-desktop,
#main-header .search {
  display: none;
}

.search-wrapper {
  display: none;
  cursor: pointer;
  text-decoration: none;
  margin-right: 3rem;
  color: var(--font-color);
}
.search-wrapper:hover {
  color: var(--font-color);
}
.search-wrapper:hover span {
  text-decoration: underline;
}
.search-wrapper span {
  margin-right: 1rem;
}

#main-header .logo-mobile {
  display: flex;
}

#main-header .logo-mobile a {
  line-height: 0px;
}

#main-header .logo-mobile svg {
  width: 107px;
  height: auto;
}

#main-header .logo-desktop {
  width: 150px;
  z-index: 1001; /* +1 from desktop menu */
  position: relative;
}

/* SVG Logo fill */
.ef-logo-text {
  fill: var(--font-color);
  transition: 200ms linear fill;
}

/* Logo text should be white only when on mobile  */
.menu-is-open .logo-mobile .ef-logo-text {
  fill: var(--font-color);
}

.menu-content {
  padding: 1rem;
}

.menu-content .top {
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-content .top > i {
  display: none;
  font-size: 24px;
  cursor: pointer;
  order: 1;
}

#menu-container {
  position: sticky; 
  top: 0px;
  z-index: 100;
  background: var(--bg-color-1);
  border-bottom: 1px solid #e5e5e5;
  overflow-y: auto;
}

.dark-mode #menu-container {
  border-bottom: 1px solid #535353;
}

#menu-container .menu {
  opacity: 0;
  display: none;
  transition: 150ms height linear;
}

.menu-is-open #menu-container .menu {
  opacity: 1;
  display: block;
  height: 100vh;
}

.menu-is-open {
  overflow: hidden;
}

.menu-is-open #menu-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* width: 100%; */
  /* height: auto; */
}

.desktop-menu-button {
  display: none;
}

.category-list li {
  margin-bottom: 1rem;
}

.search-wrapper-mobile {
  cursor: pointer;
  text-decoration: none;
  font-size: 1.3em;
  color: var(--font-color);
}

.post-img {
  width: 100%;
  object-fit: cover;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* large tablets / computers */
@media only screen and (min-width: 768px) {
  #menu-container {
    position: relative; 
    top: 0px;
    z-index: auto;
    background: transparent;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
  }
  
  .menu-content .top > i {
    display: inline-block;
  }

  .search-wrapper {
    display: block;
  }

  .search-wrapper-mobile {
    display: none;
  }

  #main-header {
    padding: 3rem;
    padding-left: 0px;
    padding-right: 0px;
  }

  /* .menu-is-open #main-header {
    padding-left: 2rem;
    padding-right: 2rem;
  } */

  #main-header .mobile-menu-button {
    display: none;
  }

  #menu-container {
    border-bottom: none !important;
  }
  
  #main-header .logo-desktop,
  #main-header .search {
    display: block;
  } 

  #main-header .logo-mobile {
    display: none;
  }

  .desktop-menu-button {
    display: block;
    cursor: pointer;
    font-size: 32px;
    color: var(--font-color);
    fill: var(--font-color);
    transition: 200ms all linear;
  }


  body {
    padding-right: 0px;
    transition: padding 0.2s linear;
  }

  .menu-is-open {
    background-color: transparent;
    padding-right: 340px;
    overflow: auto;
  }

  body .container[role=main],
  #main-header,
  body > header {
    transition: 200ms all linear;
  }

  .menu-is-open #menu-container {
    background-color: transparent;
    position: relative;
    width: auto;
  }

  .menu-is-open #menu-container .menu {
    right: 0;
  }

  #menu-container {
    overflow-y: hidden;
  }

  .menu-is-open #menu-container {
    background: transparent !important;
  }

  #menu-container .menu {
    opacity: 1;
    display: block;
    transition: none;
    background: rgba(96, 109, 167, .9);
    position: fixed;
    right: -34rem;
    top: 0;
    padding: 0px 1rem 0;
    width: 34rem;
    z-index: 1000;
    height: 100vh;
    transition: 200ms all linear;
    overflow: auto;
  }

  .menu h2 {
    border: 1px solid white;
  }

  .menu, .menu a {
    color: white;
  }
}

/* #555474 */