@import 'pre.css';
@import 'nat/ui/mainaside.css';
@import 'nat/ui/navbar.css';

/* Posts */

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

.postCategory {
  display: grid;
  height: auto; width: auto;
  grid-template-rows: 8vh 1fr;
  
}

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

.post > .cover {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1.6;
  background-color: rgb(255,255,255);
  border-radius: 3vh;
}
 
.post > .details {
  display: grid;
  height: 100%;
  width: 100%;
  grid-template-rows: auto 1fr;
  gap: 0;
  align-items: center;
  background-color: transparent;
}

.post > .details > .title {
  height: auto;
  display: grid;
  grid-template-columns: 1fr 4vw;
  background-color: transparent;
}

.post > .details > .title > p {
  display: grid;
  height: auto;
  max-height: 8vh;
  width: 100%;
  margin: 0; padding: 0;
  font-size: 2vh;
  color: rgb(255,255,255);
  overflow: hidden;
}

.post > .details > .title > button {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: rgb(0,0,0);
  justify-self: center;
  border: none;
  border-radius: 10px;
  background-color: white;
}

.title > button > img {
  display: grid;
  justify-self: center; align-self: center;
}

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

.post > .details > .subDetails {
  height: 100%; width: 100%;
  display: grid;
  grid-template-rows: fit-content 1fr;
  gap: 0.5vh;
  background-color: transparent;
  
}

.post > .details > .subDetails > .storyBy {
  height: auto;
  font-size: 0.8em;
  color: white;
  margin: 0;
  padding: 0 0 0 2vw;
  border-left: solid 2px rgb(200,200,0);
  overflow: hidden;
  background-color: transparent;
  align-self: start;
}

.post > .details > .subDetails > .genres {
  display: block;
  color: white;
  gap: 1vh;
}

.genres li {
  height: fit-content; width: fit-content;
  display: inline-block;
  background-color: grey;
  border-radius: 3vh;
  padding: 1vh;
  vertical-align: center;
  text-align: center;
}

.post > .details .mobileOptions {
  display: none;
}

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


/* --Phones-- */

@media screen and (max-width: 1080px) and (orientation: portrait) {
  
.postList {
  width: 100%;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  }
  
  .post {
  height: auto; width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 1vh;
  background-color: transparent;
}

.post > .details {
  grid-template-rows: 8vh 1fr 8vh;
  gap: 0;
}

.post > .details > .title {
  grid-template-columns: 1fr;
}

.post > .details > .title > button {
  display: none;
}
  

.post > .details > .mobileOptions {
  display: grid;
  height: 100%; width: 100%;
  border-radius: 3vh;
  align-items: center;
}
  
  }
  
/* Aside */

aside > .content {
  
}

aside > .content button {
  height: 100%;
  width: 100%;
  aspect-ratio: 1/1;
  background-color: black;
  border-radius: 2vh;
}

/* Nav */

#navbar > .content {
  grid-template-columns: 1fr 1fr 1fr;
  background-color: transparent;
}

 
#navbar #user {
  height: 100%; width: 100%;
  background-color: red;
  align-self: center;
  justify-self: center;
}

/* --Phones-- */

@media screen and (max-width: 720px) and (orientation: portrait) {
  
#navbar #user {
  height: 100%; width: 50%;
  background-color: red;
  align-self: center;
  justify-self: center;
  border-radius: 15px;
}

}