/*! 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;
}

li {
    text-align: center;
}


/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

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: 21.5%;
}

#tablist-container {
    position: relative;
    float: left;
}

ul#tabList {
    float: left;
    padding: 0px;
    margin: 0px;
    margin-left: -65px;
}

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;
}

#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;
}

#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;
}

#edit,
#create {
    width: inherit;
}

#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,
.veto-tab {
    width: inherit;
}

input:disabled {
    background: #dddddd;
}

.bans>div,
.picks>div {
    width: 50%;
    float: left;
}

.pps {
    text-align: left;
}

.pps,
.teams,
.bans {
    float: left;
    width: 100%;
}

.pps>div,
.teams>div,
.bans>div {
    float: left;
    width: 50%;
}

#div-thread-info {
    float: left;
    position: relative;
    left: 50%;
}

#div-thread-info>table {
    position: relative;
    left: -50%;
}

#event-name {
    width: 350px;
}

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 .winner,
div.game-infos .game-map {
    width: 135px;
}

#series-result {
    width: 45px;
}

#winners-context {
    width: 696px;
}

#losers-context {
    width: 696px;
}

.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;
}


/*
.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,
select {
    padding: 3px 5px;
}

.players {
    float: left;
    margin-left: 10%;
    margin-right: 4px;
}

.side-scores,
.teams-input {
    margin-left: 10%;
    margin-right: auto;
    float: left;
}

.picks,
.scores,
.scores-adr,
.scores-rating {
    float: left;
}

.players input,
.picks input,
.scores input,
.scores-adr input,
.side-scores input {
    margin-bottom: 5px;
}

.side-scores input {
    width: 39px;
}

.main-teams {
    margin-left: -28px;
    padding-bottom: 10px;
}

.main-teams input {
    text-align: center;
    width: 194px;
}

.maps-left {
    float: left;
    margin-left: 25%;
    margin-right: 4px;
}

.select-maps,
.maps-right {
    float: left;
    margin-right: 4px;
}

.select-maps input {
    width: 150px;
}

.maps-left input,
.select-maps input,
.maps-right 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
}

.players span {
    width: 130px;
    margin-right: 15px;
    display: inline-block;
}

.players span:after {
    cursor: move;
}

.scores input {
    width: 27px;
}

.scores-adr input {
    width: 42px;
    margin-bottom: 5px;
}

.scores-rating input {
    width: 32px;
    margin-bottom: 5px;
}

#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;
}

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;
}

#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;
    }
}

#instructions-popup {
    text-align: center;
}

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;
}

#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 gray;
    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;
}


/** 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: #6d6d6d;
    border-color: black;
    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 div.white_content a.close {
    color: #fff;
}

body.night #btn-logout {
    background-image: url('../img/logout-white.png');
}


/** Melon mode **/

body.melon {
    background-color: #94D4A8;
    color: black;
}

body.melon .hr {
    border-top: black;
}

body.melon a,
body.melon a:visited {
    color: black;
}

body.melon #container {
    border: 2px solid black;
}

body.melon input,
body.melon select,
body.melon textarea {
    background-color: #DAD8A7;
    color: black;
}

body.melon *::-webkit-input-placeholder {
    color: grey;
}

body.melon #tabList li {
    background-color: #EFFAB4;
}

body.melon #tabList li.selected {
    color: #EFFAB4;
}

body.melon .white_content {
    background-color: #7FC7AF;
}

body.melon #tabList li {
    color: black;
}

body.melon #tabList li.selected,
body.melon #tabList li:hover {
    background-color: #D1F2A5;
    color: grey;
}

body.melon #div-tablist button {
    background-color: #f08080;
    color: green;
}

body.melon div.white_content a.close {
    color: #fff;
}

body.melon #btn-logout {
    background-image: url('../img/logout-white.png');
}