#nav::before{
  display: inline-block;
  content: "x ";
  width: 0;
  overflow: hidden;
  transition: .2s;
  vertical-align: middle;
  font-size: 1rem;
}

#nav:hover::before{
  width: 30px;
}

#back{
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    margin: 10px;
    width: 1.7rem;
    transition: .2s;

    z-index: 5;
    height: 1.7rem;
  }

  #back span{
    display: block;
    position: absolute;
    transform-origin: center;
    top: 50%;
    pointer-events: none;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 100%;
    height: 1px;
    background-color: var(--bg);
  }

  #back span:first-of-type{
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  #back:hover span{
    width: 90%;
  }
  

#infoArt{
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100vh;
    margin: 0 auto;
    flex-direction: column;
    text-align: center;
    line-height: 1.1;
    font-size: 4rem;
}

#infoArt div{
    width: 60vw;
}

.kA{
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    text-align: right;
    text-align: center;
    margin: 0;
    width: auto !important;
    font-size: 1rem;
}

.keyArt{
    padding:  10px 15px ;
    display: inline-block;
    text-align: center;
    margin: 10px;
    right: 0;
    background-color: var(--nd);
    color: var(--bg);
    border-radius: 100px;
    width: fit-content !important;
}

.author{
    padding-top: 50px;
}

.date{
    padding-top: 5px;
    font-size: 2rem;
}



#imgIntro{
    display:none;
    position: absolute;
    height: 50vh;
    width: 100vw;
    overflow: hidden;
    top: 0;
    left: 0;
  }
  
  #imgIntro img{
    top: 50%;
    display: block;
    position: absolute;
    left: 50%;
    filter: grayscale(1) invert(1);
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
   
  }

#nav{
    position: fixed;
    width: 100%;
    z-index: 2;
    font-size: 1.5rem;
    border-bottom: 1px solid black;
    background-color: var(--bg);
    color: var(--nd);
    display: block;
    top: 0;
    padding: 10px;
  }



#infoRead{
  display: inline-block;
  vertical-align: middle;
  transition: .3s;
  max-width: 0;
  overflow: hidden;
  white-space: pre;
  margin-left: 100px;
  font-size: 1rem;
}


#intro{
    display: block;
    position: relative;
    max-width: 1200px;
    margin: 110px 100px 100px 100px;
    font-size: 2rem;
}

#article{
    display: block;
    position: relative;
    padding: 0 5vw;
    max-width: calc(800px + 10vw);
    font-size: 1.5rem;
    line-height: 1.4;
    margin: 50px auto;
}

#article p{
    margin: 1rem 0;
    position: relative;
}

.countP{
    display: block;
    position: absolute;
    top: 0;
    font-size: 1.2rem;
    width: 10vw;
    opacity: .2;
    transform: translate( -100% , 0);
    left: 0;
}


footer{
    display: block;
    position: relative;
    background-color: black;
    color: white;
    padding: 10px;
}

sup{
    font-size: 1rem;
    padding: 0 1px;
    background-color: var(--nd);
    color: white;
    line-height: 0; 
}


hr{
  display: none
}

.footnotes ol{
  padding-top: 100px;
  font-size: 1.3rem;
  color: var(--nd);
}

blockquote{
  margin-left: 100px;
  margin-right: -100px;
  font-style: italic;
}

#media{
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  height: 150px;
  transition: .3s;
  transform: translate(0, 80%);
  width: 100%;
  background-color: black;
}

#media:hover{
  transform: translate(0, 0);
}

.media{
  height: 100%;
  width: auto;
  display: inline-block;
  vertical-align: top;
}

.media img{
  padding: 1vw;
  height: 100%;
  transition: .2s;
  width: auto;
}

.media img:hover{
  filter: invert(1);
}

@media (orientation:portrait){

    #infoArt{

      font-size: 2em;
    }

    #infoArt div{
      width: 80vw;
  }

  #intro{
    margin:  20px; 
    margin-bottom: 100px;
    font-size: 1.5rem;
  }

  #infoRead{
    display: none;
  }


  #article{
    font-size: 1.2rem;
    line-height: 1.4;
}

  blockquote{
    margin-left: 30px;
    margin-right: 30px;
  }

  .countP{
    display: none !important;
  }

  .footnotes ol{
    font-size: 1rem;
    margin: 0 30px;
  }
}