html {
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  display: grid;
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  grid-template-rows: 1fr 10vh;
  gap: 2vh;
  overflow: hidden;
}

#ui {
  display: grid;
  height: 100%;
  width: 98%;
  background-color: rgb(0,0,0);
  border-radius: 30px;
  justify-self: center;
  overflow: hidden;
} 

#ui .content {
  height: 90%;
  width: 95%;
  display: grid;
  background-color: rgb(0,0,0);
  color: rgb(255,255,255);
  border-radius: 30px;
  justify-self: center;
  align-self: center;
  grid-template-rows: 8vh 1fr 8vh;
  gap: 2vh;
  overflow-x: hidden;
  overflow-y: scroll;
}

/* --Phones-- */

@media screen and (max-width: 720px) and (orientation: portrait) {
  
#ui .content {
  height: 95%;
  width: 95%;
}
  
}

/* Posts */

h1 {
  display: grid;
  font-size: 4vh;
  color: rgb(255,255,255);
  margin: 2vh 0 0 0;
  padding: 0;
}

#postList {
  display: grid;
  height: fit-content;
  width: 100%;
  background-color: transparent;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 2vw;
}
  
.post {
  display: grid;
  height: 400px;
  width: 100%;
  grid-template-rows: 1fr 1vh;
  gap: 1vh;
}

.post .cover {
  display: grid;
  height:100%;
  width: 100%;
  background-color: rgb(255,255,255);
  border-radius: 30px;
}
 
.post .details {
  display: grid;
  height: 100%;
  width: 100%;
  grid-template-columns: 1fr 12vw;
  gap: 2vw;
  align-items: center;
}

.post .details p {
  height: 3vh;
  width: 100%;
  font-size: 2vh;
  color: rgb(255,255,255);
  padding: 0 0 0 2vw;
  border-left: solid 2px rgb(200,200,0);
}

.post .details button {
  background-color: rgb(0,0,0);
  justify-self: center;
  border: solid 4px rgb(255,255,255);
  border-radius: 10px;
}

.post .details img {
  justify-self: center;
}

#postCountInfo {
  display: grid;
  justify-self: center;
  margin: 2vh 0 0 0;
}


/* --Phones-- */

@media screen and (max-width: 720px) and (orientation: portrait) {
  
#postList {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr;
  gap: 2vh;
  }
  
  .post {
  height: 400px;
  width: 200px;
  grid-template-columns: 1fr 1vh;
  gap: 1vh;
}

  
  
  }

/* Nav */

#navbar {
  display: grid;
  height: 100%;
  width: 98%;
  background-color: rgb(0,0,0);
  border-radius: 30px;
  justify-self: center;
} 

#navbar .content {
 height: 90%;
  width: 95%;
  display: grid;
  background-color: transparent;
  justify-self: center;
  color: rgb(255,255,255);
  align-self: center;
  grid-template-columns: 1fr 1fr 1fr;
}

#navbar .content p, a {
  justify-self: center;
  align-self: center;
}

a {
  color: rgb(255,255,255);
  text-decoration: none;
  border-bottom: solid 2px rgb(255,255,0);
}