body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  /*background-image: url("https://inaturalist-open-data.s3.amazonaws.com/photos/302969140/medium.jpg");  The image used */
  background-color: rgba(255, 255, 255, 0.6);
  background-blend-mode: lighten;
  height: 500px; /* You must set a specified height */
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
  padding: 0;
  margin: 0;
}
#container {
  width: 100%;
  max-width: 510px;
  background-color: lightgray;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  padding: 5px;
}
#taxon_rank {
  width: 100%;
  margin: 0px;
  margin-left: 5px;
  margin-top: -0.2em;
  font-size: 0.8em;
  font-family: Whitney, "Trebuchet MS", Arial, sans-serif;
}
h1 {
  width: 100%;
  margin: 0px;
  margin-left: 5px;
  font-size: 1.5em;
  font-style: italic;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
h2 {
  width: 100%;
  margin: 0px;
  margin-left: 5px;
  font-size: 1em;
  font-family: Whitney, "Trebuchet MS", Arial, sans-serif;
}

h4 {
  margin-block-start: 1.2em;
    margin-block-end: 0.5em;
    font-family: Whitney, "Trebuchet MS", Arial;
    font-weight: 600;
    text-transform: uppercase;
}

#main_photo {
  background-color: darkgray;
  aspect-ratio: 1 / 1;
  height: 97vw;
  display: flex;
  max-width: 510px;
  flex-direction: column;
  vertical-align: middle;
  justify-content: center;
  align-items: center;
}
#main_photo img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
#photoScroller {
  height: 85px;
  display: flex;
  flex-direction: row;
}
#photoScroller img {
  margin: 5px 2.5px;
}
#msg_banner {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: stretch;
  justify-content: space-between;
  align-items: stretch;
  font-family: sans-serif;
  text-transform: uppercase;
  font-size: 0.75em;
}
#msg_banner div{
  width: 30%;
}
#msg_error {
  text-wrap: nowrap;
}
.msg_error_red {
  font-weight: bold;
  color: red;
}
 #msg_cancel{
  background-color: darkgrey;
  padding: 0 2px;
    margin-right: 2px;
 }
#msg_count{
 text-align: center;
}
#msg_profile{
  text-align: right;
 }


#menu_box {
  width: 100%;
  position: relative;
}
#menu {
  position: absolute;
  padding: 0;
  bottom: 0px;
  width: 300px;
  margin: 0;
  list-style: none;
  background-color: #eceff1;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  transition-duration: 0.25s;
}
#menu li {
  display: block;
  padding: 12px 24px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 24px;
}
#menu li:hover {
  background-color: #cfd8dc;
}
#pages {
  width: 100%;
  position: relative;
}
.page {
  width: 100%;
  position: absolute;
  background-color: #eceff1;
  bottom: 0;
}
.page_close {
  text-align: right;
  padding: 2px;
  font-stretch: ultra-expanded;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
}
.section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: space-evenly;
}
.sub_section {
  width: 40%;
}
#profiles {
  font-family: Whitney, "Trebuchet MS", Arial;
  padding-bottom: 1.5em;
  font-size: 0.9em;
}
#profiles table {
  padding-left: 1.5em;
}
#profile_name {
  width:95%;
}

#logs ul {
  padding-inline-start: 20px;
  margin-top: 0.25em;
}
#Keybinds input {
  text-align: center;
}
.controls {
  width: 100%;
  display: flex;
  justify-content: space-around;
}
.btn {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  min-width:48px;
}
svg {
  width: 60px;
  height: 60px;
  fill: none;
  stroke: #000000;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#controls>div>i {
  font-size:4em;
}

@media screen and ((min-width: 151px)) {
  #main_photo {
    max-height: 510px;
  }
}
