@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

*{
    user-select: none;
    font-family: 'Poppins', sans-serif;
}

body {
    display: block;
    margin: auto;
    text-align: center;
    width: 480px;
    background: linear-gradient(90deg, rgba(13,120,207,1) 19%, rgba(18,182,231,1) 93%);
    color: white;
}

.hr {
    width: 480px; 
}

#question {
    font-size: 56px;
    font-weight: bold;
}
button, input {
    font-weight: bold;
}
input {
    height: 60px;
    font-size: 36px;
    width: 180px;
    text-align: center;
    color: rgba(13,120,207,1);
    border: 2px solid white;
    margin: 8px;
    border-radius: 15px;
}
#quizbody button {
    width: 200px;
    height: 60px;
    margin: 10px;
    font-size: 28px;
    background-color: transparent;
    color: white;
    font-weight: bold;
    border: 2px solid white;
    border-radius: 15px;
}
#serial {
    font-size: 24px;
    font-weight: bold;
}
#diff button {
    width: 325px;
    height: 60px;
    margin: 8px;
    font-size: 28px;
    background-color: transparent;
    color: white;
    font-weight: bolder;
    border: 2px solid white;
    border-radius: 10px;
}

#result {
    font-size: 25px;
    font-weight: bold;
}
.titlebar {
    margin: 10px;
}
.titlebar img {
    height: 30px;
    width: 30px;
    float: left;
    padding-top: 0px;
}
#count {
    padding: 15px;
    background-color: white;
    margin: 2px;
    color: rgba(13,120,207,1);
    border-radius: 10px;
    width: 80px;
    display: inline-block;
    height: 35px;
    text-align: right;
    padding-bottom: 10px;
    padding-left: 10px;
    background-color: white;
    font-weight: bold;
}
#count span {
    font-size: 32px;
    font-weight: bold;
    line-height: 100%;  
}
#logo {
    font-size: 30px;
    font-weight: bold;
}
#nums button {
    height: 80px;
    width: 80px;
    font-size: 32px;
}
#timer, #bar {
    height: 10px;
    width: 390px;
}
#timer {
    background-color: transparent;
    border: 1px solid white;
}
#bar {
    background-color: white;
    position: relative;
    float: left;
}
input:focus, button:focus {
    outline: 0;
    outline-color: transparent;
    outline-style: none;
}

#main {
    display: block;
    width: 480px;  
    margin: auto;
    text-align: center;
    color: white; 
}

#retry-btn{
    display: block;
    margin: auto;
    border:0;
    border-radius: 30px;
    color: #fff;
    padding: 0px 10px;
    width: 250px;
    background-color: orange;
    font-size: 26px;
    line-height: 220%;
    text-align: center;
}

#test-btn{
    display: block;
    margin: auto;
    border:0;
    border-radius: 30px;
    color: #fff;
    padding: 0px 10px;
    width: 250px;
    background-color: orange;
    font-size: 26px;
    line-height: 220%;     
    text-align: center;
}

#end {
    display: block;
    margin: auto;
    width: 480px;
    text-align: center;
    font-size:16px;
    color: white;
}

#resultbox {
    display: block;
    width: 480px;
    margin: 0px auto 10px auto;
    padding: 5px;
    background: rgba(255,255,255,0.90);
    color: #2368d6;
    border-radius: 22px;
    font-size: 22px;      /* 결과 박스 전체 폰트(기본 크기) */
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    text-align: center;
}

/* 결과 제목(수학덕후 레벨 결과) */
#resultbox h2 {
    color: #0d78cf;          /* 제목 파랑 */
    font-size: 2.2em;        /* 제목 폰트 크기 */
    font-weight: bold;
}

#resultbox div {
    margin-bottom: 32px;     /* 줄 간격 */
    line-height: 1.4;
    font-size: 1.0em;        /* 기본 폰트 크기 */
}

#resultbox b {
    color: #e33172;          /* 진한 분홍/빨강 강조 */
    font-size: 1.6em;        /* 숫자, 판정 폰트 크기(강조용) */
    font-weight: 900;        /* 아주 굵게 */
    vertical-align: middle;
    margin-left: 10px;
}

#result-level b {
    color: #e33172;          /* 판정만 특별 강조색 */
    font-size: 1.9em;        /* 판정만 더 키움(1.2배) */
    font-weight: 900;        /* 매우 굵게 */
    letter-spacing: -1px;
    vertical-align: sub;     
}

#resultbox button#res-result {
    display: block;
    margin: 5px auto 20px auto;
    border: 0;
    border-radius: 36px;
    color: #fff;
    padding: 0px 10px;
    width: 240px;
    background-color: orange;
    font-size: 1.3em;
    line-height: 200%;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(227,49,114,0.09);
    transition: background 0.15s;
}
#resultbox button#res-result:hover {
    background-color: #e33172;
}
