/**
 * SIM PROJETOS THEME CORE STYLESHEET
 */

@import url('https://fonts.googleapis.com/css?family=Roboto+Condensed:300,400|Roboto:100,300,400&display=swap');



/**********************************************************************************************************************/
/*** DEFAULTS                                                                                                         */
/**********************************************************************************************************************/

:root {
    --font-size: 14px;
    --font-color: #dddddd;
    --font-solitaire-color: #dddddd;
    --title-color: #dddddd;
    --title-solitaire-color: #dddddd;

    /* BASIC COLORS */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-light: #ffffff;
    --color-dark: #333333;
    --color-default: #999999;

    /* CONTEXTUAL COLORS */
    --color-primary: #2196f3;
    --color-primary-counter: #ffffff;
    --color-primary-alpha: rgba(33, 150, 243, .5);
    --color-primary-alpha-counter: #ffffff;

    --color-secondary: #777777;
    --color-secondary-counter: #222222;
    --color-secondary-alpha: rgba(119, 119, 119, .5);
    --color-secondary-alpha-counter: #222222;

    --color-info: #00bcd4;
    --color-info-counter: #ffffff;
    --color-info-alpha: rgba(0, 188, 212, .5);
    --color-info-alpha-counter: #ffffff;

    --color-success: #4caf50;
    --color-success-counter: #ffffff;
    --color-success-alpha: rgba(76, 175, 80, .5);
    --color-success-alpha-counter: #ffffff;

    --color-warning: #ffb346;
    --color-warning-counter: #ffffff;
    --color-warning-alpha: rgba(255, 179, 70, .5);
    --color-warning-alpha-counter: #ffffff;

    --color-danger: #f44336;
    --color-danger-counter: #ffffff;
    --color-danger-alpha: rgba(244, 67, 54, .5);
    --color-danger-alpha-counter: #ffffff;
}

html {
    font-size: var(--font-size);
}
body {
    background: #333333;
    font-family: 'Roboto', sans-serif;
}
body, p, span, td, th {
    color: var(--font-color);
}

div {
    border-width: 0;
}
audio {
    width: 100%;
}


/**********************************************************************************************************************/
/*** LAYOUT                                                                                                           */
/**********************************************************************************************************************/

header {
    height: 50px;
}
header a{
    display: inline-block;
}

/* Small devices (768px or less) */
@media (max-width: 768px) {
    header {
        height: auto;
    }
}


/**********************************************************/
/*** BOXES                                                */
/**********************************************************/

.game-box {
    display: grid;
    height: calc(100vh - 50px);
    grid-template-rows: auto 270px;
    grid-template-columns: auto;
    grid-template-areas: "content" "main-panel";
    font-family: 'Roboto Condensed', sans-serif;
}
.game-box .content {
    grid-area: content;
}
.game-box .main-panel {
    grid-area: main-panel;

    display: flex;
}
.game-box .main-panel .box-turn {
    width: 200px;
    min-width: 200px;
}
.game-box .main-panel .box-actions {
    flex: 1 1 auto;
}
.game-box .main-panel .box-sections {
    display: flex;
    flex-direction: column;
    width: 150px;
    min-width: 150px;
}

/* Small devices (768px or less) */
@media (max-width: 768px) {
    .game-box {
        display: grid;
        height: auto;
        grid-template-rows: auto auto;
        grid-template-columns: auto;
        grid-template-areas: "content" "main-panel";
    }
    .game-box .content {
        min-height: 400px;
    }
    .game-box .main-panel {
        flex-direction: column;
        min-height: 300px;
    }
    .game-box .main-panel .box-turn,
    .game-box .main-panel .box-actions,
    .game-box .main-panel .box-sections {
        width: auto;
        border: none;
    }
}

.box-info-large {
    width: 60px;
    margin: 10px auto 0 auto;
    padding: 5px 2px;
    border: 1px solid #78c0a4;
    border-radius: 5px;
    background: transparent;
    font-size: 2em;
    text-align: center;
    text-decoration: none;
    color: #78c0a4;
}

.box-info-small {
    width: 40px;
    margin: 10px auto 0 auto;
    padding: 5px 2px;
    border: 1px solid #78c0a4;
    border-radius: 5px;
    background: transparent;
    font-size: 1.2em;
    text-align: center;
    text-decoration: none;
    color: #78c0a4;
}

.box-turnActionMessages {
    margin: 10px;
    padding: 10px 10px 10px 25px;
    border-radius: 5px;
}
.box-turnActionMessages.info {
    border: 1px solid #4dd0e1;
    color: #4dd0e1;
}
.box-turnActionMessages.warning {
    border: 1px solid #fff176;
    color: #fff176;
}
.box-turnActionMessages.danger {
    border: 1px solid #e57373;
    color: #e57373;
}
.box-turnActionErrors {
    margin: 10px;
    padding: 10px 10px 10px 25px;
    border-radius: 5px;
}

.box-projectIndicators {
    width: 360px;
    min-width: 360px;
}
.box-projectCosts {
    width: 360px;
    min-width: 360px;
}
.box-projectTasks {
    width: 100%;
}
.box-tasks {
    height: 400px;
    overflow-y: scroll;
}
.box-market {
    max-width: 50%;
}
.box-inventoryItems {
    height: 400px;
    overflow-y: scroll;
}
.box-marketItems {
    height: 400px;
    overflow-y: scroll;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
}
.box-projectMembers {
    height: 400px;
    overflow-y: scroll;
}
.box-actorsToHire {
    height: 400px;
    overflow-y: scroll;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
}

.box-rounds {
    height: 396px;
    overflow-y: scroll;
}
.box-rounds ul.list li {
    display: block;
}

/* Small devices (768px or less) */
@media (max-width: 768px) {
    .box-projectIndicators,
    .box-projectCosts {
        width: auto;
    }
    .box-market {
        max-width: unset;
    }
}


/**********************************************************/
/*** BUTTONS                                              */
/**********************************************************/

.btn-turn {
    display: block;
    width: 100%;
    padding: 5px 2px;
    border: 1px solid #78c0a4;
    border-radius: 5px;
    background: #52ac89;
    text-align: center;
    text-decoration: none;
    color: #044b30;
}
.btn-turn:hover,
.btn-turn.active {
    background: #8adebe;
    border: 1px solid #8adebe;
    text-decoration: none;
    color: #044b30;
}

.btn-section {
    padding: 5px 2px;
    border: 1px solid #0e64e3;
    border-radius: 5px;
    background: #0c54be;
    text-align: center;
    text-decoration: none;
    color: #ddd;
}
.btn-section.active,
.btn-section:hover {
    background: #2b7ef9;
    border: 1px solid #2b7ef9;
    text-decoration: none;
    color: #fff;
}

.btn-close-game {
    padding: 5px 2px;
    border: 1px solid #777;
    border-radius: 5px;
    background: #444;
    text-align: center;
    text-decoration: none;
    color: #aaa;
}
.btn-close-game:hover {
    background: #555;
    text-decoration: none;
    color: #fff;
}

.btn-actionInsert {
    width: 100%;
    margin: 20px 0 0 0;
    padding: 6px 10px;
    border: 2px dashed #0c54be;
    border-radius: 5px;
    background: transparent;
    font-size: 0.875em;
    text-align: center;
    color: white;
}
.btn-actionInsert:hover {
    border: 2px dashed #0e64e3;
}

.btn-actionRemove {
    padding: 6px 10px;
    border: none;
    border-radius: 5px;
    background: #e57373;
    font-size: 0.875em;
    text-align: center;
    text-decoration: none;
    color: #ffcdd2;
}
.btn-actionRemove:hover {
    background: #ef9a9a;
    text-decoration: none;
    color: #ef5350;
}

.btn-startTask,
.btn-hireActor {
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid #78c0a4;
    border-radius: 5px;
    background: #52ac89;
    text-align: center;
    text-decoration: none;
    font-size: 0.875em;
    color: #044b30;
}
.btn-startTask:hover,
.btn-hireActor:hover {
    background: #8adebe;
    border: 1px solid #8adebe;
    text-decoration: none;
    color: #044b30;
}

.btn-marketItem {
    display: inline-block;
    width: 150px;
    margin: 10px;
    padding: 5px 2px;
    border: 1px solid #78c0a4;
    border-radius: 5px;
    background: #52ac89;
    text-align: center;
    color: #044b30;
}
.btn-marketItem:hover {
    background: #8adebe;
    border: 1px solid #8adebe;
    color: #044b30;
}
.btn-marketItem hr {
    margin: 5px 0;
}


/**********************************************************/
/*** LISTS                                                */
/**********************************************************/

ul.list-default{
    margin: 0;
    padding: 5px;
    list-style: none;
    background: transparent;
}
ul.list-default li{
    background: transparent;
}

ul.list {
    margin: 0;
    padding: 5px;
    list-style: none;
    background: #555;
}
ul.list li {
    display: flex;
    padding: 1px 0;
    font-size: 0.9em;
}


/**********************************************************/
/*** TABLES                                               */
/**********************************************************/

/* TABLES */
table.tbl-default {
    width: 100%;
    border-collapse: collapse;
    background: #555;
}
table.tbl-default th {
    vertical-align: middle;
    font-weight: normal;
    color: #64b5f6;
    padding: 10px;
}
table.tbl-default tr td {
    padding: 10px;
    border-top: 1px solid #888;
    vertical-align: middle;
}
table.tbl-default tr.row-inactive {
    color: #cccccc;
}
table.tbl-default tfoot td {
    font-weight: bold;
}


/**********************************************************/
/*** FORMS                                                */
/**********************************************************/

.frm-default {
    margin: 10px;
}
.frm-default label {
    display: block;
    margin: 0 0 3px 0;
    font-size: .875em;
    color: #9e9e9e;
}
.frm-default select,
.frm-default input {
    width: 100%;
    height: 30px;
    padding: 0 0 0 10px;
    border: 1px solid #0e64e3;
    border-radius: 5px;
    background: #393939;
    color: white;
}
.frm-default .inline {
    width: auto;
}
.frm-default .actions {
    height: 173px;
    overflow-y: scroll;
}

.frm-tasks select {
    background: #444;
}


/**********************************************************/
/*** MISC                                                 */
/**********************************************************/

.gauge {
    position: relative;
    min-width: 80px;
    border: 1px solid #3674d0;
}
.gauge .bar {
    background: #3674d0;
    height: 17px;
}
.gauge span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.9em;
}

.sort {
    padding: 0;
    border: 0;
    color: #64b5f6;
    background: transparent;
}
.sort:after {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid transparent;
    content: "";
    position: relative;
    top: -10px;
    right: -5px;
}
.sort.asc:after {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #64b5f6;
    content: "";
    position: relative;
    top: 4px;
    right: -5px;
    color: #64b5f6;
}
.sort.desc:after {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #64b5f6;
    content: "";
    position: relative;
    top: -4px;
    right: -5px;
}

/* TOOLTIPS */
span[data-tt] {
    position: relative;
    text-decoration: underline;
    color: #00F;
    cursor: help;
}
span[data-tt]:hover::after {
    content: attr(data-tt);
    position: absolute;
    left: 0;
    top: 24px;
    min-width: 200px;
    border: 1px #aaaaaa solid;
    border-radius: 10px;
    background-color: #ffffcc;
    padding: 12px;
    color: #000000;
    font-size: 14px;
    z-index: 1;
}


/**********************************************************************************************************************/
/*** HELPERS                                                                                                          */
/**********************************************************************************************************************/

/* MOUSE CURSORS */
.mouse-grap {
    cursor: grab;
}

/* HORIZONTAL RULES */
hr.separator {
    width: 75%;
    margin: 30px auto;
    height: 1px;
    border: none;
    color: #e0e0e0;
    background-color: #e0e0e0;
}

/* POSITIONING */
.valign-middle {
    vertical-align: middle;
}

/* ICONS */
.icon-sm {
    font-size: 0.8rem;
}
.icon-md {
    font-size: 1.2rem;
}
.icon-lg {
    font-size: 1.5rem;
}
.icon-xg {
    font-size: 1.8rem;
}
.icon-2x {
    font-size: 2rem;
}
.icon-3x {
    font-size: 3rem;
}
.icon-4x {
    font-size: 4rem;
}
.icon-5x {
    font-size: 5rem;
}

.text-icon {
    color: #9e9e9e;
}
.text-icon:hover {
    text-decoration: none;
}

.heading-icon {
    font-size: 0.6em !important;
    color: #9e9e9e;
}
.heading-icon:hover {
    text-decoration: none;
}

.span-link i {
    color: var(--color-primary);
    cursor: pointer;
}
.span-link i:hover {
    color: var(--color-primary-alpha);
}

/* ANIMATIONS */
.blink {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 40px #ffff00;
}

/* IMAGES */
.img-50x50 {
    max-width: 50px;
    max-height: 50px;
}
.img-100x100 {
    max-width: 100px;
    max-height: 100px;
}
.img-160x45 {
    max-width: 160px;
    max-height: 45px;
}
.img-50x100 {
    max-width: 50px;
    max-height: 100px;
}



/**********************************************************************************************************************/
/*** THIRD PART INTEGRATION                                                                                           */
/**********************************************************************************************************************/

/* SWEET ALERT 2 */
h2.swal2-title {
    padding: 15px 0 0 0 !important;
    font-size: var(--font-size) !important;
}

.swal2-html-container {
    font-size: var(--font-size) !important;
}
.swal2-html-container i {
    margin-bottom: 15px;
}
