html,
body {
   font-size: 16px; /* base font reset */
   margin: 0;
   padding: 0;
    width: 100%;
    height: 100%;
   background: linear-gradient(to bottom right, #c1d1d6, #fff, #f3f8da) fixed;
}

.grid-container {
  display: grid;
  grid-template-columns: minmax(320px, 800px);
  grid-template-rows: max-content max-content auto auto;
  min-height: 100vh;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  grid-template-areas: "header" "nav" "main" "footer"
}

header {
grid-area: header;
text-align: center;
margin: 1.5rem 0 0 0;
padding: 0;
line-height: 0;
}

.resize {
  max-width: 100%;
  height: auto;
  margin: 2rem 0 0 0;
  padding: 0;
}

nav {
    grid-area: nav;
    text-align: center;
    font-size: 150%;
    padding: 1rem 0.25rem;
    margin: 2rem 0.1354rem;
    font-family: "Poppins", sans-serif;
    font-weight: normal;
    word-spacing: 3rem;
    border-top: 4px double #c5d0e6;
    border-bottom: 4px double #c5d0e6;
}

nav a:link,
nav a:visited,
nav a:active {
	color: #50699b;
    transition: all 0.45s ease-in-out;
}

nav a:hover, 
nav a:focus {
    color: #171c3a;
    text-shadow: 0 0 1px #fddc44, 0 0 5px #efef9f;
    transition: all 0.45s ease-in-out;
}

main {
	grid-area: main;
	text-align: justify;
	margin: 0 auto 1rem 0;
	font-family: 'Ubuntu', sans-serif;
	font-size: 100%;
	letter-spacing: 1px;
	line-height: 180%;
	padding: 0 0.25rem;
	color: #19183e;
}

strong, b {color: #151541;
    font-family: "Poppins", sans-serif;
}

em, i {color: #593f8e;}

abbr {
    text-decoration: none;
    border-bottom: 1px dotted #afbfd6;
}
	

h1 {
    font-family: "Kaushan Script", cursive;
    font-size: 180%;
    font-weight: normal;
    color: #2a365d;
    text-shadow: 0 0 3px #f2dd41, 4px 4px 3px #c6cfe2;
}


h1.box {
    font-family: "Kaushan Script", cursive;
    font-size: 165%;
    color: #8ca1cf;
    font-weight: normal;
    margin: 0.5rem 0 1rem 0;
	text-shadow: 0 0 3px #f2dd41;
}

h1.box::before {
	content: "☆";
	color: #c5af49;
	margin-right: 0.5rem;
	font-weight: normal;
	text-shadow: 0 0 0;
}

h1.box::after {
	content: "\2926";
	color: #91c3df;
	margin-left: 1rem;
	font-weight: normal;
	text-shadow: 0 0 0;
}
  
h2 {
    font-family: "Kaushan Script", cursive;
    color: #8ca1cf;
	font-size: 145%;
	font-weight: normal;
    margin: 2rem 0 0.5rem 0;
}
  
h2::before {
	content: "★";
	color: #fddc44;
	margin-right: 0.75rem;
	font-size: 100%;
	font-weight: normal;
}
  
h3 {
    font-family: "Poppins", sans-serif;
    color: #556ea6;
    letter-spacing: 5px;
    margin: 2rem 0 1rem 0;
    text-indent: 2rem;
    border-bottom: 1px dashed #fddc44;
}

aside {
    display: block;
    background: #ffffff url(asidebg.png) top right no-repeat;
    width: 75%;
    margin: 2.5rem auto;
    color: #595353;
    line-height: 160%;
    font-size: 110%;
    padding: 1rem;
    border: 1px solid #c5d0e6;
    letter-spacing: normal;
    border-radius: 0 2rem;
}

aside a:link,
aside a:visited,
aside a:active {
	color: #ffbe00;
}

aside a:hover, 
aside a:focus {
    color: #8ca1cf;
}

aside b, aside strong {color: #2a365d;
    font-family: "Poppins", sans-serif;}

.codecredit {
    font-family: 'Ubuntu Condensed', sans-serif;
    font-size: 75%;
    letter-spacing: 1px;
    border-top: 1px dotted #afbfd6;
    text-align: right;
    display: block;
    padding-top: 0.36rem;
    width: 100%;
    letter-spacing: 1px;
    line-height: 120%;
    color: #a9a9a9;
}

.codecredit a:link,
.codecredit a:visited,
.codecredit a:active {
	color: #c5af49;
	}
	
.codecredit a:hover,
.codecredit a:focus {
	color: #91c3df;
	}

.codesort img {
    margin: 0 1rem 0.5rem 0;
}

.cliques,
.cliques b,
.cliques strong {
    text-align: center;
    font-size: 100%;
    letter-spacing: 1px;
    font-family: 'Ubuntu', sans-serif;
    margin: 2rem 0;
    font-size: 110%;
    color: #fff;
}

.affs {
    text-align: center;
    font-size: 85%;
    line-height: 160%;
    letter-spacing: 2px;
    margin: 1rem auto;
    display: block;
    width: 90%;
}

.affs img {
    margin: 0.5rem;
    box-shadow: 2px 2px 4px #cab49a;
}

hr {
    margin: 0 1rem 0 0;
    overflow: visible;
    padding: 0;
    border: none;
    border-top: 1px dotted #c5d0e6;
    text-align: center;
    width: 100%;
}

hr:after {
    content: url(scs.png);
    display: inline-block;
    position: relative;
    top: -1.4rem;
    font-size: 2rem;
    padding: 0 0.25em;
    background: transparent;
}

footer {
    grid-area: footer;
    text-align: center;
    margin: 3rem auto 1rem auto;
    font-family: 'Ubuntu Condensed', sans-serif;
    font-size: 75%;
    letter-spacing: 1px;
    color: #a9a9a9;
    line-height: 139%;
    padding-bottom: 2rem;
    width: 100%;
}

footer b, footer strong, footer em, footer i {
color: #a9a9a9;
font-family: 'Ubuntu Condensed', sans-serif;
}

footer a:link,
footer a:visited,
footer a:active {text-decoration: none;
color: #5570b2;
    transition: all 0.25s ease-in-out;}


footer a:hover {color: #162352;
    transition: all 0.25s ease-in-out;}


.center {text-align: center; display: block;}

a:link,
a:visited,
a:active {text-decoration: none;
color: #6c7ab0;
    transition: all 0.25s ease-in-out;}


a:hover {color: #c5af4c;
    transition: all 0.25s ease-in-out;}

.tiny
{float: left;
margin: 0 1rem;}