

* { 
    color: white;
    line-height: 1.6; 
}

/* adding styles that you can't scroll downwards on the homepage*/ 

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: hidden !important;
    font-family: "PT Sans", sans-serif;
    background-color: rgb(0, 0, 0); 
}

.container { 
    margin: 0; 
    margin-left: 2vh;
}

/* Nav bar basic styling, just using flex and the fixing to the top of the page*/ 

.navbar {
    display: flex;
    position: fixed;
    width: 97%;
    top: 0;
    left: 0;
    z-index: 1000;
    text-decoration: none;
    overflow: hidden;
    border-bottom: 3px solid black;
    margin: 0px;
    padding: 0px;
    background-color: #555;
}
 
.navMenu{
    display:flex; 
    justify-content:space-around;
    gap: 3px;
    position: fixed;
    width: 100%; 
    top: 0;
    left: 0;
    z-index: 1000;
    text-decoration: none;
    border-bottom: 3px solid black;
    margin: 0px;
    padding: 0px;
    background-color: #555;
}

.nav-item { 
    flex-basis: 16.6%;
    list-style: none;
    font-size: 20px;
    text-align: center;
}

.nav-item a{
    text-decoration: none;
}

.nav-item a h2{
    color:#999;
    font-size: 1.4em;
    margin-top: 0px;
    margin-bottom: 0px;
    line-height: 1.2;
}

.nav-item.active a h2{
    color:white;
    margin-top: 0px;
    margin-bottom: 0px;
}

.nav-item a h2:hover {
    scale: 1.1; 
}


/* Navigation tabs */

.rounded-tab {
    --r: .8em; /* control the curvature */
  
    border-inline: var(--r) solid #0000;
    border-radius: calc(2*var(--r)) calc(2*var(--r)) 0 0/var(--r);
    mask: radial-gradient(var(--r) at var(--r) 0,#0000 98%,#000 101%) calc(-1*var(--r)) 100%/100% var(--r) repeat-x, conic-gradient(#000 0 0) padding-box;
}
.rounded-tab.left {
    border-left-width: 0;
    border-top-left-radius: var(--r);
}
.rounded-tab.right {
    border-right-width: 0;
    border-top-right-radius: var(--r);
}

.rounded-tab { 
    padding-inline: .5em;
    background: #000 border-box; /* border-box is mandatory */
}

.rounded-tab.active{
    background: #000 border-box; /* border-box is mandatory */
}




/* this container puts the sections in a row and forces to move horizontally https://blog.hubspot.com/website/horizontal-scrolling influenced by this tutorial*/ 

.container {
    display: flex;
    gap:10vw;
    width: 100vw;
    height: 100vh;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
/*  adding animations for the transition*/ 

.section {
    transition: transform 0.3s ease-in-out;
    cursor:pointer; 
}

.section:focus {
    border: blue 3px solid;
}

.section:hover {
    transform: scale(1.03);
}

/* stylings for the radio */ 


.fixed-radio {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 10;
    display:flex; 
    align-items: center;
}
#arrowleft { 
   font-size: 40px;
   cursor:pointer; 
   display:none; 


}

#arrowleft:hover { 
    transform:scale(1.20)
}
#arrowright { 
    font-size: 50px;
    cursor:pointer; 
    margin: 0;
    padding:0; 

 
 }
#arrowright:hover { 
    transform:scale(1.20)
}

.fixed-radio svg {
    width: 50vw;  
    height: auto; 
}



#endsectionTitle { 
    font-size: 3rem;
    margin-top: 8vh;
}


.titleSlide{ 
    background-color: rgb(0, 0, 0); 
    min-width: 40vw;
    height: 94vh;
    scroll-snap-align: start;
   
  
}

.titleSlideEnd{ 
    background-color: rgb(0, 0, 0); 
    min-width: 2vw;
    height: 94vh;
    /*scroll-snap-align: start;*/
}

/* further styles for the navigation bar - space around improves the layout*/ 

#titlesection { 
    background-color: black;
    margin-top: 4vh;
    margin-left: 2vh;
    font-size:large;
}
#titlesection h1 { 
    font-size: 3rem;  
    margin-top: 4vh;
}

#titleslidesubheading1 h2 { 
    font-size:2.3rem; 
}

#titleslidesubheading2 h3 {
 font-size:2rem; 
}

/* this uses the CSS class section to create our square cards which are used for the navigation*/ 

.section {
    margin-top: 10vh;
    border: 10px green solid;
    border-radius: 20px;
    min-width: 40vw;
    height: 60vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column; 
    justify-content: space-between; 
    align-items: center;
    position: relative;
}

.imagebackground {
    
    flex: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
   
}

/* styles the bottom of the sections*/

.titleforsection {
    width: 100%; 
    height: 25%; 
    background-color:black; 
    
    display: flex;
    align-items: center; 
    justify-content: center; 
    padding: 10px; 
    box-sizing: border-box; 
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.titleforsection h3 {
    margin: 0; 
    font-size: 1.2rem; 
    color: white; 
    text-align: center;
}

/* adds the section distinctive colours */ 

#section1 { 
    border-color: red;

}

#section2 { 
    border-color: yellow
}

#section3 { 
    border-color: green;

}
#section4 { 
    border-color: turquoise;

}
#section5 { 
    border-color: brown;

}
#section6 { 
    border-color: blue;

}
#section7 { 
    border-color: lightpink;

}
#section8 { 
    border-color: grey;

}

#section9 { 
    border-color: darkolivegreen;

}
#section10 { 
    border-color: purple;

}
#section11 { 
    border-color: lightblue;

}
#section12 { 
    border-color: darkred;

}
#section13 { 
    border-color: white;

}



/* adds background images to our cards*/ 

#imagebackground1 {
    background-image: url(images/Theme1BritishEmpireandrelations.png);
    background-size: contain;
    background-position: center;
    width: 100%; 
    height: 100%;
}

#imagebackground2 {
    background-image: url(images/Theme2EmigrationandImmigratio.png);
    background-size: contain;
    background-position: center;
    width: 100%; 
    height: 100%;
    overflow: hidden;
}
#imagebackground3 {
    background-image: url(images/Theme3ColourBarRacism.png);
    background-size: contain;
    background-position: center;
    width: 100%; 
    height: 100%;
    overflow: hidden;
}
#imagebackground4 {
    background-image: url(images/Theme4antiracism.png);
    background-size: contain;
    background-position: center;
    width: 100%; 
    height: 100%;
}

#imagebackground5 {
    background-image: url(images/Theme5BlackPower.png);
    background-size: contain;
    background-position: center;
    width: 100%; 
    height: 100%;
}

#imagebackground6 {
    background-image: url(images/Theme6Arts.png);
    background-size: contain;
    background-position: center;
    width: 100%; 
    height: 100%;
}

#imagebackground7 {
    background-image: url(images/Theme7Education.png);
    background-size: contain;
    background-position: center;
    width: 100%; 
    height: 100%;
}

#imagebackground8 {
    background-image: url(images/Theme8Legislation.png); 
    background-size: contain;
    background-position: center;
    width: 100%; 
    height: 100%;
}

#imagebackground9 {
    background-image: url(images/Theme9Police.png);
    background-size: contain;
    background-position: center;
    width: 100%; 
    height: 100%;
}

#imagebackground10 {
    background-image: url(images/Theme10Uprisings.png);
    background-size: contain;
    background-position: center;
    width: 100%; 
    height: 100%;
}
#imagebackground11 {
    background-image: url(images/Theme11Sports.png);
    background-size: contain;
    background-position: center;
    width: 100%; 
    height: 100%;
}

#imagebackground12 {
    background-image: url(images/Theme13RadioSilence.png);
    background-size: contain;
    background-position: center;
    width: 100%; 
    height: 100%;
}

#imagebackground14 {
    background-image: url(images/theme14.jpg);
    background-size: contain;
    background-position: center;
    width: 100%; 
    height: 100%;
}



.arrowtext { 
    margin: 0;
    padding: 0;

    font-size:10px;
}

#titleheading { 
    border-bottom: solid 2px black;
    padding-bottom:10px;
}

/* hides the hamburger button adn the hamburger close so they only active when the screen is less than 600px*/ 

/*#hamburgerBtn { 
    display: none; 
}

#hamburgerClose { 
    display:none; 
}*/

@media (max-width: 1440px){

    .nav-item a h2{
        font-size: 1.2em;
        line-height: 1.2;
    }

    .rounded-tab {
        --r: .3em;
    }

}


@media (max-width: 1440px) and (max-height: 720px){

    .nav-item a h2{
        font-size: 0.8em !important;
        line-height: 1 !important;
    }

    /*
    h2#titleslidesubheading1{
        font-size: 0.8em;
        line-height: 1.2;
    }

    h3#titleslidesubheading2{
        font-size: 0.7em;
        line-height: 1.2;
    }
    */

    div.fixed-radio{
        display: none;
    }

    #titlesection h1 { 
        font-size: 2.7rem;  
        margin-top: 20vh;
        margin-bottom: 2vh;
    }

    .section {
        margin-top: 27vh;
        height: 50vh;
    }

}



@media (max-width: 1140px){
    .nav-item a h2{
        font-size: 0.8em;
        line-height: 1.2;
    }
}

/*@media (max-width: 1020px){

}*/



@media (max-width: 600px) {

    .nav-item a h2{
        font-size: 1em !important;
        line-height: 1.2 !important;
    }

    /*h2#titleslidesubheading1{
        font-size: 1.5em;
        line-height: 1.2;
    }

    h3#titleslidesubheading2{
        font-size: 1.17em;
        line-height: 1.2;
    }*/

    #endSection h1, #endSection div{
        margin-left: 4vw;
    }
   
    body, html {
        margin: 0;
        padding: 0;
        overflow-x: hidden; 
        overflow-y: scroll; 
        font-family: "PT Sans", sans-serif;
        background-color: rgb(0, 0, 0); 
    }
    
/* removes the fixed radio as it would be a greater UX experience on mobile devices*/ 
    .fixed-radio { 
        display: none; 
    }

    .titleSlide {
        background-color: rgb(0, 0, 0);
        width: 100vw;
        padding:10vw; 
        height: auto; 
        scroll-snap-align: start;
    }

    #titlesection h1{
        margin-left: 2vh;
        margin-top: 20vh;
    }

    #endsectionTitle {
        margin-top: 0vh;
    }

    #endSection h1, #endSection div {
        margin-left: 0vw;
    }

   
    #titleheading { 
        padding: 4vw; 
    }

    #titleslidesubheading1 { 
        padding: 4vw;
    }

    #titleslidesubheading2 { 
        padding: 4vw; 
    }

    .container {
        display: flex;
        flex-direction: column;
        width: 100vw;
        height: 100vh;
        overflow-y: auto; 
        overflow-x: hidden; 
        scroll-snap-type: y mandatory; 
        align-items: center;
        margin-left:0;
    }

    .section {
        width: 90%; 
        height: auto; 
        min-height: 60vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border: 6px black solid;
        border-radius: 20px;
        margin: 0; 
        box-sizing: border-box; 
    }

    .imagebackground {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-size: cover; 
        background-position: center;
    }

    /* navigation styling for mobile on home page */


    .navMenu{
        gap:2px;
        width: 97.2vw;
        flex-direction: column;
        text-align: center;
    }

    .nav-item a h2 {
        font-size: 1em;
        line-height: 1.2;
    }

    .rounded-tab, .rounded-tab.right{
        border-left-width: 0;
        border-top-left-radius: 0;
        border-right-width: 0;
        border-top-right-radius: 0;
    }

    .rounded-tab.left{
        border-right-width: 0;
        border-top-right-radius: var(--r);
    }

    .rounded-tab.right{
        border-bottom: 2px solid #555;
    }

    /* end of navigation */

}


* { 
    color: white; 
}
