@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,400;0,700;1,400;1,700');
@import url('https://fonts.googleapis.com/css2?family=Nunito');

/* temporarily a mess */

/* override browser default */
html, body, h2 {
  margin: 0;
  padding: 0;
}

/* use viewport-relative units to cover page fully */
body {
  height: 100vh;
  font-family: "Source Sans Pro";
}

/* include border and padding in element width and height */
* {
  box-sizing: border-box;
}

/* main page layout */
html {
  background-image: url(/images/bg.png); 
  background-size: cover;
  background-attachment: fixed;
}
main, section {
  padding:1em;
}

header {
  background-image: url(/images/topbg.png); 
  background-size: cover;
  background-attachment: fixed;
}

footer {
  position: absolute;
  width: 100%;
  bottom: 0;
  padding: 10px;
  /*background-color: #CCD6FF;*/
  background-image: linear-gradient(120deg, #CCECFF, #A4EAF2 100%);
  text-align: center;
  font-family: "Nunito";
}

footer > p > a {
  text-decoration: none;
  color: #000D44;
}

/* section stuff */
:root {
  --post-content-rblx: rgba(127,127,255,.15);
  --post-content-peri: rgba(201,127,255,.15);
}

div.pg-container {
  min-height: 100%;
  padding:0;
  box-shadow: 0px 0px 12px #000;
  background-color: rgba(255,255,255,.85);
  position: relative;
  padding-bottom: 110px;
}

@media only screen and (min-width: 1150px){
  div.pg-container {
    margin-left: auto;
    margin-right: auto;
    width: 1100px;
  }}

div.post-container, div.subpost-container {
  padding: 15px;
  font-weight: normal;
  border-style: solid;
  border-image-slice: 55 50 56 50;
  border-image-width: 20px 20px 20px 20px;
  border-image-outset: 0px 0px 0px 0px;
  border-image-repeat: stretch stretch;
  border-image-source: url("/images/border1.png");
}
div.post-container {
  margin: 0.5em 1.5em 1.5em;
}
div.subpost-container {
  margin: 0.5em 0em 4px;
}

div.subpost-container > p,h2 {
  padding: 5px 15px 5px;
}

div.post-container-content > p {
  padding: 4px 15px 5px;
}

div.post-container-content > h2 {
  font-family: "Nunito";
  margin-top: 5px;
}

@media only screen and (max-width: 900px){
  .post-extratext {
    display: none;}
}

.post-equal-grid {
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  grid-gap: 1em;
}

@media only screen and (max-width: 700px){
.post-equal-grid {
  display: inline-block
}
}

div.frame-container {
  border: 1px solid skyblue;
  overflow: hidden;
  font-size: 1.1em;
  margin: 5px 5px 10px 5px;
}


/* images */
img.logo {
  display: block;
  margin-right: auto;
}

img.update-post {
  display: block;
  margin-left: auto;
  margin-right: auto;
  /*padding:5px;*/
  width: 100%;
  max-width:630px;
}


/* navigation */
hr.topnav-hr{
  border: 1px solid #964ede;
  margin: 0;
}

nav.topnav {
  grid-column-gap:20px;
  margin: 0;
  padding: 0;
  /*background-color: #98E9E4;*/
  background-image: linear-gradient(160deg, #98E9E4 10%, #CCECFF 100%)
}

ul.topnav-ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  display: inline-block;
  width: 100%;
}

li.topnav-li {
  display: block;
  color: black;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 20px;
  font-family: "Nunito";
  font-weight: bold;
  float: left;
  position: relative;
  width: 20%;
  min-width: 150px;
  /*border-right: 2px solid;*/
  border-right-width: 2px;
  border-right-style: solid;
  border-image: linear-gradient(180deg, #964ede, rgba(0, 0, 0, 0) 90%) 1;
}

.topnav-li:hover {
  background-color: #E9C1FF;
}

.topnav-li > .topnav-content {
    display: none;
}
.topnav-li:hover >  .topnav-content {
    display: inline-block;
    text-align: left;
}
.topnav-content {
  position: absolute;
  top: 100%;
  left: 0px;
  width: 100%;
  display: inline-block;
  background-color: #D8B7FF;
  font-size: 16px;
  padding: 8px;
  z-index: 1000;
}

.topnav-item {
  padding: 10px 14px;
}

.topnav-item:hover {
  background-color: #E0A8FF;
}

.topnav-item > a {
  text-decoration: none;
  color: black;
}


/* other */
p {
  margin: 10px;
}

h1 {
  font-family: "Nunito";
  font-weight: bold;
  margin: 10px 0 14px;
}

/* commonly reused */
.large-browse-button {
  background-size: cover;
  border-radius: 10px;
  color: white;
  font-size: 40px;
  text-align: center;
  padding: 20px;
  margin: 2px 1em 2px;
  font-family: "Nunito";
  font-weight: bold;
}