html,
button,
input,
select,
textarea {
  color: #222;
}
body {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 12pt;
  line-height: 1.4;
}
/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */
::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}
::selection {
  background: #b3d4fc;
  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 images and the bottom of their containers: h5bp.com/i/440
 */
img {
  vertical-align: middle;
}
/*
 * Remove default fieldset styles.
 */
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
/*
 * Allow only vertical resizing of textareas.
 */
textarea {
  resize: vertical;
}
/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */
.chromeframe {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}
/* ==========================================================================
   Author's custom styles
   ========================================================================== */
a {
  text-decoration: none;
  background-repeat: no-repeat;
  background-position: right;
}
a[target="_blank"] {
  background-image: url(/cpsweek2018/out.png);
  padding-right: 10px;
}
ul,
ol {
  padding: 0;
  margin: 0;
}
.radius {
  border-radius: 2px;
}
.text-overflow {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.small-text {
  font-size: 12px;
  font-family: "Archivo Narrow", sans-serif;
  font-style: normal;
}
.body-text {
  font-size: 16px;
  font-family: "Archivo Narrow", sans-serif;
  font-style: normal;
}
.medium-text {
  font-size: 18px;
  font-family: "Archivo Narrow", sans-serif;
  font-style: normal;
}
.large-text {
  font-size: 36px;
  font-family: "Archivo Narrow", sans-serif;
  font-style: normal;
}
/* Media Query Breakpoints */
body {
  background-color: #ffffff;
}
.border-box {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.content-width {
  width: 800px;
  margin: 0 auto;
}
.font {
  font-family: "Archivo Narrow", sans-serif;
  font-style: normal;
}
.font-stylish {
  font-family: "Cabin", sans-serif;
  font-style: normal;
  font-weight: 400;
}
.link-button {
  display: block;
  padding: 7px 15px;
  background-color: #f5f5f5;
  color: #262626;
  font-weight: 600;
  text-transform: uppercase;
}
/* Main Header
---------------- */

/* a name fix */
:target:before {
content:"";
display:block;
height:95px; /* fixed header height*/
margin:-95px 0 0; /* negative fixed header height */
}

header.main {
  background: #292929 url(/images/porto_ribeira_20120910_A.jpg) no-repeat 50% 50%;
  background: #292929 url(/images/ponte_da_arrabida_by_antonio_amen.jpg) no-repeat 50% 50%;
  background-position-x: right;
  background-size: cover;
  position: relative;
  padding: 0px;
  height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
}

header.main .slide {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
  width: 100%;
  min-height: 260px;
  padding-top: 5px;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  display: none;

  z-index: 10;
  color: #fff;
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 1), 1px 1px 5px rgba(0, 0, 0, 1), 1px 1px 10px rgba(0, 0, 0, 0.5);

  -webkit-transition: left 0.5s ease-out;
  -moz-transition: left 0.5s ease-out;
  -ms-transition: left 0.5s ease-out;
  -o-transition: left 0.5s ease-out;
  transition: left 0.5s ease-out;
}


header.main .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

header.main .slide h2 {
  font-family: "Cabin", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 60px;
  line-height: 90px;
  margin: 0;
}

header.main .slide h3 {
  font-family: "Cabin", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 30px;
  line-height: 50px;
  margin: 0;
}

header.main .slide h3:before {
	content: " ";
	position: relative;
	left: 50%;
	bottom: 50%;
	width: 40%;
	height: 2px;
	margin-left: -20%;
	background-color: #02c0ff;
	display: block;
}

header.main.collapsed {
  margin-bottom: 80px;
}
header.main.collapsed .icon a {
  left: 0px;
  top: 4px;
}
div.main .content-wrap img {
	max-width: 50%
}
@media (min-width: 1080px) {
  header.main.collapsed {
    margin-bottom: 80px;
  }
  header.main.collapsed .icon a {
    left: -220px;
    top: 4px;
  }
}
/* Main Nav
-------------------- */
div.main .content-wrap {
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

nav.main {
    position: fixed;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 20px 0;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}
nav.main {
  right: 0;
  width: 100%;
  background-color: #f5f5f5;
}
nav.main ul.global-nav {
  display: inline-block;
  font-size: 13px;
  font-family: "Archivo Narrow", sans-serif;
  font-style: normal;
  margin-bottom: 20px;
}
nav.main ul.global-nav li {
  display: inline-block;
}
nav.main ul.global-nav li a {
  display: inline-block;
  color: #262626;
  font-weight: 600;
}
nav.menu h2 {
  text-align: right;
  margin-top: 40px;
}
nav.menu h3 {
  text-align: right;
  margin-top: 40px;
}

nav.menu img {
	width: 125px;
}

nav.main ul.global-nav .here a {
  background-color: #007ea8;
  color: #FFF;
}


a.button {
  border: 1px solid #0086c5;
  background-color: #0086c5;
  color: white;
  position: relative;
  display: inline-block;
  font-size: 13px;
  line-height: 24px;
  font-weight: 700;
  padding: 12px 35px;
  color: #FFF;
  text-transform: uppercase;
  border-radius: 3px;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  background-image: none;
}
a.button:hover {
	color: #0086c5;
	background-color: transparent;
}

.go-top {
	position: fixed !important;
	right: 20px;
	bottom: -45px;
	color: #fff; 
	display: block;
	font-size: 22px;
	line-height: 35px;
	text-align: center;
	width: 40px;
	height: 40px;
	visibility: hidden;
	opacity: 0;
	z-index: 9999;
	cursor: pointer;
	border: 2px solid black;
	border-radius: 4px;
	-webkit-transition: all 0.5s;
	   -moz-transition: all 0.5s;
	    -ms-transition: all 0.5s;
	     -o-transition: all 0.5s;
	        transition: all 0.5s;
    background: black;
    -webkit-transform: rotateZ(-90deg);
       -moz-transform: rotateZ(-90deg);
         -o-transform: rotateZ(-90deg);
            transform: rotateZ(-90deg);
    font-size: 24px;
    line-height: 34px;
    padding-top: 0px;
    box-sizing: border-box;
}
.go-top:hover {
	background-color: #fff;
	color: black;
}
.go-top.show {
	opacity: 1;
	visibility: visible;
	bottom : 11px;
}

@media (min-width: 1080px) {
  nav.main {
    display: block;
    width: 160px;
    position: absolute;
    left: -220px;
    top: 40px;
    float: none;
    width: auto;
    background-color: transparent;
  }
  nav.main ul.global-nav li {
    float: none;
    margin-right: 0px;
    margin-bottom: 1px;
  }
}
nav {
  width: 100%;
  font-family: "Cabin", sans-serif;
  padding: 10px 20px 10px 10px;
  font-style: normal;
  font-weight: 400;
  text-align: right;
  position: fixed;
  top: 0px;
  box-sizing: border-box;
  z-index: 1000;
  color: white;
  background-color: transparent;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -ms-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;

  overflow-y: auto;
  height: 200px;
  max-height: 10vh;
  min-height: 60px;
}

nav.menu {
  font-family: "Archivo Narrow", sans-serif;
}

nav.menu::-webkit-scrollbar {
    width: 9px;
    /*background-color: rgba(255,255,255,0.4);*/
}
 
nav.menu::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    width: 7px;
}
 
nav.menu::-webkit-scrollbar-thumb {
    width: 3px;
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
    background: rgba(255,255,255,0.5);
    border: 1px solid black;
}

nav.menu div, nav.menu a {
  padding: 3px 0;
  text-align: right;
  display: inline-block;
  margin: 5px;
  padding: 5px;
  color: white;
  text-decoration: none;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5), 0px 0px 5px rgba(0, 0, 0, 0.5), 2px 2px 10px rgba(0, 0, 0, 0.5);
}

nav.menu .active {
  color: #02c0ff;
  border-top: 6px solid #02c0ff;
}

nav.menu a:hover {
  color: #02c0ff;
}

/* Entries
------------------ */
article.content {
  padding: 40px 0;
  min-height: 500px;
//  padding-left: 200px;
  margin-bottom: 10px;
  min-height: calc(100vh - 296px);
  box-sizing: border-box;
}
article.content h1 {
  font-family: "Cabin", sans-serif;
  font-style: normal;
  font-weight: 400;
  color: #262626;
  text-align: center;
  font-size: 36px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
  border-top: 1px solid #e5e5e5;
  padding: 10px 0;
}

article.content h2 {
  font-family: "Cabin", sans-serif;
  font-style: normal;
  font-weight: 400;
  color: #02c0ff;
  text-align: center;
  font-size: 36px;
  margin-top: 70px;
  margin-bottom: 40px;
}

article.content h2:after {
	content: " ";
	position: relative;
	left: 50%;
	bottom: 50%;
	width: 40%;
	height: 2px;
	margin-left: -20%;
	background-color: #02c0ff;
	display: block;
}

article.content div.updatesbox2, article.content div.updatesbox1, article.content div.blackbox {
	text-align: center;
	display: table;
	width: 100%;
	padding: 30px; 
	box-sizing: border-box;
}

article.content div.updatesbox2, article.content div.updatesbox1 {
	background-color: #0086c5;
	color: white;
}

article.content div.updatesbox1 h2, article.content div.updatesbox2 h2  {
	color: white;
}

article.content div.updatesbox1 {
	display: block;
	background-image: url(/images/porto_bridge_B.png);
	background-repeat: no-repeat;
      background-position-x: center;
	padding-top: 11px;
	margin-top: 65px;
}

article.content div.updatesbox1 {
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5), 0px 0px 5px rgba(0, 0, 0, 0.5), 2px 2px 10px rgba(0, 0, 0, 0.5);
}

article.content div.blackbox {
	background-color: rgb(37, 37, 37);
	color: #a0a0a0;
}

article.content div.updatesbox2 div, article.content div.blackbox div {
	display: table-cell;
}

article.content div.updatesbox2 div div, article.content div.blackbox div div {
	display: block;
	margin: 20px;
	padding: 10px;
	background: rgba(0,0,0,0.5);

}

article.content div.updatesbox2 .button {	
	background: transparent;
}

article.content div.updatesbox2 .button:hover {	
	background: #0086c5;
	color: white;
}

article.content div.blackbox .button {	
	background: transparent;
}

article.content div.sponsors div {
	display: inline-block;
	width: 398px;
	margin: 20px 0px;
	text-align: center;
}

article.content table td, article.content table th {
    border: 0px;
    padding: 5px;
    text-align: left;
    vertical-align: top;
}

article.content table th {
    text-align: right;
}

article.content p.intro {
  font-size: 24px;
  color: #2f6780;
  font-family: "Cabin", sans-serif;
  font-style: normal;
  font-weight: 400;
}
article.content a {
  color: #007ea8;
}

article.content a.button {
  color: #fff;
}

article.content a.button:hover {
  color: #007ea8;
}


article.content p.entry-details {
  font-size: 16px;
  font-family: "Archivo Narrow", sans-serif;
  font-style: normal;
  color: #b3b3b3;
  margin-top: 0;
}
article.content p.entry-details a {
  color: #b3b3b3;
}
article.content p.entry-details :hover {
  color: #8c8c8c;
}
article.content p.entry-summary {
  padding-bottom: 30px;
}
article.content p,
article.content ul,ol {
  font-size: 16px;
  font-family: "Archivo Narrow", sans-serif;
  font-style: normal;
}
article.content ul,ol {
  color: #f0a31d;
  margin-left: 20px;
}
article.content ul,ol p {
  font-size: 16px;
  font-family:  "Archivo Narrow", sans-serif;
  font-style: normal;
  color: #262626;
}
article.content footer {
  margin-top: 0px;
  padding-top: 6px;
}
article.content footer .button {
  float: left;
  background-color: #e5e5e5;
  display: block;
  padding: 7px 15px;
  background-color: #f5f5f5;
  color: #262626;
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 5px;
}
article.content footer .button:hover {
  background-color: #007ea8;
  color: #FFF;
}
article.content footer .share {
  float: right;
}

iframe#player {
  max-width: 100%;
}


/* Footer
--------------------- */

footer.main .content-wrap {
  width: 800px;
  margin: 0 auto;
  position: relative;
}

div.thumbnails {
	background-color: white;
	padding: 20px;
}

div.thumbnails img {max-width:160px; max-height:80px; margin:0 10px 10px 0; 
  border-radius:2px; vertical-align: middle;}
div.thumbnails img.last {margin-right:0;}

footer.main {
  background-color: #000;
  line-height: 1.8em;
  color: #999999;
  padding-top: 0px;
  padding-bottom: 30px;
  clear: both;
}
footer.main a {
  color: #bababa;
}
footer.main a:hover {
  color: #007ea8;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */
/*
 * Image replacement
 */
.ir {
  background-color: transparent;
  border: 0;
  overflow: hidden;
  /* IE 6/7 fallback */

  *text-indent: -9999px;
}
.ir:before {
  content: "";
  display: block;
  width: 0;
  height: 150%;
}
/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */
.hidden {
  display: none !important;
  visibility: hidden;
}
/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */
.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: h5bp.com/p
 */
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}
/*
 * Hide visually and from screenreaders, 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;
}
/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
.clearfix {
  *zoom: 1;
}
/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}
@media print, (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}
/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */
@media print {
  * {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster: h5bp.com/s */
  
    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 for images, or javascript/internal links
       */
  .ir a:after,
  a[href^="javascript:"]:after,
  a[href^="#"]:after {
    content: "";
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  thead {
    display: table-header-group;
    /* h5bp.com/t */
  
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  img {
    max-width: 100% !important;
  }
  @page  {
    margin: 0.5cm;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}
