.page {
    display: flex;
    height: 100vh;
    gap: 50px;
    margin: 0 3vw 0 3vw;
    flex-direction: row;
    clear: both;
}

.page-header {
    display:flex;
    justify-content: center;
    margin: 0 auto 0 auto;
    width: 60vw;
}

.translation-side {
    flex: 1;
    display: flex;
    margin: 10px auto;
    justify-content: center; 
    align-items: center;    
}

.translate-form {
    width: 45vw;                 /* slightly smaller */
    display: flex;
    flex-direction: column;
    gap: 6px;                    
    padding: 10px;
    background-color: #E5E5E5;
    color: #054c46;
    border-radius: 6px;
    box-sizing: border-box;
}

.translate-form textarea {
    height: 40vh;                
    padding: 6px;
    box-sizing: border-box;
    border: 1px solid #054c46;
    border-radius: 4px;
    resize: vertical;
    background-color: #E5E5E5;
    color: #054c46;
    font-family: sans-serif;
}

.header {
    position: relative;
    text-align: center;
    color: #E5E5E5;
    padding: 6px;
}

.header h1 {
    margin: 20px 0;
}

.right-img {
    position: absolute;
    right: 10px;
    top: 14px;
    width: 5%;
}

.login-img {
    position: center;
    width: 20%
}

body {
    background-color: #054c46;
    color: #ffffff;
}
body, html {
    font-family: sans-serif;
}

.nav-bar {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.tablink {
    flex: 1;           
    background-color: #fead1a;
    color: #E5E5E5;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 17px;
    text-align: center;
    text-decoration: none;
}

.tablink:hover {
    background-color: #777;
}

.page-glossary {
    display: flex;
    height: 100vh;
    gap: 50px;
    margin: 0 5vw 0 5vw;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-glossary h2 { 
    color: #ffffff;
}
.sync-output {
    max-height: 240px;
    overflow: auto;
    width: min(720px, 92vw);
    margin: 8px 0 0;
    padding: 10px 12px;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
    background: #0d2622;
    border: 1px solid #0a7a6e;
    border-radius: 4px;
    font-size: 0.85em;
    line-height: 1.35;
}

.page-pdf {
    display: flex;
    height: 30vh;
    margin: 0 5vw 0 5vw;
    flex-direction: column;
    align-items: center;
}

.glossary-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 60%;
    margin: 0 auto;
}

.glossary-table {
    width: 90vw;
    border-collapse: collapse;
    margin-top: 10px;
}

.glossary-table caption {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 8px;
}

.glossary-table th {
    font-size: 1.5em;
    background-color: #033630;
    padding: 7px;
    border: 1px solid #0a7a6e;
    text-align: left;
    font-size: 1em;
}

.glossary-pair-text {
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    padding: 2px;
}

.glossary-table td {
    padding: 8px 16px;
    border: 1px solid #0a7a6e;
    color: #ffffff;
}

.glossary-table tr:nth-child(even) {
    background-color: #043d38;
    color: #ffffff;
}

.glossary-table tr:hover {
    background-color: #065c54;
    color: #ffffff;
}


.translate-form button {
    background-color: #fead1a;
    color: #054c46;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.95em;
    cursor: pointer;
    align-self: center;
}

.translate-form button:hover {
    background-color: #054c46;
    color: #E5E5E5;
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    clear: both; /* ensures it appears below tabs */
}

.about-box {
    width: 30vw;
    background-color: #E5E5E5;
    color: #054c46;
    padding: 12px;
    border-radius: 6px;
    box-sizing: border-box;
    border: 1px solid #054c46;
    text-align: center;
    margin: 40px;
}

.translate-form select {
    padding: 6px;
    border: 1px solid #054c46;
    border-radius: 4px;
    background-color: #E5E5E5;
    color: #054c46;
    font-family: sans-serif;
}

.pdf-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 5vw;
}
.pdf-box {
    border: 1px solid #0a7a6e;
    padding: 10px;
    background-color: #033630;
    border-radius: 6px;
}
.pdf-box h2 {
    margin-top: 0;
    text-align: center;
    color: #e5e5e5;
}
iframe {
    width: 100%;
    height: 700px;
    border: none;
}

#sync-btn {
    background-color: #0a7a6e;
    color: #e5e5e5;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 0.95em;
    cursor: pointer;
}
#sync-btn:hover {
    background-color: #0c9488;
}
#sync-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
