/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
  
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}

.animation-default {
    -webkit-transition: all 0.35s ease;
    -moz-transition: all 0.35s ease;
    -ms-transition: all 0.35s ease;
    -o-transition: all 0.35s ease;
    transition: all 0.35s ease;
}
.animation-transform {
    -webkit-transition: transform 0.35s ease;
    -moz-transition: transform 0.35s ease;
    -ms-transition: transform 0.35s ease;
    -o-transition: transform 0.35s ease;
    transition: transform 0.35s ease;
}

.animation-opacity-transform {
    -webkit-transition: opacity 0.35s ease, transform 0.35s ease;
    -moz-transition: opacity 0.35s ease, transform 0.35s ease;;
    -ms-transition: opacity 0.35s ease, transform 0.35s ease;;
    -o-transition: opacity 0.35s ease, transform 0.35s ease;;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
  cursor: pointer;
}
a:hover {
    opacity: 0.7;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

html {
    overflow: hidden;
    color: #0D2840;
}

body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;

    color: #0D2840;
    background-color: #FFFFFF;
    font-family: 'Nunito', sans-serif;
}

p {
    margin: 0;
}

a {
    color: #89C2D9;
    text-decoration: none;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    width: 100%;
    height: 50px;
    border-radius: 5px;
    padding: 0 8px 0 8px;
    border: 2px solid #0D2840;
    font-weight: bold;
    -webkit-appearence: none;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    -webkit-appearence: none;
}

input[type="text"].with-label,
input[type="password"].with-label,
input[type="email"].with-label,
textarea.with-label,
select.with-label {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

label {
    font-size: 1.2em;
    margin-bottom: 8px;
}
.label-main {
    /*background-color: #0D2840;*/
    border-top: 2px solid #0D2840;
    border-left: 2px solid #0D2840;
    border-right: 2px solid #0D2840;
    padding-bottom: 8px;
    padding-top: 8px;
    display: block;
    border-radius: 5px 5px 0 0;
    margin-bottom: 0;
}
.label-main.full {
    border-bottom: 2px solid #0D2840;
    border-radius: 5px;
}

button {
    height: 50px;
    width: 100%;

    border-radius: 5px;
    border: none;

    background-color: #89C2D9;
    color: #FFFFFF;
    cursor: pointer;

    font-weight: bold;
}
button:focus {
    border: none;
    outline: none;
}
    button * {
        color: #FFFFFF;
        font-weight: bold;
    }
button.btn-join {
    background-color: #89C2D9;
}
.container-btn-checkbox {
    float: left;
    width: 50%;
    height: 40px;
    margin-bottom: 8px;
}
    .sub-cbc {
        padding: 8px;
    }
button.btn-checkbox {
    height: 100%;
    /*border: 2px solid #87AA66;*/
    border-radius: 5px;
    opacity: 0.5;
}
button.btn-checkbox.checked {
    background-color: #89C2D9;
    opacity: 1;
}
button:hover {
    opacity: 0.7;
}
button.btn-checkbox:hover {
    opacity: 1;
}

.container {
    height: 100%;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}
.container.party {
    overflow-y: hidden;
    overflow-x: hidden;
    overflow: hidden;
}
.container::after {
   content: "";
   display: block; 
   clear: both;
}

/** HOMEPAGE **/
#card {
    width: 380px;
    padding: 32px;
    margin: 32px auto 32px auto;

    border-radius: 10px;
    border: 3px solid #89C2D9;
}
    #card .logo {
        text-align: center;
        margin-bottom: 16px;
    }
    #card > .pseudo {
        text-align: center;
        margin-bottom: 16px;
    }
        #card > .pseudo h1 {
            margin-bottom: 0;
        }

    #card > .choices {
        text-align: center;
    }

#rules {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 100;
}
    #rules > div {
        padding-top: 32px;
        margin: auto;
        width: 380px;
    }

.join {
    margin-bottom: 16px;
}
.join::after,
.choose::after {
    content: "";
    clear: both;
    display: block;
}
    .choose input,
    .join input {
        width: 50%;
        float: left;
        border-bottom-right-radius: 0px;
        border-top-right-radius: 0px;
        border-color: #89C2D9;
    }
    .choose button,
    .join button {
        width: 50%;
        float: left;
        border-bottom-left-radius: 0px;
        border-top-left-radius: 0px;
    }

.score-limit {
    margin-bottom: 16px;
}

.games-type {
    margin-bottom: 16px;
}
.games-type:after {
    content: "";
    clear: both;
    display: block;
}

.create {
    margin-bottom: 8px;
}
/** END OF HOMEPAGE **/


/** PARTY **/
.nav {
    height: 50px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;

    background-color: #89C2D9;
    color: #FFFFFF !important;
    font-weight: bold;
    text-align: center;
    line-height: 50px;
}
.nav::after {
    content: "";
    clear: both;
    display: block;
}
    .nav .hamburger {
        display: none;
        position: absolute;
        top: 10px;
        left: 10px;
    }
        .hamburger img {
            width: 50px;
            cursor: pointer;
        }

    .nav .code {
        text-align: left;
        float: left;
        width: 15%;
    }
        .nav .code p {
            padding-left: 32px;
        }
    .nav .creator {
        float: left;
        width: 85%;
    }

.dashboard {
    position: relative;
    padding-top: 50px;
    height: 100%;
}
.dashboard::after {
    content: "";
    clear: both;
    display: block;
}
    .dashboard ul {
        list-style: none;
        list-style-type: none;
        padding: 0;
    }
    .dashboard h4 {
        margin: 16px 0 8px 0;
        border-bottom: 2px solid #89C2D9;
        background: #89C2D9;
        color: #FFFFFF;
        padding: 8px;
        border-radius: 5px 0 0 5px;
    }

    .sidebar {
        height: 100%;
        width: 15%;
        position: absolute;
        top: 0;
        left: 0;
        float: left;
        overflow-y: hidden;
        overflow-x: hidden;
        overflow: hidden;
    }
        .sidebar .sidebar-content {
            height: 100%;
            border-right: 2px solid #89C2D9;
            overflow-y: auto;
            overflow-x: hidden;
            padding-top: 50px;
            padding-left: 32px;
            padding-bottom: 32px;
        }
        .chief li {
            font-size: 1em;
            color: #89C2D9;
            font-weight: bold;
        }
            .chief li small {
                font-weight: lighter;
            }
        .players li {
            font-weight: bold;
            margin-bottom: 16px;
            opacity: 0.5;
        }
        .players li.played {
            color: #3B74BF;
            opacity: 1;
        }
            .players li small {
                font-weight: lighter;
            }


    .board {
        height: 100%;
        width: 85%;
        position: absolute;
        top: 0;
        left: 15%;
        float: left;
        overflow-y: auto;
        overflow-x: hidden;
        /*overflow: hidden;*/
    }
        .board .board-content {
            /*height: 100%;*/
            overflow-y: hidden;
            overflow-x: hidden;
            padding-top: 58px;
            padding-left: 32px;
            padding-right: 32px;
            padding-bottom: 32px;
            margin-bottom: 32px;
        }
            .board-content .headline {
                position: relative;
                padding-right: 32px;
                border-bottom: 2px solid #0D2840;
                padding-bottom: 16px;
                padding-top: 16px;
                margin-bottom: 32px;
            }
            .board-content .headline h1 {
                font-size: 1.2em;
                margin: 0;
            }
            .board-content .next-round {
                position: fixed;
                left: 0;
                top: 0;
                height: 100%;
                width: 100%;
                text-align: center;
                background: rgba(255, 255, 255, 0.7);
                z-index: 1000;
                padding-top: 180px;
                display: inline-block;
            }
                .next-round button {
                    width: auto;
                    padding-left: 16px;
                    padding-right: 16px;
                    display: inline-block;
                }
            /*.board-content .next-round {*/
            /*    position: absolute;
                top: 0;
                left: 0;
                display: inline-block;
            }
                .board-content .next-round button {
                    padding-left: 16px;
                    padding-right: 16px;
                    display: inline-block;
                }*/
/** END OF PARTY **/

/** MANAGER **/
.manager-form textarea {
    height: 100px;
    padding-top: 8px;
}
.manager-form .label-main {
    padding-left: 8px;
}

.card-type {
    margin-bottom: 16px;
}
.card-type:after {
    content: "";
    clear: both;
    display: block;
}
    .card-type button {
        float: left;
        width: 50%;
        border-radius: 0;
        opacity: 0.5
    }
    .card-type button.active {
        opacity: 1;
        background-color: #89C2D9;
    }
/** END OF MANAGER **/

.mb8 { margin-bottom: 8px; }
.mb16 { margin-bottom: 16px; }
.mb32 { margin-bottom: 32px; }

.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt32 { margin-top: 32px; }

.mr8 { margin-right: 8px; }
.mr16 { margin-right: 16px; }
.mr32 { margin-right: 32px; }

.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt32 { margin-top: 32px; }

.fs08 { font-size: 0.8em; }
.fs09 { font-size: 0.9em; }
.fs10 { font-size: 1em; }
.fs11 { font-size: 1.1em; }
.fs12 { font-size: 1.2em; }
.fs13 { font-size: 1.3em; }
.fs14 { font-size: 1.4em; }
.fs15 { font-size: 1.5em; }

.align-center {
    text-align: center;
}

/*
 * Sidebar
 */

.d-none {
    display: none !important;
}

/*.nav-item-player {
  position: relative;
}
  .nav-item-player span {
    position: absolute;
    right: 8px;
    top: 33%;
    font-size: 0.55rem;
  }*/

/*#answerCardContainer,
#questionCardContainer {
  display: inline-block;
}*/
#answerCardContainer::after,
#questionCardContainer::after,
#otherQuestionCardContainer::after,
#playerHandContainer:after {
    content: "";
    clear: both;
    display: block;
}

.other-question-cards {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 100;
}
    .other-question-cards > div {
        margin: auto;

    }

.answer-cards.undistrib {
    bottom: -240px;
    opacity: 0;
    z-index: -100;
}
.answer-cards {
    z-index: 1;
    width: 150px;
    height: 200px;
    cursor: pointer;
    margin-right: 8px;
    margin-bottom: 8px;
    position: relative;
    bottom: 0px;
    opacity: 1;
    background-color: #EA4D50;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    float: left;
}
  .answer-cards.active {
    opacity: 0.7;
  }
  .answer-cards.inactive {
    opacity: 0.4;
  }
  .answer-cards p {
    margin-top: 16px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #FFFFFF;
  }
  .answer-cards.bmc p {
    color: #333;
  }
  .answer-cards.cah p {
    color: #1a1a1a;
  }
  .answer-cards img {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
  }
.question-cards.real.unset {
    transform: scale(0) !important;
}
.question-cards.real {
    transform: scale(1);
}
.question-cards.real.inactive {
    opacity: 0.5;
}
.question-cards.change {
    z-index: 101;
    cursor: pointer;
}
.question-cards.change:hover {
    opacity: 0.5;
}
.question-cards {
    width: 180px;
    height: 250px;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-block;
    position: relative;
    padding: 8px;
    background-color: #89C2D9;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);

    float: left;
}
    .question-cards p {
        margin-top: 16px;
        right: 0;
        font-size: 1rem;
        color: #FFFFFF;
    }
    .question-cards img {
        position: absolute;
        bottom: 10px;
        right: 10px;
        width: 50px;
    }
.as-answer-cards.set {
    /*display: inline-block;*/
    height: 250px;
    padding: 8px;

    transform: scale(1) !important;
    cursor: pointer;
}
.as-answer-cards {
    height: 0px;
    padding: 0;
    /*display: none;*/
    transform: scale(0);
}
.as-answer-cards.inactive {
    opacity: 0.5;
}
    .as-answer-cards p {
        /*font-size: 0.8rem;*/
        padding: 0;
    }
  
    .as-answer-cards.waiting img {
        /*width: 50%;
        top: 30%;
        right: 23%;*/
    }

@media (max-width: 1200px) {
    .nav .code {
        width: 25%;
    }
    .nav .creator {
        width: 75%;
    }

    .sidebar {
        width: 25%;
    }
    .board {
        width: 75%;
        left: 25%;
    }
}

@media (max-width: 767px) {
    /** HOMEPAGE **/
        .homepage #card {
            width: auto;
            border: 0;
            border: none;
        }

        #rules > div {
            padding-left: 32px;
            padding-right: 32px;
            width: auto;
        }
    /** END OF HOMEPAGE **/


    /** PARTY **/
    .nav {
        height: auto;
        line-height: normal;
        padding-top: 16px;
        padding-bottom: 16px ;
    }
        .nav .hamburger {
            display: block;
        }
        .nav .code {
            text-align: center;
            float: none;
            width: 100%;
        }
            .nav .code p {
                padding-left: 0;
            }
        .nav .creator {
            float: none;
            width: 100%;
        }

    .dashboard {
        padding-top: 76px;
    }

    @keyframes example {
        from {left: -100%;}
        to {left: 0;}
    }

    .sidebar {
        width: 100%;
        left: -100%;
        z-index: 10;
        background-color: #FFFFFF;
    }
    .sidebar.active {
        left: 0;
    }
        .sidebar .sidebar-content {
            padding-top: 85px;
            border: 0;
            border: none;
        }

    .board {
        left: 0;
        width: 100%;
        z-index: 1;
    }
        .board-content .headline h1 {
            font-size: 1em;
        }
        /*.board-content .next-round {
            position: fixed;
            height: 100%;
            text-align: center;
            background: rgba(255, 255, 255, 0.7);
            width: 100%;
            z-index: 1000;
            padding-top: 180px;
        }
            .next-round button {
                width: auto;
            }*/

        .board .board-content {
            padding-top: 85px;
        }

        #answerCardContainer,
        #questionCardContainer {
          display: block;
        }
    /** END OF PARTY **/

    .welcome-container {
        width: 100%;
        margin:auto;
        padding-top: 32px;
        padding-bottom: 32px;
    }
}