body {
    font-family: 'Lato', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    position: relative;
    height: 100vh;
}
select:focus {
    outline: none;
}
.header {
    background-color: #F7F7F7;
    color: #333333;
    min-height: 50px;
    padding: 10px 5px;
}
#container {
    position: relative;
    min-width: 500px;
    height: 80%;
}
#container:after {
    background-image: url('../images/diamanticarati.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    height: 120px;
    max-width: 420px;
    opacity: .7;
    width: 100%;
}
.live-prices {
    display: inline-block;
    margin-right: 25px;
}

.gold-label {
    color: #c58523;
}

.silver-label {
    color: #777;
}

#last-updated-prices-div {
    font-size: 10px;
    margin-top: 5px;
    text-align: right;
    font-weight: normal;
}

.gold-price {
    margin-right: 10px;
}

body.night_view .gold-price, body.night_view .silver-price {
    color: #fff;
}

body.night_view #last-updated-prices-div {
    color: #999;
}

.ofchart_title {
    margin-top: 0;
    color: #333333;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

.ofchart_subtitle {
    color: #333333;
    font-size: 14px;
    font-weight: normal;
    text-align: center;
}

#ofchart_controls {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    font-family: 'Lato', sans-serif;
    font-weight: bolder;
    position: relative;
    white-space: nowrap;
    padding: 10px;
}

body.day_view #ofchart_controls {
    background-color: rgba(0, 0, 0, 0.1);
}

body.night_view #ofchart_controls {
    background-color: rgba(255, 255, 255, 0.3);
}

.ofchart_left {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    width: 70%;
    width: calc(100% - 370px);
}

#ofchart_timeframe {
    border: 1px solid #c58523;
    border-radius: 3px;
    display: block;
    font-size: 0;
    margin: 0 3px;
}

.ofchart_right {
    box-sizing: border-box;
    text-align: right;
    width: 360px;
}

.clr {
    clear: both;
}

#ofchart_timeframe .ofchart_button {
    color: #342621;
    cursor: pointer;
    display: inline-block;
    padding: 3px 5px;
    font-size: 13px;
    font-weight: normal;
    min-width: 30px;
    height: 25px;
    line-height: 25px;
    margin: 0;
    text-align: center;
    position: relative;
}

#ofchart_timeframe .ofchart_button::before {
    background: #c58523;
    content: '';
    height: 35%;
    position: absolute;
    top: 50%;
    right: -1px;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 1px;
}

#ofchart_timeframe .ofchart_button.selected {
    background-color: #c58523;
    border-color: #c58523;
    color: #FFFFFF;
}
#ofchart_timeframe .ofchart_button:last-child::before,
#ofchart_timeframe .ofchart_button.selected::before {
    content: unset;
}

.ofchart_button.agx.selected {
    background-color: #999;
    border-color: #999;
    color: #FFFFFF;
}

.ofchart_left>.ofchart_list,
.ofchart_list {
    background-color: #FFFFFF;
    border: 1px solid #c58523;
    border-radius: 3px;
    color: #000000;
    font-size: 13px;
    height: 33px;
    padding: 3px;
    width: 80px;
}

@media only screen and (max-width: 1050px) {
    #ofchart_controls {
        display: block;
        text-align: center;
    }
    .ofchart_left {
        width: 100%;
    }
    .ofchart_left>* {
        display: inline-block;
        font-size: 0;
    }
    .ofchart_list {
        margin: 0 3px;
    }
    .ofchart_right {
        display: inline-block;
    }
    .live-prices {
        margin: 15px 0 0 0;
        text-align: center;
        width: 100%;
    }
    #last-updated-prices-div {
        text-align: center;
    }
    #ofchart_timeframe_wrap {
        position: relative;
        left: 45px;
    }
}
@media only screen and (max-width: 991px) {
    #ofchart_timeframe_wrap {
        left: unset;
    }
}

@media only screen and (max-width: 767px) {
    .ofchart_left {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
    .ofchart_right {
        max-width: 360px;
        width: 100%;
    }
    #ofchart_timeframe_wrap {
        order: 1;
        margin: 15px 50px 0 50px;
    }
    #ofchart_timeframe {
        overflow-y: scroll;
    }
    #container {
        min-width: 100%;
    }
    .ofchart_left>.ofchart_list,
    .ofchart_list {
        height: 44px;
        width: 132px;
    }
    #ofchart_timeframe .ofchart_button {
        height: 38px;
        line-height: 38px;
    }
}
@media only screen and (max-width: 500px) {
    #ofchart_timeframe_wrap {
        margin: 15px 0 0 0;
        overflow: hidden;
    }
    .ofchart_left>.ofchart_list,
    .ofchart_list {
        width: 90px;
    }
    .live-prices {
        font-size: 14px;
    }
}
