/* variables Friday */

:root {
  --links : coral;
  --hoverlinks: #460c52;
  --storylink:rgb(65, 214, 228);
  --back:#222;
}

html {
  background-color:grey;
}

a {
  text-decoration: none;
  font-weight: 700;
  color: --var(links);
}

a:visited {
  color: --var(links);
}



body {
  width: 100%;
  background-color:grey;
}

header, main, #site-design {
  max-width: 1024px;
  min-width: 600px;
  margin:0 auto;
}

header {
  display:grid;
  grid-template-columns: 80% 20%;
  background-color: var(--hoverlinks);
  color: antiquewhite;
  height:200px;
  margin-top: 5px;
  
}

header img {
  height:200px;
  float:right;
}

header, header img {
  border-radius:20px;
}

header > div:nth-child(1) {
  padding-left: 20px;
}

header h1 {
  padding-left:10px;
  margin-bottom: 0px;
}

header h3 {
  padding-left: 80px;
  margin-top: 5px;
}

header > h2 {
  font-size:1rem;
  line-height: 0.5rem;
  padding-bottom: 0px;
}

header > h3 {
  font-size:0.8rem;
  line-height: 0.5rem;
  padding-top: 0px;
}

nav > ul {
  list-style: none;
  margin-left: -45px;
}

.navlink {
  list-style: none;
  display:block;
  float:left;
  color: var(--links);
  border:2px var(--hoverlinks) solid;
  padding:10px;
  margin-left: 5px;
  border-radius:10px;
  transition:0.2s;
 }

.navlink[aria-current="page"] {
  list-style: none;
  display:inline-block;
  background-color: var(--links);
  color:var(--hoverlinks);
  border:2px  var(--links) solid
}

.navlink:not([aria-current="page"]):hover {
  border:2px  var(--links) solid;
  background-color: var(--links);
  color: var(--hoverlinks);
}


main {
  display: grid;
  grid-template-columns: minmax(300px, 2fr) min(10px) minmax(200px, 1fr);
  column-gap: 0px;
}

#story, #storylist {
  background-color: #222;
  border-radius: 10px;
  color: antiquewhite;
  padding:20px;
  margin-top: 5px;
}


#story {
  text-align: justify;
  width: 94%;
  font-size: 1.2rem;
  line-height: 1.3;
}

#story a {
  color:var(--storylink);
}

#story a:hover {
  text-decoration: underline;
}

#storylist ul {
  line-height: 1.5;
  list-style: none;
}

#threads > ul > li, #storylist > ul > li {
  margin-bottom: 15px;
}

.storylink {
  list-style: none;
  display:inline-block;
  color: var(--storylink);
  /*border:2px var(--storylink) solid;*/
  padding:3px 5px 3px 5px;
  border-radius:5px;
  transition:0.2s;
 }

.storylink[aria-current="page"] {
  background-color: var(--storylink);
  color:var(--hoverlinks);
}

.storylink:not([aria-current="page"]):hover {
  background-color: var(--storylink);
  color: #222222;
}



#site-design {
  grid-area: site-design;
  color: antiquewhite;
  font-size:0.8rem;
  font-weight:bold;
  background-color:var(--hoverlinks);
  padding-top: 15px;
  padding-bottom: 20px;
  line-height: 1;
  vertical-align: middle;
  text-align:center;
  border-radius:5px;
  margin-top: 5px;
}

#settings {
  margin-top: -20px;
}

h4 {
  color: var(--storylink);
  font-size:80%;
}

@media screen and (max-width: 800px) {
  header img, main > div {
    display:none;

  }

  header {
    display:block;
    background-color: var(--hoverlinks);
    color: antiquewhite;
    height:200px;
    margin-top: 5px;
  }
 
  header, #story, #storylist, #site-design{
    width: 375px;
    padding: 10px;
    margin: 5px auto;
    
  }

  main, #site-design {
    display:grid;
    grid-template-columns: 1fr;
    column-gap: 0px;
    
    
  }

  header {
    padding: 5px;
    border-radius: 5px;
    width: 385px;
    margin-top:5px;
    
  }

  .navlink {
    border-radius: 5px;
    padding: 5px;
  }
 
  
}

@media screen and (max-width: 600px) {

  header, #story, #storylist, #site-design {
    width: 355px;
    padding: 10px;
    margin: 5px 0px 5px 0px;
    
  }

}