@import 'partials/colours';
@import 'partials/form_elements';

@font-face {
    font-family: 'fontello';
    src: url('../assets/fonts/fontello.eot?66028575');
    src: url('../assets/fonts/fontello.eot?66028575#iefix') format('embedded-opentype'),
    url('../assets/fonts/fontello.woff?66028575') format('woff'),
    url('../assets/fonts/fontello.ttf?66028575') format('truetype'),
    url('../assets/fonts/fontello.svg?66028575#fontello') format('svg');
    font-weight: normal;
    font-style: normal;
}


.demo-icon
{
    font-family: "fontello";
    font-style: normal;
    font-weight: normal;
    speak: none;

    display: inline-block;
    text-decoration: inherit;
    width: 1em;
    margin-right: 0.2em;
    text-align: center;

    // For safety - reset parent styles, that can break glyph codes
    font-variant: normal;
    text-transform: none;

    // Font smoothing. That was taken from TWBS
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

$ibg: map-get(map-get($colors, dsst), light);
$ybg: map-get(map-get($colors, dsst), 'yellow');
$dbg: nth(map-get($colors, dark), 1);
$text: $dbg;
$bbg: map-get(map-get($colors, background), dark);
$lbg: nth(map-get($colors, light), 1);

$mbg: $ibg;

$largefr: 1.44rem;
$mediumfr: 1.2rem;
$defaultfr: 1rem;
$smallfr: 0.833rem;
$tinyfr: 0.694rem;

$grid-gap: 1rem;

body {
    align-content: center;
    background-color: $dbg;
    color: $text;
    font-family: Helvetica, sans-serif;
    font-size: 16px;
    font-weight: normal;
    display: flex;
    justify-content: center;
    height: 100%;
    overflow: hidden;
}

// @media (prefers-color-scheme: dark) {
//   body {
//     color: #ddd;
//     background-color: #222;
//   }

//   main {
//       background-color: #373736;
//   }
//   section {
//       background-color: #373736;
//   }
//   #source-modal {
//       background-color: #373736;
//   }
//   .deposit-stock-ratio {
//       background-color: #353531;
//   }
// }

html, body {
    height: 100%;
}

html, body, * {
    border: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.iconset {
    display: none;
}

main {
    background-color: $ibg;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    width: 1024px;
    height: 680px;
}

input, label {
    font-size: $smallfr;
}

input[type=range] {
    max-width: 10rem;
}

a {
    color: $lbg;
    text-decoration: none;
}

table {
    width: 50%;
}

td:nth-child(2) {
    font-family: monospace;
}

aside,
header,
section {
    background-color: #fafafa;
}

header {
    .factbox-title {

        font-size: $largefr;
        font-weight: bold;
        border: 0;
    }

    .factbox-description {
        font-weight: normal;
    }

    #source-modal {
        background-color: #f7f7f6;
        box-shadow: 1px 1px 20px 1px #847d71;
        height: 42rem;
        left: 0;
        margin: 0 auto;
        right: 0;
        overflow: auto;
        padding: 1rem 2.5rem;
        position: absolute;
        top: 0.35rem;
        width: 55rem;
        z-index: 1000;
        h3, h4 {
            margin: 0.5rem 0;
        }

    }
}

h1 a {
    float: right;
}

.samplers {
    display: flex;
    justify-content: space-between;

    .reference-group-title {
        margin: 0.6rem 0;
    }

    .reference-group {
        padding: 0.2rem 0.5rem 0;
        background-color: #e5e5e1;
    }

    .icon-array {
        border: 1px solid $lbg;
    }

    .investment-options-ratio {
        display: flex;
        justify-content: space-between;
    }

    .investment-option-selector {
        display: flex;
        flex-direction: column;
        font-weight: bold;

        select {
            font-size: $smallfr;
        }
    }

    .investment-option-selector-left {
        align-content: flex-end;
    }
    .investment-option-selector-right {

    }

    .investment-options-range-labels {
        font-weight: bold;
        display: flex;
        justify-content: space-between;
    }
}

aside {

    display: flex;
    justify-content: space-between;
    align-items: center;

    .overview {
        text-align: right;
    }

    // custom element
    sampler-textual {
        display: flex;
        justify-content: center;
        min-height: 9rem;
        text-align: center;
    }

    .current-sample > p {
        margin: 0.5em 0;
    }

    .current-sample-number {
        border-radius: 50%;
        color: $ibg;
        display: inline-block;
        font-family: monospace;
        font-size: $mediumfr;
        font-weight: bold;
        height: 5rem;
        line-height: 5rem;
        width: 5rem;
    }
}

.controls-sample-size-reset {
    display: flex;
    justify-content: space-between;
}

.buttons {
    display: flex;
    flex-direction: column;
    justify-content: space-around;

    input {
        display: none;
    }

    .form-item {
        padding: 1rem;
        text-align: center;
    }
}

button.sample {
    padding: 1rem;
}

.groupsize, .period {
    display: flex;
    flex-direction: column;

    .input-radio ~ label {
        font-size: $tinyfr;
        width: 7.5rem;
        height: 2rem;
        line-height: 1.2rem;
        text-align: center;
    }

    .input-label {
        font-size: $smallfr;
    }

    .size-selectors, {
        display: flex;
    }
}

footer {

    display: flex;
    justify-content: center;
    padding-top: 1rem;

    label {
        font-size: $smallfr;
    }
}
