*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'맑은 고딕',sans-serif;
}

body{
background:#f4f6fb;
}

header{
background:#2563eb;
color:white;
padding:18px;
text-align:center;
}

header h1{
font-size:28px;
}

.container{
display:flex;
gap:20px;
padding:20px;
}

.sidebar{
width:320px;
background:white;
padding:20px;
border-radius:15px;
box-shadow:0 2px 10px rgba(0,0,0,.1);
height:fit-content;
}

.sidebar h2,
.sidebar h3{
margin-bottom:10px;
}

.sidebar label{
display:block;
margin-top:12px;
margin-bottom:5px;
font-weight:bold;
}

.sidebar input,
.sidebar select{
width:100%;
padding:10px;
border:1px solid #ccc;
border-radius:8px;
}

.sidebar button{
width:100%;
margin-top:10px;
padding:12px;
border:none;
border-radius:8px;
background:#2563eb;
color:white;
cursor:pointer;
font-size:15px;
}

.sidebar button:hover

main{
flex:1;
}

.input-section{
background:white;
padding:20px;
border-radius:15px;
box-shadow:0 2px 10px rgba(0,0,0,.1);
}

.input-section h2{
margin-bottom:15px;
}

#wordTable{
width:100%;
border-collapse:collapse;
}

#wordTable th,
#wordTable td{
border:1px solid #ddd;
padding:10px;
}

#wordTable td{
min-height:40px;
}

#wordTable td:focus

#preview{
margin-top:20px;
background:white;
padding:20px;
border-radius:15px;
box-shadow:0 2px 10px rgba(0,0,0,.1);
}

.sheet-title{
text-align:center;
font-size:24px;
font-weight:bold;
margin-bottom:10px;
}

.student-info{
margin-bottom:15px;
}

.sheet{
display:flex;
gap:15px;
}

.sheet table{
width:50%;
border-collapse:collapse;
}

.sheet th,
.sheet td{
border:1px solid black;
padding:6px;
text-align:left;
}

.sheet th{
background:#f0f0f0;
}

.no-cell{
width:50px;
text-align:center;
}

.answer-blank{
border-bottom:1px solid black;
display:block;
min-height:20px;
}

hr{
margin:15px 0;
}

@media(max-width:1000px){


.container{
    flex-direction:column;
}

.sidebar{
    width:100%;
}

.sheet{
    flex-direction:column;
}

.sheet table{
    width:100%;
}


}

@media print{


body{
    background:white;
}

.sidebar,
.input-section,
header{
    display:none;
}

#preview{
    box-shadow:none;
    margin:0;
    padding:0;
}

.sheet{
    gap:10px;
}


}
