*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,Helvetica,sans-serif;
}

body{
    background:#eef2f7;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
    padding:30px;
}

.container{

    width:900px;
    max-width:100%;

    background:white;

    border-radius:20px;

    padding:35px;

    box-shadow:0 15px 40px rgba(0,0,0,.12);

}

h1{

    text-align:center;

    color:#222;

    margin-bottom:10px;

}

.subtitle{

    text-align:center;

    color:#777;

    margin-bottom:30px;

}

.inputArea{

    display:flex;

    gap:15px;

    margin-bottom:30px;

}

input{

    flex:1;

    padding:16px;

    border-radius:12px;

    border:2px solid #ddd;

    font-size:20px;

    outline:none;

    transition:.2s;

}

input:focus{

    border-color:#4a90e2;

}

button{

    width:180px;

    border:none;

    border-radius:12px;

    background:#4a90e2;

    color:white;

    font-size:18px;

    cursor:pointer;

    transition:.2s;

}

button:hover{

    background:#3478d8;

}

.preview{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:25px;

    margin-bottom:30px;

}

.card{

    background:#fafafa;

    border-radius:15px;

    padding:20px;

    text-align:center;

    border:1px solid #e6e6e6;

}

.card h3{

    margin-bottom:15px;

    color:#444;

}

.colorBox{

    width:140px;

    height:140px;

    border-radius:15px;

    margin:auto;

    border:2px solid #ccc;

    background:white;

}

.card p{

    margin-top:15px;

    font-weight:bold;

    color:#666;

}

#result{

    background:#fafafa;

    border-radius:15px;

    border:1px solid #ddd;

    padding:25px;

    min-height:180px;

}

.resultTitle{

    font-size:24px;

    font-weight:bold;

    margin-bottom:20px;

}

.paintRow{

    display:flex;

    align-items:center;

    gap:15px;

    padding:12px;

    margin-bottom:12px;

    border-radius:10px;

    background:white;

    border:1px solid #eee;

}

.paintCircle{

    width:30px;

    height:30px;

    border-radius:50%;

    border:2px solid #aaa;

}

.paintInfo{

    flex:1;

}

.paintName{

    font-weight:bold;

}

.paintCode{

    color:#888;

    font-size:13px;

}

.percent{

    font-size:22px;

    font-weight:bold;

    color:#4a90e2;

}

.similarity{

    margin-bottom:20px;

    font-size:20px;

    color:#2d7d46;

    font-weight:bold;

}

.error{

    color:red;

    font-weight:bold;

}

@media(max-width:700px){

.preview{

grid-template-columns:1fr;

}

.inputArea{

flex-direction:column;

}

button{

width:100%;

}

}