body {
  background-color: #f7fff7;
  font-family: monospace, Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  color: #1e352f;
  margin: 0;
}

main {
  margin-left: auto;
  margin-right: auto;
  width: 80%;
}

header, nav {
  margin-left: auto;
  margin-right: auto;
  width: 70%;
}

/* Currently view */

.currently {
  display: grid;
  grid-template-rows: repeat(3, auto);
  grid-template-columns: repeat(2, 50%);
  grid-auto-flow: column;
  align-items: center;
  justify-items: center;
}

.site-title {
  display: block; text-align: center; width:100%;
  grid-column: 1 / span 2;
  align-self: center;
}

.currently .book-item {
  width: 90%;
}

div.about {
  display: grid;
  grid-row: 2 / span 2;
  align-self: start;
  justify-self: center;
}

div.currently-reading {
  grid-column: 2;
  grid-row: 2;
}

div.current {
  grid-column: 2;
  grid-row: 3;
  justify-self: center;
}

img.logo-image {
  border: 2px solid #084500;
  border-radius: 25px;
  background-color: #ffffff;
}

div.logo-image {
  display: grid;
  grid-column: 1 / span 2;
  background-color: #ffffff;
}


/* Polaroid styling */
.img-square {
  width: 100%;
  height: 80%;
  object-fit: cover;
  object-position: left top;
}

.polaroid {
  width: 130px;
  height: 150px;
  text-align: center;
  padding: 5px 10px;
  background-color: #ffffff;
  filter: drop-shadow(5px 5px 5px #1b1b1b);
  transform: rotate(10deg);
}

/* book container, items and content */

.book-container {
  width: 100%;
  display: flex;
  
    align-items: center;
    justify-content: center;
}

.book-item {
  width: 30%;
  border: 1px solid #084500;
  border-radius: 25px;
  margin: 1.5%;
  display: grid;
  grid-template-rows: 310px;
  grid-template-columns: auto 210px;
  font-size: 13px;
}

.book-item p {
  margin: 0px;
}

.book-cover {
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-cover img {
  filter: drop-shadow(5px 5px 5px #1b1b1b);
  width: 180px;
  transform: rotate(10deg);
}

.book-info {
  display: block;
  margin: 10px 0px 0px 10px;
}

.title {
  font-weight: 600;
  font-size: 15px;
  line-height: 80%;
}

.author {
  font-weight: 200;
  font-size: 15px;
  line-height: 80%;
  font-style: italic;
}

.date {
  line-height: 80%;
  margin-top:10px;
}

.genre {
  line-height: 80%;
  margin-top:10px;
}

.picked {
  line-height: 80%;
  margin-top:10px;
}

/* Button style */

button {
  border-radius: 5px;
  font-size: 15px;
  border: 1px solid #084500;
  background: none;
  font-family: monospace, Helvetica, Arial, sans-serif;
}

.is-checked {
  border-radius: 5px;
  border: 1px solid #084500;
  background-color: #084500;
  color: #ffffff;
}

.button-group {
  padding: 0 10px 10px 0;
}

.buttons-container {
  display: flex;
  flex-direction: row;
}


button:hover {
  border: 1px solid #084500;
  background-color: #084500;
  color: #ffffff;
  cursor: pointer;
}

/* Camera details summary */

details>summary {
  list-style: none;

  &::before {
    content: "📷";
    font-size: 30px;
  }

  [open] &::befpre {
    content: "📸";
    font-size: 30px;
  }

  &::before:hover {
    content: "📸";
    font-size: 30px;
    cursor: pointer;
  }
}

details>summary:hover {
  list-style: none;

  &::before {
    content: "📸";
    font-size: 30px;
    cursor: pointer;
  }
}

details[open]::details-content {
  margin: -10% 25%;
}

/* On mobile devices, display image aside below image */
@media (max-width: 600px) {
  main {
    width: 95%;
  }

  header, nav {
    width: 90%;
  }

  .book-item {
    width: 100%;
    border: 1px solid #084500;
    border-radius: 25px;
    margin: 5px;
    display: grid;
    grid-template-rows: 310px;
    grid-template-columns: auto 180px;
    font-size: 13px;
  }


  .book-cover img {
    width: 150px;
  }

  .currently {
    display: flex;
    flex-direction: column;
    justify-items: center;
  }

  .buttons-container {
    display: flex;
    flex-direction: column;
    font-size: 12px;
  }

  .currently .book-item {
    width: 100%;
  }

  details[open]::details-content {
    margin: -20% 25%;
  }
}