
@font-face {       
font-family: 'BPnoScript';
src: url(https://humantooth.neocities.org/fonts/BPnoScript.woff) format('woff');
font-weight:normal; }

body {
    background-size: cover;
    background-color: #d3bee8;
    font-family: 'BPnoScript';
    margin: 10%;
    background-image: url('/backgroundcollage.png');
}


.page-wrapper {
  margin: 0 auto;
  padding: 0 20px;
}

header {
    background-color:  #d4bfe8;
    border-radius: 20px;
    padding:20px;
    margin-bottom: 20px;
    box-shadow: 10px 10px 9px #cdecd0;
    border-right: solid #fdfffe;
    border-bottom: solid #fdfffe;
    padding:20px;
}

header img {
max-width: 100px;
height: auto;
display: block;
margin: 0 auto;
min-width: 80%
}




nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    width: 100%; /* green border */

}

nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 20px;
  text-decoration: none;
  color: #674a84;
  background-color: #cdecd0;
  font-size: 16px;
  line-height: 1;/* force uniform height */
  box-sizing: border-box;
  font-family: 'BPnoScript', sans-serif;
}



nav a:hover{
  animation: wobble 1s ease-in-out 1;
  background-color: #674a84;
  color:#cdecd0;
}

.nav-links {
display: flex;
flex-wrap: wrap;
justify-content: center;
width: 100%;
align-content: center; 
gap: 1.5rem; /* space between items */
/* green border */
}

.nav-links li {
  position: relative;
  display: flex; 
  border-radius: 20px;
  padding:0;

}


.nav-links a {
  text-decoration: none;
  font-size: 17px;
  width: max-content;
}


.dropdown-content {
  display: none;
  position: absolute;
  min-width: 0;
  box-sizing: border-box;
  top: 100%;
  z-index: 999;
  right: 0;
  padding: 0;
  margin: 0 3px;
  padding: 0;
  box-sizing: border-box;
  align-content: end;
/* green border */
}


.dropdown-content li a {
  padding: 8px 15px;
  text-align: right; /* prevent wrapping */
  display: block;
  width: max-content;
  box-sizing: border-box;
  margin: 3px 0;
  
}

.dropdown:hover .dropdown-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* right-align the dropdown content */
}

.dropdown-content li a:hover {
  background-color: #674a84;
}



.container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 100%;
 
}

.sidebar {
    flex:1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: stretch;
    height: 100%;
   

}

.leftbox {
    background-color: #d3bee8;
    padding:1rem;
    box-shadow: 10px 10px 9px #cdecd0;
    border-right: solid #fdfffe;
    border-bottom: solid #fdfffe;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 100%; }



.leftbox2{
    gap: 0.2rem;
}

.leftbox3 {
    overflow: scroll;
    gap:0.1rem;
    max-height: 30%;
}

.leftbox3 img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  padding:0; }


.muppet {
    max-width: 90%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.readstamp {
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}



.pleasestandby {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
 
    
}
.mainbox {
    flex: 3;
    background-color: #cdecd0;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 10px 10px 9px #cdecd0;
    border-right: solid #fdfffe;
    border-bottom: solid #fdfffe;
    background-image: url(img/PAPER01.png);
    background-size: contain;
    overflow: scroll;
}

.titlebox {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #d4bfe8;
    background-image: url(/streetscrapbook/img/asfalt-dark.png);
    margin: 5%;
    border-radius: 20px;
    align-items: center;
    padding:0 3%;
    font-size: larger;
    text-align: center;
    
}

.titlebox img {
    max-width: 80%;
    height: auto;
    margin: 0 auto;
    display: block;
}



/* testing */

.review h2,
.review p {
  margin: 0.1rem 0;
}

.book {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
}



.bookcard img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.2);
}

.wrap {
  width: 20%;
  min-width: 150px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bookcard {
  width: 100%;
  position: relative;
  aspect-ratio: 2 / 3; /* maintain book-like ratio */
  overflow: hidden;
}

.bookcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review {
  position: absolute;
  inset: 0; /* shortcut for top: 0; right: 0; bottom: 0; left: 0; */
  background-color: rgba(103, 74, 132, 0.95);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  padding: 0.5rem;
  transition: opacity 0.4s ease;
  box-sizing: border-box;
}

.review p {
  font-size: small;
}

.bookcard:hover .review,
.bookcard:focus-within .review {
  opacity: 1;
}


.bookcard:hover .review,
.bookcard:focus-within .review {
  opacity: 1;
}



/* testing */




.readingimg {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}




 

  


/* Responsive layout - makes a one column layout instead of a two-column layout */
@media (max-width: 768px) {
  nav {
    justify-content: center;
  }

  .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
  }

  .nav-links li {
    width: auto;
    text-align: center;
  }

  .nav-links li a {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* SEPARATE this block */
@media (max-width: 600px) {
  .container {
    flex-direction: column;
    gap: 0;
  }

  header img {
    transform: scale(1.4);
    margin-bottom: 13px;
  }

  .pleasestandby {
    max-height: 30vh;
  }

 .leftbox3 {
    max-height: 60vh;
    margin-bottom:1rem;

 }

  .mainbox {
    overflow-y: auto;
  }

.futureimg {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap:0.5rem;

  
}

.futureimg img {
    width: 30%
}



 




/* Wobble animation for header */
@keyframes wobble {
  16.65% { transform: skew(-12deg); }
  33.3%  { transform: skew(10deg); }
  49.95% { transform: skew(-6deg); }
  66.6%  { transform: skew(4deg); }
  83.25% { transform: skew(-2deg); }
  100%   { transform: skew(0); }
 }
}


/* Keeps consistent background on all pages */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/backgroundcollage.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #d3bee8;
  z-index: -1;
}


