/**** S E T U P ****/

:root {
	--red: rgb(237, 3, 114);
	--green: rgb(0, 255 ,150);
	--blue: rgb(0, 0, 255);
	--black: rgb(0, 0, 0);
	--white: rgb(255, 255, 255);
}

@font-face {
	font-family: "Public Programming Regular";
	src: url("../fonts/PublicProgramming-Roman.otf") format("opentype");
}

@font-face {
	font-family: "Public Programming Italic";
	src: url("../fonts/PublicProgramming-It.otf") format("opentype");
}

.information, .sf-info, .archive, footer, header, .feature {
	font-family: "Public Programming Regular", Helvetica, Arial, sans-serif;
}

.big-title, .title {
	font-family: "Public Programming Italic", Helvetica, sans-serif;
}

#app {
	display: flex;
	flex-direction: column;
}

main {
	flex: 1;
}

.sf-info, .archive {
	display: none; 
	margin-top: -2px;
	font-size: 0.9rem;
}

header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

header nav {
	display: flex;
	align-items: center;
}

header nav.menu {
	justify-content: flex-end;
}

header nav.menu a:not(:last-child) {
	margin-right: 0.5rem;
}

footer {
	font-size: 0.9rem;
}

* {
	text-rendering: optimizeLegibility;
	font-kerning: normal;
}

.information, .sf-info, .archive, footer, header, .feature, .title {
	letter-spacing: 0.2px;
}

body {
	margin: 14px 1rem 1rem 1rem;
	padding: 0;
}

main {
	display: grid;
	grid-template-columns: 1fr minmax(auto, 670px);
	grid-column-gap: 1rem;
}

p {
	margin: 0;
	padding: 0;
}

nav, .caption, .month {
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	-moz-osx-font-smoothing: grayscale; /*(For Firefox)*/
	-webkit-font-smoothing: antialiased; /*(For Chrome and Safari)*/
}

/**** H E A D E R ****/

.short-text {
	display: none;
}

.menu {
	grid-column: 2;
}

.site-refresh {
	grid-column: 1;
	white-space: nowrap;
}

a, .month {
	text-decoration: underline;
}

a:hover {
	color: var(--blue);
}

nav {
	margin: 0;
	padding: 0;
	font-size: 1.5rem;
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
}

nav > a {
	color: var(--black);
}

.current-page {
	color: var(--red);
}

.current-event {
	background: var(--green);
}

.constant {
	position: absolute;
	right: 1rem;
}

.month {
  position: absolute;
  top: 19px;
  margin-left: 3.5rem;
  font-size: 1.5rem;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

footer {
	background: var(--white);
	height: 2rem;
	max-width: 624px;
	position: fixed;
	bottom: 0;
	right: 1rem;
}

/**** B U T T O N S ****/

a {
	color: #000;
}

a:hover  {
	cursor: pointer;
	color: var(--blue);
}

a.email, a.subscribe, {
	color: var(--black);
}

/*a:hover.email, a:hover.subscribe {
	color: var(--blue);
}*/

.event:hover {
	background: var(--green);
	cursor: pointer;
}

/**** F E A T U R E ****/

.feature {
	grid-column: 1;
	margin-top: -2px;
}

.poster {
  width: 65%;
  min-width: 400px;
  max-width: 800px;
  margin-bottom: 0.25rem;
}

.caption span {
	display: block;
}

.caption {
	margin-top: -0.5rem;
	padding: 0;
	font-size: 2.75rem;
	line-height: 3.1rem;
}

.caption a:link { 
	text-decoration-thickness: 3px;
	text-underline-offset: 3px;
}
.caption > a:hover { color: var(--blue) !important; }
.caption > a:visited { color: var(--black); }

/**** I N F O R M A T I O N ****/

.information, p, .sf-info, footer {
	grid-column: 2;
	margin-top: -1px;
	font-size: 0.9rem;
	line-height: 1.15rem;
}

.archive {
	margin-top: -1px;
}

.sf-info {
	margin-top: -2px;
}

.event {
	margin-bottom: 1rem;
}

.event_b {
	margin-top: 0.5rem;
	margin-bottom: 1rem;
	display: none;
}

.title, .description {
	margin-left: 3.5rem;
}

/* S L I D E R */

.slide {
	max-height: 0;
	overflow: hidden;
	visibility: hidden;	
	transition: visibility 0.2s, opacity 0.5s;
	opacity: 0;
}

.slide.current-slide {
	max-height: inherit;
	visibility: visible; 	
	opacity: 1;
}

.archive .mobile {
	display: none;
}

/* M E D I A */

@media (max-width: 354px) {
	header {
		flex-direction: column;
	}
	nav:not(:last-child) {
		margin-bottom: 10px;
	}
}

@media (max-width: 850px) {
  main {
    display: block;
  }
  nav {
    font-size: 1.3rem;
    margin-bottom: 2px;
  }
  .short-text {
    display: inline-block;
  }
  .full-text {
    display: none;
  }
  .information, .month, .events {
    display: none;
  }
  .sf-info, .archive {
    position: absolute;
    background: var(--white);
    margin-right: 1rem;
  }

  .event_b {
		margin-top: 0.5rem;
		margin-bottom: 1rem;
		display: inherit;
		font-size: 0.9rem;
  }

  .poster {
  	min-width: 100%;
  	margin-bottom: 5px;
  }

  .caption {
  	padding: 0;
  	font-size: 2.25rem;
  	line-height: 2.4rem;
  }

  footer {
    display: none;
  }

  .sf-info, .archive {
    position: absolute;
    top: 40px;
  }

  .archive .desktop {
    display: none;
  }
  .archive .mobile {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--white);
  }

  .hide {
    display: none;
  }
}
