body {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    font-family: Arial, sans-serif;
}
#controls {
    width: 35%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #f7f7f7;
    border-right: 1px solid #ccc;
}
#pdf-container {
    background-image: url("logo.jpg");
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto;
    position: relative;            
    width: 67%;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: scroll;
    height: 100vh;
}
canvas {
    display: block;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}
.control-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.85em;
}
.card {
    margin-bottom: 15px;
}
.button-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}
#download-btn, #translate-btn, #help-btn {
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    width: 48%;
}
#download-btn {
    background-color: #007bff;
    width: 100%;
}
#download-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
#translate-btn {
    background-color: #28a745;
}
#help-btn {
    background-color: #ffc107;
}
.download-btn-wrapper {
    display: flex;
    justify-content: center;
}
.modal-body p {
    margin-bottom: 1rem;
}
.modal-body a {
    color: #007bff;
    text-decoration: none;
}
.modal-body a:hover {
    text-decoration: underline;
}
.modal-header, .modal-footer {
    border: none;
}
.form-row {
    display: flex;
    flex-wrap: wrap;
}
.form-row.reverse-direction {
    flex-direction: row-reverse;
}
.form-group {
    margin-bottom: 15px;
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}
label {
    text-align: left;
}
.reverse-direction label {
    text-align: right;
}
input {
    flex-grow: 1;
}
.inline-inputs {
    display: flex;
    flex-wrap: wrap;
}
.inline-inputs input {
    margin-bottom: 10px;
}
.form-group:last-child {
    margin-right: 0;
}
#message-text {
    text-align: left;
    direction: ltr;
}
.modal-content {
    width: 85%;
}
.question {
    font-weight: bold;
    color: #333;
}
.answer {
    margin-bottom: 10px;
    color: #555;
}
.question::before {
    content: '# ';
    margin-right: 5px;
    color: #007bff;
}
.btn-block {
    display: block;
    width: 100%;
}