/* USCMC Blog — statyczna wersja starego Simple PHP Blog */

* {
  box-sizing: border-box;
}

html {
  background: #000;
}

body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #CACD6D;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.28;
}

#site {
  width: 750px;
  margin: 20px auto 40px;
  background: #000;
}

#header {
  text-align: center;
  background: #000;
}

#header img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border: 0;
}

.site-title {
  padding: 4px 12px 10px;
  color: #E6EB54;
  font-family: "Trebuchet MS", "Gill Sans", Helvetica, sans-serif;
  font-size: 18px;
  font-weight: bold;
}

#pagebody {
  display: grid;
  grid-template-columns: 550px 200px;
  align-items: start;
}

#maincontent {
  width: 550px;
  padding: 20px;
  min-width: 0;
}

#sidebar {
  width: 200px;
  padding: 10px 12px 20px;
  min-height: 100%;
  background: #070703;
  border-left: 1px solid #D9D9D9;
}

.profile {
  text-align: center;
  margin: 0 0 18px;
}

.profile img {
  display: inline-block;
  max-width: 170px;
  height: auto;
  border: 3px solid #E6EB54;
}

.menu-title {
  color: #CACD6D;
  font-family: "Trebuchet MS", "Gill Sans", Helvetica, sans-serif;
  font-size: 14px;
  font-weight: bold;
  margin-top: 6px;
}

.sidebar-links,
.recent-entries {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sidebar-links a,
.recent-entries a {
  margin: 1px 0 3px;
}

.recent-entries {
  margin-top: 4px;
}

a:link,
a:visited {
  color: #993333;
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  color: #FF3333;
  text-decoration: underline;
}

a:active {
  color: #3333FF;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 2px 0;
  color: #E6EB54;
  font-family: "Trebuchet MS", "Gill Sans", Helvetica, sans-serif;
  font-weight: bold;
}

h1 {
  font-size: 18px;
  margin-bottom: 2px;
}

h2 {
  font-size: 16px;
  margin-top: 0;
}

h3 {
  font-size: 14px;
}

h1 a,
h2 a,
h3 a,
h1 a:visited,
h2 a:visited,
h3 a:visited {
  color: inherit;
}

p {
  margin: 3px 0 8px;
}

ul,
ol {
  margin-top: 5px;
  margin-bottom: 8px;
}

img {
  max-width: 100%;
  height: auto;
}

#maincontent img {
  display: block;
  width: 345px;
  max-width: 100%;
  height: auto;
  margin: 12px auto;
}

hr {
  height: 1px;
  margin: 20px 0 15px;
  border: 0;
  background: #D9D9D9;
  color: #D9D9D9;
}

blockquote {
  margin: 15px 30px 0 10px;
  padding-left: 20px;
  border-left: 5px solid #444;
}

code,
pre {
  font-family: "Courier New", Courier, monospace;
}

pre {
  overflow: auto;
  max-width: 100%;
  padding: 5px;
  border: 1px dotted #D9D9D9;
}

#maincontent > p > em:first-child {
  color: #DBDE6D;
}

/* Węższe ekrany: zachowujemy charakter strony, ale bez poziomego scrolla. */
@media (max-width: 780px) {
  #site {
    width: 100%;
    margin: 0;
  }

  #pagebody {
    display: block;
  }

  #maincontent,
  #sidebar {
    width: 100%;
  }

  #sidebar {
    border-left: 0;
    border-top: 1px solid #D9D9D9;
  }

  .profile img {
    max-width: 170px;
  }
}
