/*
 * Fonts
 */

@font-face {
  font-family: 'cloisterblack';
  src: url('../fonts/cloisterblack/cloisterblack.eot'); /* IE9 Compat Modes */
  src: url('../fonts/cloisterblack/cloisterblack.eot#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/cloisterblack/cloisterblack.woff') format('woff'), /* Modern Browsers */
       url('../fonts/cloisterblack/cloisterblack.ttf')  format('truetype'), /* Safari, Android, iOS */
       url('../fonts/cloisterblack/cloisterblack.svg') format('svg'); /* Legacy iOS */
}

@font-face {
  font-family: 'vollkorn';
  src: url('../fonts/vollkorn/Vollkorn-VariableFont_wght.ttf');
}

/*
 * General
 */

html, body {
    background-color: #EEE;
    padding: 0;
    margin: 0;
    font-family: vollkorn, georgia, serif;
}

a.disabled {
    color: #999;
    cursor: not-allowed;
}

/*
 * Header
 */

header {
    background-color: #600;
    height: 128px;
    box-shadow: 0 0 5px 5px #999;
    position: relative;
    width: 100%;
}

header img {
    height: 128px;
    display: inline;
    float: left;
}

header a {
    color: #EEE;
    text-decoration: none;
}

#main-nav {
    position: absolute;
    bottom: 0;
    left: 129px;
}

#main-nav ul {
    padding: 0;
}

#main-nav ul li {
    display: inline;
}

#main-nav a, .resource-nav a {
    border-radius: 3px;
    padding: 4px 4px 0 4px;
}

#main-nav a:hover {
    background-color: #999;
    color: #600;
}

h1 {
    font-family: cloisterblack;
    font-size: 64px;
    position: absolute;
    left: 128px;
    bottom: 0;
}

h1 a:hover {
    color: #999;
}


/*
 * Main
 */

main {
    margin: 20px 100px;
}

h2 {
    clear: both;
    font-family: cloisterblack;
    font-size: 32px;
}

main a {
    color: #600;
    padding: 2px 2px 0 2px;
    margin: -2px -2px 0 -2px;
    border-radius: 3px;
}

.resource-nav {
    padding: 20px;
}

.resource-nav-centre {
    margin: auto;
    text-align: center;
}

.resource-nav-left {
    float: left;
}

.resource-nav-right {
    float: right;
}

.resource-nav > * {
    display: inline;
    margin: 0 5px;
}

.resource-nav a:hover, span a:hover, p a:hover, .list-result h4 a:hover, li a:hover, a.tag:hover, .links-card a:hover, .tg-button:hover, .social-button:hover {
    background-color: #999;
}

.resource-nav a.disabled:hover {
    background-color: #EEE;
}

.resource-container {
    border-bottom: 1px solid #999;
}

.resource-container img {
    cursor: zoom-in;
    max-height: 90vh;
    max-width: 100%;
    margin-bottom: 30px;
}

.library-index-card, .link-category-card {
    cursor: pointer;
    text-align: center;
}

.thumb-result, .list-result, .library-index-card, .link-category-card {
    border: 2px solid #999;
    margin: 10px;
    padding: 10px;
    box-shadow: 3px 3px 5px #CCC;
    background-color: #FFF;
}

.library-index-card, .link-category-card {
    flex-grow: 1;
}

.thumb-result {
    cursor: pointer;
    text-align: center;
    max-width: 100%;
}

#library-index-cards-container, #link-category-cards-container, .thumb-container {
    display: flex;
    justify-content: flex-start;
}

#link-category-cards-container, .thumb-container {
    flex-wrap: wrap;
}


.thumb-result img {
    max-width: 100%;
}

.thumb-result, .library-index-card, .link-category-card {
    text-decoration: none;
    color: #000;
}

.thumb-result:hover, .library-index-card:hover, .link-category-card:hover {
    border-color: #600;
}

.list-result {
    padding: 0 20px 20px 20px;
}

.list-result-image img {
    max-width: 100%;
    width: auto;
    height: auto;
}

.links-card {
    padding: 10px;
}

.links-card:target {
    border: 2px solid #600;
    box-shadow: 3px 3px 5px #999;
}

.links-card h3 a {
    vertical-align: middle;
}

.link-icon {
    height: 20px;
    margin-right: 10px;
    vertical-align:middle;
}

/* 
 * Forms
 */

input, textarea, button, select, .tag {
    border: 1px solid #999;
    border-radius: 3px;
    padding: 5px;
    outline: 0;
    background-color: #FFF;
}

input:hover, input:focus, textarea:hover, textarea:focus, select:hover {
    border: 1px solid #600;
    box-shadow: 0 0 3px #600;
}

button, input[type="submit"], input[type="button"] {
    color: #EEE;
    cursor: pointer;
    background-color: #600;
    box-shadow: 0 0 3px #999;
    border: 1px solid #600;
    margin-left: 10px;
}

option {
    color: #000;
    background-color: #FFF;
}

button:hover, input[type="submit"]:hover, input[type="button"]:hover, select:hover {
    cursor: pointer;
    box-shadow: 0 0 3px #600;
}

button:active, input[type="submit"]:active, input[type="button"]:active {
    background-color: #999;   
    color: #600;
}

.input-container > * {
    display: block;
    margin: 10px 0;
}

.input-container label {
    font-weight: bold;
}

.input-container {
    margin-bottom: 40px;
}

.search-input-container {
    margin-left: 10px;
    margin-bottom: 20px;
}

.search-input-container label, .gallery-controls-form label {
    margin-left: 20px;
}

.input-description {
    font-style: italic;
}

#tag-suggestions-list {
    height: 240px;
    overflow-y: scroll;
    width: 240px;
    border-radius: 3px;
    border: 1px solid #999;
    background-color: #FFF;
}

.tag-suggestion {
    cursor: pointer;
    list-style-type: none;
    padding: 3px;
}

.tag-suggestion:hover {
    background-color: #999;
}

.tag {
    display: inline-block;
    margin-left: 10px;
    margin-top: 10px;
}

.tag-delete-button {
    font-size: 24px;
    margin-left: 10px;
    cursor: pointer;
}

.success {
    background-color: #060;
    color: white;
    padding: 2px 15px;
}

.errors {
    background-color: #600;
    color: white;
    padding: 2px 15px;
}

.success a, .errors a {
    color: white;
    
}

/*
 * Responsive
 */

@media only screen and (min-width: 1000px) {
    #welcome-content-section {
		width: 55%;
		display: inline;
		float: left;
        padding-right: 50px;
        border-right: 1px solid #999;
        margin-bottom: 20px;
	}

	#tg-posts-section {
		width: 40%;
		display: inline;
		float: right;
		margin-bottom: 20px;
	}

    #tg-posts-scroll {
    	height: 1300px;
    	overflow-y: scroll;
	    overflow-x: hidden;
    }
}

@media only screen and (max-width: 800px) {
    main {
        margin: 20px 20px;
    }
}

@media only screen and (max-width: 400px) {
    main {
        margin: 20px 10px;
    }

    h1 {
        font-size: 48px;
        bottom: 24px;
    }
}

/*
 * Social
 */

.social-button, .social-button:hover {
	border-radius: 5px;
	color: white;
	white-space: nowrap;
	font-size: 13px;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	padding: 5px 7px 5px 1px;
	text-decoration: none;
	font-weight: bold;
	margin-left: 10px;
}

.tg-button {
	background-color: #54A9EB;
}

.twitter-button {
	background-color: #54A9EB; /*#1DA1F2*/
}

.tg-button-img {
	width: 28px;
	height: 28px;
	display: inline-block;
	background: url("../images/icons/tg.png") no-repeat 0 0;
	vertical-align: middle;
}

.twitter-button-img {
	width: 28px;
	height: 28px;
	display: inline-block;
	background: url("https://www.sigup.net/assets/images/icons/twitter.png") no-repeat 0 0;
	vertical-align: middle;
}

#tg-posts-container {
	padding: 30px 10px 30px 0;
	margin: 0;
}