@font-face {
    font-family: 'HelvetiPixel';
    src: url('/static/rumirum/HelvetiPixel.ttf') format('truetype');
}
body {
  font-family: 'HelvetiPixel', sans-serif;
  background-image: url(nasa_batlowK_infinite_div2.png);
  background-size: 350%;
  background-position: 0% 0%;
  background-attachment: fixed;
  animation: bgShift 900s linear infinite;
  color: white;
  font-size: min(4vw, 22px);
  margin: 0%;
  overflow: clip;
}

@keyframes bgShift {
  0% {
    background-position: 100% 0%;
  }
  100% {
    background-position: 0% 100%;
  }
}

h1 {
  text-shadow: 2.5px 2.5px black;
}

h2 {
  text-shadow: 1.5px 1.5px black;
}

li {
  margin-left: 4%;
}

a {
  color: #f8bed4;
}

textarea, input, button {
 font-family: 'HelvetiPixel';
}

.mobilenavbar {
  display: none;
  background-color: #3e5564;
  height: 5vh;
  padding-top: 1%;
  justify-content: center;
  align-items: center;
  row-gap: 10%;
  overflow-x: scroll;
  overflow-y: hidden;
}

.mobilenavbar button {
  color: white;
  background-color: #3e5564;
  font-size: 2rem;
  border-width: 0px;
}

.mobilenavbar button:hover {
  cursor: pointer;
}

.mobilenavbar #go-back-button {
  display: none;
}

.container {
  width: 100vw;
  display: grid;
  grid-template-columns: 1fr 3fr;
  column-gap: 5vw;
  height: 100vh;
  overflow: hidden;
}

.left-bar {
  height: 100vh;
  width: 15vw;
  top: 0;
  position: sticky;
  padding-left: 5vw;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.navbar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: fit-content;
  width: 14vw;
  background-color: #3e5564;
  box-shadow: 5px 5px 0px 0px #2b354d;
  padding: 1vw;
  font-size: 130%;
  text-align: left;
}

.navbar a {
  color: white;
}

.unfinished_link {
  text-decoration: line-through underline;
  cursor: not-allowed;
}

.right-bar {
  width: 70vw;
  align-items: flex-start;
  padding-top: 5%;
  padding-right: 5vw;
  padding-bottom: 5%;
  overflow-y: scroll;
  overflow-x: clip;
}

.postit {
  background-color: #5c695d; 
  box-shadow: 5px 5px 0px 0px #3e5564;
  width: 35vw;
  margin-bottom: 1.5%;
  margin-top: 1.5%;
  transition: 0.3s;
  filter: drop-shadow(0px 0px 0px rgba(255, 255, 255, 0)) ;
}

.postit:nth-child(odd) {
  float: left;
}
.postit:nth-child(even) {
  float: right;
}

.postit:hover {
  filter: drop-shadow(10px 10px 20px rgba(255, 255, 255, 0.3)) ;
  cursor: pointer;
}

.postit .header {
  margin: 5%;
  margin-bottom: 1%;
  text-align: right;
  text-shadow: 1.5px 1.5px black;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  font-size: 22px;
}

.postit .content {
  margin: 5%; 
  margin-top: 0;
  float: left; 
  word-break: break-word; 
  overflow-wrap: break-word; 
  width: 90%;
}

.postit .header .post_date  {
  text-align: right;
}
.postit .header .poster_name  {
  text-align: left;
}

.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  width: repeat(auto-fit, minmax(88px, 1fr));
  column-gap: 0%;
  row-gap: 0%;
}
.webbadge {
  display: flex;
  justify-content: center;
  align-items: center;
}
.webbadge * {
  width: 88px;
  height: 31px;
}
.webbadge img {
  transition: 0.2s;
}
.webbadge img:hover {
  filter: brightness(1.5);
  cursor: pointer;
}

@media (max-width: 768px) {
  .postit {
    margin-bottom: 5%;
  }
  .navbar {
    padding-left: 4%;
    font-size: 35px;
    width: 60%;
    height: 60%;
  }
  .right-bar {
    display: flex;
    flex-direction: column;
    width: 100vw;
  }
  .left-bar {
    display: none;
    width: 95vw;
    height:90vh;
  }
  .container {
    height: 95vh;
  }
}
