.submit-bar{
    width: calc(98% - 27rem);
    height: calc(100vh - 4rem);
    background-color: #fafafa;
    border-radius: 1rem;
    box-shadow: 0 0 1rem rgba(0,0,0,0.3);
    margin-top: 1rem;
    padding: 1rem;
    margin-left: auto; margin-right: auto;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
}
.problem-detail{
    width: 23rem;
    height: calc(100vh - 2rem);
    overflow: scroll;
    background-color: #fafafa;
    border-radius: 1rem;
    margin-top: 1rem;
    box-shadow: 0 0 1rem rgba(0,0,0,0.3);
    margin-left: 0; margin-right: auto;
    display: flex;
    flex-direction: column;
}
.problem-detail>*{
    margin: 0.7rem 1rem 0 1rem;
}
.problem-title{
    text-decoration: none;
}
.problem-title:link,.problem-title:visited{
    color: #126;
}
.problem-title:hover,.problem-title:active{
    color: #36d;
}
h1{
    margin: 0;
    font-size: 1.5rem;
}
h2{
    margin: 0;
    margin-top: 1rem;
}
.hint-text{
    margin-bottom: 0;
}
.problem-content{
    margin-top: 0;
    white-space: pre-wrap;
    font-family: "SIMHEI","Consolas", monospace;
}
.problem-sample{
    display: flex;
    flex-direction: row;
}
.sample-group-l{
    margin-left:0;
    margin-right:auto;
}
.sample-group-r{
    margin-left:auto;
    margin-right:0;
}
.sample-group-l,.sample-group-r{
    width: 10rem;
    margin-bottom: 0;
    text-align: center;
}
.sample-title{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.sample-title-text{
    margin-right: auto;
}
.sample{
    margin-top: 0.5rem;
    margin-bottom: 0;
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    padding: 0.2rem 1rem;
    text-align: left;
    width: 8rem;
    height: 8rem;
    overflow: scroll;
    white-space: pre;
}
.sample-copy-btn{
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    padding: 0.2rem 0.5rem;
}
.sample-copy-btn:hover{
    background-color: #eee;
}
.problem-hint{
    margin-bottom: 1rem;
}
.submit-bar-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 2rem;
    margin-bottom: 0.5rem;
}
.file-upload-container{
    background-color: white;
    border-radius: 1rem;
    border: 1px solid #ccc;
    padding: 0.2rem 1.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
}
.file-upload-container>*{cursor: pointer;}
.file-upload-container:hover{
    background-color: #eee;
}
.file-upload-container input[type="file"]{
    display: none;
}
.submit-btn{
    margin-right: 0;
    margin-left: auto;
    background-color: #36d;
    border-radius: 1rem;
    border: 1px solid #36d;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.2rem 1.5rem;
    cursor: pointer;
}
.code-line-number,.code-input{
    height: calc(100% - 2px - 1rem);
    font-style: "Consolas", "Menlo", "Monaco", "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, "sans-serif";
    padding: 0.5rem;
    border: 1px solid #ccc;
}
.submit-bar-content{
    height: calc(100% - 2px - 2.5rem);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.code-line-number{
    width: 1.8rem;
    text-align: right;
    overflow-y: hidden;
    overflow-x: visible;
    border-radius: 1rem 0 0 1rem;
    border-right: none;
    padding-left: 0;
    background-color: #fefefe;
    line-height: 1.2rem;
}
.code-input{
    width: calc(100% - 2px - 2rem);
    border-radius: 0 1rem 1rem 0;
    line-height: 1.2rem;
    border-left: none;
    overflow: scroll;
    white-space: pre;
    resize: none;
}
.code-input:focus{
    outline: none;
}
.code-line-number{
    font-size: 0.9rem;
}