* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1 {
    font-family: "Bitcount Single", system-ui;
    font-size: auto;
}

h2,h3,h4 {
  font-family: "Archivo Black", sans-serif;
}


p, a {
   font-family: "VT323", monospace;
   font-size: 14pt;
}

a:focus, a:active, a:visited {
    border-color: inherit;
}
.bookshelf {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 10%;
}

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

.book {
  display: block;
  opacity: 1;
  visibility: visible;
  border: solid 2px black;
  height: 50vh;
  min-height: 400px;
  width: 80px;
  align-content: center;
  text-align: center;
  writing-mode: vertical-rl;
  position: relative;
}

main {
  margin: 2vw;
} 

.content {
  margin-left: 10%;
  margin-right: 10%;
}

.book.open {
  display: none;
  opacity: 0;
  visibility: hidden;
}

.book-inside {
  width: 20vw;
  overflow: hidden;
  display: none;
  opacity: 0;
  visibility: hidden;
}

.book-inside.open {
  display: block;
  opacity: 1;
  visibility: visible;
}

a.book-link {
  display: flex;
  text-decoration: none;
  width: min-content;
}

.leftpage {
  border: solid 2px rgb(18, 3, 3);
  background-image: url("../images/crumpled-background.jpg");
  background-size: cover;
  border-top-right-radius: 50px 20px;
  border-bottom-right-radius: 50px 20px;
}

.rightpage {
  border: solid 2px rgb(18, 3, 3);
  background-image: url("../images/crumpled-background.jpg");
  background-size: cover;
  border-top-left-radius: 50px 20px;
  border-bottom-left-radius: 50px 20px;
}

.week-field {
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon {
  display: flex;
  flex-direction: column;
  width: min-content;
  min-width: 5vw;
  margin: 2vw;
  text-align: center;
}

.ball-container {
  bottom: 0;
  display: flex;
  flex-direction: row;
  padding: 0.5vw;
  margin-bottom: 0;
  justify-content: center;
}

.ball-container a {
  display: flex;
  flex-direction: row;
}

.image-display {
  margin: 5vw;
}

.image-display img {
  object-fit: contain;
  height: auto;
  width: 100%;
  max-height: 100vh;
  padding: 2vw;
}

.map {
  position: relative;
  display: inline-block;
}

.popup-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 50%;
}


.map svg {
  position: absolute;
  top: 0;
  left: 0;
}

.click-map {
  fill: rgb(126, 255, 253);
  stroke: black;
  stroke-width: 2px;
}

.tooltip:hover {
  fill: yellow;
  stroke-width: 4px;
}

.tooltip:hover .popup-text {
 visibility: visible;
 opacity: 1;
}

.postcard {
  border: solid black 1px;
  width: 70%;
  aspect-ratio: 2/1.2;
  margin: 2vw;
  filter: drop-shadow(10px 5px 10px rgb(182, 181, 181));
  background-color: white;
  
}

.postcard img {
  width: 100%;
  overflow: hidden;
}

.postcard:nth-child(2n) {
  background-image: url("../images/postcard-inside.webp");
  background-size: cover;
  display: grid;
  grid-template-columns: 2fr 1fr;
  padding: 2vw;
}

.postcard-message {
  margin-right: 10%
}

.postcard-message:nth-child(2n) {
  display: block;
  padding-top: 70%;
  text-align: center;
  line-height: 230%;
}

#popup {
  position: absolute;
  top: 50%;
  left: 20%;
  background-color: white;
  color: black;
  border: 1px solid black;
  padding: 2%;
  z-index: 10;
}

.container {
  position: relative;
  flex-direction: column;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;  

}

.speechbubble {
  background-color: white;
  display: flex;
  flex-direction: column;
  border: solid;
  margin: 2vw;
  margin-bottom: 0;
  width: 60%;
  padding: 1vw;
}


.speechbubble--small {
  background-color: white;
  display: flex;
  flex-direction: column;
  border: solid;
  margin-bottom: 0;
  width: 90%;
  height: 100%;
  padding: 1vw;
}


.speechpoint{
  width: 50px;
  height: 50px;
  fill: white;
  z-index: 2;
}

.speechbubble > p {
  margin-bottom: 2%;
}

.speechbubble > p:last-child {
  margin-bottom: 0;
}

/* this class was auto generated by Adobe Indesign SVG settings */

.st0 {
  stroke: #000;
  stroke-linecap: square;
  stroke-miterlimit: 10;
  stroke-width: 3%;
}

/* end of generated class */



.home-icon {
  height: 5vw;
  width: min-content;
  aspect-ratio: 1/0.5;
  background-image: url("../images/book-open.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 20;
  position: relative;
}

.home-icon:hover {
  background-image: url("../images/book-close.svg");
}




/** from experiments **/ 

.crumple-ball {
  width: 5vw;
  aspect-ratio: 1/1;
  background-image: url("../images/crumple-ball.webp");
  background-size: cover;
  cursor: pointer;
}

.crumple-ball.open {
  background-image: url("../images/crumple-ball-open.jpg");
}

.crumple-ball:hover {
  background-image: url("../images/crumple-ball-open.jpg");
}


/** borrowed code from  https://karenanndonnachie.github.io/VCA_INTERACTIVEMEDIA/CHEATSHEETS/gallery_builder.html **/


.gallery {
  display: grid;
  max-width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(22%, 1fr));
}


.gallery-item {
  border-left: 2px dashed black;
  border-top: 2px dashed black;
  position: relative;
}

.coupon {
  margin: 0;
  max-width: min-content;
  width: 100%;
  height: 100%;
  aspect-ratio: 2/1.6;
  padding: 8%;
  object-fit: cover;
}

.coupon-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  transform: translateY(100%);
  transition: 0.5s; 
  font-size: 1rem;
  visibility: hidden;
  opacity: 0;
}


.gallery-item:hover .coupon-caption {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;

  
}


.gallery-item:nth-child(-n + 4) {
  border-top: none;
}

.gallery-item:nth-child(4n + 1)  {
  border-left: none;
}

.gallery-item:nth-child(n + X)  {
  border-top: none;
}

/** this code was based off of code above, so also borrowed from https://karenanndonnachie.github.io/VCA_INTERACTIVEMEDIA/CHEATSHEETS/gallery_builder.html **/

.brick-wall {
  display: flex;
  width: 100%;
  overflow: clip;
}

.brick-wall > a {
  border: solid black 2px;
  padding: 2vw;
  cursor: pointer;
  outline: revert;
  text-decoration: none;
}

.brick-wall > a:hover  {
  background-color: rgb(186, 228, 20);
  outline: revert;
}

/** end borrowed code **/


/** universal **/
.center {
  justify-self: center;
  align-self: center;
}





/** this code was genrated by Copilot AI, then edited by Phoebe Biggin**/
/** only used for the crumple ball experiment, which is in experiment quarantine because it doesnt work the way i wanted it to **/

#overlay1, #overlay2, #overlay3, #overlay4 {
  position: fixed;
  top: 5vw;
  left: 15vw;
  right: 15vw;
  bottom: 7vw;
  box-sizing: border-box;
  overflow: hidden;
  display: none;
  z-index: 10;
}

.overlay-content {
  position: relative;        
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  box-sizing: border-box;
  overflow: hidden;  
  margin: auto;     
  background-image: url("../images/crumpled-background.jpg");
  background-size: cover;
}

.overlay-content > img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* book decorations */

footer {
  position: fixed;
  bottom: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}


.random-colour {
  transition: background-color 0.5s;
}