/* font faces */
    @font-face {
    font-family: 'Geraldine';
    src: url(fonts/Geraldine.ttf) format('truetype');
    }

    @font-face {
        font-family: 'Lucida';
        src: url(fonts/LucidaHandwritingStdRg.TTF) format('truetype');
    }

    @font-face {
    font-family: 'BradleyHand';
    src: url(fonts/BradleyHandITCTT-Bold.ttf);
    }

    @font-face {
        font-family: Nunito;
        src: url('https://sadhost.neocities.org/fonts/Nunito-Regular.ttf');
    }
    @font-face {
        font-family: Nunito;
        src: url('https://sadhost.neocities.org/fonts/Nunito-Bold.ttf');
        font-weight: bold;
    }
    @font-face {
        font-family: Nunito;
        src: url('https://sadhost.neocities.org/fonts/Nunito-Italic.ttf');
        font-style: italic;
    }
    @font-face {
        font-family: Nunito;
        src: url('https://sadhost.neocities.org/fonts/Nunito-BoldItalic.ttf');
        font-style: italic;
        font-weight: bold;
    }

    @font-face{
        font-family: Bookerly;
        src: url('fonts/Bookerly.ttf');
    }
    @font-face{
        font-family: Bookerly;
        src: url('fonts/BookerlyBold.ttf');
        font-weight: bold;
    }
    @font-face{
        font-family: Bookerly;
        src: url('fonts/BookerlyItalic.ttf');
        font-style: italic;
    }
    @font-face{
        font-family: Bookerly;
        src: url('fonts/BookerlyBoldItalic.ttf');
        font-style: italic;
        font-weight: bold;
    }

    @font-face{
        font-family: Massilia;
        src: url('fonts/massilia-black.otf');
    }
    @font-face{
        font-family: Massilia;
        src: url('fonts/massilia-black-oblique.otf');
        font-style: italic;
    }

/* general */
    body {
            font-family: 'Arial', cursive, sans-serif;
            margin: 0;
            /* you can delete the line below if you'd prefer to not use an image */
            background-size: 10%;
            color: 'black';
            background-image: var(--body-bg-image);
            background-repeat: repeat repeat;
        }

      * {
            box-sizing: border-box;
        }

/* grid! */
    .container {
    max-width: 800px;
    display: grid;
    grid-template-columns: minmax(1fr, auto) minmax(2.5fr, auto)  minmax(1fr, auto);
    grid-template-rows: auto 5fr 1fr;
    column-gap: 40px;
    row-gap: none;
    padding: 100px;
    margin: auto;               /*centers whole page*/
    justify-content: center;    /* also centers content */
    }

.container div {
  background-color: none;
}

.leftSidebar {
  grid-row: 1 / span 3;
}

.top {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.rightSidebar {
  grid-row: 1 / span 3;
}



/* flex!! */

/* the "container" is what wraps your entire website */
    /* if you want something (like the header) to be Wider than
the other elements, you will need to move that div outside
of the container */

/* uncomment the below to go back to flex
        #container {
            max-width: 900px;
            /* this is the width of your layout! */
            /* if you change the above value, scroll to the bottom
  and change the media query according to the comment! */
            /* margin: 0 auto;
            /* this centers the entire page */
        /*} 
/*


/* the area below is for all links on your page
EXCEPT for the navigation */
        #container a {
            color: #656d4a;
            /*font-weight: bold;*/
            text-decoration: none; /* removes the underline from the link */
        }

        #container a:hover {
            color: #656d4a;
            text-decoration: underline;
        }

        #container details summary:hover{
            color:white;
        }

        #header {
            width: 100%;
            background-color: #d3ddbe;   /* header colour */
            height: 150px;
            /* this is only for a background image! */
            /* if you want to put images IN the header, 
  you can add them directly to the <div id="header"></div> element! */
            background-image: var(--header-image);
            background-size: 100%;
        }

        /* navigation section!! */
        #navbar {
            height: 40px;
            background-color: #656d4a;
            /* navbar color */
            width: 100%;
        }

        #navbar ul {
            display: flex;
            padding: 0;
            margin: 0;
            list-style-type: none;
            justify-content: space-evenly;
        }

        #navbar li {
            padding-top: 10px;
        }

        /* navigation links*/
        #navbar li a {
            color: #ccd5ae;
            /* navbar text color */
            font-weight: 800;
            text-decoration: none;
            /* this removes the underline */
        }

        /* navigation link when a link is hovered over */
        #navbar li a:hover {
            color: #ccd5ae;
            text-decoration: underline;
        }

        /* this colors BOTH sidebars
if you want to style them separately,
create styles for #leftSidebar and #rightSidebar */
        aside {
            background-color: none;
            width: 200px;
            padding: 20px;
            font-size: smaller;
            /* this makes the sidebar text slightly smaller */
        }

        /* this is the color of the main content area,
between the sidebars! */
        main {
            background-color: #ccd5ae;
            width: 600px;
            height:500px;
            padding: 40px;
            overflow-y: scroll;

        }

        /* scrollbar */
            /* width */
            main::-webkit-scrollbar{
                width:20px;
                background-color: #a4ac86;
            }
            /* Track */
            main::-webkit-scrollbar-track {
                box-shadow: inset 0 0 5px #656d4a; 
            }
            
            /* Handle */
            main::-webkit-scrollbar-thumb {
                background: #656d4a; 
            }

            /* Handle on hover */
            main::-webkit-scrollbar-thumb:hover {
                background: #3d422d; 
            }




        footer {
            background-color: #656d4a;
            /* background color for footer */
            color: white;
            width: 100%;
            height: 40px;
            padding: 10px;
            text-align: center;
            /* this centers the footer text */
        }

 
        

        h1 {
            color:#283618;
            font-size: 25px;
            font-family: 'Lucida'
        }
        h2 {
            color:#283618;
            font-family: 'Massilia';
            font-size: 16px;
        }
        h3 {
            color: #283618;
            font-family: 'Arial';
            font-size: 14px;
        }


        p,
        details{
            color: black;
            font-family: 'Bookerly';
            font-size: 12px;
        }

        figcaption{
            color: black;
            font-family: 'Bookerly';
            font-size: 9px;
        }

        i{
            font-family: 'Bookerly';
            font-style: italic;
        }

        strong {
            /* this styles bold text */
            color: black;
            font-family: 'Bookerly';
            font-weight: bold;
        }

        
        


        /* CSS for extras */

        #topBar {
            width: 100%;
            height: 30px;
            padding: 10px;
            font-size: smaller;
            background-color: #d3ddbe;
        }


        /* BELOW THIS POINT IS MEDIA QUERY */

        /* so you wanna change the width of your page? 
by default, the container width is 900px.
in order to keep things responsive, take your new height,
and then subtrack it by 100. use this new number as the 
"max-width" value below
*/

        @media only screen and (max-width: 800px) {
        
            aside {
                width: 100%;
            }
        }


/* column divs */
    .column {
    float: left;
    width: 50%;        /* Three equal columns */
    padding: 3px;
    }
/* Clear floats after image containers */
    .row::after {
    content: "";
    clear: both;
    display: table;
    }
/* centres an image */
    .center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    }


/* buttons */ 
    .button {
    border-color: #a3b18a;
    border-radius: 10px;
    color: #a3b18a;
    background-color: #656d4a;
    padding: 5px 40px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
    }

    .button:hover {
        background-color: #a4ac86;
        color: #656d4a;
    }

/* boxes */

/* this is just a cool box, it's the darker colored one */
        .box {
            background-color: none;
            border: 2px solid #656d4a;
            padding: 10px;
        }
        .nopaddingbox{
            background-color: #a4ac86;
            border: 2px solid #656d4a;
            padding: 0px;
        }
        .noborderboxaside{
            background-color: none;
            border: none;
            padding: 10px;
        }
/* fieldset box and legend (the title) */
        fieldset{
            background-color: none;
            border: 3px solid #a4ac86;
            padding: 10px;
            border-radius: 5px;
        }
        legend{
            color:#283618;
            font-family: 'Massilia';
            font-size: 16px;
        }


/* image box */
    .imgbox {
        width: 100%;
        height: auto;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 10px; /* Optional: rounds corners of the box */
        position:relative;
    }
    /* in th html code, do class="imgbox" and then
    add style="background-image: url('your-image.jpg');" to set the image */

/* image wrapping */
    .img__wrap {
    position: relative;
    }

    .imgText {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    height: 100%;
    background: none; /* Semi-transparent background */
    color: #656d4a;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Text is invisible by default */
    transition: opacity 0.3s ease-in-out; /* Smooth fade effect */
    padding: 40px;
    font-family: Bookerly;
    font-weight: bold;
    }

    .imgbox:hover .imgText {
    opacity: 1;
    }

        
/* nudibranch image wrapping */
    .pngbox{
        width: 100%;
        height: auto;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 10px; /* Optional: rounds the corners of your box */
        position:relative;
    }

    .pngbox:hover{
        opacity: 0.5;
    }

/* advert meme box*/
    .adbox{
        position:relative;

        width: 80%;
        max-width: 500px;
        min-height: 100px;
        height: auto;
        background-size: 100%;
        background-position: center;
        background-repeat: no-repeat;
        margin: 0 auto;                 /* centers the div */

        /* border-radius: 8px; /* Optional: rounds the corners of your box */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        overflow: hidden;
    }

    /* container for buttons inside meme box */
    .ad-btn-group{
        position: absolute;
        top: 6px;
        left: 10px;

        /* Align buttons side by side */
        display: flex;
        gap: 5px;

        /* must sit on top of adbox background */
        z-index: 10;
    }

    /* styling of ad buttons */
    .ad-btn{
        background-color: #ced4da;
        color: #6c757d;
        border: none;
        padding: 2px 4px;
        font-size: 10px;
        font-weight: bold;
        cursor: pointer;
        transition-duration: 0.2s;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    /* add  --border-radius: 4px;-- in the style for btn i to make it round */

    /* hover effect for the buttons */
    .ad-btn:hover{
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        filter: brightness(75%);
    }
