/*imports*/
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=VT323&display=swap");

/*global reset*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    cursor: url(https://cur.cursors-4u.net/games/gam-12/gam1112.cur), auto !important;
    /* cursor source is from https://knoxstation.neocities.org/ */
}

/*after the reset i want to add css variables like colours etc https://www.w3schools.com/css/css3_variables.asp */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

:root {
    /*colour palette*/
    --blue-dark: rgb(0, 36, 71);
    --blue-fun: rgb(0, 91, 249);
    --blue-light: rgb(171, 242, 254);
    --green-dark: rgb(28, 52, 0);
    --green-light: rgb(200, 254, 135);
    /*glass effects*/
    --white-glass: rgba(255, 255, 255, 0.06);
    --white-panel: rgba(255, 255, 255, 0.77);
    --border-glass: rgba(255, 255, 255, 0.5);
    /*gradients*/
    --frutiger: linear-gradient(to bottom, rgb(0, 91, 249), rgb(200, 254, 135));
    /*text*/
    --text-nav: #ffffff;
    /*text shadow*/
    --text-on-glass: #000000;
    /*i got some colours from https://knoxstation.neocities.org/ i liked the colour palette! */

    /*FONTS*/
    --font-main: Arial, Helvetica, sans-serif;
    --font-future: "Orbitron", sans-serif;
    /*i was ggoing to use these fonts but changed my mind*/
    /*--font-terminal: "VT323", monospace;*/
    /*--font-tech: "Neuropol", sans-serif;*/
}

/*formatting for backgorund image. must stay fixed behind everything.*/
.backgroundimg {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index: -11;
    /*background styling inspired by https://knoxstation.neocities.org/ */
}

/*formatting for background video. its the same as the image pretty much*/
#backgroundvid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -10;
}

/*button to turn bubbles on and off*/
#bgtoggle {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 100;
    background: var(--white-glass);
    /* From https://css.glass */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    /* its pretty much styled the same as my other buttons*/
    color: var(--text-nav);
    text-shadow: 1px 1px 1px var(--text-on-glass);
    padding: 4px 8px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
/*bubble button hover animation similar to the nav ones*/
#bgtoggle:hover {
    background: rgba(255, 255, 255, 0.2);
    text-shadow: 2px 2px 2px var(--text-on-glass);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------------------------------------------------------------
 *  MAGICAL HEADER EVERYTHING FROM HERE IS FROM FOLLOWING THIS TUTORIAL + SOME DILLY DALLYING https://www.youtube.com/watch?v=FF8vBvMCt5g */

/*header styling from tutorial and me doing trial and error*/
.header {
    position: fixed;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 120px;
    height: 90px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    justify-content: space-between;
    list-style: none;
    flex-direction: row;
    overflow: hidden;
    gap: 1rem;
    /*i dont think this was in the tut but i added it because i didnt want anything to be on top of the header */
    z-index: 100;
    /* header glass effect from from https://css.glass i have used this everywhere*/
    background: var(--white-glass);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-shadow: 3px 1px 3px var(--text-on-glass);
    /*trying to get my mobile headerfr to work with the hamburger menu... more on this in the next few lines */
    grid-template-rows: 90px;
    transition: height 0.4s ease-in-out;
}

/*i used what i learnt from the later hamburger menu tutorial to animate my header as well*/
/*it was by miguel nunez and will be mentioned later in more detail with my hamburger menu*/
/*it was easy since he shows you the code for the animations... so i just played around with it with my header settings */

/*when u click burger then header become longer to fit contents*/
.header.active {
    height: 410px;
}
/*logo in the header styling*/
.logo {
    color: var(--text-nav);
    font-size: 2rem;
    text-decoration: none;
    font-weight: 700;
    cursor: default;
    /*accessible sizing*/
    min-height: 44px;
    display: flex;
    align-items: center;
    /*making sure logo stays on 1 line at all times*/
    /*https://www.w3schools.com/cssref/pr_text_white-space.php*/
    white-space: nowrap;
}

/*desktop will b normal horizonal nav*/
.navbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
/*navbar page links styling*/
/*making them sit horizontally and have good spacing*/
.navbar ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
}
/*navbar page links styling the text*/
.navbar a {
    display: inline-flex;
    align-items: center;
    color: var(--text-nav);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    /* scaling stuff */
    min-height: 44px;
    border-radius: 6px;
}
/*hover state for navbar links*/
.navbar a:hover {
    background: rgba(255, 255, 255, 0.1);
    /*i didnt want an underline like in the tutorial.*/
}

/* END MAGICAL HEADER FOLLOWING THIS TUTORIAL + DILLY DALLYING https://www.youtube.com/watch?v=FF8vBvMCt5g YIPEEE !!
 * i actually had a few issues because my navbar was ul/li and it kept being vertical and bullet points, hence why u might see display:flex in every single nav thing..
 * its because im too scared to take it off anywhere and break the whole thing so i just added it to very nav related element until it finally did what i wanted
 * ----------------------------------------------------------------------------------------------------------------------------------*/

/*some general body styling*/
body {
    font-family: var(--font-main);
    line-height: 1.6;
    margin: 0;
}

/*----------------------------------------------------------------------------------------------------------------------
 * --------------- RESPONSIVE HAMBURGER MENU ---------------------------------------------------------------------------
 * /*learnt a bit from the student files hamburger menu, but i still wanted my own
 * --- credits to miguel nunez, i followed this tutorial by him https://www.youtube.com/watch?v=flItyHiDm7E -------------
 * ------ i made my nav bar first, and then adapted the hamburger tutorial to what i had completed ---------------------*/
.nav-link {
    transition: 0.7s ease;
}
/*hiding on desktop*/
.hamburger {
    display: none;
}
/*the specific lines on the hamburger menu that transition*/
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-nav);
    filter: drop-shadow(1px 1px 1px var(--text-on-glass));
}
/* ----------- END RESPONSIVE HAMBURGER MENU cr miguel nunez -----------------------------------------------------------
 * --- credits to miguel nunez, i followed this tutorial by him https://www.youtube.com/watch?v=flItyHiDm7E ------------
 * -------------------------------------------------------------------------------------------------------------------*/

/* -------------------------------------------------------------------------------------------------------------------
 * STAR SPARKLE CURSOR TRAIL YAYYY
 * Source - https://stackoverflow.com/a/64214281 Posted by AGrush Retrieved 2026-05-04, License - CC BY-SA 4.0 --------- */

/*honestly dont know whats happening here, ive put the source for this trail and i might mess around with the numbers and stuff but its mostly added for aesthetic purposes*/
.star-five {
    background: transparent;
    margin: 50px 0;
    position: relative;
    display: block;
    color: #ffffff;
    width: 0px;
    height: 0px;
    border-right: 100px solid transparent;
    border-bottom: 70px solid #ffffff;
    border-left: 100px solid transparent;
    /* transform: rotate(35deg) scale(0.1) translate(-1450px, -250px); */
}
.star-five:before {
    border-bottom: 80px solid #ffffff;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    background-color: transparent;
    position: absolute;
    height: 0;
    width: 0;
    top: -45px;
    left: -65px;
    display: block;
    content: "";
    transform: rotate(-35deg);
}
.star-five:after {
    background-color: transparent;
    position: absolute;
    display: block;
    color: #ffffff;
    top: 3px;
    left: -105px;
    width: 0px;
    height: 0px;
    border-right: 100px solid transparent;
    border-bottom: 70px solid #ffffff;
    border-left: 100px solid transparent;
    transform: rotate(-70deg);
    content: "";
}
/* Source - https://stackoverflow.com/a/64214281 Posted by AGrush Retrieved 2026-05-04, License - CC BY-SA 4.0 ----------
 * -------------------------------------------------------------------------------------------------------------------*/
/*some code following sourced from https://css-tricks.com/complete-guide-css-grid-layout/ */
/*the "invisible" page that scrolls it keeps everything together but u cant c it*/
.page {
    padding-top: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/*so title matches device width, specifically the one on he homepage */
.pagetitle {
    max-width: 1000px;
    width: 90%;
    height: auto;
    display: block;
}
/*some pages need the page title to b a different size https://www.w3schools.com/css/css_attribute_selectors.asp*/
/*adding the important attribute so they dont get overulled (learnt from where i got the cursor from)*/
.pagetitle[src*="history.png"],
.pagetitle[src*="explore.png"],
.pagetitle[src*="gallery.png"] {
    max-width: 500px !important;
    width: 100% !important;
    margin: 0 auto !important;
}
/*the main blurry translucent floating page that will scroll on top of background*/
.container {
    width: 90%;
    max-width: 1000px;
    margin: 2rem auto;
    display: grid;
    grid-template-rows: auto;
    gap: 1.5rem;
    /* From https://css.glass */
    background: linear-gradient(to bottom, rgba(58, 130, 255, 0.4), rgba(106, 190, 93, 0.4));
    border-radius: 18px;
    padding: 2rem 2.5rem;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 50, 150, 0.12);
}
/*-------------------------------------------------------------------------------------------------------------------
 * text stuff ---------------------------------------------------------------------------------------------------- */
/*big headings*/
h1 {
    font-family: var(--font-future);
    font-size: 3rem;
    color: white;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-shadow: 3px 1px 3px var(--text-on-glass);
}
/*subheadings*/
h2 {
    font-family: var(--font-future);
    font-size: 2rem;
    color: white;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-shadow: 3px 1px 3px var(--text-on-glass);
}
h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.3rem;
    text-shadow: 3px 1px 3px var(--text-on-glass);
}
/*general text*/
p {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 1rem;
    max-width: 70ch;
    text-shadow: 3px 1px 3px var(--text-on-glass);
}
/*link colour stylying from https://www.w3schools.com/css/css_link.asp*/
/* unvisited link */
a:link {
    color: var(--text-nav);
}
/* visited link */
a:visited {
    color: var(--text-nav);
}
/* mouse over link */
a:hover {
    color: var(--green-light);
}

/*this is a good css generator for custom glassmorphic cards which i hope to use! https://hype4.academy/tools/glassmorphism-generator */

/*end text stuff -----------------------------------------------------------------------------------------------------
 * ------------------------------------------------------------------------------------------------------------------*/

/* -------------------------------------------------------------------------------------------------------------------
 * HISTORY --------------------------------------------------------------------------------------------------------------
 * timeline code credits Phuoc Nguyen https://dev.to/phuocng/create-a-vertical-timeline-12ln ------------------------------- */
.timeline {
    display: grid;
    grid-column-gap: 1rem;
    grid-template-columns: auto 2px 1fr;
    max-width: 70ch;
    margin: 0 auto;
}
/*the timeline date on the left*/
.timeline__date {
    text-align: right;
    margin-top: 1.35rem;
    margin-right: 0.5rem;
}
/* the actual line*/
.timeline__separator {
    background: rgb(203 213 225);
    position: ab;
    filter: drop-shadow(1px 1px 1px var(--text-on-glass));
    left: -5rem;
}
/*the dots on the line*/
.timeline__separator::before {
    content: "";
    position: absolute;
    top: 3.6rem;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(1px 1px 1x var(--text-on-glass));
    background: inherit;
    border-radius: 50%;
    height: 1rem;
    width: 1rem;
}
/*the timeline titles*/
.timeline__title {
    font-weight: 500;
    margin-left: 0.5rem;
}
/*the text in the timeline*/
.timeline__description {
    margin-bottom: 1rem;
    margin-left: 0.5rem;
}
/*figures in timeline under description*/
.timeline-figure img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    display: block;
}
/*captions for those figures*/
.timeline-figure figcaption {
    font-size: 0.9rem;
    color: white;
    text-shadow: 3px 1px 3px var(--text-on-glass);
    margin-top: 0.4rem;
    margin-bottom: 1rem;
}
/* end timeline code CR Phuoc Nguyen https://dev.to/phuocng/create-a-vertical-timeline-12ln --------------------------------------
 * HISTORY ------------------------------------------------------------------------------------------------------------
 * ------------------------------------------------------------------------------------------------------------------- */

/* homepage checkerboard looking thing for the features*/
/*since this was one of the first things i did on the website, i needed a lot of help */
/*i used the following stackoverflow thread to help me start this checkerboard https://stackoverflow.com/questions/27808598/making-a-checkerboard-pattern-using-css-selectors*/
/*and also this website where i got some code https://codepen.io/RilDev/pen/mdXegEL*/
/*also credits to DAMON MUMA since a lot of this checkerboard code / learning is sourced from here https://dev.to/thedamon/maintaining-a-pattern-across-a-responsive-grid-4j2b*/
/*he used an example of 4x2 so i pretty much halved the numbers, since mine is 2x6*/
.board {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: dense;
    width: 100%;
}
.square {
    aspect-ratio: 1 / 1;
    /*i initially had trouble with the text not being a square, i ended up using aspect ratio property from this post https://stackoverflow.com/a/65817448*/
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 0.3rem;
    text-shadow: 3px 1px 3px var(--text-on-glass);
}
/* again credits to damon muma especially for these two following lines https://dev.to/thedamon/maintaining-a-pattern-across-a-responsive-grid-4j2b */
/*here i halved it from 8n to 4n after the info under "Putting it all together". and for the +3 i just substitued the number until it did what i wanted it to.*/
.square:nth-child(4n + 3) {
    grid-column: 2;
}
/*basic image formatting OLD, images were too big*/
/*square img {*/
/*width: 100%;*/
/*height: 100%;*/
/*object-fit: cover;*/
/*}*/
.square img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}
/*end grid code from https://stackoverflow.com/questions/27808598/making-a-checkerboard-pattern-using-css-selectors and https://dev.to/thedamon/maintaining-a-pattern-across-a-responsive-grid-4j2b*/

/*------------------------------------------------------------------------------------------------------------------*/
/* EXPLORE -------------------------------------------------------------------------------------------------*/

/*OLD EXPLORE FEED WITH FLEXBOX (I FAILED IT)*/
/*.explore-feed {*/
/*display: flex;*/
/*grid-template-columns: repeat(2, 1fr);*/
/*gap: 20px;  source https://www.w3schools.com/cssref/css3_pr_gap.php */
/*flex: 50%;*/
/*}*/

/*was initially using flex box, but once i added more than 2, i got confused and went back to grid.. u can see my sad thought process in the html.*/
.explore-feed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; /* source https://www.w3schools.com/cssref/css3_pr_gap.php */
}
/*size formatting for images in feed*/
.explore-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}
/*hover state so image goes bigger when u hover*/
.columns:hover img {
    transform: scale(1.05);
    transition:
        transform 0.2s ease,
        filter 0.5s ease;
}

/* END EXPLORE PAGE STYLING ----------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------------------*/

/* ------------------------------------------------------------------------------------------------------------------*/
/* GALLERY --------------------------------------------------------------------------------------------------------- */
/* GALLERY PINTEREST STYLE SCROLLING LAYOUT*/
/* CREDITS TO Artur Karczmarczyk https://ideaspot.tv/css-only-pinterest-layout-without-js-masonry-layout/ */
/*general scrolling gallery*/
#main-content {
    width: 80%;
    margin: 1em auto;
    columns: 200px;
    column-gap: 10px;
}
/*the imgs in it*/
#main-content img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}
/* image goes bigger on hover https://www.w3schools.com/css/css3_transitions.asp*/
#main-content a:hover img {
    transform: scale(1.05);
    transition:
        transform 0.2s ease,
        filter 0.5s ease;
}

/* END GALLERY -------------------------------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------------------------------------------------*/

/* FOOTER https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_fixed_footer */
/*pretty much copied and pasted the settings for my footer from my other lements...*/
footer {
    /*size and padding*/
    width: 100%;
    margin: 0;
    padding: 1rem;
    /*scaling stuff*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    /* From https://css.glass */
    background: var(--white-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    /* copied from header */
    color: var(--text-nav);
    text-shadow: 1px 1px 1px var(--text-on-glass);
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
/*my main hover colour is green. changing for readability.*/
footer a:hover {
    color: var(--blue-fun);
    text-shadow: 1px 1px 1px white;
}
/*footer font size*/
footer p {
    font-size: 1rem;
}

/* small screen media queries */
/*i tried to use 960px like the subject files (telefono-layout-steps01.pdf) say, but it feels like like it turns into 1 column to quickly and im left with a massive image*/
/*source https://www.w3schools.com/css/css3_mediaqueries_ex.asp*/
@media (max-width: 768px) {
    /* phone text sizing stuff */
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.4rem;
    }
    p {
        font-size: 1.2rem;
    }
    /*credits to miguel for hamburger menu tutorial, see earlier code*/
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        gap: 0;
        flex-direction: column;
        background: var(--white-glass);
        border-radius: 0 0 16px 16px;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.5);
        width: 100%;
        text-align: center;
        transition: 0.3s;
    }
    .nav-item {
        margin: 16px 0;
    }
    .nav-menu.active {
        left: 0;
        flex-direction: column;
    }
    /* mobile stacking to single column*/
    .board {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        /*stacks it based on the ROW so the text matches the image. source: damon muna and https://www.w3schools.com/cssref/pr_grid-auto-flow.php*/
    }
    .square:nth-child(4n + 3) {
        grid-column: 1;
        /*same numbers so the pattern remains checkerboard, but since its one column i just put 1*/
    }
    .explore-feed {
        /*mobile stacking for explore page*/
        grid-template-columns: repeat(1, 1fr);
    }
}

/*more sizing stuff for smaller screens especially iphone SE(done in wk 12 after feedback)*/
@media (max-width: 500px) {
    /*fixing the scaling for the header so the logo and hamburger dont space weird*/
    .header {
        padding: 0 3rem;
    }
    .logo {
        font-size: 1.7rem;
    }
    /*creating more space inside container for text*/
    .container {
        width: 95%;
        padding: 1.5rem;
    }
    /*text resizing*/
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.4rem;
    }
    p {
        font-size: 1.2rem;
        max-width: 50ch;
    }
    /*fixing the timeline margins for smallest screens (so text isnt seeping out of my container)*/
    .timeline__description {
        margin-left: 0;
    }
    .timeline__title {
        margin-left: 0;
    }
    /*JUST for this timeline i need the size for h2 to be smaller so it doesnt mess up on smallest screens*/
    .timeline__title h2 {
        font-size: 1.3rem;
    }
    /*timeline images scaling appropriately*/
    .timeline__description img {
        width: 100%;
        height: auto;
    }
}
