body {
  font-family: sans-serif, Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol ; 
  font-size: 100% ;
  line-height: 1.25em;
  max-width: 59rem;
  padding: 1rem;
  margin: 0 auto;
  background: linear-gradient(to bottom, #252525, 85%, #101010) ;
  background-repeat: no-repeat ;
  color: #dddddd ;
}

html {
  min-height: 100%; 
}

main {
  line-height: 1.4em;
  max-width: 1000px ;
  margin: auto ;
}

img {
  max-width: 100% ;
}

header h1 {
  text-align: center ;
  font-weight: 900;
  font-size: 2.55em;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 0.75em;
  margin-left: 0;
}

header h1 figure {
  font-size: 0.5em;
  font-weight: normal;
}

header br {
   display: block;
   margin: 5px;
}

br {
   display: block;
   margin: 2px;
}

footer {
  text-align: center ;
  clear: both ;
}

figure {
  margin: auto;
  text-align: center;
  padding: 4px;
}

figcaption {
  text-align: center;
  font-style: italic;
  padding: 2px;
}

p {
  margin-left: 2em;
}

a {
  color: #555DEB;
  text-decoration: none;
}

a em {
  color: inherit;
  text-decoration: inherit;
}

a strong {
  color: inherit;
  text-decoration: inherit;
}

a em strong {
  color: inherit;
  text-decoration: inherit;
}

a:hover {
  color: #F555AC;
}

a:active {
  color: #555DEB;
}

code {
  background: #121212;
  color: #cccccc;
  font-family: Courier New, Courier, Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, monospace;
  line-height: 1.5;
  margin-bottom: 1.5em;
  word-wrap: break-word;
}

pre {
  background: #121212;
  border: 1px solid #cccccc;
  border-left: 3px solid #555DEB;
  padding: 1.5em;
  tab-width: 4;
  overflow: auto; 
  max-width: 100%;
  max-height: 55em;
  margin-bottom: 2em;
  display: block;
}

time {
  font-family: monospace ;
  color: #5c5c5c ;
  font-size: 12pt ;
}

h1 {
  text-align: left;
  font-weight: bold;
  font-size: 2em;
  line-height: 1.15;
  margin-top: 1.5em;
  margin-bottom: 1em;
  margin-left: 0em;
}

h2 {
  text-align: left;
  font-size: 1.50em;
  line-height: 1.15;
  margin-top: 1.4em;
  margin-bottom: 0.75em;
  margin-left: 0.5em;
}

h3 {
  text-align: left;
  font-size: 1.25em;
  line-height: 1.10;
  margin-top: 1.3em;
  margin-bottom: 0.75em;
  margin-left: 1em;
}

h4 {
  text-align: left;
  font-size: 1.25em;
  line-height: 1.05;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  margin-left: 1.5em;
}

h5, h6 {
  text-align: left;
  font-size: 1.25em;
  line-height: 1.0;
  margin-top: 1.1em;
  margin-bottom: 0.5em;
  margin-left: 1.75em;
}

strong {
  color: #4BA5ED;
}

em {
  color: #55DEAD;
}

em strong {
  color: #F555AC;
}

del {
  color: #5c5a5c;
}

ul {
  padding-left: 3.2em;
}

ul ul {
  padding-left: 1em;
}

li {
  line-height: 1.3em;
  margin-top: 0.35em;
  margin-bottom: 0.35em;
  margin-left: 0.2em;
}

hr {
  margin-top: 2em;
  margin-bottom: 1.5em;
}


/* PICTURE RIGHT */

.hero {
  display: flex;
}

.hero div:first-child {
  flex-basis: 65%;
  padding-right: 2.5rem;
}

.hero div:last-child {
  flex-basis: 35%;
}

.hero img {
  border-radius: 50%;
  width: 100%;
}




@media (min-width: 671px) {
  .buttonlist {
    display: block ;
  }

  .buttonlist img {
    max-height: inherit ;
    max-width: inherit ;
    vertical-align: middle ;
  }


  .resright, .profile{
    display: block ;
    float: right;
    clear: both ;
    padding: 10px ;
    padding-top: 25px ;
    max-width: 300px ;
  }
  .menuname {
    display: inline-block ;
  }

}

.resright {
    margin: auto ;
    display: block ;
    text-align: center ;
    max-width: 100% ;
}

.resright img {
  border-radius: 10%;
  max-height: 300px ;
}


/* NAVIGATION */

.site-header {
  margin-bottom: 1em;
}

.site-nav {
  display: flex;
  justify-content: center;
}

.site-nav a {
  display: block;
  padding: 0.75rem;
  color: #cccccc;
  text-decoration: underline;
}

.site-nav a:hover {
  color: #F555AC;
}

.site-nav a:active {
  color: #cccccc;
}

.site-nav .logo {
  font-weight: bold;
  padding-left: 0;
  color: #555DEB;
}

.site-nav .logo:active {
  color: #555DEB;
}

.site-nav li {
  line-height: 1.25em;
  margin-top: 0em;
  margin-bottom: 0em;
}

.main-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}



/* SMALL WIDTH */

@media screen and (max-width: 555px) {
/*
  .site-nav,
  .main-menu {
    flex-direction: column;
    align-items: center;
  }
*/

.site-nav a {
  padding: 0.35rem;
  padding-left: 0;
  /* font-size: 0.9em; */
}

  .site-header {
  margin-bottom: 0.1em;
  font-size: 0.85em;
}

.site-nav li {
  line-height: 1.5em;
  margin-top: 0em;
  margin-bottom: 0em;
}

header h1 {
  font-weight: 800;
  font-size: 1.75em;
  line-height: 1.1;
  margin-bottom: 0.55em;
}

h1 {
  text-align: center;
  font-size: 1.5em;
  line-height: 1.1;
  margin-top: 1.2em;
  margin-bottom: 1em;
}

h2 {
  text-align: center;
  font-size: 1.35em;
  line-height: 1;
  margin-top: 1.1em;
  margin-bottom: 0.5em;
}

h3 {
  text-align: center;
  font-size: 1.2em;
  line-height: 1.10;
  margin-top: 1.05em;
  margin-bottom: 0.75em;
}

h4, h5, h6 {
  text-align: center;
  font-size: 1.1em;
  line-height: 1.0;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

p {
  margin-left: 0.1em;
}

ul {
  padding-left: 2em;
}

ul ul {
  padding-left: 1em;
}



}





@media screen and (max-width: 400px) {

.site-nav, .main-menu {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  /* flex: 1 1 50%; */
  text-align: center;
}

.site-nav li {
  line-height: 1.5em;
  margin-top: 0em;
  margin-bottom: 0em;
}

ul {
  padding-left: 0.5em;
}

ul ul {
  padding-left: 0.5em;
}

}




/* For TAGLIST.HTML */
.taglist {
  text-align: center ;
  clear: both ;
}

/* For NEXTPREV.HTML */
#nextprev {
  /* The container for both the previous and next articles. */
}
#prevart {
  float: left ;
  text-align: left ;
}
#nextart {
  float: right ;
  text-align: right ;
}
#nextart,#prevart {
  max-width: 33% ;
}


/* 

Colors 4 future: 

Useful: #BA5ED4 #AAAFFF #FF5555

Useless: #5ca5cc #5ccccc #сссс55 

*/ 


