/* Custom properties */
:root{
    --light-color: #394740;
   --light-color-alt: rgba(55, 62, 59, 0.6);
   --primary-background-color: #06090800;
   --secondary-background-color: #ecf1ee;
   --hover-light-color: #fff;
   --gradient-color: linear-gradient(
       115deg,#5db681b7,#d8ded9c7,#5db681b7,#d8ded9c7,#5db681b7);
   --transparent-dark-color: rgba(224, 239, 229, 0.882);
   --transparent-light-color: rgba(12, 229, 62, 0.1);
   --font-family: 'Poppins', sans-serif;
   --font-size-xsm: 1.2rem;
   --font-size-sm: 1.6rem;
   --font-size-md: 2.4rem;
   --font-size-lg: 3rem;
   --font-size-xl: 4rem;
   --gap: 2rem;
   --margin-sm: 2rem;
   --margin-md: 3rem;
   --item-min-height-sm: 20rem;
   --item-min-height-md: 30rem;
   border-radius: 5px;
}

body{
    color: var(--light-color-alt);
    background-color: var(--primary-background-color);
    letter-spacing: 1px;
    display: grid;
    grid-template-areas:
    "header header header"
    "hero hero hero"
    "intro intro intro"
    "project project docs"
    "next next next"
    "links links links"
    "footer footer footer";
    grid-template-rows: 80px;  
    grid-template-columns: 1fr 33%;
    grid-row-gap: 10px;
    grid-column-gap: 10px;
    min-height: 7.8rem;
    margin: 0; 
    font-family: var(--font-family);
}
header, footer, div{
    padding: 1.2em;
    background: var(--secondary-background-color);
    border-radius: 5px;
    }
  #postHeader {
    grid-area: header;
    }
  #postHero {
    grid-area: hero;
    }
  #postIntro {
        grid-area: intro
      }
  #postProject { 
    grid-area: project;  
   
  }
  #postDocs { 
    grid-area: docs; 
    } 
  #postNext {
    grid-area: next;
  }
  #postLinks {
    grid-area: links;
  }
  #postFooter {
    grid-area: footer;
  }

 /* Mobile Template */
@media screen and (max-width: 767px) {
  body{
    display: grid;
  grid-template-areas:
  "header"
  "hero"
  "intro"
  "project"
  "docs"
  "next"
  "links"
  "footer"; 
  grid-template-columns: 1fr;
  grid-row-gap: 10px;
  grid-column-gap: 10px;
  }

}

  a{
    color: inherit;
    text-decoration: none;
  }
  
  ul{
  list-style: none;
  }
  
  img{
  max-width: 100%;
  }
  /*  Header  */
  .header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2rem;
  z-index: 999;
  
  }
  .navbar{
  position: fixed;
  top: 0;
  left: 1rem;
  width: 100%;
  height: 1.4rem;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  }
  .menu{
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  width: 23rem;
  padding: 1.5rem;
  background-color:var(--secondary-background-color);
  opacity: 0;
  transform: scale(0);
  transition: opacity .25s ease-in;
  }
  .list{
  position: relative;
  right: 1.8rem;
  display: flex;
  align-items: center;
  gap: var(--gap);
  text-decoration: none;
  }
  
  h2{
  color: var(--light-color);
  }
  /* Mini Hero */

  #postHero{
  padding: 0;
  margin-left: 1.2rem;
  margin-right: 1.2rem;
  height: 5rem;
  position: relative;
  }
  
  .hero-img{
  position: absolute;
  right: 0;
  height: 5rem;
  object-fit: contain; 
  border-radius: 5px;
  opacity: 70%;
  -webkit-mask-image: linear-gradient(
                to right, 
                rgba(0,0,0,0) 0%, 
                rgba(0,0,0,1) 70%,
            );
            mask-image: linear-gradient(
                to right, 
                rgba(0,0,0,0) 0%, 
                rgba(0,0,0,1) 70%
                
            );
  }
  .headline-banner{
  position: absolute;
  top: 0;
  background-color: var(--secondary-background-color);
  align-items: center;
  gap: var(--gap);
  font-size: var(--font-size-xsm);
  max-height: 1rem;
  padding-top: 0;
  
  }
  
  .headline{
  background-color: #000;
  color: var(--light-color);
  font-size: 1rem;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
  padding: 4px;
  height: 100%;
  border-radius: 5px;
  }
  
  .headline span{
  height: inherit;
  
  }
  .headline-description{
    background-color: rgba(224, 239, 229,);
    z-index: 999;
  }
  
  .fancy-border{
  position: relative;
  overflow: hidden;
  width: fit-content;
  border-radius: 5px;
  }
  
  .fancy-border::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: var(--gradient-color);
  background-size: 50% 100%;
  z-index: 5;
  }
  
  .fancy-border span{
  position: relative;
  z-index: 10;
  display: inline-flex;
  background-color: var(--secondary-background-color);
  padding: .6rem 1rem;
  }
  
  /* Fancy border animation effect */
    .fancy-border:hover::before{
      animation: animate_border .75s linear infinite
  }
  
  @keyframes animate_border{
      to{
          transform:translateX(-50%)
      }
  }
  .headline-description{
  color: var(--light-color);
  
  }
  .headline-description:hover{
  color: var(--hover-light-color);
  background-color: rgba(55, 62, 59, 0.6);
  border-radius: 5px;
  padding: 2px;
  
  }
 /*Project*/
  .project {
    background: pink;    
    margin: 0;
    font-size: 2rem;
    display: flex;
    flex: 1;
    min-height: 400px;
    align-items: center;
  }
  .clock {
    min-width: 300px;
    min-height: 300px;
    max-width: 30rem;
    max-height: 30rem;
    border: 20px solid palevioletred;
    border-radius: 50%;
    margin: 50px auto;
    position: relative;
    padding: 0;
    box-shadow:
      0 0 0 4px rgba(0,0,0,0.1),
      inset 0 0 0 3px #EFEFEF,
      inset 0 0 10px black,
      0 0 10px rgba(0,0,0,0.2);
    
  }

  .clock-face {
    position: absolute;
    padding: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 800;
    background: rgb(238, 221, 228);
    transform: translateY(-3px); /* account for the height of the clock hands */
  }

  .hand {
    width: 50%;
    padding: 0;
    height: 6px;
    background: palevioletred;
    border: solid rgb(167, 94, 116);
    position: absolute;
    top: 50%;
    transform-origin: 100%;
    transform: rotate(90deg);
    transition: all 0.02s;
    transition-timing-function: cubic-bezier(0, 1.68, 0.12, 2.36) ;
  }
  /*
  .hour-hand {
    width: 50%;
  }
  
  .min-hand {
    width: 50%;
  }
  
  .second-hand {
    width: 50%%;
  }
    */

    /* Docs */
    .docs{
      display: flex;
      border: solid 2px;
      padding: 10px;
      margin: 30px;
      border-radius: 5px;
      height: 4rem;
      align-items: center;
    }