/*

Created: March 2025
Writer: Emma Hinde
CSS for the Scrapbook

This is the full stylesheet for the website. Use it to change colour themes and background images.

*/

body {
  font-family: 'Georgia', serif;
  max-width: 900px;
  margin: auto;
  padding: 20px;
  background-image: url('backgroundTexture.jpg');
  /* change background image */
  background-position: top;
  background-repeat: repeat-y;
  background-attachment: scroll;
  background-size: 100%;
}

header {
  text-align: center;
  color: #fff;
  padding: 15px;
  border-bottom: 5px dashed #8e5638;
  /*outline: 5px dashed #8e5638;
  outline-offset: -10px;*/

  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-image: url('backgroundPaperTexture.png');
  /* change header image */
  background-size: 200%;
  position: relative;
}

.logo-sticker {
  width: 60px;
  height: 60px;
  top: -25px;
  margin-right: 5%;
  transform: rotate(-20deg);
  border-radius: 50%;
  /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;*/
  background-color: #fff;
}

@media screen and (min-width: 600px) {
  .logo-sticker {
    width: 80px;
    height: 80px;
    position: absolute;
    top: -25px;
    left: 10%;
    transform: rotate(-20deg);
    border-radius: 50%;
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;*/
  }
}


@media screen and (min-width: 800px) {
  .logo-sticker {
    width: 80px;
    height: 80px;
    position: absolute;
    top: -25px;
    left: 20%;
    transform: rotate(-20deg);
    border-radius: 50%;
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;*/
  }
}

.nav a {
  display: inline-block;
  color: #fff;
  text-align: center;
  padding: 5px 10px;
  margin: 15px 10px;
  text-decoration: none;
  border-radius: 5px;
  background-color: #8e5638;
}

@media screen and (max-width: 500px) {
  .nav a {

    margin: 5px 5px;

  }
}

/* Change the color of links on mouse-over */
.nav a:hover {
  background-color: #bf7b57;
}

#content {
  background-color: #fdfbfb;
  padding: 20px;
  border: 2px dashed #413027;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-image: url('backgroundPaperTexture.png');
}

#content p {
  font-family: 'Georgia', serif;
}

.scrapbook-section {
  margin: 20px 0;
  padding: 20px;
  background-color: #fdfbfb;
  border-radius: 5px;
  border: 2px dashed #8e5638;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.more-content {
  display: none;
}

.read-more {
  font-family: 'Georgia', serif;
  background-color: #fdfbfb;
  color: #8e5638;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.read-more:hover {
  font-family: 'Georgia', serif;
  color: #bf7b57;
}


h1 {
  color: #413027;
  font-family: 'Georgia', serif;
  font-size: 2.5em;
  position: relative
}

h2 {
  color: #8e5638;
  font-family: 'Georgia', serif;
}

h3 {
  font-family: 'Georgia', serif;
  color: #413027;
}

h4 {
  color: #8e5638;
  font-family: 'Georgia', serif;
  text-align: center;
  font-size: small;

}



.button a {

  color: #fff;
  text-align: center;
  padding: 5px 10px;
  margin: 15px 10px;
  text-decoration: none;
  border-radius: 5px;
  background-color: #8e5638;
}

/* Change the color of links on mouse-over */
.buttton a:hover {
  background-color: #bf7b57;
}



#image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  background-image: url('backgroundPaperTexture.png');
  /* corkboard style for gallery background */
  background-size: cover;
  padding-top: 5%;
  padding-bottom: 5%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

@media screen and (min-width: 600px) {
  .photo-frame {
    position: relative;
    max-width: 27%;
    max-height: fit-content;
    border-radius: 10px;
    padding: 5px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transform: rotate(var(--random-rotation));
    top: var(--random-top);
    left: var(--random-left);
  }
}

/* On screens that are 600px wide or less, 2 rather than 3 columns of images */
@media screen and (max-width: 600px) {
  .photo-frame {
    position: relative;
    max-width: 40%;
    max-height: fit-content;
    border-radius: 10px;
    padding: 5px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transform: rotate(var(--random-rotation));
    top: var(--random-top);
    left: var(--random-left);
  }
}

.photo-frame img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.photo-frame h3 {
  text-align: center;
  margin: none;
}

.pin {
  /* This makes a randomly coloured pin that sticks to the top of the photo-frame */
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background-color: red;
  /* Default color */
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.9);
}


/* Lightbox enlarges image when you click on it */

.lightbox {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  margin: auto;
  display: block;
  padding: 5%;
  max-width: 80%;
  max-height: 90%;
  border-top: 10%;
  border-radius: 10px;
  padding: 5px;
  background-color: #fff;
}


.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}


.controls-container {
  /* At the top, contains pagination and sort box */
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.pagination button {
  background-color: #bf7b57;
  color: #fff;
  border: none;
  padding: 10px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Georgia', serif;
}

.pagination button:hover {
  background-color: #8e5638;
  font-family: 'Georgia', serif;
}

.sort-container {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
  margin-bottom: 20px;
  background-color: #fdfbfb;
  max-width: 200px;
  padding: 10px;
  font-family: 'Georgia', serif;
  color: #413027;
  border: 2px dashed #8e5638;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sort-container label {
  margin-right: 10px;
  background-color: #fdfbfb;
  font-family: 'Georgia', serif;
  color: #413027;
}




.slideshow-container {
  position: relative;
  max-width: 600px;
  margin: auto;
}

.slide {
  display: none;
  /*  width: 100%;*/
  max-height: 500px;
  position: relative;
}

.slide img {
  /* width: 100%; */
  max-height: 500px;
  border-radius: 10px;
  transition: transform 0.6s ease-in-out;

  padding: 5px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}


.slideshow-img-prev,
.slideshow-img-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 15px;
  color: white;
  background-color: #8e5638;
  border-radius: 10px;
  font-size: 20px;
  user-select: none;
  transition: 0.3s;
}

.slideshow-img-prev {
  left: -50px;
}

.slideshow-img-next {
  right: -50px;
}


@media screen and (max-width: 600px) {

  .slideshow-img-prev,
  .slideshow-img-next {

    top: 50%;
    width: auto;
    padding: 10px;
    color: white;
    background-color: #8e5638;
    border-radius: 10px;
    font-size: 20px;
    user-select: none;
    transition: 0.3s;
  }

  .slideshow-img-prev {
    left: -40px;
  }

  .slideshow-img-next {
    right: -40px;
  }
}


.slideshow-img-prev:hover,
.slideshow-img-next:hover {
  background-color: #bf7b57;
}





.footer {
  background-color: #333;
  color: #fff;
  padding: 20px 10px;
  text-align: center;
  max-width: 100%;
  margin-top: 40px;

}

.footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}

.footer a:hover {
  text-decoration: underline;
}