sedtha's picture
Upload 18 files
865f0b3 verified
/* General styles */
body {
margin: 0;
font-family: 'Hanuman', serif;
background-color: #f8f9fa;
}
/* Header */
header {
background-color: #003366;
color: white;
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 20px;
position: relative;
}
.logo {
display: flex;
align-items: center;
}
.logo img {
height: 50px;
margin-right: 10px;
}
.title {
font-size: 14px;
line-height: 1.5;
}
.main-title {
position: absolute;
left: 50%;
transform: translateX(-50%);
text-align: center;
font-size: 20px;
}
.language-toggle {
display: flex;
align-items: center;
gap: 10px;
}
/* Layout */
main {
padding: 20px;
}
.translator {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 40px;
flex-wrap: wrap;
}
.box {
flex: 1;
min-height: 400px;
max-width: 600px;
background: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0,0,0,0.05);
display: flex;
flex-direction: column;
position: relative;
}
/* Input box */
.editable {
flex: 1;
min-height: 250px;
border: none;
padding: 0.1rem;
font-size: 18px;
font-family: 'Hanuman', serif;
white-space: pre-wrap;
outline: none;
position: relative;
}
.editable:empty::before {
content: attr(data-placeholder);
color: #c0c0c0;
position: absolute;
pointer-events: none;
font-size: 18px;
}
/* Output box */
.output-box {
background: #f4f4f5;
}
.result-box {
flex: 1;
min-height: 250px;
padding: 0.1rem;
font-size: 18px;
color: #4b5563;
font-family: 'Hanuman', serif;
white-space: pre-wrap;
}
.bottom-icon {
position: absolute;
bottom: 10px;
right: 10px;
font-size: 16px;
color: #6b7280;
}
/* Bottom bar */
.bottom-bar {
display: flex;
justify-content: flex-end;
align-items: center;
margin-top: 10px;
}
/* Button */
button {
padding: 10px 20px;
font-size: 16px;
background-color: #6c8ebf;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.2s ease;
display: flex;
align-items: center;
gap: 6px;
}
button:hover {
background-color: #5a7da3;
}
/* Textarea fallback (if used elsewhere) */
textarea {
width: 100%;
height: 200px;
font-size: 16px;
font-family: 'Hanuman', serif;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
resize: none;
}
/* Swap button (optional if needed again) */
.swap-button {
display: flex;
justify-content: center;
align-items: center;
font-size: 24px;
margin-top: center;
color: #666;
}