* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Pure square container with strict left-alignment */
.square-container {
    width: min(85vw, 85vh);
    height: min(85vw, 85vh);
    max-width: 500px;
    max-height: 500px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 10%;
}

/* Typography & Alignment */
.logo-text, .dynamic-text {
    font-size: clamp(2.2rem, 7.5vw, 3.8rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: left;
}

.logo-text {
    color: #000000;
    width: 100%;
}

/* 
 Highlight Box:
 - display: inline-flex + align-items: center perfectly centers text & cursor vertically.
 - height and min-height are locked so vertical size never collapses when empty.
*/
.middle-line {
    display: inline-flex;
    align-items: center;
    border: 3px solid #7eabd9;
    background-color: #7eabd9;
    padding: 8px 14px;
    margin: 12px 0;
    border-radius: 0px; /* Sharp 90-degree corners */
    
    width: auto;
    height: calc(1.15em + 16px); /* Locked vertical height matching padding */
    min-height: calc(1.15em + 16px);
    white-space: nowrap;
    font-size: clamp(2.2rem, 7.5vw, 3.8rem);
    direction: ltr; /* Default LTR */
}

/* RTL container mode for Arabic, Persian, Hebrew */
.middle-line.rtl {
    direction: rtl;
}

.dynamic-text {
    color: #ffffff;
}

/* Cursor default (LTR spacing) */
.cursor {
    display: inline-block;
    width: 3.5px;
    height: 1em;
    background-color: #ffffff;
    margin-left: 4px;
    margin-right: 0px;
    vertical-align: baseline;
    animation: blink 0.8s infinite;
}

/* Cursor spacing adjusted for RTL languages */
.middle-line.rtl .cursor {
    margin-left: 0px;
    margin-right: 4px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
