/* 260710-1849 picture margin */

body {
    margin: 0;
    font-family: Helvetica, sans-serif;
    background-color: black;
    color: white;
    background: linear-gradient(to top left, #111, #555);
    background-attachment: fixed;
    
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;       
}

.skip-link {
    position: absolute; 
    left: -9999px;     
    z-index: 999;      
    padding: 1em;
    background-color: black;
    color: white;
    opacity: 0;         
}

.skip-link:focus {
    left: 50%;                   
    transform: translateX(-50%); 
    opacity: 1;                  
}

    
header {
    background-color: lightslategrey;
    color: white;
    background: linear-gradient(to bottom right, lightslategrey, #567);
    box-shadow: 0px 10px 8px #333;
    width: 100%;
}

.ident {
    color: white;
    font-size: 2rem;
    font-weight: 900;
    padding: 10px;
    text-shadow: 2px 2px 4px #484848;
}

.tagline {
    color: white;
    font-size: 1rem;
    font-style: italic;
    font-weight: 900;
    margin: 0 0 20px 15px;
}

nav { 
    padding: 0 0 10px 15px;
}

nav a { 
    text-decoration: none; 
    color: white; 
}

nav a:hover {
    text-decoration: underline; 
    text-shadow: 2px 2px 4px #222;
}



h1 {
    margin-top: 45px;
    margin-bottom: 18px;
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px #333;
}

p {
    font-size: 107%;
    line-height: 1.6;
}

a { 
    text-decoration: none; 
    font-weight: 900;
    color: #6bF; 
}

a:hover { 
    text-decoration: underline; 
    color: white; 
}

a:focus {
    outline: 2px solid white; 
    outline-offset: 2px;
}

figure {
    margin: 0;
}

img {
    max-width: 100%;
}

pre {
    background-color: #111;
    color: aquamarine;
    padding: 10px;
    overflow: auto;
    font-weight: bold;
    border-radius: 10px; 
}

/*
pre:focus {
    outline: 2px solid white; 
    outline-offset: 2px;
}
*/

.code-expandable:hover {
    outline: 2px solid white; 
    outline-offset: 2px;
    cursor: pointer;
}

.code-expandable:focus {
    outline: 2px solid white; 
    outline-offset: 2px;
}

body.locked {
  overflow: hidden;
}

.code-expanded-container {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  background-color: rgba(0,0,0,0.7);
}
    
.code-expanded {
  cursor: default;

  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 100vw;
  max-width: 1200px;
  max-height: 80vh;

  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 8px;
}


blockquote {
    border-left: thick solid lightslategrey;
    padding-left: 10px
}

main {
    width: 96vw;
    padding: 0 2vw;      
}

.doc {

}

.doc .tstmp {
    font-size: 93%;
    font-style: italic;
    color: #ffb097; 
    text-shadow: 2px 2px 3px #111;
}

.doc-body {
    margin-top: 30px;
    max-width: 800px;
}

.doc-body picture img {
    margin: 20px 0 25px 0; 
}

.doc-related {
    margin-top: 30px;
}

.doc-section {
    clear: both;
}

.doc-links, .docs-tagged, .search-results {
    max-width: 800px;
}


.doc-link {
    margin-bottom: 20px;
}

.doc-link-a {
    display: block;
    overflow-y: auto; 
    border-radius: 10px; 
    text-decoration: none; 
    background: linear-gradient(to bottom, #555, #444);
    box-shadow: 4px 4px 10px #000000;
    color: inherit;    
}

.doc-link-a:focus, .doc-link-a:hover { 
    text-decoration: none; 
    /* background: none;*/
}

.doc-link-a:focus .title, .doc-link-a:hover .title {
    background: linear-gradient(to bottom right, lightslategrey, #9AB);
    text-decoration: underline; 
    font-weight: 900;
}

.doc-link-a:focus .desc, .doc-link-a:hover .desc {
    text-decoration: underline; 
}

.doc-link .title {
    background-color: lightslategrey; 
    color: white; 
    padding: 5px;
}

.doc-link .tstmp {
    padding: 15px 0 0 15px;
    font-size: 93%;
    font-weight:normal;
    text-shadow: none;
}

.doc-link .thumb {
    float: left;
}

.doc-link .thumb img {
    width: 250px;
    margin: 12px 20px 7px 10px;
    border-radius: 10px; 
}



.doc-link .desc {
    padding: 0 15px;
    font-weight:normal;
}


.doc-tags, .pflweb-pager {
    margin-top: 25px;
    overflow-y: auto; 
    min-width: 200px;
}

.doc-tags h4 {
    margin: 10px 0;
}

.pflweb-pager-page {
    margin: 10px 0 10px 10px;
}

.doc-tag, .pflweb-pager-prev, .pflweb-pager-next {
    margin: 0 20px 20px 0;
    width: auto;
    float: left;
}


.doc-tag-a, .pflweb-pager-prev a, .pflweb-pager-next a{
    display: block;
    padding: 10px;
    border-radius: 10px; 
    text-decoration: none; 
    background: linear-gradient(to bottom, #555, #444);
    box-shadow: 4px 4px 10px #000000;
    color: inherit;    
}


footer {
    background: linear-gradient(to bottom, #474747, #373737);
    border-top: thin solid #888;
    margin-top:30px;
    padding: 0px 20px 0px 20px;
    
    font-size: 90%;
    font-weight: 100;
    font-style: italic;
    
    text-align: right;    
}



@media screen and (max-width: 500px) {
    .doc-tag, .pflweb-pager-prev, .pflweb-pager-next {
        margin: 0 10px 20px 10px;
        max-width:80%;
        float: left;
    }
}

.docs-tagged {
    clear: both;
}

.search-results {
    margin-top: 25px;
}

/* Mobile - centre thumbnail above desc */
@media screen and (max-width: 500px) {
    .doc-link .thumb {
        float: none; 
    }

    .doc-link .thumb img {
        display: block;
        margin: 10px auto;
    }

  footer {
      text-align: center;    
  }
}

/* Desktop Wide - uncollapse tags and links */
@media screen and (min-width: 1200px) {
    main {
        width: 1200px; 
        padding: 0 0 0 2vw;
        margin: 0 auto;   
    }
    
    .doc-body {
        float:left;
    }

    .doc-related {
        width:350px;
        float: left;
    }
    
    .doc-tags, .doc-links {
        width: 300px;
        float:right;
    }    
    
    .doc-related .doc-links .doc-link .doc-link-a  .thumb {
        float:none;
    }
  
    .doc-related .doc-links .doc-link .doc-link-a .thumb picture img {
        display: block;
        margin: 10px auto;
    }    
}        

