html {
    height: 100%;
    /* width: 100%; */
}

body{
  height: 100%;
  width: 100%;
  min-width: 370px;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  margin-left:auto ;
  margin-right:auto ;
  /* font-size: calc(15px + 0.390625vw); */
  /* font: calc(16px + 0.390625vw)/1.5em -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; */
  font: clamp(14px, 5vw, 20px)/1.5em -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  color: #0C1117;
}

header, footer{
  width: 100%;
  background-color: #F45151;
}
.content-grid h2 a{
  color: #F45151;
}

.header-content{
  width: 80%;
  min-height: 50px; 
  padding-top: 5px;
  padding-bottom: 5px;
  /* max-width: 1000px; */
  margin-right: auto;
  margin-left: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: large;
  font-weight: bold;
}

.logo{
  font: small-caps 4rem 'Times New Roman', Times, serif;
  font-weight: bold;
}

header a:hover, footer a:hover, .content-grid h2 a:hover{
    text-decoration: none;
}

.content-grid {
  display: grid;
  grid-template-columns:  repeat(2,1fr);
  grid-gap: 10px;
  grid-auto-rows: minmax(100px, auto);
}

main{
  max-width: 1000px;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

article{
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 100%;
}

h1{
  font-size: 3rem;
  line-height: 1.5em;
  margin-top: auto;
  margin-bottom: auto;
}
h2{
  font-size: 2.5rem;
  line-height: 1.5em;
  margin-top: auto;
  margin-bottom: auto;

}
h3{
  font-size: 2rem;
  line-height: 1.5em;
  margin-top: auto;
  margin-bottom: auto;
}
h4{
  font-size: 1.5rem;
  line-height: 1.5em;
  margin-top: auto;
  margin-bottom: auto;
}
p{
  font-size: inherit;
  line-height:normal;
}
small{
  font-size: 0.8rem;
}

figure, img{
  margin-left: auto;
  margin-right: auto;
}

header, footer {
  width: 100%;
}

.header-content a:link, .header-content a:visited, .footer-content a:link, .footer-content a:visited{
  color: inherit;
}

.footer-content{
  width: 80%;
  margin-right: auto;
  margin-left: auto;
  min-height: 10px;
  display: flex;
}

pre {
    white-space: pre-wrap;       /* Since CSS 2.1 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

.footer-list{
  display: flex;
  justify-content: space-between;
  text-align: center;
  list-style: none;
}

.footer-list > li{
  padding: 5px;
}

footer .footer-list .row-extend { 
      width: 50%;
  }

.hidden {
  display: none;
  visibility : hidden;
}

.menu {
  display: flex;
  list-style: none;
}
.menu a {
  margin-left: 1.5rem;
}

.articles {
  list-style: none;
}
 a{
  color: inherit;
}
 a:hover{
  text-decoration: none;
}

.intro {
  width: 80%;
  padding-top: 1em;
  padding-bottom: 1em;
}

img{
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1300px){
  .header-content {
    width: 80%;
    align-items: center;
    flex-wrap: wrap;
  }

  .footer-content{
    min-height: 5px; 
  }
}

@media (max-width: 600px){
  .header-content {
    width: 100%;
  }
  .logo{
    font-size: 3rem;
  }
  .header-content nav {
    display: none;
  }

  .content-grid{
    grid-template-columns:  repeat(1,1fr);
  }

  .footer-content{
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    flex-wrap: wrap;
  }
  
  footer .footer-list { 
      display: block;
      padding: 2px;
  }
  footer .footer-list .row-hide { 
      display : none; 
      visibility : hidden; 
  }
  footer .footer-list .row-extend { 
      width: 100%;
  }
}

@media (prefers-color-scheme: dark) {
  header, footer {
    background-color: #C22E2E;
  }
  .content-grid h2 a{
  color: #C22E2E;
}
  body {
    color: #ffffff;
    background: #0C1117;
  }
}
