/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
	color: #000;
	font-size: 100%;
	line-height: 1.5;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #f9e19e;
    text-shadow: none;
}

::selection {
	background: #f9e19e;
	text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}
/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6, caption {
	color: #222;
	margin: 0;
}
.tip {
	font-size: 2.25rem;
	line-height: 2;
	font-weight: 700;
	margin: 1.5rem 0 0.75rem;
}
h2 {
	font-size: 1.5rem;
	margin: 1.125rem 0 0.375rem;
}
h1, .main-title {
	font-size: 2.25rem;
	/*margin: 0.888888888rem 0 0;*/
	margin: 1.5rem 0 0.75rem;
}
h3 {
	font-size: 1.25rem;
	margin: 0.75rem 0 1.125rem;
}
.nowrap {
	white-space: pre;
}
#home .main-content {
	text-align: center;
}
#about .about-grid {
	text-align: left;
}
.about-left {
	font-weight: bold;
	text-transform: uppercase;
}
.main-content .main-title {
	font-weight: 900;
	text-transform: uppercase;
	text-align: center;
}
#home .main-content .main-title {
	margin-top: 0;
}
#home .main-content h2:nth-child(1), #home .main-content h2:nth-child(3), .main-content h3, #how .main-content h2:nth-child(2) {
	font-style: italic;
	text-align: center;
}
.intro {
	font-size: 1.25rem;
}
p, li {
	margin: 0.9375rem 0;
}
#home article p.joinnw {
	margin: 4rem 0 1.75rem 0;
}
.how-to p, .slogan {
	font-size: 1.125rem;
}
#about .about-grid p {
	line-height: 1.2;
}
.monthly-tip {
	width: 90%;
	margin: 0 0 3.75rem;
	padding: 0 1rem;
}
.monthly-tip p {
	padding: 0 1rem;
}
.tip-comment {
	font-size: 1.125rem;
}
/*p + p {
	text-indent: 1em;
}
form p + p {
	text-indent: 0;
}
p.joinnw {
	font-size: 1.25rem;
}
.interview strong {
	font-weight: 700;
}*/
footer {
	font-size: 0.875rem;
}

/* ==========================================================================
   Main styles
   ========================================================================== */
*, *:before, *:after {
  box-sizing: border-box;
}
@media screen and (min-width: 30rem){
    html {
	font-size: calc(16px + (18 - 16) * ((100vw - 400px) / ( 1200 - 400)));
	}
}
body {
	font-family: 'Lato', sans-serif;
	/*font-size: 1.25rem;	temp*/
}
body#home, body#tip {
	background: #eee url("../images/ny_skyline.jpg") no-repeat fixed;
	background-position: 50% 40%;
}
body.admin {
	background-image: none;
}
#logo {
  margin: 0.5rem 0 0; 
  background: transparent;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-flow: row wrap;
  /*-webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;*/
  justify-content: space-around;
}
.main-content {
	display: -moz-flex;
	display: -ms-flex;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-flow: column wrap;
	flex-flow: column wrap;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	margin: auto;
	background: rgba(243, 201, 67, 0.1);
	padding: 2.5% 24px;
	width: 100vw;
}
#home .main-content {
	min-height: 70vh;
}
footer {
	/*margin-top: 4rem;*/
	background: rgba(255, 255, 255, 0.6);
	color: #000;
	padding: 1rem 0;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-flow: row wrap;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: space-around;
	-webkit-box-align: end;
	    -ms-flex-align: end;
	        align-items: flex-end;
}
#how .main-content {
	background: rgba(243, 201, 67, 0.25);
	text-align: center;
}
.how-to {
	/*margin-bottom: 1.5rem;*/
	list-style: none;
	margin-left: 0;
}
.main-content article {
	width: 50%;
}
#how .main-content article {
	width: 60%;
}
@media screen and (max-width: 1600px) {
	#how .main-content article {
		width: 70%;
	}
}
@media screen and (max-width: 1380px) {
	.main-content article {
		width: 70%;
	}
	#how .main-content article {
		width: 80%;
	}
}
@media screen and (max-width: 1200px) {
	#how .main-content article {
		width: 90%;
	}
}
@media screen and (max-width: 1070px) {
	#how .main-content article {
		width: 100%;
	}
}
@media screen and (max-width: 770px) {
	.main-content article {
		width: 80%;
	}
	body#home, body#tip {
		background-image: none;
	}
}
@media screen and (max-width: 480px) {
	.main-content article {
		width: 100%;
	}
}
#how .main-content section {
	display: flex;
	flex-flow: column wrap;
	max-width: 30rem;
	text-align: left;
}
/*---- grid support ----*/
.how-to {
	display: grid;
	grid-gap: 30px;
	/*grid-gap: 5%;
	grid-template-columns: repeat(3, 30%);*/
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr) );
}
#about .about-grid {
	display: grid;
	grid-column-gap: 10px;
	grid-template-columns: 1fr 5fr;
}

#about .main-content {
	background: #e8cd77;
	text-align: center;
}
#register .main-content {
	/*width: 30vw;*/
}
ul, ol {
	padding-left: 0;
}
#legal .main-content ul, #privacy .main-content ul {
	padding-left: 2rem;
}
#legal .main-content ul {
	list-style: none;
}
p.tip-nr {
	font-size: 3.75rem;
	font-weight: 900;
	background-color: #D6B036;
	color: #FCF1D0;
	height: 5.625rem;
	width: 5.625rem;
	border-radius: 50%;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	-ms-border-radius: 50%;
	-o-border-radius: 50%;
	margin: 0 auto;
	margin-bottom: 1.875rem;
	padding: 0;
}
img, video {
	max-width: 100%;
	margin: 0.9375rem 0;
}
#home article img {
	margin: 1.5rem 0;
}
.monthly-tip {
	margin-top: 1.5rem;
}
.tip {
    background: rgba(243, 201, 67, 0.6);
    border-color: rgb(238, 238, 238) rgb(221, 221, 221) rgb(187, 187, 187);
    border-radius: 5px;
    border-style: solid;
    border-width: 1px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    /*padding: 1rem;
	margin-top: 1rem;*/
}
.admin-tip-container {
	position: relative;
	width: 80%;
	padding: 0.5rem;
	background-color: #ffffff;
	margin-bottom: 1rem;
}
.admin-tip-container:first-of-type {
	margin-top: 1.5rem;
}
form.edit-tip button {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	background: rgba(243, 201, 67, 0.3) none repeat scroll 0 0;
	border-color: rgb(238, 238, 238) rgb(221, 221, 221) rgb(187, 187, 187);
	border-radius: 3px;
	border-style: solid;
	border-width: 1px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
	cursor: pointer;
}
form.edit-tip button:active {
	background: rgba(243, 201, 67, 1.0) none repeat scroll 0 0;
}
form.delete-tip button {
	position: absolute;
	top: 0.5rem;
	right: 3.5rem;
	background: rgba(243, 201, 67, 0.3) none repeat scroll 0 0;
	border-color: rgb(238, 238, 238) rgb(221, 221, 221) rgb(187, 187, 187);
	border-radius: 3px;
	border-style: solid;
	border-width: 1px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
	cursor: pointer;
}
form.delete-tip button:active {
	background: rgba(243, 201, 67, 1.0) none repeat scroll 0 0;
}
form.edit-tip button, form.delete-tip button {
	font-size: 1rem;
	line-height: 1.5;
}
.tbl-members th, .tbl-members td {
	text-align: left;
	padding: 0 1rem;
}
/* ==========================================================================
   Main Navigation
   ========================================================================== */
nav {
	padding: 0 2vw 2vh 2vw;
}
.nav {
	list-style: none;
	margin: 0;
	padding: 0;
	background: transparent;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	justify-content: flex-end;
}
.nav a {
  text-decoration: none;
  text-transform: uppercase;
  display: block;
  padding: 0 2em;
  color: #666;
  font-weight: 700;
  border: 0;
}

.nav a:hover {
  color: #000000;
  border: 0;
}
.nav li.current a {
	color: #fff;
	background-color: #e0ba40;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-ms-border-radius: 5px;
	-o-border-radius: 5px;
	cursor: default;
}
.bg-golden {
	background-color: #f3c943;
}
 /*======================================
   TEXTLINKS
   ====================================== */
a {
	color: #5d3f12;
	border-bottom: 1px dotted;
	text-decoration: none;
	outline: none;
}
.tip a {
	color: #000000;
}
.about-right a {
	color: #763b10;
}
a:hover {
	text-decoration: none;
	border-bottom: 1px solid;
}
.img-link {
	text-decoration: none;
	border-bottom: none;
}
.img-link:hover {
	text-decoration: none;
	border-bottom: none;
}
.legal {
	text-transform: uppercase;
	font-weight: bold;
}
p.joinnw a {
	color: #ffffff;
	background-color: #e0ba40;
	padding: 0.25em 0.75em;
	border-radius: 3px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	-ms-border-radius: 3px;
	-o-border-radius: 3px;
	box-shadow: inset 0 1px 0 0 #989898;
	-webkit-box-shadow: 0 1px 0 0 #989898 inset;
	-moz-box-shadow: 0 1px 0 0 #989898 inset;
	-ms-box-shadow: 0 1px 0 0 #989898 inset;
	-o-box-shadow: 0 1px 0 0 #989898 inset;
	border-bottom: none;
}
p.joinnw a:hover {
	background-color: #c3a239;
	text-decoration: none;
}

 /*======================================
   FORMULARE
   ====================================== */
#wstform {
	margin: 1.5rem 0 0;
	padding: 0 1.5rem 1.5rem 1.5rem;
	width: 50%;
}
.admin #wstform {
	width: 80%;
}
@media screen and (max-width: 1070px) {
	#wstform {
		width: 70%;
	}
}
@media screen and (max-width: 740px) {
	#wstform {
		width: 90%;
	}
}
#wstform input[type="email"], #wstform input[type="password"], #wstform input[type="number"], #wstform input[type="text"], #wstform select, #wstform textarea {
	-moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
	background: rgba(255, 255, 255, 0.6);
	border-bottom: 1px solid rgba(42, 42, 42, 0.25) !important;
	border-left: none;
	border-right: none;
	border-top: none;
	color: #2a2a2a;
	display: inline-block !important;
	margin: 0 0 0.75rem;
	outline: medium none;
	padding: 6px 8px 12px;
	width: 100% !important;
	font-size: 1.5rem;
	/*flex: 1 1 100%;*/
}
.formInfo {
	font-size: 1.5rem;
	font-weight: 700;
	font-style: italic;
	line-height: 1.4;
	margin: 0;
}
#wstform p, button, p.joinnw a, .formInfo {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 1.5rem 0;
}
#entertip #wstform input[type="email"], #entertip #wstform input[type="password"], #entertip #wstform input[type="number"], #entertip #wstform input[type="text"], #entertip #wstform select, #entertip #wstform textarea {
	font-size: 1rem;
}
#wstform input:focus, #wstform textarea:focus {
	background: #fff;
	box-shadow: 0 0 3px #aaa;
}
/* #message-submit Style */
#wstform button[type='submit'] {
	background-color: #f3c943;
	background: -webkit-gradient(linear, left top, left bottom, from(#f3c943), to(#c3a239));
	background: -webkit-linear-gradient(top, #f3c943, #c3a239);
	background: -moz-linear-gradient(top, #f3c943, #c3a239);
	background: -ms-linear-gradient(top, #f3c943, #c3a239);
	background: -o-linear-gradient(top, #f3c943, #c3a239);
	background: linear-gradient(top, #f3c943, #c3a239);
	border: 1px solid #959595;
	border-bottom: 1px solid #9c9c9c;
	border-radius: 3px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	-ms-border-radius: 3px;
	-o-border-radius: 3px;
	box-shadow: inset 0 1px 0 0 #c1c1c1;
	-webkit-box-shadow: 0 1px 0 0 #c1c1c1 inset;
	-moz-box-shadow: 0 1px 0 0 #c1c1c1 inset;
	-ms-box-shadow: 0 1px 0 0 #c1c1c1 inset;
	-o-box-shadow: 0 1px 0 0 #c1c1c1 inset;
	color: #ffffff;
	/*font-size: 1.0625rem;*/
	margin-top: 6px;
	padding: 3px 6px;
	text-align: center;
	text-shadow: 0 -1px 0 #25430d;
	width: 30%;
	/*align-self: flex-start;*/
}
@media screen and (max-width: 550px) {
	#wstform button[type='submit']{
		width: 50%;
	}
}
#wstform button[type='submit']:hover {
	opacity: .85;
	cursor: pointer;
}
#wstform button[type='submit']:active {
	border: 1px solid #706951;
	box-shadow: 0 0 10px 5px #C8A637 inset;
	-webkit-box-shadow: 0 0 10px 5px #C8A637 inset;
	-moz-box-shadow: 0 0 10px 5px #C8A637 inset;
	-ms-box-shadow: 0 0 10px 5px #C8A637 inset;
	-o-box-shadow: 0 0 10px 5px #C8A637 inset;
}
#lgout {
	margin: 0;
	padding: 0;
}
#lgout button {
	border: none;
}
#lgout button {
	text-decoration: none;
	text-transform: uppercase;
	font: inherit;
	margin: 0;
	display: block;
	padding: 0 1em;
	background-color: Transparent;
	color: #666;
	font-weight: 600;
	border: 0;
	cursor: pointer;
}
#lgout button:hover {
	color: #000000;
	border: 0;
}
#entertip form select, #entertip #year, #entertip #months {
	width: 12rem;
}
.z {
	display: none;
}
p.warning {
	color: #FF0000;
}
p.info {
	color: #009933;
}
p.warning, p.info {
	text-align: center;
}
/*p.pwrecov, p.joinnw {
	margin: 0.625rem 0;
	text-indent: 0;
}*/













/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}
/* ==========================================================================
   Media Queries
   ========================================================================== */
@media screen and (max-width: 1140px) {
	#register .main-content {
		/*width: 50vw;*/
	}
}
@media screen and (max-width: 1040px) {
	.main-content {
		/*width: 60%;*/
	}
}
@media screen and (max-width: 860px) {
	.main-content {
		/*width: 70%;
		background: rgba(255, 255, 255, 0.6);*/
	}
	nav {
		padding-right: 0;
	}
	.nav {
		justify-content: center;
	}
}
@media screen and (max-width: 740px) {
	nav {
		padding: 0 0 2vh 0;
	}
	.nav a {
		padding: 0 1em;
	}
}
@media screen and (max-width: 420px) {
	.nav a {
		padding: 0 0.5em;
		font-size: 0.875rem;
	}
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
