#container {
    grid-template-columns: 1fr;
    grid-template-rows: auto ;
    gap: 0px;
    grid-template-areas:
        "header"
        "comicpagecontainer"
        "description"
        "commentssection";
}

@media screen and (max-width: 900px) {
  #container {
    margin: 0;
    height: 100%;
    width: 100%;
    max-width: 100vw;

  }
}

#comicpagecontainer {
    grid-area: comicpagecontainer;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
        "firstlast"
        "pagenavtop"
        "comicimage"
        "pagenavbottom"
;
    border: 2px solid black;
    background-color: white;
    border-radius: 10px;
}

#firstlast {
    grid-area: firstlast;
    padding: 0 30px;
    margin-top: 15px;
    max-width: 100vw;
}

.firstlastnav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  padding: 0px;
  gap: 10px;
}

.firstlastnav img {
  height: 70px;
}

#pagenavtop {
    grid-area: pagenavtop;
    margin-bottom: 10px;
    margin-top: -20px;
    margin-bottom: -10px;
    z-index: 2;
    max-width: 100vw;
}

.comicNav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  padding: 0px;
  gap: 100px;
  margin: 0;
}

.comicNav img {
  height: 50px;
}

.nonav {
    width: 29px;
}

#pageselect {
    border: 2px solid black;
    height: 35px;
    width: 200px;
    border-radius: 5px;
    text-align: center;

}

#pageselect option {
    font-size: 11.5pt;
    font-family: var(--bodyfont);
    background-color: white;
}

#pageselect a {
    color: var(--themepink);
}

#comicimage {
    grid-area: comicimage;
    justify-self: center;
    width: 800px;

}

#comicimage img {
    max-width: 800px;
    display: block;
    margin: 0 auto;
}

#pagenavbottom {
    grid-area: pagenavbottom;
    margin: 10px 0 25px 0;
    max-width: 100vw;
    margin-top: -10px;
}

#description {
    grid-area: description;
    justify-self: center;
    border: 2px solid black;
    width: 800px;
    border-radius: 10px;
    padding: 0 30px;
    background-color: white;
    margin-top: 15px;
}

#description h1 {
    margin: 15px 0 5px 0;
    text-align: left;
}

#description small {
    font-size: 10pt;
}

#authorsnote {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 14pt;
}

#commentssection {
    grid-area: commentssection;
    justify-self: center;
    width: 800px;
    background-color: white;
        border: 2px solid black;
    width: 800px;
    border-radius: 10px;
    margin-top: 15px;
}


@media screen and (max-width: 700px) {

    #comicimage img {
            max-width: 100vw;
            margin: 0;
        }

    #comicpagecontainer {
        width: 100vw;
        border: none;
        border-bottom: 2px solid black;
        border-top: 2px solid black;
    }

    #pagenavtop {
    margin-top: 20px;
    }

    .comicNav {
        gap: 5px;
        justify-content: space-evenly;
    }



    #description {
        width: 100vw;
        border: none;
        border-bottom: 2px solid black;
        border-top: 2px solid black;
    }

    #commentssection {
        width: 100vw;
        border: none;
        border-bottom: 2px solid black;
        border-top: 2px solid black;
    }


}