/*

  main.css - for the NZ Vintage Radios Site Dec 2016
  Author: Steve Dunford
  Licence: Beerware - If you like it then buy me a beer

  See bottom for simple small-screen layout tweaks

*/

/* Title font (Limelight) and main site font */
@import url(https://fonts.googleapis.com/css?family=Limelight|Fjalla+One|Arima+Madurai);

/*
 * Main CSS setup for the site .
 */
body {
	font-family: 'Arima Madurai', cursive;
	max-width: 1800px;
    font-size: 1.1em;
    letter-spacing: 0.03em;
    background-color: #171838;
    background-image: url(bg_sm.png);
    margin: 0 5px 5px 0;
    overflow-wrap: break-word;
}

p {
    line-height: 1.5;
    margin: 5px 0;
    padding: 0 10px 15px 0;
    clear: both;
}

blockquote {
    display: inline-block;
    background-color: #e6e6e6;
    color: #752A13;
    border-radius: 5px;
    padding: 5px;
}

ol li {
    padding-bottom: 25px;
}

/* table, td, tr {
    border: 1px solid black;
}*/

table a {
    color: #333;
}

/* used on blueimp photo upload page - might need to be more specific */
tr:nth-child(even) {background: #ccc;}
tr:nth-child(odd) {background: #eee;}

/* tweak for grey backgrounds */
.lightblue th {background: #fff;}
.lightblue tr:nth-child(even) {background: #eee;}
.lightblue tr:nth-child(odd) {background: #ddd;}


/*
 * flash is the Flask built-in messaging bar at the top of the page
 */
.flash {
	font-family: Arial, sans-serif;
	font-weight: bolder;
	color: #fff;
	height: auto;
    position: relative;
	border-bottom-right-radius: 15px;
    border-bottom: 2px solid #752A13;
    border-right: 2px solid #752A13;
	margin: 0;
	padding: 4px 10px;
	background-color: #1f14;
}

.close {   /* 'X' in flash msgs used to trigger message hide fn */
	color: #752A13;
    position: absolute;
    top: 2px;
    right: 10px;
    font-size: 2em;
    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff,
        0 0 8px #fff;
}

.close:hover {
	cursor: pointer;
}

.flash ul li {
	left: 10px;
    width: 80%;
    list-style:	none;
    border-radius: 5px;
    padding: 2px 5px;
}

.message {
    background-color: green;
    border: 2px solid darkgreen;

}

.error {
    color: red;
    font-weight: bolder;
    background-color: white;
    border: 2px solid darkred;
}


/*
 * font styles used throughout the site
 */
.artdeco {
    font-family: 'Limelight', cursive;
    margin-top: -2px;
    margin-bottom: 0;
    padding: 3px 5px;
    text-shadow:
        -1px -1px 0 #333,
        1px -1px 0 #333,
        -1px 1px 0 #333,
        1px 1px 0 #333,
        0 0 8px #fff;
}

/* only EVER used to display 'NZ Vintage Radios' at top */
h1 {
    font-family: 'Limelight', cursive;
	font-size: 3.2em;
    color: white;
    padding-left: 75px;
    margin: 10px 0;
    text-shadow: #752A13 0 0 10px, #752A13 0 0 2px,
    -1px -1px 1px #752A13,
    1px -1px 1px #752A13,
    -1px 1px 1px #752A13,
    1px 1px 1px #752A13;
}

h2 {
    font-size: 1.7em;
}

h3 {
    font-family: 'Limelight', cursive;
    font-size: 1.2em;
    margin: 3px 0;
}

h4 {
    background-color: #112;
    color: white;
    font-size: 1.1em;
    margin-top: 23px;
    margin-bottom: 3px;
    padding-left: 5px;
    border-radius: 5px;
    border: 2px solid #333;
    box-shadow: -2px 2px 5px silver;
    width: 99%;
}

.subheading {
    font-style: italic;
    font-weight: bold;
    text-align: center;
    padding-right: 7%;
    margin: 5px 0;
    color: #752A13;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

/* used to act as tool tip indicators in chassis notes area */
.dotted_underline {
    display: inline;
    border-bottom: 3px dotted #66f;
}

.imagedesc {
    font-size: 80%;
    font-family: monospace;
    font-weight: bold;
    text-align: center;
}

.justify {
    text-align: justify;
}

.right{
    text-align: right;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
	text-align: center;
}

.odd {
    background-color: #eeeeee;
}

.italic {
    font-style: italic;
}

.reqd {
    color: #f00;
    font-weight: bold;
}

.underpad {
    padding-bottom: 10px;
}

.overpad {
    padding-top: 10px;
}

.bold {
  font-weight: bolder;
}

#bold_right {
  font-weight: bolder;
  text-align: right;
}

.white {
    color: white;
}

.green {
    color: green;
}

.blue {
    color: darkblue;
}

.red {
    color: darkred;
}

.black {
	  color: black;
}

.red-background {
    background-color: darkred;
    color: white;
}

.green-background {
    background-color: #82b382;
    color: white;
}

.blue-background {
    background-color: darkblue;
    color: white;
}

.lightblue-background {
    background-color: #aaf;
    color: black;
}

.smaller {
    font-size: 0.75em;
    line-height: .8;
}

.inset {
    padding-left: 20px;
}

.rounded {
    border-radius: 5px;
}

/*
 * Navigation Bar
 */
.nav {
	font-family: 'Fjalla One', Impact;
    height: auto;
    width: 95%;
    margin: 0;
    padding: 4px 0;
    background-color: #00000075;
    border-bottom-right-radius: 15px;
    border-bottom: 2px solid #752a13;
    border-right: 2px solid #752a13;
	}

.nav ul {
	margin: 0;
}

.nav ul li {
	display: inline;
    font-size: 1.1em;
    letter-spacing: inherit;
	font-weight: bold;
	padding-right: 30px;
    /**text-shadow:
        -1px -1px 0 #333,
        1px -1px 0 #333,
        -1px 1px 0 #333,
        1px 1px 0 #333,
        0 0 8px #fff; **/
}

.nav a {
    color: #bbb;
}

#admin a {
    color: #dbb;
    font-style: italic;
}

.menuIcon {
    display: none;
    color: #000;
    width: 100%;
    text-align: center;
}

.menuIcon:hover {
    color: #999;
}

.menuIcon a {
    width: 100%;
    display: inline-block;
    color: #fff;
}

.menuIcon img {
    vertical-align: middle;
		margin-top: -2px;
}



/*
 * Site header block - Logo and "NZ Vintage Radios"
 */
#header {
	margin: 0;
	padding: 10px;
}


#header img {
	position: relative;
    top: -6px;
    left: -5px;
    overflow: hidden;
    float: left;
    filter: drop-shadow(0px 0px 10px #fff);
}

#login_wrapper {
  float: left;
  text-align: right;
  clear:both;
  padding-left: 5px;
  color: azure;
  font-style: italic;
}



/*
 * Page title bar: Welcome, Bell Colt, Radio Corp. NZ, etc
 */
#pageTitleTop {
    height: 30px;
    width: 85%;
    background-color: #00000075;
    border-top-right-radius: 15px;
    border-top: 2px solid #752A13;
    border-right: 2px solid #752A13;
}

.searchWrapper {
    margin-top: -3px;
    float: right;
    max-height: inherit;
}

#query {
    border-radius: 5px;
    border: 2px solid #752A13;
    background-color: silver;
}

#submit {
    background-color: transparent;
    border: 0;
    font-size: 1.1em;
    color: silver;
}

#pageTitle {
    width: 95%;
    background-color: #4c030c91;
    background-position: bottom left;
    border-top-right-radius: 15px;
    border-top: 2px solid #752A13;
    border-right: 2px solid #752A13;
}

.pageTitleText {
    text-align: center;
    font-family: 'Limelight', cursive;
    font-weight: 800;
    color: #fff;
    clear: left; /* stops logo pushing it right */
}



/*
 * Content container
 */
#container {    /* Used to encapsulate main content */
    position: relative;
    padding: 5px 15px 5px 15px;
    min-height: 320px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #111;
    border-top-right-radius: 15px;
    border-bottom-left-radius: 15px;
    border-top: 2px solid #752A13;
    border-right: 2px solid #752A13;
    border-bottom: 2px solid #752A13;
 }

.para { /* paragraph encapsulation */
    display: inline-block;
    width: 99%;
    margin: 5px 0px;
    padding: 10px 5px;
    position: relative;
    background-color: #f9f7f3;
    border: 2px solid #fbfbfb;
    border-radius: 5px;
    box-shadow: -2px 2px 5px silver;
}

.para_heading { /* for the all page to keep the logos out of the tables */
    display: inline-block;
    width: 100%;
}

.spotlight {
    width: 33%;
    min-width: 280px;
    float: left;
    margin-right: 6px;
    background-color: #171838;
    background-image: url(bg_sm.png);
}

.spotlight h5 {
    color: black;
    font-size: 120%;
    margin: 5px;
    text-align: center;
    box-shadow: inset 0px 0px 13px 12px white;
    border-radius: 3px;
}

#container .spotlight img {
    box-shadow: none;
    margin: 0 auto;
}

#container .para a {
    color: #222586;
    font-weight: bolder;
}

#container .para h3 a {
    color: #112;
}

#container .para h3 a:hover {
    color: darkcyan;
}

#container .para h4 a {
    color: cornflowerblue;
}

#container .para h4 a:hover {
    color: #silver;
}

#container a:hover {
    color: #666;
}

/* for sortable images */
#container ul li {
    list-style: none;
    height: auto;
    border: 0;
    background: unset; /* background-color: transparent;  removed to stop admin photo reorder box from having grey background */
}

#container .list ul li {
    height: auto;
}

#container .lightred {
    background-color: #faa;
}

#container .verylightblue {
    background-color: #f3f6f9;
}

#container .lightblue {
    background-color: #aaf;
}

#container .lightgreen {
    background-color: #afa;
}

#container .darkblue {
    background-color: #44f;
}

#container .grey {
    background-color: #bbb;
}

#container .black {
    background-color: #112;
    color: #ddd;
    font-size: 120%;
    font-weight: bold;
}

#container .pdf {
    vertical-align: text-bottom;
}

#container img {
    /*max-width: 200px;
    max-height: 200px;*/
    object-fit: contain;
    padding: 2px;
    margin: 5px;
    background: white;
    border: 1px solid silver;
    border-radius: 5px;
    box-shadow: -3px 3px 8px silver;
    vertical-align: top;
}

/* hide the alias over-ride on new model entry */
.hide {
    border: 1px solid #000;
    max-height: 99em;
    opacity: 1;
    height: auto;
    overflow: hidden;
    transition: opacity 1.5s linear, max-height 1.5s linear;
}

.ex {
    padding-bottom: 20px;
}

.ex .hide {
    opacity: 0;
    height: 0;
    transition: all 0.5s ease;
}

.ex input[type="checkbox"]:checked + .hide {
    height: auto;
    min-height: 100px;
    opacity: 1;
    display: block;
}

/*#container li img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    background: transparent;
    border: none;
    box-shadow: none;
    box-shadow: none;
}*/

.disable {
    position: relative;
    left: 78px;
    top: -41px;
    width: 82px;
    height: 20px;
    background-image: url(/static/icons/yesno.png);
    background-position-x: 0px;
}

.img_medium {
    height: auto;
    max-height: 150px;
    max-width: 150px;
}

.img_tiny {
    height: auto;
    max-height: 120px;
    max-width: 120px;
	transition: transform .2s;
}

.img_verytiny {
    height: auto;
    max-height: 60px;
    max-width: 60px;
	transition: transform .2s;
}

.img_verytiny:hover {
	 transform-origin: left;
	 transform: scale(1.5);
	 z-index: 1000;
 }

.list .img_tiny:hover {
	 transform-origin: left;
	 transform: scale(2);
	 z-index: 1000;
 }

.img_reorder {
    max-width: 150px;
    max-height: 150px;
    height: 150px;
    width: 150px;
    object-fit: contain;
}

.img_thumb {
    max-height: 200px;
    max-width: 200px;
}

.img_right {
    float: right;
    margin-right: 2px;
}

.img_left {
    float: left;
    margin-left: 2px;
}

#breadcrumb {
    font-size: 0.8em;
    color: black;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 3px;
}

#breadcrumb a {
    color: darkcyan;
}

#radio_images {
    position: relative;
    background-color: white;
    padding: 3px 2px 10px 2px;
    overflow-y: hidden;
    overflow-x: scroll;
    max-height: 225px;
    width: 99%;
    white-space: nowrap;
    border-radius: 5px;
    border: 2px solid #f0f0f0;
    box-shadow: inset -2px 2px 5px silver;
}

#radio_images img {
    object-fit: contain;
    overflow: hidden;
    margin: 2px;
    padding: 2px;
    vertical-align: middle;
    background: white;
    border: 1px solid silver;
    border-radius: 5px;
    box-shadow: -3px 3px 8px silver;
}


.lightblue img {
    box-shadow: -3px 3px 8px #666 !important;
}

.icon {
    position: absolute;
    background-repeat: no-repeat;
    width: 46px;
    height: 46px;
    top: -5px;
    left: -15px;
    padding: 0;
    margin: 0;
}

.manufacturer {
    background-image: url(/static/icons/manufactured.png);
}

.valve {
    background-image: url(/static/icons/valve.png);
}

.if {
    background-image: url(/static/icons/if.png);
}

.chassis {
    background-image: url(/static/icons/chassis.png);
}

.notes {
    background-image: url(/static/icons/notes.png);
}

.lists {
    background-image: url(/static/icons/scroll.png);
}

.bands {
    background-image: url(/static/icons/bands.png);
}

a {
	text-decoration: none;
	color: #ddd;
}

a:hover {
	color: #fff;
}

#sortable {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#sortable li {
    margin: 3px 3px 3px 0;
    padding: 1px;
    float: left;
    width: 175px;
    font-size: 4em;
    text-align: center;
}

/*
 * Radio Brands
 */
.logo {
    max-width: 200px;
    max-height: 200px;
    float: right;
}

.timespan {
    font-weight: 700;
    font-style: italic;
    margin-top: 5px;
    display: inline-block;
    width: 99%;
}

#description {
    width: auto;
}

.list td {
    min-width: 80px;
    text-align: center;
}

.sortbutton {
    background: transparent;
    border: 0;
}


/*
 * The following are for grid display of major items,
 * ie on BRANDS page
 */
.selector select {
    background: transparent;
    background-color: #002;
    color: silver;
    border: 2px solid white;
    border-radius: 5px;
    box-shadow: -2px 2px 5px silver;padding: 5px;
    margin: 20px 0;
    font-size: 150%;
    font-weight: bolder;
}

button, select {
    text-transform: none;
}

.showcase {
    line-height: 85%;
    font-size: 85%;
    column-count: 5;
    column-rule: 1px solid silver;
    column-gap: 5px;
    clear: both;
    border-top: 1px solid silver;
    border-bottom: 1px solid silver;
}

.showcase img {
    width: 95%;
    height: auto;
}

.showitem {
    position: relative;
    left: -3px;
    width: auto;
    display: table;
    margin: 5px auto;
    padding-top: 5px;
    text-align: center;
    page-break-inside: avoid;
    clear: both;
}


/*
 * Footer
 */
#footer {
    width: 80%;
    float: right;
    padding-left: 10px;
    padding-right: 10px;
		margin-bottom: 5px;
    background-color: #00000075;
    color: white;
    border-bottom: 2px solid #752A13;
    border-right: 2px solid #752A13;
    border-left: 2px solid #752A13;
    border-bottom-left-radius: 15px;
}



/*
 * Mobile / small screen layout tweaks
*/

/* Shrink the menu */
@media (max-width: 1160px) {
		h1 {
			font-size: 2.7em;
			margin: 15px 0;
		}

		.nav ul li {
			padding-right: 15px;
			font-size: 1em;
		}
}

/* spotlight title drops to two lines around 1010px */
@media (max-width: 1015px) {
    .spotlight h5 {
        font-size: 90%;
    }
}


/* Push the menu to a mobile 'hamburger' style */
@media (max-width: 960px) {
    body {
        position: relative;
        background-image: url(bg_sm.png);
    }

	h1 {
		font-size: 2.2em;
		margin: 20px 0;
	}

    .menu {
        max-height: 0;
        overflow: hidden;
        float: none;
        text-align: left;
        width: 100%;
        -webkit-transition: max-height 1s;
        -moz-transition: max-height 1s;
        transition: max-height 1s;
    }

    .menu.menuOpen {
        max-height: 1000px;
        -webkit-transition: max-height 1s;
        -moz-transition: max-height 1s;
        transition: max-height 1s;
    }

    .menu ul li {
        display: block;
        text-align: center;
        padding-bottom: 5px;
    }

    .menuIcon {
        display: inline-block;
        text-align: left;
        padding-left: 10px;
    }

    .nav ul li {
        font-size: 1em;
        margin-right: 10%;
    }

}


@media (max-width: 770px) {
    h1 {
        font-size: 2.0em;
        padding-left: 0;
        margin: 0;
    }

    #header {
        border: none;
        border-radius: none;
        background: none;
        width: auto;
    }

    #header img {
        display: none;
    }

    #breadcrumb {
        letter-spacing: 1px;
    }

    #container p {
        width: 96%;
    }

    #footer h3 {
        font-size: 0.8em;
    }

    .showcase {
        column-count: 4;
    }
}


@media (max-width: 580px) {
		#pageTitleTop {
			height: auto;
			display: table;
		}

		#container {
			padding: 5px 15px 5px 5px;
		}

    .showcase {
        column-count: 3;
    }

    .subheading {
        font-size: 1.3em;
    }

    .logo {
        max-width: 120px;
        max-height: 120px;
    }
}


@media (max-width: 460px) {
	.searchWrapper {
		float: left;
	}

    .showcase {
        column-count: 2;
    }
}


@media (max-width: 360px) {
    .showcase {
        column-count: 1;
    }
}
