/* Colors from: https://flatuicolors.com/palette/gb */

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    color: #192a56;
}

h1 {
    font-size: 50px;
}

h1, h2 {
    color: #192a56;
    text-transform: uppercase;
    font-weight: 700;
}

#main {   
    height: 100%;
}

.red:hover {
    opacity: 0.8;
}

.pullright {
    float: right;
}

.red {
    color: #e84118;
}

.button {
    margin-bottom: 0;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    border: 0;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.button-space {
    margin: 3px;
}

.button-large {
    font-size: 20px;
    text-transform: uppercase;
    padding: 10x 18px;
}

.button:disabled {
    opacity: 0.5;
}

.button-disabled, .button-disabled:hover {
    opacity: 0.5;
    pointer-events: none;
}

.button-green {
    background-color: #44bd32;
    color: white;
}

.button-green:hover {
    background-color: #4cd137;
}

.button-blue {
    background-color: #192a56;
    color: white;
}

.button-blue:hover {
    background-color: #273c75;
}

.button-yellow {
    background-color: #e1b12c;
}

.button-yellow:hover {
    background-color:   #fbc531;
}

.button-red {
    background-color: #c23616;
    color: white;
}

.button-red:hover {
    background-color:   #e84118;
}

.table {
    border-spacing: 0;
}

.table td {
    padding: 5px 10px;
    border-bottom: 1px solid #dcdde1;
    margin:0;
}

.table th {
    padding: 5px 10px;
    border-bottom: 2px solid #dcdde1;
    margin:0;
}

.table tr.green {
    background-color: #b7ffac;   
}

input[type=text].input, input[type=number].input {
    padding: 6px 12px;
}

/* BLOCK: Left panel */

#left {
    position: fixed;    
    padding: 10px 300px 10px 10px;
    text-align: center;
    height: 100%;
    width: -webkit-fill-available;
    display: grid;
}

#content {
    margin: auto;
}

#button-continue-game, #button-start-game {
    display: none;
}

#content-help, #content-image, #content-word, #content-letters, #content-buttons {
    display: none;
}

#content-image {
    padding-bottom: 70px;
}

#content-word {
    font-size: 40px;
    padding-bottom: 50px;
    letter-spacing: 0.3em; 
}

#content-help {
    padding-bottom: 50px;
    font-size: 20px;
}

#content-buttons {
    padding-top: 30px;
}

/* SUB-BLOCK: Welcome screen */
 
/* END SUB-BLOCK: Welcome screen */

/* END BLOCK: Left panel */

/* BLOCK: Right panel */
  
#right {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-color: #f5f5f5;
    padding: 20px;

    margin: 0;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;
}

#right-up {
    -ms-flex: 1;
    -webkit-flex: 1;
    flex: 1;
}

#right-questions {
    text-align: center;
    padding-bottom: 20px;
    display:none;
}

#right-down {
    padding-bottom: 40px;
    display: none;
}

#right-pullright i {
    padding-top: 7px;
    opacity: 0.5;   
    cursor: pointer;
}

#right-pullright i:hover {
    opacity: 1;
}

#right h2 {
    margin: 0;
    padding-bottom: 20px;
    pointer-events: none;
}

#right .contestant-item {
    background-color: #0097e6;
    color: white;
    padding: 10px;
    margin-bottom: 5px;
    border-left: 6px solid #7f8fa6;
    cursor: pointer;
}

#right .contestant-item.contestant-item-blue {
    background-color: #273c75;
}

#right .contestant-item.contestant-item-red {
    background-color: #c23616;
}

#right .contestant-item.contestant-item-yellow {
    background-color: #e1b12c;
}

#right .contestant-item.contestant-item-green {
    background-color: #44bd32;
}

#right .contestant-item.contestant-item-purple {
    background-color: #8c7ae6;
}

#right .contestant-item.contestant-item-gray {
    background-color: #718093;
}

#right .contestant-item.contestant-item-black {
    background-color: #2f3640;
}

#right .contestant-item:hover {
    opacity: 0.9;
}

#right .contestant-item.contestant-item-disabled, #right .contestant-item.contestant-item-disabled:hover {
    background-color: #a9b1bb;
    border-left: 6px solid #a9b1bb;;
    cursor: initial;
    opacity: 1;
}

#right .contestant-item.actual{
    border-left: 6px solid #e84118;
}

#right .contestant-name {
    display: inline;
}

#right .contestant-score {
    display: inline;  
    float: right;  
    padding-right: 10px;
}

#right #contestants-score {
    text-align: center;
    margin-top: 20px;
    padding: 20px 0;    
    background-color: #dcdde1;
    display: none;
}

#right #contestants-score-text {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 5px;
}

#right #contestants-score-number {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
}

/* END BLOCK: Right panel */

/* BLOCK: Modal settings */

.modal {
    display: none;
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #000;
    background-color: rgba(0,0,0,0.7);
}
  
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}
  
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
  
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.settings-button {
    display:inline;
    background-color: #192a56;
    color: #fff;
    padding: 7px 15px;
    cursor: pointer;
}

.settings-button:hover {
    background-color: #273c75;
}

.settings-page {
    display: none;
    padding-top: 10px;
}

.settings-table-row-name {
    width: 300px;
}

#settings-table-contestants i.link, #settings-table-questions i.link, #settings-table-houses i.link {
    cursor: pointer;
}

.settings-table-row-score {
    width: 50px;
    text-align: center;
}

.settings-table-row-moveUp, .settings-table-row-moveDown {
    width: 50px;
    text-align: center;
    color: #718093;
}

.settings-table-row-delete {
    width: 50px;
    text-align: center;
    color: #c23616;
}

.settings-table-row-edit {
    width: 50px;
    text-align: center;
    color: #718093;
}

.settings-table-row-visibility {
    width: 50px;
    text-align: center;
    color: #718093;
}

#settings-table-contestant-input-edit, #settings-table-contestant-input-new,
#settings-table-question-input-edit, #settings-table-question-input-new {
    display: none;
}

#settings-table-question-input-new input {
    margin-bottom: 5px;
}

#settings-table-question-input-new label {
    width: 100px;
    display:inline-block;
}

/* END BLOCK: Modal settings */