@charset "UTF-8";

*,
*:before,
*:after {
    box-sizing: border-box;
}
* {
    outline: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
html,
body {
    height: 100%;
}
html {
    -webkit-text-size-adjust: 100%;
}
body {
    color: #222;
    font-family: Manrope, 'Spoqa Han Sans Neo', 'Apple SD Gothic Neo', '돋움', Dotum, Verdana, Arial, sans-serif;
    line-height: 1.5;
    letter-spacing: -.4px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body, h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
}
ol, ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
dl, dd {
    margin: 0;
}
button, input, select, textarea {
    border-radius: 0;
    color: inherit;
    font: inherit;
}
textarea {
    overflow: auto;
}
table {
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
}
th, td {
    padding: 0;
}
fieldset {
    margin: 0;
    padding: 0;
    border: none;
}
legend {
    padding: 0;
}

@media all and (min-width:620px) {

    #stock {
        display: flex;
        align-items: center;
        /* width: 620px; */
        width: 100%;
        height: 194px;
        padding: 0 24px;
        border-radius: 16px;
        background-color: #4477d6;
        color: #fff;
    }
    #stock .current {
        font-size: 48px;
        font-weight: 900;
    }
    #stock .compare {
        display: flex;
        align-items: center;
        height: 40px;
        margin-left: 24px;
        padding: 0 20px;
        border-radius: 20px;
        border: 1px solid #fff;
        font-size: 16px;
        font-weight: 700;
    }
    #stock .compare:before {
        content: "";
        display: block;
        width: 16px;
        height: 16px;
        margin-right: 4px;
        background: url(../images/stock_no_change.svg) no-repeat;
    }
    #stock .compare.up:before {
        background: url(../images/stock_arrow_up.svg) no-repeat;
    }
    #stock .compare.down:before {
        background: url(../images/stock_arrow_down.svg) no-repeat;
    }
    #stock .date {
        margin-left: auto;
        margin-right: 0;
        font-size: 16px;
    }

}

@media all and (max-width:619px){
    #stock {
        width: 100%;
        padding: 24px 24px;
        border-radius: 8px;
        background-color: #4477d6;
        text-align: center;
        color: #fff;
    }

    #stock .current {
        font-size: 32px;
        font-weight: 900;
    }

    #stock .compare {
        display: inline-flex;
        align-items: center;
        height: 40px;
        margin-top: 12px;
        padding: 0 20px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 16px;
        font-weight: 700;
    }

    #stock .compare:before {
        content: "";
        display: block;
        width: 16px;
        height: 16px;
        margin-right: 4px;
        background: url(../images/stock_no_change.svg) no-repeat;
    }

    #stock .compare.up:before {
        background: url(../images/stock_arrow_up.svg) no-repeat;
    }

    #stock .compare.down:before {
        background: url(../images/stock_arrow_down.svg) no-repeat;
    }

    #stock .date {
        margin-top: 8px;
        font-size: 14px;
    }
}
