* {
    margin: 0;
    padding: 0; 
}

body {
    -webkit-font-smoothing: antialiased;
    background: #292B2A;
    margin: 0;   /* to remove default margin of 8px */
    overflow-y: scroll;
    overflow-x: hidden;
}

#outer-wrapper {
    display: table; 
    position: absolute; 
    width: 100%;
    height: 100%;
}    

#middle-wrapper {
    display: table-cell;
    padding-top: 40px; 
    vertical-align: top; 
    text-align: center; /* To center child elements*/
}

#description-wrapper {
    display: inline-block; /* text-align affects inline-block */
    text-align: left; 
    margin-bottom: 20px; 
}

.description {
    color: #AFAFAF; 
    margin: 0 5%; /* for mobile devices */
    font-family: sans-serif;
    line-height: 1.5;
}

#shortcut {
    border: 1px solid #AFAFAF;
    padding: 0 4px; 
}

#search-box {    
    display: block;
    margin: auto; 
    width: 40%;
    min-width: 10em;
    outline: none;
    padding: 7px 12px; 
    font-size: 25px; 
    color: white; 
    border: 3px solid #3e61c6;
    border-radius: 5px; 
    background: none; 
}

#results {
    position: relative;
    width: 100%;
    left: -20px;
    padding-bottom: 2em;
}

#results, #kanji-block {
    display: inline-block;  
    margin: 0 20px; 
    margin-top: 20px; 
    font-size: 22px;
    font-family: sans-serif;  
    color: #BFBFBF; 
    text-align: center; 
}

#kanji-block {
    border: 1px dashed hsl(0deg 0% 74.9% / 31%);
    border-radius: 5px;
    margin: 5px; 
    padding: 1.5rem 1rem; 
    min-width: 10em;
    min-height: 12em; /* Add this for consistent height */
    vertical-align: top; /* Add this to align boxes to the top */
}

h2 {
    margin: 5px;
    font-weight: 300;
    font-size: 1rem;
    opacity: 0.5;
}

#character {
    /* display: inline-block; */
    font-size: 7em;
    margin-bottom: 5px; 
}

.sep {
    opacity: 0.2;
}

#id {
    padding: 0.1rem 0.5rem; 
    border-radius: 5px;
    background: hsl(150 2% 20% / 1);
    color: hsl(150 2% 31% / 1);
}

#meaning {
    /* display: inline-block; */
    margin: 1em 0; 
    color: hsl(90.34deg 31% 60%);
    padding: 1rem;
    height: 3em; /* Add this - fixed height */
    overflow: hidden; /* Add this - hide overflow text */
    display: flex; /* Add this - for centering */
    align-items: center; /* Add this - vertically center text */
    justify-content: center; /* Add this - horizontally center text */
}

a {
    color: #BFBFBF;
    font-size: 1rem;
}


