/*padding and margins are included when calculatings widths and heights*/
* {
    box-sizing: border-box;
}

/*This css styles and sets up the nav bar for all pages in the site*/
.navbar {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 20%;
    background-color: rgb(43, 38, 38);
    height: 100%;
    top: 0px;
    left: 0px;
    position: fixed;
    overflow: auto;

}

.logo {
    width: 65px;
    padding-top: 10px;
    padding-left: 0px;
    padding-bottom: 30px;
    transition: transform 1s;
}

.logo:hover {
    transform: rotateX(180deg);
}

li a {
    display: block;
    color: whitesmoke;
    text-decoration: none;
    font-size: 70%;
    font-family: "Roboto", sans-serif;
    padding-bottom: 30px;
    padding-left: 10px;
}

li a:hover, #instagram:hover, #linkedin:hover, h3 a:hover, .top-about a:hover {
    color: rgb(120, 120, 120);
}

/*This defines the region to the right of the navbar on every webpage*/
.main {
    float: left;
    font-family: "Roboto", sans-serif;
    color: whitesmoke;
    width: 80%;
    background-color: rgb(43, 38, 38);
    margin: 0;
    padding: 0;
    height: 100%;
    top: 0px;
    right: 0px;
    position: fixed;
    overflow: auto;
}

/*Everything on and including the video background on the homepage*/
#plasticvidbackground {
    z-index: -1;
    width: 100%;
}

#plasticvidheader {
    padding: 0px;
    margin: 0px;
    position: relative;
    bottom: 41vw;
    left: 2vw;
    font-size: 90%;
    z-index: 1;
}

#plasticvidcontent {
    padding: 0px;
    margin: 0px;
    position: relative;
    bottom: 38vw;
    left: 2vw;
    font-size: 60%;
}

#instagram {
    font-size: 100%;
    z-index: 1;
    position: relative;
    margin: 0;
    top: -143px;
    left: 3vw;
    text-decoration: none;
    color: whitesmoke;
}


#linkedin {
    font-size: 100%;
    z-index: 2;
    position: relative;
    margin: 0;
    top: -143px;
    left: 2vw;
    text-decoration: none;
    color: whitesmoke;
}

/*Bit below video background about 'our solution' */
/*Don't know why I need to keep .lowerpart p and slideshow-container but everything breaks if I remove them*/
.upperpart {
    position:relative;
    float: left;
    clear: both;
    bottom: 15vw;
    width: 100%;
}
.turntableptext, .lowerpart p, .bottomtext {
    display: block;
    float: left;
    width: 100%;
    padding-right: 3%;
    margin: 0;
    font-size: 60%;
}

.turntable, .slideshow-container {
    float: left;
    padding-right: 1%;
    padding-top: 5px;
    width: 350px;
    overflow: hidden;
}

.lowerpart {
    position: relative;
    float: left;
    clear: both;
    bottom: 10vw;
    width: 100%;
}

.bottompart {
    position: relative;
    float: left;
    clear: both;
    bottom: 8vw;
    width: 100%;
}

h3 a {
    text-decoration: none;
    color: whitesmoke;
}

#bottomvid {
    width: 70%;
    padding: 0;
    margin: 0;
}

/*Funny cause I'm effectively reuseing the template in the news page*/
.ripoff-news {
    margin-top: 100px;
}

/*The css below is for the About_Us page*/
div.gallery-container {
    width: 100%;
}

div.gallery {
    float: left;
    width: 300px;
    box-sizing: initial;
    margin-right: 3vw;
    margin-left: 3vw;
}

div.desc {
    padding: 15px;
    text-align: center;
}

.im-g {
    width: 300px;
    height: 300px;
}

.top-about {
    clear: both;
    float: left;
    width: 100%;
    padding-bottom: 6vw;
}

div.top-about h1 {
    display: block;
    box-sizing: initial;
    text-decoration: none;
    color: whitesmoke;
    font-size: 5vw;
    text-align: center;
    padding-top: 2vw;

}

#minvid {
    box-sizing: initial;
    width: 92%;
    margin-left: 4%;
    margin-right: 4%;
}

#background-img {
    background-image: url(/Images/Microplastic_Images/Microplastic2.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

/*News*/
/*I will probably replace the contact page and the solution page with flex layouts like this one*/
.flex-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    flex-basis: auto;
    flex-grow: 1;
    flex-shrink: 0;
    align-items: center;
}

.flex-separator {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 270px;
    width: 100%;
    background-color: none;
    margin-bottom: 20px;
    font-size: 250%;   
}

/*I may change/remove the colour gradient and shadow but for now I like it*/
.item {
    width: 500px;
    height: 500px;
    margin-right: 0;
    margin-bottom: 20px;
    transition: all 1s;
    transition-timing-function: ease-out;
    flex-basis: auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(to bottom right, rgb(120, 120, 120), rgb(43, 38, 38));
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/*Maybe I can use linear gradient to simulate slide in/fade in transitions*/

.grow {
    width: 100%;
    height: 100vh;
}

.collapse {
    display: none;
}

.flex-content {
    width: 100%;
    font-size: 60%;
}

.flex-innerbox {
    width: 80%;
    height: 80%;
    background-color: none;
    overflow-y: scroll;
}

/*Remove the scroll bar but keep its funcitonality*/
.flex-innerbox::-webkit-scrollbar {
    display: none;
}

/*Contact*/
.chungus-is-amongus h1 {
    font-size: 120%;
    text-align: center;
}

.chungus-is-amongus p {
    font-size: 90%;
    text-align: center;
    padding-bottom: 100px;
}

#chung-top-marg {
    box-sizing: initial;
    margin-top: 140px;
}

.chungus-is-amongus a {
    text-decoration: underline;
    color: whitesmoke;
}

.chungus-is-amongus a:hover {
    color: rgb(120, 120, 120);
}

/*These media queries resize all elements that need resizing at specific widths of the viewport*/
@media only screen and (min-width: 600px) {
    .navbar {
        width: 17.5%;
    }
    li a {
        font-size: 80%;
    }
    .logo {
        width: 90px;
    }
    .main {
        width: 82.5%;
    }
    #plasticvidheader {
        font-size: 150%;
    }
    #plasticvidcontent {
        font-size: 80%;
    }
    #instagram, #linkedin {
        font-size: 150%;
        top: -190px;
    }
    .turntableptext, .bottomtext {
        font-size: 80%;
        padding-right: 3%;
    }
    /*turntable class doesn't actually change width the same way anymore but I'm keepings it for the memes*/
    /*Look at that, they mean something again, nevermind the line above*/
    .turntable{
        width: 350px;
        padding-left: 0px;
        padding-right: 1%;
        padding-top: 10px;
    }
    /*About Us*/
    #minvid {
        width: 90%;
        margin-left: 5%;
        margin-right: 5%;
    }
    div.top-about h1 {
        font-size: 5vw;
    }
    /*News*/
    .flex-content {
        font-size: 70%;
    }
    .flex-seperator {
        font-size: 300%;
    }
    /*Contact*/
    .chungus-is-amongus h1 {
        font-size: 150%;
    }
    .chungus-is-amongus p {
        font-size: 100%;
    }
    #chung-top-marg {
        margin-top: 150px;
    }

}

@media only screen and (min-width: 768px) {
    .navbar {
        width: 15%;
    }

    li a {
        font-size: 100%;
    }
    .logo {
        width: 100px; 
    }
    .main {
        width: 85%;
    }
    #plasticvidheader {
        font-size: 200%;
    }
    #plasticvidcontent {
        font-size: 100%;
    }
    #instagram, #linkedin {
        font-size: 200%;
        top: -240px;
    }
    .turntableptext, .bottomtext {
        font-size: 100%;
        padding-right: 3%;
    }
    .turntable {
        width: 400px;
        padding-left: 0px;
        padding-right: 1%;
        padding-top: 20px;
    }
    /*About Us*/
    #minvid {
        width: 86%;
        margin-left: 7%;
        margin-right: 7%;
    }
    div.top-about h1 {
        font-size: 5vw;
    }
    /*News*/
    .flex-content {
        font-size: 100%;
    }
    .flex-separator {
        font-size: 400%;
    }
    .item {
        margin-right: 0;
    }
    /*Contact*/
    .chungus-is-amongus h1 {
        font-size: 200%;
    }
    .chungus-is-amongus p {
        font-size: 120%;
    }
    #chung-top-marg {
        margin-top: 160px;
    }
}

@media only screen and (min-width: 992px) {
    .navbar {
        width: 14%;
    }
    li a {
        font-size: 120%;
        padding-left: 10px;
    }
    .logo {
        width: 130px;
    }
    .main {
        width: 86%;
    }
    #plasticvidheader {
        font-size: 300%;
    }
    #plasticvidcontent {
        font-size: 150%;
    }
    #instagram, #linkedin {
        font-size: 250%;
        top: -350px;
    }
    .turntableptext, .bottomtext {
        font-size: 130%;
        padding-right: 3%;
    }
    .turntable {
        width: 600px;
        padding-left: 0px;
        padding-right: 1%;
        padding-top: 10px;
    }
    /*About Us*/
    #minvid {
        width: 80%;
        margin-left: 10%;
        margin-right: 10%;
    }
    div.top-about h1 {
        font-size: 4vw;
    }
    /*News*/
    .item {
        margin-right: 20px;
    }
    /*Contact*/
    .chungus-is-amongus h1 {
        font-size: 250%;
    }
    .chungus-is-amongus p {
        font-size: 150%;
    }
    #chung-top-marg {
        margin-top: 200px;
    }
}

@media only screen and (min-width: 1200px) {
    .navbar {
        width: 16%;
    }
    li a {
        font-size: 130%;
        padding: 20px;
    }
    .logo {
        width: 170px;
        padding-top: 20px;
        padding-left: 20px; 
    }
    .main {
        width: 84%;
    }
    #plasticvidheader {
        font-size: 400%;
    }
    #plasticvidcontent {
        font-size: 200%;
    }
    #instagram, #linkedin {
        font-size: 300%;
        top: -450px;
    }
    .turntableptext, .bottomtext {
        font-size: 180%;
        padding-right: 3%;
        width: 50%;
    }
    .turntable {
        width: 800px;
        padding-left: 0px;
        padding-right: 1%;
    }
    /*About Us*/
    #minvid {
        width: 60%;
        margin-left: 20%;
        margin-right: 20%;
    }
    div.top-about h1 {
        font-size: 3vw;
    }
    /*News*/

    /*Contact*/
    .chungus-is-amongus h1 {
        font-size: 300%;
    }
    .chungus-is-amongus p {
        font-size: 200%;
    }
    #chung-top-marg {
        margin-top: 270px;
    }
}

@media only screen and (min-width: 2050px) {
    .navbar {
        width: 10%;
    }
    li a {
        font-size: 130%;
        padding: 20px;
    }
    .logo {
        width: 190px;
        padding-top: 20px;
        padding-left: 20px; 
    }
    .main {
        width: 90%;
    }
    #plasticvidheader {
        font-size: 600%;
    }
    #plasticvidcontent {
        font-size: 300%;
    }
    #instagram, #linkedin {
        font-size: 400%;
        top: -680px;
    }
    .turntableptext, .bottomtext {
        font-size: 250%;
        padding-right: 5%;
    }
    .turntable {
        padding-left: 0px;
        padding-right: 1%;
        width: 50%;
    }
    /*About Us*/
    #minvid {
        width: 40%;
        margin-left: 30%;
        margin-right: 30%;
    }
    div.top-about h1 {
        font-size: 2vw;
    }
    /*News*/
    
    /*Contact*/
    .chungus-is-amongus h1 {
        font-size: 400%;
    }
    .chungus-is-amongus p {
        font-size: 250%;
    }
    #chung-top-marg {
        margin-top: 295px;
    }
}