@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.6/dist/web/static/pretendard.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    width: 100%;
    height: 100%;
    font-family: 'Pretendard', Arial, sans-serif;
    word-break: keep-all;
    -webkit-text-size-adjust: 100%;
    background: #f1f2f4;
}
ul, ol, li {
    list-style: none;
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
    color: inherit;
}
img {max-width: 100%;}
button, input, textarea, select {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
}
@media all and (max-width: 1120px) {
    .container {padding: 0 40px;}
}
@media all and (max-width: 767px) {
    .container {padding: 0 16px;}
}

/*header*/
#header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}
#logo {
    position: absolute;
    left: 50px;
}
#logo img {width: 100px;}
#menu {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e7e8ea;
    border-radius: 50px;
}
#menu li {padding: 4px;}
#menu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e7e8ea;
    border-radius: 45px;
    height: 45px;
    font-size: 16px;
    font-weight: bold;
    padding: 0 30px;
    transition: all .2s;
}
#menu li a:hover {color: #10b981;}
#menu li.active a {
    background: #10b981;
    color: #fff;
}
@media all and (max-width: 767px) {
    #header {
        height: 70px;
        justify-content: space-between;
        padding: 0 16px;
    }
    #logo {position: static;}
    #logo img {width: 80px;}
    #menu li a {
        height: 30px;
        font-size: 15px;
        padding: 0 15px;
    }
}

/*main*/
#main .box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 0 #e1e2e4;
    border: 2px solid #e1e2e4;
    min-height: 600px;
    padding: 50px;
}
#main .card-box .top-bar {
    display:flex;
    justify-content:space-between;
    align-items: center;
    margin-bottom: 20px;
}
#main .card-box .top-bar .btn {
    background: #fff;
    border: 2px solid #e1e2e4;
    color: #515355;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    height: auto;
}
#main .card-box .top-bar .btn.active {
    border-color: #10b981;
    color: #10b981;
}
#main .card-box .counter {
    font-size: 14px;
    color: #515355;
}
#main .card-box .stage {display:grid;place-items:center;margin:8px 0 10px}
#main .card-box .card-wrap {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 320px;
}
#main .card-box .card {
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 0 20px #e1e2e4;
    cursor: pointer;
    height: 100%;
    text-align: center;
    transform-style: preserve-3d;
    transition: transform .55s cubic-bezier(.2,.8,.2,1);
}
#main .card-box .card.flipped {transform: rotateY(180deg)}
#main .card-box .face {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    backface-visibility: hidden;
}
#main .card-box .back {transform: rotateY(180deg)}
#main .card-box .headword {
    font-size: 50px;
    font-weight: 800;
}
#main .card-box .meaning {
    font-size: 30px;
    font-weight: 700;
}
#main .card-box .pos {
    font-size: 14px;
    margin-top: 6px;
}
#main .card-box .example {
    margin-top: 15px;
    color: #515355;
}
#main .card-box .example .tag {
    display: inline-block;
    margin-right: 4px;
    padding: 2px 5px;
    font-size: 12px;
    border-radius: 4px;
    background: #222;
    color: #fff;
}
#main .card-box .example-ko {
    margin-top: 6px;
    font-size: 13px;
    color: #979a9f;
}
#main .card-box .controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
#main .card-box .btn {
    background: #f1f2f4;
    border-radius: 5px;
    height: 40px;
    padding: 0 20px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #e1e2e4;
}
#main .card-box #next {
    background: #10b981;
    border: 1px solid #0da875;
    color: #fff;
}
#main .card-box #flip span {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 5px;
    font-size: 12px;
    border-radius: 4px;
    background: #dfe1e3;
    color: #515355;
}
#main .card-box #shuffle {
    margin-left: auto;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-top: 20px;
}
#main .card-box #shuffle img {
    width: 16px;
    margin-right: 6px;
}
#main .card-box #shuffle span {color: #515355;}
@media all and (max-width: 767px) {
    #main {padding-top: 10px;}
    #main .box {
        padding: 20px;
        min-height: auto;
    }
    #main .card-box .top-bar .btn {
        font-size: 13px;
        padding: 6px 10px;
    }
    #main .card-box .headword {font-size: 42px;}
    #main .card-box .meaning {font-size: 24px;}
    #main .card-box .controls {
        gap: 4px;
        margin-top: 20px;
    }
    #main .card-box .controls .btn {flex: auto;}
    #main .card-box .controls .btn span {display: none !important;}
}

/*footer*/
#footer {
    color: #78817d;
    font-size: 12px;
    font-weight: bold;
    padding: 50px;
}
@media all and (max-width: 767px) {
    #footer {padding: 30px 16px;}
}