/*

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-size: 100%;
}

header {
    text-align: center;
    padding: 20px 0;
    color: #fff;
    border-bottom: 5px dashed #695347;
    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%;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #8e5638;
}

nav ul li 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);
    text-align: center;
}

.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;
    text-align: center;
}

h2 {
    color: #8e5638;
    font-family: 'Georgia', serif;
    text-align: center;
}

h3 {
    font-family: 'Georgia', serif;
    color: #413027;
}

h4 {
    color: #8e5638;
    font-family: 'Georgia', serif;
    text-align: center;
    font-size: small;

}




#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);
}


.photo-frame {
    position: relative;
    max-width: 25%;
    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;
}

.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);
}

.lightbox-content {
    margin: auto;
    display: block;
    padding: 3%;
    max-width: 80%;
    max-width: 700px;
    max-height: 80%;
}

.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;
}



.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    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;
}