@font-face {
  font-family: 'HelvetiPixel';
  src: url('../assets/fonts/helvetipixel-webfont.woff2') format('woff2'),
       url('../assets/fonts/helvetipixel-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-smooth: never;
  -webkit-font-smoothing: none;
}

@font-face {
  font-family: 'TimesNewPixel';
  src: url('../assets/fonts/timesnewpixel-webfont.woff2') format('woff2'),
       url('../assets/fonts/timesnewpixel-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-smooth: never;
  -webkit-font-smoothing: none;

}

img {
  image-rendering: pixelated;
}

.slideshow-item img {
  image-rendering:auto;
}

h1, h2, h3 {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-weight:400;
}

p {
  margin-top: 0.5rem;
}

body {
  width: 100vw;
  background: #271815;
  color: #e6e0d8;
  overflow-x: hidden;
  font-family: 'HelvetiPixel';
  line-height: 1.2rem;
  font-size: 16px;
}
html {
  overflow-x: hidden;
}

#wrapper {
  overflow-x: hidden;
}


::selection {
  background-color: #f3841c;
  color: #ffffff;
}

a {
  color: #dd8a2c;
  transition-duration: 0.2s;
}

a:hover {
  background-color: #dd8a2c;
  color: #271815;
}

main {
  width: 80%;
  max-width: 1080px;
  margin: auto;
  background: #592012;
  padding: 1rem;
  display:flex;
  margin-top: 0;
}

strong, b {
  font-weight: 800;
}

/*
===========
topbar
===========
*/

#here {
  position: absolute;
  top: 1rem;
}

header {
  margin-top: 3rem;
}

.topbar {
  width: 80%;
  max-width: 1080px;
  padding: 0rem 1rem;
  margin: auto;
  background: #592012;
}

.topbar-list {
  list-style-type: none;
  display: flex;
  justify-content: space-between;
  padding-top: 0.5rem;
  margin: 0;
  
}

.topbar-list li {
  width: 100%;
  text-align: center;
}

.topbar-list a {
  display: inline-block;
  width: 80%;
}

.topbar-abt a {
  border: 1px solid #dd8a2c;
}

/*
===========
sidebar
===========
*/

.sidebar {
  width: 35%;
  min-width: 200px;
  text-align: center;
  padding: 0.5rem;
  position: relative;
}

.sidebar-img {
  max-width: 100%;
  height: auto;
  display:block;
}

.sb-right {
  min-width: 180px;
  padding: 0;
}

.sb-right img {
  max-width: 100%;
  image-rendering:unset;
  transition-duration: 0.2s;
}

.sb-right-bottom-img {
  text-align: center;
  order: 4;
  width: 100%;
}

.media {
  text-align: left;
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.media div {
  max-height: 128px;
  overflow: auto;
}

.sidebar img {
  display: inline;
  padding: 0;
  margin: 0;
}

.sidebar p {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.updates {
  position: absolute;
  text-align: left;
  max-height: 200px;
  overflow: auto;
  bottom: 0;
  scrollbar-width: thin;
}

.updates p {
  margin: 0;
}

.update-item {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  /* background: #632512; */
  /* border: 2px ridge #592012; */
  padding: 2px;
}

.updates-header {
  position: sticky;
  background: #592012;
  border-bottom: 1px solid #f3841c;
  font-weight: 800;
  top: 0;
}

/*
===========
slideshow
===========
*/

.slideshow {
  margin-bottom: 0;
}

.slideshow-item {
  display: none;
}

.slide-nav {
  cursor: pointer;
  display: inline-block;
  border: 1px solid #f3841c;
  border-radius: 20%;
  padding: 0 2px;
  min-width: 6px;
}

.sidebar .active, .slide-nav:hover {
  background-color: #f3841c;
  transition-duration: 0.2s;
}

.slideshow img {
  max-width: 150px;
  display: inline;
  padding: 0;
  margin: 0;
}

@media (scripting: none) {
  .slide-nav, .slideshow-item {
    display: none;
  }
  .slideshow .default-ethan {
    display: block;
  }
}

/*
====================
content
====================
*/

.content {
  display: flex;
  flex-direction: column;
  padding: 0 1rem;

}

.credits {
  text-align: right;
  margin-top: auto;
}

.credits p {
  margin: 0;
}

.credits li, .credits ul {
  margin: 0;
  list-style-type: none;
}

/*
====================
content gallery
====================
*/

.content-gallery {
  margin-top: 0.5rem;
  display:flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}

.content-gallery img {
  width:auto;
  max-width: 100%;
  max-height: 180px;
  height: auto;
  image-rendering:unset;
}
.gallery-item {
  max-width: 45%;
  max-height: 250px;
  align-self: stretch;
  padding: 0 0.5rem;
}

/*
====================
fixed bottom right img stuff
====================
*/

#yuyu {
  position:relative;
  width: 64px;
}

#yuyu img {
  position: absolute;
  left: -50px;
  top: -40px;
  width: 100%;
  image-rendering: optimizeQuality;
}

#pinabass {
  position: fixed;
  right: -40px;
  bottom: -10vh;
  width:450px;
  opacity: 0.7;
}

#pinabass:hover {
  opacity: 1;
  transition-duration: 0.2s;
}

.onhover {
  position: absolute;
  max-width: 250px;
  background: #000000;
  border: 1px #c7bbbb solid;
  color: #ffffff;
  padding: 0.5rem;
  display: none;
}

/*
====================
responsive stuff maybe
====================
*/
 
 /* Large devices (laptops/desktops, 992px-1200px) */
 @media only screen and (max-width: 1200px) {
  .slideshow img {
    max-width: 128px;
  }
  .updates {
    text-align: left;
    max-height: 160px;
    overflow: auto;
  }

  .sidebar {
    min-width: 150px;
  }

  .sb-right {
    min-width: 150px;
  }

  #pinabass {
    position: fixed;
    right: -50px;
    width:380px;
  }
 }

  /* Medium devices (landscape tablets, 768px-992px) */
  @media only screen and (max-width: 992px) {
    .slideshow img {
      max-width: 128px;
    }
    .updates {
      text-align: left;
      max-height: 220px;
      overflow: auto;
    }
    .sidebar {
      min-width: 128px;
      max-width: 128px;
    }
    .sb-right {
      min-width: 128px;
      min-width: 128px;
    }
    #pinabass {
      position:absolute;
      width: 300px;
    }
   }

    /* Small devices (portrait tablets and large phones, 600px-992px) */
 @media only screen and (max-width: 768px) {
  main {
    display:flex;
    flex-direction: column;
  }

  .topbar-list li:not(.topbar-abt) a {
    border: 1px solid #271815;
    border-width: 1px 0 0 0;
    padding: 2px 0;
  }

  .topbar-list li:last-child a {
    border-width: 1px 0 1px 0;
  }

  .content {
    width: 90%;
    border-top: 1px solid #f3841c;
    padding-top: 0.5rem;
  }
  .sb-right {
    min-width: 128px;
  }
  .sb-right img {
    max-width: 30%;
  }

  .sb-right-imgs {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .media {
    display: flex;
    flex-direction: column;
  }

  .media div {
    margin-top: 1rem;
    width: 100%;
  }

  .updates {
    position: static;
    text-align: left;
    overflow: auto;
    margin-right: 1rem;
    width: 55%;
    align-self: stretch;
    max-height: 150px;
  }
  .sidebar {
    display:flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 90%;
    max-width: 90%;
    min-width: 90%;
    padding: 0rem 1rem;
  }

  .sb-slideshow {
    width: 35%;
    margin-right: 1rem;
    display: flex;
    flex-direction: column;
  }

  #sb-info {
    order: 3;
  }

  .sb-btns {
    border-top: 1px solid #f3841c;
    padding-top: 1rem;
    margin: auto;
    width: 100%;
    order: 3;
  }
  
  .slideshow .slideshow-item img {
    height: 100px;
  }
  .sidebar img {
    height: auto;
  }

  .gallery-item {
    max-width: 45%;
    max-height: 300px;
  }

  #pinabass {
    position: fixed;
    bottom: -50px;
    right: 0;
    opacity: 0.7;
    width: 200px;
  }
}

@media only screen and (max-width: 600px) {
  #here {
    top: 3.5rem;
  }

  .sb-slideshow {
    width: 100%;
    margin: 0;
  }

  .updates {
    width: 100%;
    margin: 0;
  }

  .topbar-list {
    flex-wrap: wrap;
    padding: 1rem 0 0 0;
  }

  .sb-right img {
    max-width: 100%;
    margin-top:0.5rem;
  }

  .sb-right-imgs {
    order:3
  }

  .media {
    order: 2
  }

  .sb-right-bottom-img {
    margin-top: 1rem;
    text-align: center;
    order: 1;
    width: 40%;
    margin: auto;
  }

  .sb-right-bottom-img img {
    image-rendering: unset;
  }

  .content-gallery {
    display: flex;
    flex-direction: column;
    margin: 1.5rem 0;
  }

  .gallery-item {
    max-width: 100%;
  }

  .content-gallery img {
    max-width: 100%;
    width: 100%;
    max-height: none;
  }
  .content-gallery p {
    padding: 0;
    margin: 0;
  }

  .credits {
    text-align: left;
    margin-bottom: 1rem;
  }
  .credits ul {
    padding: 0;
  }
}