@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
   font-family: 'Avenir Next';
   src: local('AvenirNext-Bold');
   font-weight: bold;
   font-style: normal;
 }
  
html {
  scroll-behavior: smooth;
  scrollbar-color: rgb(255 255 255 / 50%) rgb(0 0 0 / 25%);
  scrollbar-gutter: stable;
  font-family: 'DM Sans';
}

body {
  background: rgb(46 17 17);
  width: auto;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 5px 10%;
}

/* header */

section {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  height: 30px;
  padding: 25px;
  top: 0px;
  background: inherit;
}

/* HEADER */ 

section a, section p {
  font-size: 26px;
  color: rgb(255 255 255 / 75%);
  text-decoration: none;
  transition-duration: .2s;
  font-family: 'Avenir Next';
  font-weight: bold;
}

section a:hover, main a:hover {
  cursor: pointer;
  text-decoration: none;
  transition-duration: .2s;
  text-shadow: rgb(255 252 244 / 50%) 0px 0 5px;
  color: white;
}

/* Comic Area Start */

main {
  background-color: rgb(0 0 0 / 25%);
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  padding: 25px 20px;
  gap: 0px;
}

main p {
  color: white;
}

/* PAGE NAV */ 

main button {
  color: black;
  background-color: rgb(255 252 244 / 50%);
  margin: 0px;
  cursor: pointer;
  font-size: inherit;
  font: inherit;
  transition-duration: .2s;
  padding: 8px 10px;
  border: solid 2px black;
  height: fit-content;
}

main button:hover {
  transition-duration: .2s;
  background-color: rgb(255 252 244);
  box-shadow: rgb(255 252 244 / 50%) 0px 0 10px;
}

.pageNum {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 150px;
  height: 60px;
  width: 80%;
}

.pageNum .invis, .pageNum button:hover .invis {
  color: rgb(0 0 0 /0%);
  cursor: default;
  box-shadow: none;
  background-color: rgb(0 0 0 /0%);
  border: solid 2px rgb(0 0 0 /0%);
}

/* page number input area */

.num-input {
  display: flex;
  align-items: center;
}

.num-input p, .num-input input {
  margin: 1.5px;
}

.num-input p {
  cursor: default;
}

input {
  box-sizing: border-box;
  padding: 5px 0px;
  width: 50px;
  text-align: center;
  border: inset 2px black;
  background-color: rgb(255 255 255 / 25%);
  transition-duration: .2s;
}

input:hover {
  background-color: rgb(255 255 255 / 45%);
}
input:focus {
  background-color: rgb(255 255 255 / 100%);
}

/* Hides Up/Down Arrows */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

input {
  -moz-appearance: textfield;
}

/* MAIN PAGES SECTION */ 

#pages {
  display: flex;
  width: 95%;
  height: fit-content;
  justify-content: center;
  align-content: center;
  margin: 0px;
  padding: 20px 0px;
}

.left-page, .right-page {
  width: 100%;
  display: flex;
  height: fit-content;
}

#pages img {
  width: 100%;
  height: auto;
}

/* COMMENTS */ 

.comments {
  background-color: rgb(0 0 0 / 25%);
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  gap: 20px;
  color: white;
  height: fit-content;
  padding-bottom: 45px;
}

.comments h1,
.comments h1:hover {
  font-family: 'Avenir Next';
  font-weight: bold;
  margin: 0px;
  cursor: default;
  font-size: 36px;
}

iframe {
  width: 90%;
  height: 550px;
  background-color: #FFEEEE;
}

/* FOOTER */ 
footer {
  color: rgb(255 255 255 / 25%);
  cursor: default;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 25%;
}

footer a,
footer a:visited {
  color: inherit;
  text-decoration: none;
  transition-duration: .2s;
}

footer a:hover {
  transition-duration: .2s;
  color: rgb(255 255 255 / 50%);
}

/* Modal Shit */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99;
    backdrop-filter: brightness(0.5);
    visibility: hidden;
    opacity: 1;
    transition: opacity .3s;
    cursor: default;
}

.modal:link, .modal:visited {
  color: inherit;
  text-decoration: none;
}

.modal:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 101;
}
 
/* Displaying Modal */
.modal:target {
    visibility: visible;
    opacity: 1;
}

.modal .modal-container{
    width: 600px;
    z-index: 101;
}

.modal .modal-header {
    min-height: fit-content;
    overflow: auto;
    width: 100%;
    background: #fff;
    padding: 1em 1em 0.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.modal-header h3 {
  margin: 0px;
}

.modal .modal-body {
    min-height: fit-content;
    max-height: calc(100vh - 100px);
    overflow: auto;
    width: 100%;
    background: #fff;
    padding: 0.5em 1em 1em;
    text-align: center;
}

.modal-body p {
  margin: 0px;
}