body {
    background-color: #0c1b33;
}

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

.content {
    padding: 10px;
    text-align: center;
}

.container {
    display: block;
    text-align: center;
    margin: 0 auto;
    
}

.help {
    color: #f7f3e3;
}

.coin {
    display: inline-block;
    border: 3px solid #f7f3e3;
    border-radius: 15px;
    margin: 10px;
    padding: 10px 20px 0 20px;
    background-color: #646165;
    color: #f7f3e3;
}

.coin h1 {
    margin: 0 auto;
    font-size: 2.25em;
}

.prices h2 {
    margin: 5px auto;
    font-size: 2em;
}

.prices h3 {
    display: inline-block;
    margin: 0 5px;
    padding: 0;
    font-size: 1.5em;
}

.coin h4 {
    margin: 5px auto;
    font-size: 1.25em;
}

.last-updated {
    font-size: 1em;
}

.expand-btn {
    display: inline-block;
    width: 100%;
    background-color: #0c6291;
    color: #f7f3e3;
    border: 2px solid #f7f3e3;
    border-radius: 15px;
    padding: 5px 0;
    margin: 5px auto;
}

.refresh-bar {
    width: 100%;
    float: left;
    height: 6px;
    background-color: #ff6b6b;
    border: none;
    margin: 8px 0 0 0;
    min-width: 1px;
}

.modal {
    display: none;
    background-color: #374a67;
    padding: 0 0 10px 0;
    margin: 10px 10%;
    border-radius: 15px;
    color: #f7f3e3;
}

.close-modal {
    margin: 0;
    padding: 5px;
    display: block;
    margin: 0 auto;
    width: 100%;
    background-color: #ff6b6b;
    border: none;
    border-radius: 15px;
    color: #f7f3e3;
}

.close-modal:hover {
    opacity: 0.6;
}

fieldset {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: block;
    border: none;
    /*border: solid 1px #CCC;*/
    min-width: 0;
    /*background-color: #FFF;*/
}

body:not(:-moz-handler-blocked) fieldset {
    display: table-cell;
}

.toggle {
    margin: 0;
    box-sizing: border-box;
    font-size: 0;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: stretch;
}

.toggle input {
    width: 0;
    height: 0;
    position: absolute;
    left: -9999px;
}
.toggle input + label {
    margin: 0;
    padding: .75rem 2rem;
    box-sizing: border-box;
    position: relative;
    display: inline-block;
    border: solid 1px #DDD;
    background-color: #100b00;
    font-size: 1rem;
    line-height: 140%;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    transition: border-color .15s ease-out,  color .25s ease-out,  background-color .15s ease-out, box-shadow .15s ease-out;
    /* ADD THESE PROPERTIES TO SWITCH FROM AUTO WIDTH TO FULL WIDTH */
    /*flex: 0 0 50%; display: flex; justify-content: center; align-items: center;*/
    /* ----- */
}

.toggle input + label:first-of-type {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.toggle input + label:last-of-type {
    border-radius: 0 6px 6px 0;
    border-left: none;
}

.toggle input:hover + label {
    border-color: #213140;
}

.toggle input:checked + label {
    background-color: #4B9DEA;
    color: #f7f3e3;
    box-shadow: 0 0 10px rgba(102, 179, 251, 0.5);
    border-color: #4B9DEA;
    z-index: 1;
}

.toggle input:focus + label {
    outline: solid 2px #85cb33;
    outline-offset: -.15rem;
}

a#coingecko, a#coingecko:visited {
    color: cyan;
}

@media (max-width: 800px) {
    .toggle input + label {
        padding: .75rem .25rem;
        flex: 0 0 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.market-name, .market-price, .market-volume {
    display: inline-block;
    margin: 5px 10px;
    text-align: left;
}

.markets {
    display: inline-block;
    min-width: 60%;
    margin: 0 auto;
}

.market {
    display: grid;
    grid-template-columns: 33.3% 33.3% 33.3%;
    grid-template-rows: auto;
    border: 2px solid #f7f3e3;
    text-align: center;
}

@media only screen and (max-width: 1000px) {
    .modal {
        margin: 10px 5%;
    }
}

@media only screen and (max-width: 600px) {
    .market {
        grid-template-columns: 50% 50%;
    }

    .modal {
        margin: 10px 10px;
    }
}

@media only screen and (max-width: 400px) {
    .market {
        grid-template-columns: 100%;
    }

    .modal {
        margin: 10px 2px;
    }
}