/*
 * -- LAYOUT STYLES --
 * These are some useful classes which I will need
 */
/*.l-box {
    padding: 1em;
}*/

.l-box-lrg {
    padding: 2em;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.is-center {
    text-align: center;
}

/*
 * -- MENU STYLES --
 * I want to customize how my .pure-menu looks at the top of the page
 */

.home-menu {
    padding: 0.5em;
    box-shadow: 0 1px 1px rgba(0,0,0, 0.10);
}
.home-menu {
    background: #2d3e50;
}
.pure-menu.pure-menu-fixed {
    /* Fixed menus normally have a border at the bottom. */
    border-bottom: none;
    /* I need a higher z-index here because of the scroll-over effect. */
    z-index: 4;
}

.home-menu .pure-menu-heading {
    color: white;
    font-weight: 400;
    /*font-size: 120%;*/
}

.home-menu .pure-menu-selected a {
    color: white;
}

.home-menu a {
    color: #6FBEF3;
}
.home-menu li a:hover,
.home-menu li a:focus {
    background: none;
    border: none;
    color: #AECFE5;
}

/*
 * -- SPLASH STYLES --
 * This is the blue top section that appears on the page.
 */

.splash-container {
    /*background: #1f8dd6;*/
    z-index: 1;
    overflow: hidden;
    /* The following styles are required for the "scroll-over" effect */
    width: 100%;
    height: 88%;
    top: 0;
    left: 0;
    position: fixed !important;
}

.splash {
    /* absolute center .splash within .splash-container */
    width: 80%;
    height: 50%;
    margin: auto;
    position: absolute;
    top: 100px; left: 0; bottom: 0; right: 0;
    text-align: center;
    text-transform: uppercase;
}

/* This is the main heading that appears on the blue section */
.splash-head {
    /*font-size: 20px;
    font-weight: bold;
    color: white;
    border: 3px solid white;*/
    padding: 1em 1.6em;
    /*font-weight: 100;
    border-radius: 5px;
    line-height: 1em;*/
}

/* This is the subheading that appears on the blue section */
.splash-subhead {
    color: white;
    letter-spacing: 0.05em;
    opacity: 1.0; /*0.8;*/
}

/*
 * -- CONTENT STYLES --
 * This represents the content area (everything below the blue section)
 */
.content-wrapper {
    /* These styles are required for the "scroll-over" effect */
    position: absolute;
    top: 87%;
    width: 100%;
    min-height: 12%;
    z-index: 2;
    background: beige;

}

/* We want to give the content area some more padding */
.content {
    padding: 1em 1em 3em;
}

/* This is the class used for the main content headers (<h2>) */
.content-head {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 2em 0 1em;
}

/* This is a modifier class used when the content-head is inside a ribbon */
.content-head-ribbon {
    color: white;
}

/* This is the class used for the content sub-headers (<h3>) */
.content-subhead {
    color: #1f8dd6;
}
    .content-subhead i {
        margin-right: 7px;
    }

/* This is the class used for the dark-background areas. */
.ribbon {
    background: #2d3e50;
    color: #aaa;
}

/* Needs to be explicitly defined to overcome native stylesheet specificity */
.ribbon a {
  color: #aaa;
}

/*
 * -- TABLET (AND UP) MEDIA QUERIES --
 * On tablets and other medium-sized devices, we want to customize some
 * of the mobile styles.
 */
@media (min-width: 48em) {

    /* We increase the body font size */
    body {
        font-size: 16px;
    }

    /* We increase the height of the splash-container */
/*    .splash-container {
        height: 500px;
    }*/

    /* We decrease the width of the .splash, since we have more width
    to work with */
    .splash {
        width: 50%;
        height: 50%;
    }

    .splash-head {
        font-size: 250%;
    }


    /* We remove the border-separator assigned to .l-box-lrg */
    .l-box-lrg {
        border: none;
    }

}

/*
 * -- DESKTOP (AND UP) MEDIA QUERIES --
 * On desktops and other large devices, we want to over-ride some
 * of the mobile and tablet styles.
 */
@media (min-width: 78em) {
    /* We increase the header font size even more */
    .splash-head {
        font-size: 300%;
		margin-top: 0;
    }
}

/* FLAG/BLOCK MENU ICONS */

.fi {
  background-size: contain;
  background-position: 50%;
  background-repeat: no-repeat;
  position: relative;
  display: inline-block;
  /*width: 1.33333333em;*/
  line-height: 1em;
}
.fi:before {
  content: '\00a0';
}
.fi-pt {
	background-image: url(flags/pt.png);
	width: 1.2em;
}
.fi-gb {
	background-image: url(flags/gb.png);
	width: 1.2em;
}
.fi-block {
	background-image: url(block_logotype.svg);
	width: 3em;
}

/* BODY FORMATTING */

body {
	background-color: beige;
}

/* INDEX PAGE FORMATTING */

.splash {
	height: 70%;
}

.blockcss-index-body {
	background-size: auto 854px; /*cover;*//* cover flunks with chrome autohiding navbar */
	background-repeat: no-repeat;
	background-position: 50% top;
	background-attachment: fixed;
}

.splash-head {
	background-size: contain;
	background-position: 50%;
	background-repeat: no-repeat;
	position: relative;
	display: inline-block;
	line-height: 1em;
	background-image: url(photos/block-logo-and-board-10pc.png);
	/*width: 3em;*/
}

.splash-head:before {
	content: '\00a0';
}

.splash-head {
	font-size: 400%;
	margin-bottom: 0;
}

/* INDEX PAGE PHOTO FRAME FORMATTING */

.blockcss-photoframe-rounded {
	display: inline-block;
	width: 10em;
	height: 10em;
	background-size: auto 100%;
	background-position: 50%;
	background-repeat: no-repeat;
	position: relative;
	border-radius: 5em;
}

.blockcss-photo-nelson {
	background-image: url(photos/nelson.jpg?v=2);
}

.blockcss-photo-ricardo {
	background-image: url(photos/ricardo.jpg?v=2);
}

.blockcss-photo-afonso {
	background-image: url(photos/afonso.jpg?v=2);
}

/* HEADER MENU FORMATTING */

/*.pure-menu-fixed {
	position: sticky !important;
}*/

.header {
	height: 7.5em;
}

.pure-menu-heading, .pure-menu-link {
	padding: 0;
}

.home-menu {
	padding: 1em;
    text-align: left;
}

.home-menu ul {
    float: right;
}

.fi {
	font-size: 250%;
}

/* SUBHEADER FORMATTING */

.blockcss-subheader {
	display: flex;
    justify-content: space-between;
    align-items: center;
	/*padding: 0 2em 0 2em;*/
	padding-right: 2em;
	background-color: #2d3e50;
	/*border-bottom-left-radius: 1em;*/
	position: fixed;
	right: 0;
	top: 4.5em;
	z-index: 3;
	width: 100%;
	text-align: right;
}

.blockcss-subheader p, .blockcss-subheader a {
	display: inline-block;
    color: #ffc923;
	padding-left: 2em;
}

/* MENU ITEM FORMATTING */

.pure-menu-has-children {
	font-weight: bold;
}

.home-menu a {
    color: #ffc923;
}

#menuLink1 {
	font-size: 150%;
	color: dodgerblue;
}

/* SUBMENU FORMATTING */

.blockcss-menu-subitem {
	padding: 1em 0.5em 1em 0.5em;
}

.pure-menu-children {
	background: #2d3e50;
	border: 1px solid black;
	border-radius: 3px;
	font-weight: initial;
}

/* FLASH MESSAGE FORMATTING */

.blockcss-flash-message-container {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	justify-content: center;
	z-index: 10;
	background-color: #d3d3d3d3;
	display: flex;
	align-items: center;
}

.blockcss-flash-message {
	background-color: beige;
	border: 5px solid goldenrod;
	padding: 0 2em;
	border-radius: 1em;
	margin: 2em;
}

/* BASE CONTAINER FORMATTING */

.blockcss-content {
	padding: 0 2em 2em 2em;
}

/* GENERAL TEXT FORMATTING */

.blockcss-centered {
	text-align: center;
}

.blockcss-justified {
	text-align: justify;
}

.blockcss-start {
	text-align: start;
}

/* MATH TEXT FORMATTING */

.blockcss-math-text-overflow {
	overflow-x: auto;
}

/* FORM FORMATTING */

.pure-form-aligned .pure-control-group label {
	width: 12em;
}

[type="checkbox"] {
	margin: 0 1em 0 0;
}

.pure-form-aligned .pure-controls {
	margin: 1.5em 0 1.5em 0;
}

.blockcss-form-display {
	display: inline-block;
}

.blockcss-form-sized-selects select {
	width: min(100%, 12em);
}

/* TABLE FORMATTING */

.blockcss-table {
	
}

.blockcss-table-desktop {
	overflow-x: auto;
	white-space: pre;
}

.blockcss-table-mobile tr td:nth-child(2) {
	overflow-wrap: anywhere;
}

.blockcss-table-disable {
	display: none;
}

.blockcss-table-button-margin {
	margin-bottom: 2em;
}

.blockcss-table-data-current-player {
	font-weight: bold;
}

.blockcss-table-data-winner {
	font-weight: bold;
}

.blockcss-table-header-center {
	text-align: center;
}

.blockcss-table-divider {
	border-left: 1px solid beige !important;
	border-right: 1px solid beige !important;
}

/* NEWS ARTICLES FORMATTING */

.blockcss-news-article {
	
}

.desktop-only {
    display: none !important;
}

.mobile-only {
    display: block !important;
}

.truncate-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.welcome-text {
    font-size: 80%;
}

@media (min-width: 48em) {
    .desktop-only {
        display: block !important;
    }

    .mobile-only {
        display: none !important;
    }

    .welcome-text {
        font-size: unset;
    }
}

.block-css-website-contributors {
    display: flex;
    justify-content: center;
}

/* GOOGLE PLAY BADGE FORMATTING */

.google-play-badge {
  border: max(1.9mm, 12.5px) solid beige;
  border-radius: max(1.9mm, 12.5px);
  background: beige;
  height: max(7.6mm, 50px);
}

.hide-in-mobile-app {
    display: none;
}