body {
  margin: 0;
}

h1, h2, h3, #description {
  text-align: center;
  }
  
body {
  background-image: url("tilesart.png"); /* Replace with your tile’s actual path */
  background-repeat: repeat;
  background-size: 64px 64px; /* optional – ensures correct tile size */
  background-attachment: scroll; /* usually best for repeating tiles */
  font-family: "VT-100", fixedsys, System, monospace;
  font-size: 13px;
}
  
/*This is where your header stuff goes. The inside uses the post-inner class like posts do, instead of having a separate class name.*/
/*(If you want to give it different behavior, then add a #header .post-inner {} after the rules for .post-inner to make a special ruleset for it.)*/
#header {
  border: 0px solid #a10000;
  width: 80em;
  margin: 10px auto;
  padding-left: -1px;
  }
  
/*Normally inside the header.*/
#description {
  padding: 10px;
  margin: 10px auto;
  }

/* Masonry (JS) layout - keep DOM order, pack tightly */
.column-wrapper {
  width: 80em;
  margin: 0 auto;
}

.post {
  width: calc(33.333% - 10px); /* 3 columns with 10px gutter; tweak as needed */
  box-sizing: border-box;
  margin-bottom: 10px;
  display: block;
  border: 1px solid #a10000;
  background: none;
}

.post-inner {
  background: #f5a442;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 900px) {
  .post { width: calc(50% - 10px); } /* 2 columns on medium screens */
}
@media (max-width: 600px) {
  .post { width: 100%; } /* 1 column on phones */
}

/*Variable and fixed-height boxes.*/
.post, .post-scroller {
  display: inline-block;
  border: 1px solid #a10000;
  margin: 0 auto;
  margin-bottom:10px;
  overflow-y: auto; /*To give fixed-height posts a scroller, and make images outside the post-inner div conform to rounded corners.*/
  }
  
  .post, .post-scroller, .post-inner, .post-head-image {
    background:#f5a442
  }
  
.post img, .post-scroller img { /*Prevent image overflow.*/
  max-width: 100%;
  height: auto;
  }
  
/*Fixed-height box.*/
.post-scroller {
  height: 500px;
  }
  
.post-inner { /*because padding doesn't play nice with divs directly inside columns*/
  margin: 10px;
  }
  
/*Special optional styling for images used as post headers.*/
.post-head-image {
  padding: 0;
  }
  
/*Looks similar to footer but just covers a big section.*/
.block-color-section {
  background: #7b00a1;
  color: white;
  min-height:1em;
  margin-top: 10px;
  margin-bottom:20px;
  }
  
.block-color-inner {
  padding:10px;
  padding-left: 10%;
  padding-right: 10%;
  margin: 0 auto;
  }

#footer {
  background: #a10000;
  color: #fff;
  min-height:1em;
  margin-top: 10px;
  bottom: 0;
  }

#footer a {
  color: #ddd;
  }
  
/*Variant footer. This will stick at the bottom of the page, and overlap anything that gets too close. Use only for pages too short to scroll.*/
#footer-sticky {
  position:fixed;
  width: 100%;
  background: #a10000;
  color: #fff;
  min-height:1em;
  bottom: 0;
  margin-top: 10px;
  margin-bottom:0;
  }
  
#footer-content {
  /*For some reason the padding needs at least 1px top and bottom or else it automatically gets a giant margin instead. I still don't know why it does that. Just don't make it 0.*/
  padding:1px; 
  padding-left: 10px;
  padding-right: 10px;
  margin: 0 auto;
  }
  
  
/*For making columns in the footer like demonstrated.*/
.footer-columns {
  columns: 3;
  width: 80em;
  margin: 0 auto;
  column-gap:10px;
  }
  
/*For when you want to make distinct columns of different stuff without a million <br>s.*/
.footer-column {
  text-align: left;
  display: inline-block;
  height:6em;
  width: 100%;
  padding: 10px;
  padding-top:0;
  }
  
/*Used to style lists of links without big obvious bullets.*/
#footer li {
  padding-left:0;
  padding-top: 2px;
  padding-bottom: 2px;
  list-style-type: none;
  }


@media(max-width:80em) { /*Allow smaller side margins on narrower screens.*/
  #header, #description, .column-wrapper, .footer-columns {
    width: 90%;
    }
    
  }  

@media(orientation:portrait) { /*Removes columns entirely for mobile*/
  .column-wrapper, .footer-columns {
    columns: 1;
    }
  }