/* COLOURS 
Light Yellow: #F6FEDB
Wheat: #E6D3A3
Golden sand: #D8D174 
Yellow green: #B6C454

Gunmetal: #393E41
Sand Dune: #EAE0CC
Blazing flame: #FC440F
Pacific Blue: #0FA3B1
535663
*/

:root {
    --main-colour: #9EAD72;
    --accent-1: #d7e3c0;
    --accent-2: #FC440F;
    --dark-accent: #393E41;
    --text-dark: #13181b;
    --text-light: rgba(234, 224, 204);
}

*, ::before, ::after {
    box-sizing: border-box;
}

body {
    /*Basic styling*/
    font-family:'Open Sans', 'Gill Sans MT', 'Calibri', 'Trebuchet MS', sans-serif;
    background-color: #f5faf8;
    background-image:  linear-gradient(#d8d1e8 1px, transparent 1px), linear-gradient(to right, #d8d1e8 1px, #f5faf8 1px);
    color: var(--text-dark);
    
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1200px; /* Limits the size on desktop */
    width: 100%;       /* Allows it to shrink for mobile */
    margin: 0 auto;    /* Centers it */
    background-size: 20px 20px;
}

header {
    background-color: var(--main-colour);
    font-size: 2rem;
}

footer {
    background-color: var(--text-dark);
    display: flex;
    width: 100%;
    bottom:0;

    ul {
        margin-right: auto;
        display: flex;
        list-style: none;
        li {
            padding: 0 5px;
        }
    }
    img {
        width: 50px;
    }

    p {
        margin-left: auto;
        padding-right: 1rem;
        color: var(--text-light)
    }
}

h1 {
    font-family: 'Permanent Marker', Courier, monospace;
    font-size: 2rem;
    padding-left: 20px;
}

nav {
    position: relative;
    width: 100%;
    height:100%;
    }

nav::before {
    content: "";
    position: absolute;
    background-image: url(../../base_assets/cardboard_edge.png);
    transform: rotateX(180deg);
    width: 100%;
    height: 85px;
    background-size:cover;
}

nav ul {
    list-style-type: none;
    padding: 0px;
    margin: 0px;
    padding: 10px 0px;
    position: relative;
    display: flex;
    li a, li {
            color: var(--text-dark)
        };
    li {
        padding: 0px 20px;
        background-color: #FEE639;
        border-radius: 10px;
        padding: 5px 10px;
        margin: 5px;
    }
    li a:hover {
            color: var(--accent-2);
        }
}  


.blurb-and-note {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.blurb {
    background-color: rgb(218, 218, 218);
    border-radius: 10px;
    width: 80%;
    text-align: justify;
    padding: 5px 25px;
    margin: 10px 0px;
}

.note {
    max-height:10rem;
    position: relative;
    filter: drop-shadow(2px 5px 5px rgba(0, 0, 0, 0.4));
}

.sidenav {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;

}

.sidenav::before {
    content: "";
    transform: rotateX(180deg);
    background-size:cover;
    height: 100%;
    width: 90%;
    position: absolute;
    background-image: url(../../base_assets/cardboard_edge_vertical.png);
    
}

main {
    display: grid;
    grid-template-columns: 200px 1fr;
    width: 100%;

    > p {
        color: var(--text-light);
        font-size: 1.1rem;
        width: 90%;
        text-align: justify;
        margin: 20px;
    }
    
    #myBtnContainer {
        display: flex;
        flex-direction: column;
        position: relative;
    }

    @media screen and (max-width: 880px) {
        display: flex;
        flex-direction: column;
        #myBtnContainer {
            display: block;
            text-align: center;
        }

        .sidenav::before {
            background-image: url(../../base_assets/cardboard_edge.png);
            width: 100%;
        }
    }

}


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

button {
    font-family: 'Permanent Marker', Courier, monospace;
    font-size: 1rem;
    display: inline-block;
    margin: 10px;
    background-color: rgb(228, 61, 61);
    color: var(--text-light);
    padding: 10px;
    border-radius: 5px;
    border: none;
    width: 10rem;
}

.dropList { 
  background-color: #f1f1f1;
  color: #11151C;
  padding: 10px 16px;
  font-size: 16px;
  margin: auto;
  border: none;
  border-radius: 0;;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropList:hover {
    background-color: #ddd;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.show-dropdown {
    display: block;
}

/* Gallery for main gall */

.gridAndPages {
    display: flex;
    flex-direction: column;
}
.grid {
    height: 100%;
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    padding-bottom: 10px;
    margin: auto;
    margin-top: 0px;
    justify-items: center;
    
    @media screen and (min-width: 1046px) and (max-width: 1220px) {
            grid-template-columns: repeat(5, 1fr);
        }
    @media screen and (min-width: 881px) and (max-width: 1045px) {
        grid-template-columns: repeat(4, 1fr);
    }
    @media screen and (max-width: 880px) {
        grid-template-columns: repeat(3, 1fr);
        border: 0;
        padding: 20px;
    }

        @media screen and (max-width: 550px) {
        grid-template-columns: repeat(2, 1fr);
        border: 0;
        padding: 20px;
    }

        @media screen and (max-width: 350px) {
        grid-template-columns: repeat(1, 1fr);
        border: 0;
        padding: 20px;
    }

}

.masonry-item {
    margin: 10px;
    display: none;
}

.masonry-item img {
    max-height: 150px;
    max-width: 150px;
    transition: .5s ease;
    backface-visibility: hidden;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.4));
}

.show-image {
    display: inline-block;
}

.masonry-item:hover img {
  opacity: 0.5;
}

.masonry-item:hover {
  opacity: 1;
}

.pages {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.pagination-number,
.pagination-button {
    font-size: 1.1rem;
    margin: 0.25rem 0.25rem;
    cursor: pointer;
    height: 2.5rem;
    width: 2.5rem;
}

.pagination-number:hover,
.pagination-button:not(.disabled):hover {
    background: #fff;
}

.pagination-number.active {
    color: #fff;
    background: #0085b6;
}




.modal {
    display: none; /* Hidden by default */
    margin: auto;
    position: fixed; /* Stay in place */
    z-index: 2; /* Sit on top */
    left: 0;
    top: 0;
    width: 100vw; /* Full width */
    height: 100vh; /* Full height */
    color: var(--text-light);
    font-size: 1rem;
    align-items: center;
    justify-items: center;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0);
    background-color: rgba(31, 30, 30, 0.95);
    
    .modalWrapper {
        background-color: #dae5d6;
        display: grid;
        min-height: auto;
        max-height: 100vh;
        min-width: 40%;
        max-width: 1000px;
        div:has(> .close) { grid-area: close; }
        .modalContent { grid-area: image; }
        #caption { grid-area: caption; }
        .details { grid-area: details; }
        hr {grid-area: divider; }
        margin: auto;
        padding: 0px 10px 10px 10px;
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 30px minmax(0, 4fr) 1rem minmax(0, 1.25fr);
        grid-template-areas:
            ". close"
            "image image"
            "divider divider"
            "caption details";
            };
    }


.modalContent {
  display: flex;
  max-height: 100%;
  max-width: 100%;
  justify-content: center;
  justify-self: center;
  align-self: center;
  min-height: 0;
  object-fit: contain;
    cursor: zoom-in;
  }

#caption {
    text-align: justify;
    background-color: #bccfc0;
    overflow: auto;
    padding: 20px;
    color: black;
}

.details {
    display: grid;
    grid-template-columns: 20px 1fr;
    background-color: #bccfc0;
    margin-left: 10px;
    padding: 10px;
    color: var(--dark-accent);
    overflow: auto;
}

div:has(>.close) {
    display: flex;
    align-items: center;
    justify-content: end;
    position: relative;
}
.close {
    position: absolute;
    color: var(--dark-accent);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    padding-right: 5px;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.modalAndIcon {
    display: flex;
    align-items: center;
    i {
        padding-right: 0.5rem;
    }
}

