/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.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
   ========================================================================== */

   
body {
	overflow-x: hidden;
}   

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

a, a:visited {
	color: #000;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets 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, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

fieldset {
    font-family: sans-serif;
    border: 1px solid #000;
    border-radius: 5px;
    padding: 15px;
}

fieldset legend {
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 5px;
    text-align: left;
}

ul.bottom-links {
	margin-bottom: 0px;
}   
   
ul.bottom-links li {
	text-align: left;
}

div#div-tablist {
    float: left;
	margin-top: 15px;
	margin-bottom: 15px;
	position: relative;
	left: 50%;
}

#tablist-container {
	position: relative;
	left: -50%;
	float: left;
}

ul#tabList {
	float: left;
	margin: 0px;
}

ul#tabList li {
    float: left;
    list-style-type: none;
    margin-right: 20px;
    cursor: pointer;
	font-weight: bold;
	background-color: gray;
	color: #fff;
	padding: 5px 10px;
}

ul#tabList li:last-of-type {
    margin-right: 0px;
}

ul#tabList li:hover {
	background-color: #333;
}

ul#tabList li.selected {
	color: #fff;
	background-color: #333;
}

#div-tablist > div {
	float: left;
}

#div-tablist button {
	background-color: #f44336;
    border: 2px solid #f44336;
    color: white;
}

#div-tablist button:hover {
    background-color: #fff;
    color: #000;
}

#div-tablist #div-old-style {
    border: 1px solid gray;
    padding: 4px 10px;
	margin-right: 60px;
}

#div-tablist #div-reset-button {
	position: relative;
	left: 5%;
}

#div-tablist #div-reset-button button.btn {
	padding: 5px 15px;
	margin: 0px;
}

#div-reset-button {
	padding-top: 0px;
}

#container {
    width: 900px;
    text-align: center;
    margin: 30px auto;
	border: 2px solid #343434;
    padding: 20px 30px;
}

.second-column-input {
	margin-left: 12px;
}

div.bans, div.teams {
	float: left;
	margin-bottom: 10px;
}


.button {
    padding: 5px;

    border: 1px solid black;

    cursor: pointer;

    width: 100px;

}

.float-left {
  float: left;
}

.full-width {
  width: 100%;
}

#saveandshit {

    margin-top: 20px;
    width: inherit;
}

#saveandshit div, #saveandshit input, #saveandshit select {
    float: left;
    margin-right: 20px;
}

#saveandshit select {
    width: 120px;
    border: 1px solid;
}

.button:hover {
    background-color: grey;
}

#header {
    width: inherit;

    height: 200px;
}

#main {
    width: inherit;

    height: 400px;
}

#container > strong {
    margin: 0px 20px 0px 20px;
    cursor: pointer;
}

.about-btn {
	cursor: pointer;
}

/* hide all tabs */
#panels > div {
    display: none;
}
/* show first */
#panels > div:nth-child(1) {
    display: inline-block;
}

#panels {
    width: inherit;
}

.main {
    width: inherit;
}

input:disabled {
    background: #dddddd;
}

.bans > div, .picks > div {
    width: 50%;
    float: left;
}

.pps {
	text-align: left;
}

.pps, .teams, .bans, .ptxt {
	float: left;
	width: 100%;
}

.pps > div,
.teams > div,
.bans > div {
	float: left;
	width: 50%;
}

.pick-context > .inline-block {
    width: 75%;
}

.pick-context-input {
    width: 100%
}

#div-thread-info {
	float: left;
	position: relative;
	left: 50%;
}

#div-thread-info > table {
	position: relative;
	left: -50%;
}

div.game-infos {
	margin-bottom: 10px;
}

div.game-infos input.poll {
	margin-right: 0px;
}

div.game-infos input.mvp-points {
	width: 60px;
}

div.game-infos input.game-time {
	width: 90px;
}

div.game-infos .game-mvp {
	width: 125px;
	max-width: 125px;
}

div.game-infos .game-potg {
	width: 125px;
	max-width: 125px;
}

div.game-infos .winner {
	width: 135px;
}

#series-result {
	width: 37px;
}

#series-context {
	width: 720px;
}

.label-div {
	padding: 2px 5px !important;
	border: 1px solid rgb(169, 169, 169);
}

input[type="checkbox"] {
	width: auto;
}

#div-lck-warning {
	position: relative;
	border: 2px solid red;
}

#div-refresh-warning {
	-webkit-animation: pulsate 1.4s ease-out infinite;
    -moz-animation: pulsate 1.4s ease-out infinite;
    animation: pulsate 1.4s ease-out infinite;
	position: relative;
	border: 5px solid transparent;
	border-image: linear-gradient(to right, #f46b86 0%,#ff9c59 20%, #f9fb21 40%, #63ff6e 60%, #1cbdec 80%);
	border-image-slice: 1;
	font-weight: 700;
	text-shadow: 0 0 5px cyan;
	margin-bottom: 11px;
}

body.night #div-refresh-warning {
	text-shadow: 0 0 5px red;
}

body.pinku #div-refresh-warning {
	text-shadow: 0 0 5px darkgreen;
}

/* Pulsating */

@-webkit-keyframes pulsate {
    0% { opacity: 0.6}
    50% {opacity: 1}
    100% { opacity: 0.6}
}
@-moz-keyframes pulsate {
    0% { opacity: 0.6}
    50% {opacity: 1}
    100% { opacity: 0.6}
}
@keyframes pulsate {
    0% { opacity: 0.6}
    50% {opacity: 1}
    100% { opacity: 0.6}
}

/*
.pps > div:first-of-type,
.teams > div:first-of-type,
.bans > div:first-of-type {
	float: left;
	width: 50%;
}
*/
/*
.pps > div:last-of-type,
.teams > div:last-of-type,
.bans > div:last-of-type {
	float: right;
	width: 50%;
}
*/

textarea {
    width: 100%;
}

input {
    width: 110px;
}

input.blue-dragons, input.red-dragons {
	width: 300px;
}

.btn-reset-drags {
	padding: 0px;
}

.btn-reset-drags img {
	width: 24px;
	height: 24px;
}

input, select {
	padding: 3px 5px;
}

label {
    margin-bottom: 0;
}

.T2 {
    /*margin-left: 372px;*/
}

.players {
	float: left;
    /*width: 138px;*/
	margin-left: 28px;
	margin-right: 15px;
}

.picks, .scores {
    float: left;
}

input[list="championz"] {
	text-transform: capitalize;
}

.players input, .picks input, .scores input {
    margin-bottom: 5px;
}

#´div {
	width: 100%;
    text-align: center;
}

#top-div ul {
	margin: 2px auto;
    line-height: 1.4;
	padding-left: 0;
}

.inline-block {
	display: inline-block;
}

ul.inline li {
	display: inline;
}

ul.top-list li {
    text-align: center;
	margin-right: 20px;
	cursor: pointer;
	display: inline-block;
}

ul.top-list li a {
	text-decoration: none;
}

.float-right {
	float: right;
}

div.bans div input,
div.teams div input {
	vertical-align: top;
	margin-bottom: 5px;
}

div.bans div span {
	margin-right: 3px;
}

#theme-buttons {
	margin-top: -25px
}

.picks span {
	width: 100%;
    display: inline-block;
}

.picks span:after {
    cursor: move;
    margin-top: -4px;
}

.picks, .bans div span {
    width: 160px;
	display: inline-block;
	line-height: 1.4;
}

.bans div span input {
	float: left;
}

.bans > div > div {
	margin-left: 20%;
	width: 80%;
}

.bans > div div {
	float: left;
	height: auto;
	line-height: 0px;
}

.bans > div div span {
	line-height: 1.4;
}

.bans .flair:after {
    margin-top: 5px;
    margin-left: -10px;
}

.scores {
    /*margin-right: 82px;*/
}

.scores input {
	width: 80px;
}

#output-tab {
	width: 100%;
}

#output-tab textarea {
    height: 400px;
}

button.btn {
	padding: 10px 25px;
	margin-bottom: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
	border-radius: 8px;
	-webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
	color: black;
}

#output-tab button {
    background-color: #008CBA; /* Blue */
    border: 2px solid #008CBA;
    color: white;
}

#output-tab button:hover {
    background-color: #fff;
    color: #000;
}

div#div-mvp-poll {
	
}

input#event-name {
	text-transform: uppercase;
}

.createPoll {
	width: auto;
	margin-left: -5px;
}

input[readonly] {
	background: #CCC; 
}

.teams > div:first-of-type,
.bans .blue-bans,
.pps > div:first-of-type {
	background-color: #9090D4;
	padding: 15px 0px 10px 0px;
}

.teams > div:last-of-type,
.bans .red-bans,
.pps > div:last-of-type {
	background-color: #D49090;
	padding: 15px 0px 10px 0px;
}

.ptxt > div {
    background-color: #8cff82;
    padding: 15px 0px 10px 0px;
}

#btn-logout {
	background-image: url('../img/logout.png');
    background-repeat: no-repeat;
	background-size: 24px 24px;
    height: 24px;
    width: 24px;
    background-color: transparent;
    border: none;
}

.div-drags-buttons {
	margin-top: 10px;
	margin-bottom: 10px;
}

.div-drags-buttons button {
	margin: 0px;
	padding: 0px;
	border: 0px;
	background-color: transparent;
}

.div-drags-buttons button,
.div-drags-buttons button img {
	width: 24px;
	height: 24px;
}

/* ==========================================================================
   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;
    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.
   These 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;
    }
}

/** Popup **/

div#about-popup {
	
}

#instructions-popup {
    text-align: left;
    overflow:scroll;
    overflow-x:hidden;
    height: 720px;
}

div.white_content a.close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

div.white_content h1,
div.white_content h2 {
	margin-top: 0px;
}

#loading-teams-popup {
	
}

#match-history-popup li {
	margin-bottom: 5px;
}

p.bold {
	font-weight: bold;
}

p.font-size-large {
	font-size: large;
}

.black_overlay {
	position: fixed;
	top: 0%;
	left: 0%;
	width: 100%;
	height: 100%;
	background-color: black;
	z-index:1001;
	-moz-opacity: 0.8;
	opacity:.80;
	filter: alpha(opacity=80);
}

.white_content {
	position: fixed;
	left: 25%;
	width: 50%;
	padding: 16px;
	border: 3px solid darkred;
	background-color: white;
	z-index:1002;
	overflow: auto;
	text-align: center;
}

.white_content ul {
	list-style-position: inside;
}

.white_content ul li {
	text-align: left;
}

/** Tool tip **/

[data-tooltip] {
    display: inline-block;
    position: relative;
    padding: 4px;
}
/* Tooltip styling */
[data-tooltip]:before {
    content: attr(data-tooltip);
    display: none;
    position: absolute;
    background: #000;
    color: #fff;
    padding: 4px 8px;
    font-size: 14px;
    line-height: 1.4;
    min-width: 110px;
    text-align: center;
    border-radius: 4px;
}
/* Dynamic horizontal centering */
[data-tooltip-position="top"]:before,
[data-tooltip-position="bottom"]:before {
    left: 50%;
    -ms-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}
/* Dynamic vertical centering */
[data-tooltip-position="right"]:before,
[data-tooltip-position="left"]:before {
    top: 50%;
    -ms-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}
[data-tooltip-position="top"]:before {
    bottom: 100%;
    margin-bottom: 6px;
}
[data-tooltip-position="right"]:before {
    left: 100%;
    margin-left: 6px;
}
[data-tooltip-position="bottom"]:before {
    top: 100%;
    margin-top: 6px;
}
[data-tooltip-position="left"]:before {
    right: 100%;
    margin-right: 6px;
}

/* Tooltip arrow styling/placement */
[data-tooltip]:after {
    content: '';
    display: none;
    position: absolute;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
}
/* Dynamic horizontal centering for the tooltip */
[data-tooltip-position="top"]:after,
[data-tooltip-position="bottom"]:after {
    left: 50%;
    margin-left: -6px;
}
/* Dynamic vertical centering for the tooltip */
[data-tooltip-position="right"]:after,
[data-tooltip-position="left"]:after {
    top: 50%;
    margin-top: -6px;
}
[data-tooltip-position="top"]:after {
    bottom: 100%;
    border-width: 6px 6px 0;
    border-top-color: #000;
}
[data-tooltip-position="right"]:after {
    left: 100%;
    border-width: 6px 6px 6px 0;
    border-right-color: #000;
}
[data-tooltip-position="bottom"]:after {
    top: 100%;
    border-width: 0 6px 6px;
    border-bottom-color: #000;
}
[data-tooltip-position="left"]:after {
    right: 100%;
    border-width: 6px 0 6px 6px;
    border-left-color: #000;
}
/* Show the tooltip when hovering */
[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
    display: block;
    z-index: 50;
}

.centered {
	text-align: center;
}

ul.centered li {
	text-align: center;
}

#div-copyright p {
	font-weight: bold;
	margin-bottom: 0px;
}

.infolink:after
{
    content: '?';
    font-size: 100%;
    font-family: sans-serif;
    vertical-align: middle;
    font-weight: bold;
    text-align: center;
    line-height:1;
    display: inline-block;
    width: 1.8ex;
    height: 1.8ex;
    border-radius: 1ex;
    color: blue;
    background: white;
    border: thin solid blue;
	margin-top: -4px;
	margin-left: 5px;
}

.infolink:hover:after
{
    color: white;
    background: blue;
    border-color: white;
}

/** Icons stuff **/

.div-drags-buttons button,
.bans div span.span-icon {
	display: inline-block;
	width: 22px;
	height: 22px;
	background-image: url('../img/icons.png');
	font-size: 0;
}

button.fire-drag {
	background-position: 0 0;
}
button.mountain-drag {
	background-position: -22px 0;
}
button.water-drag {
	background-position: -44px 0;
}
button.cloud-drag {
	background-position: -66px 0;
}
button.elder-drag {
	background-position: 0 -22px;
}
button.harold {
    background-position: -22px -44px;
}
button.baron {
	background-position: -66px -22px;
}
button.hextech-drag {
	background-image: url('../img/hextech-drag.png');
	background-size: 22px 22px;
}
button.chemtech-drag {
	background-image: url('../img/chemtech-drag.png');
	background-size: 22px 22px;
}
.icon-gold {
	background-position: -22px -22px;
}
.icon-towers {
	background-position: 0 -44px;
}
.icon-kills {
	background-position: -44px -22px;
}


/** Night mode **/
		
body.night {
	background-color: #343434;
	color: #fff;
}

body.night a,
body.night a:visited {
	color: #fff;
}

body.night #container {
	border: 2px solid #fff;
}

body.night input,
body.night select,
body.night textarea {
	background-color: #A3A3A3;
	color: #fff;
}

body.night *::-webkit-input-placeholder {
	color: #CCCCCC;
}

body.night #tabList li {
	color: grey;
}

body.night #tabList li.selected {
	color: #fff;
}

body.night .white_content {
	background-color: #343434;
}

body.night #tabList li {
	color: white;
}

body.night #tabList li.selected,
body.night #tabList li:hover {
	background-color: #eee;
	color: #333;
}

body.night .teams > div:first-of-type,
body.night .bans .blue-bans,
body.night .pps > div:first-of-type {
	background-color: #3E3E5C;
}

body.night .teams > div:last-of-type,
body.night .bans .red-bans,
body.night .pps > div:last-of-type {
	background-color: #523636;
}

body.night .ptxt > div {
    background-color: #2e562a;
    padding: 15px 0px 10px 0px;
}

body.night div.white_content a.close {
  color: #fff;
}

body.night #btn-logout {
	background-image: url('../img/logout-white.png');
}

/** Pinku mode **/
        
body.pinku {
    background-color: #ffc1cb;
    color: #fff;
}
body.pinku a,
body.pinku a:visited {
    color: #fff;
}
body.pinku #container {
    border: 2px solid #fff;
}
body.pinku input,
body.pinku select,
body.pinku textarea {
    background-color: #ffcdd5;
    color: #fff;
}
body.pinku *::-webkit-input-placeholder {
    color: #dbb8bd;
}
body.pinku #tabList li {
    color: #ffcdd5;
}
body.pinku #tabList li.selected {
    color: #fff;
}
body.pinku .white_content {
    background-color: #343434;
}
body.pinku #tabList li {
    color: white;
}
body.pinku #tabList li,
body.pinku #tabList li{
    background-color: #eee;
    color: #ffc1cb;
}
body.pinku .teams > div:first-of-type,
body.pinku .bans .blue-bans,
body.pinku .pps > div:first-of-type {
    background-color: #3E3E5C;
}
body.pinku .teams > div:last-of-type,
body.pinku .bans .red-bans,
body.pinku .pps > div:last-of-type {
    background-color: #ff758b;
}

body.pinku .ptxt > div {
    background-color: #15ff00;
    padding: 15px 0px 10px 0px;
}

body.pinku div.white_content a.close {
  color: #fff;
}
body.pinku #btn-logout {
    background-image: url('../img/logout-white.png');
}