body {
  padding: 50px;
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}

.letternav {
  display: flex;
  justify-content: space-evenly;
  align-items: baseline;
  font-family: 'Playfair Display', serif;
  font-size: 1.3vw;
  margin-left: 225px;
  transition: margin-left 1s;
}

.showheader {
  display: flex;
  height: 9vw;
  color: white;
  margin-bottom: 0;
  font-size: 8vmin;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  justify-content: center;
  align-items: center;
  background-image: url(../images/results-background.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  margin-left: 200px;
  transition: margin-left 1s;
}

.sidenav {
  background-color: #54273e;
  height: 100%;
  width: 250px;
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px 0px 0px 10px;
  border-right-style: solid;
  border-right-color: white;
  border-right-width: 1px;
  transition: width 1s;
  overflow-x: hidden;
  margin-right: 5px;
}

.sidenav a {
  display: block;
  font-size: 25px;
  padding: 20px 8px 20px 20px;
  color: lightslategray;
  font-family: 'Playfair Display', serif;
  transition: color 1s, opacity 1s;
  width: fit-content;
  margin-left: 15px;
}

.sidenav a:hover {
  color: white;
}

.sidenav a:hover>.loginpicshowpage {
  background-color: white;
}

#sidenavclose {
  height: 3vh;
  width: 20px;
  background-image: url(../images/hamburger_menu.png);
  background-size: cover;
  cursor: pointer;
}

#sidenavclose:active {
  background-color: rgb(147, 224, 248);
}

a,
p {
  color: white;
}

.homepage {
  background-image: url(../images/pexels-alem-sánchez-613037-min.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  /* height: 100vh; */
}

.searchbar {
  font-family: 'Playfair Display', serif;
  height: 40px;
  width: 50%;
  font-size: 15pt;
  padding-left: 10px;
  opacity: .65;
}

.homepageheading {
  text-align: center;
  margin-top: 100px;
  color: white;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  letter-spacing: 5px;
  font-size: 40pt;
}

nav {
  text-align: right;
}

select {
  text-align-last: center;
  margin-top: 20px;
  font-size: 12pt;
  opacity: .7;
}

#searchbutton {
  font-family: 'Playfair Display', serif;
  height: 40px;
  position: relative;
  bottom: 3px;
}

.browselink {
  display: block;
  text-align: right;
}

.loginpic {
  height: 75px;
  width: 75px;
  position: relative;
  left: 18px;
  opacity: .5;
  border-radius: 50%;
  transition: background-color 2s;
}

.loginlink {
  transition: color 1s;
}

.loginlink:hover {
  color: rgb(147, 224, 248);
}

.loginlink:hover>.loginpic {
  background-color: rgb(147, 224, 248);
}

.loginpicshowpage {
  height: 75px;
  width: 75px;
  border-radius: 50%;
  opacity: .8;
  transition: background-color 2s;
}

.homepageundersearch {
  display: flex;
  width: 53%;
  margin: 0 auto;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 50px;
}

#selectbox {
  flex-grow: 2;
  flex-basis: auto;
}

.showpage {
  background-color: #1c1b1b;
}

.showcontainer {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  grid-template-rows: repeat(3, 2.85vw);
  margin: 25px 0px 0px 0px;
  opacity: .7;
  transition: opacity 1s, margin-left 1s;
  margin-left: 225px;
}

.thumbnail {
  grid-column: 1/2;
  grid-row: 1/4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-color: white;
  border-width: 2px;
  border-style: solid;

}

.showcontainer:hover {
  opacity: 1.4;
}

.gridtitle {
  grid-column: 2/12;
  grid-row: 2;
  font-size: 25pt;
  padding-left: 20px;
  align-self: end;
  margin: 0;
  position: relative;
  top: .7vh;
  font-family: 'Playfair Display', serif;
}

.griddescription {
  grid-column: 2/12;
  padding-left: 20px;
  grid-row: 3;
  align-self: center;
  margin: 0;
  position: relative;
  top: .7vh;
  font-family: 'Playfair Display', serif;
}

.errorsearch {
  margin-left: 225px;
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 1.3vw;
}

.detailspic {
  display: block;
  margin: 0 auto;
  border-style: solid;
  border-color: white;
  border-width: 1px;
}

.detailstitle {
  display: flex;
  justify-content: center;
  font-family: 'Playfair Display', serif;
}

.detailtitle {
  text-align: center;
  color: white;
  font-family: 'Playfair Display', serif;
}

.detailsubtitle {
  margin-left: 225px;
  color: white;
  font-family: 'Playfair Display', serif;
  transition: margin-left 1s;
}

table {
  margin-left: 225px;
  color: white;
  font-family: 'Playfair Display', serif;
  transition: margin-left 1s;
}

.marginleft {
  margin-left: 225px;
  font-family: 'Playfair Display', serif;
  transition: margin-left 1s;
}

.disabledbutton {
  height: 30px;
  width: 200px;
  margin-top: 30px;
  margin-left: 20px;
  background-color: #54273e;
  color: white;
  border-color: white;
  border-width: 1px;
  border-style: solid;
}

.activebutton {
  height: 30px;
  width: 125px;
  margin-top: 30px;
  margin-left: 20px;
  color: black;
  border-color: white;
  border-width: 1px;
  border-style: solid;
  transition: background-color 1s;
}

.activebutton:hover {
  background-color: darkgrey;
}

.commentpic {
  border-radius: 60%;
  border-color: white;
  border-width: 1px;
  border-style: solid;
  height: 50px;
  width: 50px;
}

.textarea {
  width: 20vw;
  height: 20vh;
}

#credits {
  background-color: #54273e;
  opacity: .6;
  border-top-left-radius: 25%;
  border-top-right-radius: 25%;
  position: absolute;
  bottom: 0px;
  height: 50px;
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: height 1s, width 1s;
  padding: 15px;
}

#creditslink {
  text-decoration: underline;
  cursor: pointer;
}

#creditsdetails {
  display: none;
}

.detailspage {
  background-color: black;
}

.detailstitle {
  color: white;
}

@media only screen and (max-width: 321px) {
  #sidenav {
    position: absolute;
    top: 0;
    height: 50px;
    width: 100%;
    margin-bottom: 20px;
    /* padding: 0px; */
  }

  #sidenavclose {
    display: none;
  }

  .sidenav>a {
    display: inline;
    font-size: 14pt;
    margin-left: 5px;
    padding: 0px;
    max-height: fit-content;
  }

  .loginpicshowpage {
    display: none;
  }

  body {
    padding: 5px;
    height: 100vh;
    margin: 0px;
  }

  .letternav {
    margin-top: 75px;
    margin-left: 0px;
    display: inline-block;
    max-width: 100vw;
    overflow-x: scroll;
    white-space: nowrap;
    height: 5vh;
    /* font-size: 12pt; */
    padding: 10px;
  }

  .letternav>p {
    display: inline-block;
  }

  .letternav>a {
    font-size: 14pt;
    margin-left: 8px;
  }

  .showheader {
    width: 100%;
    margin-left: 0px;
    font-size: 11vmin;
    height: 11vh;
    margin-top: 5px;
  }

  .showcontainer {
    margin-left: 0px;
    max-height: 12vh;
    grid-template-rows: repeat(3, 1fr);
    padding-bottom: 5px;
  }

  .thumbnail {
    grid-column: 1/4;
    object-fit: cover;
  }

  .gridtitle {
    grid-column: 4/12;
    font-size: 16pt;
    top: -6px;
  }

  .griddescription {
    grid-column: 4/12;
    font-size: 9pt;
    top: -2px;
  }

  .br-hide-mobile {
    display: none;
  }

  .homepageheading {
    margin: 50px 0px 30px 0px;
  }

  .searchbar {
    width: 90%;
    height: 50px;
    font-size: 10pt;
    margin-bottom: 10px;
  }

  #searchbutton {
    margin-top: 10px;
    margin-bottom: 10px;
    position: static;
    height: 50px;
    width: 50%;
  }

  .homepageundersearch {
    width: 90%;
    justify-content: center;
    gap: 10px;
  }

  .browselink {
    margin-top: 20px;
    font-size: 15pt;
  }

  .loginpic {
    position: static;
  }

  .loginlinkhomepage {
    margin-right: 18px;
  }

  .detailspic {
    height: 35vh;
    max-width: 96%;
    margin-top: 75px;
  }

  .detailsubtitle {
    margin-left: 5px;
  }

  table {
    margin-left: 5px;
  }

  .detailspage {
    background-color: black;
    /* padding: 0px;
    margin: 0px; */
  }

  .detailstitle {
    color: white;
  }

  #credits {
    position: fixed;
    bottom: 0;
  }
}

@media only screen and (min-width: 982px) {
  .br-show-mobile {
    display: none;
  }
}

@media only screen and (min-width: 322px) {
  .br-show-mobile-322 {
    display: none;
  }
}

@media only screen and (min-width: 322px) and (max-width: 1385px) {
  html {
    height: 100vh;
  }
}

@media only screen and (min-width: 322px) and (max-width: 999px) {
  nav {
    width: 90%;
  }

  .homepage {
    padding: 5px;
  }

  .homepageheading {
    margin: 40px 0px 25px 0px;
    font-size: 50pt;
  }

  .searchbar {
    height: 60px;
    width: 70%;
    margin-bottom: 20px;
  }

  #searchbutton {
    width: 40%;
  }

  .homepageundersearch {
    justify-content: center;
    gap: 10px;
  }

  .browselink {
    font-size: 14pt;
  }

  #selectbox {
    margin-top: 0px;
  }

  .showheader {
    font-size: 6vw;
    margin-left: 15%;
    min-height: 8vh;
  }

  .showcontainer {
    margin-left: 15%;
    max-height: 12vh;
    grid-template-rows: repeat(3, 1fr);
    padding-bottom: 5px;
  }

  .thumbnail {
    grid-column: 1/4;
    object-fit: cover;
  }

  .gridtitle {
    grid-column: 4/12;
    font-size: 16pt;
    top: -6px;
  }

  .griddescription {
    grid-column: 4/12;
    font-size: 9pt;
    top: -2px;
  }

  #sidenav {
    width: 15%;
  }

  .loginpicshowpage {
    display: none;
  }

  #sidenav>a {
    padding: 0px;
    margin-bottom: 15px;
    font-size: 3vw;
  }

  #sidenavclose {
    height: 40px;
    width: 25px;
    margin-left: 0px;
  }

  .letternav {
    margin-left: 15%;
    font-size: 14pt;
    flex-wrap: wrap;
    gap: 10px;
  }

  .tilde {
    margin: 0px;
  }

  .detailsubtitle {
    margin-left: 20%;
  }

  .detailtitle {
    margin-left: 20%;
    margin-right: auto;
    padding-right: 5px;
  }

  .detailstitle {
    color: white;
    margin-left: 15%;
  }

  .detailspic {
    height: 50vw;
    margin: 30px auto 0px 30%;
  }

  .detailspage {
    background-color: black;
    padding: 0px;
    margin: 0px;
  }

  table {
    margin-left: 20%;
  }

  #credits {
    position: fixed;
    bottom: 0;
  }
}

@media only screen and (min-width: 1000px) and (max-width: 1400px) {
  .detailspic {
    height: 50vw;
    margin: 30px auto 0px 30%;
  }

  .detailstitle {
    margin-left: 20%;
  }

  .detailtitle {
    margin-left: 20%;
  }
}

@media only screen and (max-height: 400px) {
  .homepageheading {
    margin-top: 0px;
    text-align: left;
    width: 75%;
    font-size: 50pt;
    position: relative;
    bottom: 22vh;
    margin-left: 15px;
  }

  .br-show-mobile {
    display: none;
  }

  form {
    width: 90%;
    position: relative;
    bottom: 20vh;
  }

  #searchbutton {
    width: 15%;
    margin-left: 5px;
  }

  .homepageundersearch {
    justify-content: flex-start;
    width: 90%;
  }

  #credits {
    position: fixed;
    bottom: 0;
  }
}