/****************************************************************/
/* General Styling */

html {
    width: 100%;
    height: 100%;
	-webkit-backface-visibility: hidden;
}

body {
    margin: 0;
    padding: 0;
    background-color: rgb(61, 61, 61);
    font-family: 'Open Sans', 'Nunito',  sans-serif;
    font-size: 20px;
}

footer {
    margin: auto;
    text-align: center;
    margin-top: 20px;
    padding-bottom: 100px;
    color: rgb(177, 177, 177);
    font-size: 14px;
    width: 90%;
}

#header {
    background-image: url("images/site-header.png");
    background-repeat: no-repeat;
    background-size: 100%;
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

#header h1 {
    margin: 0;
    padding: 0 0 0 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-52%);
}

#header h1 a {
    text-decoration: none;
    font-family: 'Muli';
    font-weight: 800;
    font-size: 55px;
    color: white;
}

#main_nav, #mobile_nav_open {
    float: right;
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    visibility: hidden;
}

#main_nav a, #mobile_nav a {
    color: rgb(200, 200, 200);
    text-decoration: none;
    margin: 0 10px 0 10px;
    font-size: 20px;
    font-weight: 600;
    transition: .2s;
    vertical-align: middle;
}

#main_nav img, #mobile_nav img {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

#mobile_nav_open img {
    width: 40px;
    height: 40px;
    vertical-align: middle;
}

#mobile_nav {
    width: 0;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    background-color: rgb(56, 56, 56);
    overflow: hidden;
    transition: .3s;
    text-align: center;
    z-index: 1;
    padding-top: 40px;
}

#mobile_nav_close img {
    width: 50px;
    height: 50px;
}

#mobile_nav div {
    margin-top: 20px;
}

#mobile_nav a {
    font-size: 30px;
}

#mobile_nav .side_img {
    width: 50px;
    height: 50px;
}

#content, #fullImageContent {
    width: 80%;
    margin: auto;
    margin-top: 80px;
    padding-left: 2%;
    padding-right: 2%;
    padding-top: 20px;
    color: white;
}

#content a {
    color: rgb(62, 152, 255);
    text-decoration: none;
    transition: .3s;
}

.section_container {
    border-radius: 5px;
    border: 3px solid rgb(30, 30, 30);
    overflow: hidden;
    background-color: rgb(88, 88, 88);
    margin-bottom: 20px;
}

.section_header {
    margin: auto;
    text-align: left;
    background-color: rgb(54, 163, 252);
    padding: 5px;
    padding-left: 5%;
}

.section_title, .section_subtitle {
    margin: 0;
    padding: 0;
    color: black;
    font-family: 'Nunito', 'Open Sans', sans-serif;
}

.section_title {
    font-size: 45px;
    font-weight: bold;
}

.section_subtitle {
    font-size: 22px;
}

.section_text, .section_buttons {
    margin: 0;
    text-align: left;
    padding: 10px 5%;
}

.section_buttons {
    text-align: center;
    margin: 10px 0;
}

#content .vertical_links {
    margin: auto;
}

#content .section_buttons .button_link,
#content .project_download .button_link,
#fullImageContent .section_buttons .button_link {
    /* Remove default iOS styling */
    -webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;

    padding: 5px 30px 5px 30px;
    background-color: black;
    color: white;
    border: 2px solid black;
    border-radius: 4px;
    transition: .2s;
    outline: none;
    text-decoration: none;
    margin: 0 10px;
}

#content .vertical_links a.button_link,
#content .project_download .button_link,
#fullImageContent .project_download .button_link {
    display: block;
    width: 65%;
    margin: 10px auto;
    padding: 5px 0px;
    text-align: center;
}

.float_right {
    float: right;
    padding: 10px 0 0 10px;
}

.float_left {
    float: left;
    padding: 10px 10px 0 0;
}

.image_caption {
    margin: auto;
    width: 50%;
    vertical-align: middle;
}

.image_caption img {
    width: 100%;
}

.image_caption p {
    text-align: center;
    padding: 0;
    margin: 0;
    font-size: 14px;
    font-style: italic;
}

#content a.intext_link {
    color: rgb(0, 200, 252);
    font-weight: bold;
    transition: .2s;
}

#content span.excited_text {
    font-weight: bold;
    color: rgb(124, 255, 157);
}

#content span.red {
	color: rgb(200, 0, 0);
}

#content span.light_green {
	color: rgb(124, 255, 157);
}

#content span.yellow {
	color: rgb(255, 255, 0);
}

/****************************************************************/
/* Landing Page Styling */

#landing_body {
    background-color: rgb(56, 56, 56);
    height: 100%;
}

#landing_title {
    margin: auto;
    text-align: center;
    color: white;
    position: relative;
    top: 25%;
}

#landing_title h1, #landing_title p {
    padding: 0;
    margin: 0;
}

#landing_title h1 {
    font-size: 80px;
    font-family: 'Nunito';
}

#landing_btn_container {
    margin: auto;
    text-align: center;
    position: relative;
    top: 30%;
}

#landing_btn_container a {
    /* Remove default iOS styling */
    -webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
    border-radius: 0;

    font-size: 30px;
    font-weight: bold;
    padding: 5px 30px 5px 30px;
    background-color: rgb(26, 113, 212);
    color: white;
    border: 2px solid black;
    border-radius: 4px;
    transition: .2s;
    outline: none;
    text-decoration: none;
}

#landing_footer {
    position: fixed;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
}

#landing_navbar {
    position: fixed;
    margin: 10px;
}

#landing_navbar a {
    text-decoration: none;
    padding: 0 10px 0 10px;
    color: rgb(200, 200, 200);
    transition: .2s;
    font-size: 18px;
}

/****************************************************************/
/* About Page Styling */

#return_to_top {
    visibility: hidden;
    position: fixed;
    bottom: 25px;
    right: 50px;
    background-color: black;
    padding: 10px;
    border-radius: 20px;
    width: 2%;
    min-width: 25px;
    transition: .2s;
}

#return_to_top img {
    width: 100%;
    height: 100%;
    transition: .2s;
}

/****************************************************************/
/* Contact Page Styling */

/****************************************************************/
/* Gallery Page Styling */

#content #gallery_images {
	column-count: 3;
	column-gap: 8px;
}

#content #gallery_images .gallery_figure {
	margin: 0;
	display: grid;
	grid-template-rows: 1fr auto;
	break-inside: avoid;
}

#content .gallery_image {
	width: 100%;
    border: 2px solid black;
    box-sizing: border-box;
	margin-top: 8px;
	vertical-align: middle;
	grid-column: 1;
	grid-row: 1 / -1;
}

#content .gallery_image:hover {
    cursor: pointer;
}

#content #gallery_images * {
	box-sizing: border-box;
}

#content #tag_container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

#content .section_buttons a.tag_selector {
	flex-shrink: 1;
	flex-grow: 1;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
	padding: 2px 10px;
	margin: 2px 8px;
	border: 2px solid black;
	border-radius: 4px;
	font-size: 18px;
	color: black;
	font-weight: bold;
	transition: 0s;
}

#content .section_buttons a.tag_selector:focus {
	outline: 0;
}

#content .section_buttons a.tag_selector[data-tag-selected="false"] {
	background-color: rgb(200, 200, 200);
}

#content .section_buttons a.tag_selector[data-tag-selected="true"] {
	background-color: rgb(96, 255, 96);
}

/****************************************************************/
/* View Image Page Styling */

#fullImageContent {
    width: auto;
}

#fullImageContent .section_title {
    overflow-wrap: break-word;
}

/****************************************************************/
/* Mobile Adjustments */

@media screen and (min-width: 2000px) {
	#content #gallery_images {
		column-count: 5;
	}
}

@media screen and (min-width: 1250px) and ( max-width: 2000px) {
	#content #gallery_images {
		column-count: 4;
	}
}

@media screen and (max-width: 1200px) {
    #content {
        width: 95%;
    }
}

@media screen and (max-width: 850px) {
	#content #gallery_images {
		column-count: 2;
	}
}

@media screen and (max-width: 650px) {
    #content .section_buttons,
    #fullImageContent .section_buttons {
        margin: auto;
    }

    #content .section_buttons .button_link,
    #content .project_download .button_link,
    #fullImageContent .section_buttons .button_link {
        display: block;
        width: 65%;
        margin: 10px auto;
        text-align: center;
    }

    #content .vertical_links a.button_link,
    #content .project_download .button_link,
    #fullImageContent .project_download .button_link {
        width: 85%;
    }

    .image_caption {
        width: 100%;
        padding: 10px 0;
    }

	#content #gallery_images {
		//column-count: 1;
	}
}

/****************************************************************/
/* Hover Adjustments - Should only work on hover capable devices*/

@media (hover: hover) {
    #main_nav a:hover, #mobile_nav a:hover {
        color: white;
    }

    #mobile_nav_open img:hover, #mobile_nav_close img:hover {
        cursor: pointer;
    }

    #content a:hover,
    #fullImageContent a:hover {
        color: rgb(0, 217, 255);
    }

    #content .section_buttons .button_link:hover,
    #content .project_download .button_link:hover,
    #fullImageContent .section_buttons .button_link:hover {
        background-color: white;
        font-weight: bold;
        color: black;
        cursor: pointer;
    }

    #content a.intext_link:hover {
        color: rgb(161, 221, 255);
    }

    #landing_btn_container a:hover {
        background-color: rgb(68, 155, 255);
        cursor: pointer;
    }

    #landing_navbar a:hover {
        color: white;
    }

    #return_to_top:hover {
        background-color: white;
        cursor: pointer;
    }
    
    #return_to_top:hover img {
        filter: invert(100%);
    }

	#content #tag_container a.tag_selector:hover {
		cursor: pointer;
	}
}
