/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */
:root {
    --site-bg: url("../../images/geobigtile.png");
    --header-bg: url('../../images/banner.png');
    --border-image: url('../../images/borderimg.png');
    --header-bg-color: rgb(109, 85, 148);
    --accent-color: #6d5594;
    --link-color: #784D98;
    --bg-color: #a7c5e9;
    --bg-color2: #5E5250;
    --text-color: #2e1d17;
    /* you can change the stripe colors easily from here */
    --stripe-color: #3f3f74;
    --stripe-color2: #9999d6;
}

@font-face {
    font-family: "Momo Trust Sans";
    src: url('../../MomoTrustSans.ttf') format("truetype");
}

::selection {
    background: var(--accent-color);
    color: var(--bg-color);
}

header {
    background-color: var(--header-bg-color);
/* you can add the image url in :root (at the top) if you want */
    background-image: var(--header-bg);
    background-position: 85%;
    background-repeat: no-repeat;
/* change the minimum height if you want it to take up more/less space */
    min-height: 150px;
    margin: 0 auto;
    padding-top: 50px;
/* you can change the text-align to center or right if you want it placed differently */
    text-align: center;
}

/* this is your site title displayed at the top of the page */
header > h1 {
    margin: 20px auto;
    max-width: 1080px;
    width: fit-content;
    padding: 12px;
}

.white-bg {
    margin: auto;
    width: fit-content;
    background: white;
    border-radius: 1em;
    padding: 0 20px;
}

/*copied this from here: https://unused-css.com/blog/css-rainbow-text/*/
.rainbow-text {
  background-image: linear-gradient(to left, violet, indigo, blue, green, yellow, orange, red);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

body {
  font-family: "Momo Trust Sans", Tahoma, Geneva, sans-serif;
  background-color: #436a7b;
  background-image: var(--site-bg);
	background-position: top;
  font-size: 18px;
  margin: 0;
}

p {
  line-height: 1.6em; /*I find the default HTML line-height tends to be a bit claustrophobic for main text*/
}

a {
    color: var(--link-color);
    font-weight: bold;
}

a:hover {
    color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
.right {
  float: right;
  margin-left: 1em;
}
.left {
  float: left;
  margin-right: 1em;
}
.center {
  display: block;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

@media only screen and (min-width: 600px) {
  .small {
    max-width: 60%;
    height: auto;
  }
}
.caption {
  margin-top: 0;
  font-size: 0.9em;
  font-style: italic;
}

.centercaption {
  display: block;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  margin-top: 0;
  font-size: 0.9em;
  font-style: italic;
}

.indent {
  text-indent:40px;
}

.ytcontainer iframe{
 width:560px;
 height:315px;
}

h1, h2, h3, h4, h5 {
  color: #34436f;
}

img {
  image-rendering:auto;
}

/*#CONTAINER is the rectangle that contains everything but the background!*/
#container {
  margin: 1em auto;
  max-width: 95%;
	max-width: 900px;
  color: #151515; 
  background-color: var(--bg-color);
  box-shadow: var(--accent-color) 4px 4px;
  padding-bottom: 1em;
  border: 32px solid var(--text-color);
  border-image: var(--border-image) 32 round;
  image-rendering: pixelated;
    margin: auto;
}


#content {
  padding: 10px 5% 20px 5%;
}


/*HEADER STYLE*/
#header {
    font-weight: bold;
}
#header ul {
    max-width: 1080px;
    margin: auto;
    line-height: 3rem;
/* this stuff makes it wrap around on mobile */
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
/* this line takes away the dot in front of the list items */
    list-style-type: none;
/* list items have default padding but we don't need it for these */
    padding-left: 0;
/* and this spaces out the buttons so they're not touching */
    justify-content: space-evenly;
}
#header li {
text-align: center;
}
#header li a {
  background-color: var(--accent-color);
    color: var(--bg-color);
    padding: .2em 3em;
    text-decoration: none;
}
#header li a:hover {
  background-color: var(--bg-color);
}

#header li a:visited {
    color: var(--text-color);
}

/*POST LIST STYLE*/
#postlistdiv ul {
  font-size: 1.2em;
  padding: 0;
  list-style-type: none;
}
#recentpostlistdiv ul {
  font-size: 1.2em;
  padding: 0;
  list-style-type: none;
}
.moreposts {
  font-size: 0.8em;
  margin-top: 0.2em;
}

/*NEXT AND PREVIOUS LINKS STYLE*/
#nextprev {
  text-align: center;
  margin-top: 1.4em;
}

/*DISQUS STYLE*/
#disqus_thread {
  margin-top: 1.6em;
}

/*FOOTER STYLE*/
#footer {
  font-size: 0.8em;
  padding: 0 5% 10px 5%;
}

@media only screen and (max-width: 800px) {
  header {
        min-height: 300px;
        background-position: bottom;
  }
    body {
    font-size:16px;
  }
  img{
    width:100%
  }
  .ytcontainer{
   position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    max-width: 1280px;
    margin: 0 auto;
}

.ytcontainer iframe{
   position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
}