/* body{
    margin: 20px;
    background-color: rgb(245, 245, 245);
    font-family: Verdana,sans-serif;
    font-size: 15px;
    line-height: 1.5
} */

html, body {
    height: 100%;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

#wholeThing {
    width: 75%;
    height: 95%;
    margin: 50px auto 0; /* 10% top margin = 5% of screen height */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative; /* needed for absolute children */
    overflow: hidden;
}

#menuBar {
    height: 65px;
    width: 98%;
    z-index: 6;
    padding: 0 1%;
    display: flex;
    align-items: center; /* vertical centering */
    justify-content: space-around;
    background-color: #e2e6e8;
    border-bottom: 2px solid #b2b6b8;
    border-top-left-radius: 35px;
    border-top-right-radius: 35px;
}

.menuSection{
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
}
.menuButton{
    display: flex;
    align-items: center;
    /* display: inline-block; */
    outline: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    border-radius: 500px;
    transition-property: background-color,border-color,color,box-shadow,filter;
    transition-duration: .3s;
    border: 1px solid transparent;
    letter-spacing: 1px;
    /* min-width: 160px; */
    text-transform: uppercase;
    white-space: normal;
    font-weight: 700;
    text-align: center;
    /* padding: 12px 16px; */   /* use if display = inline-block */
    padding: 0 12px;
    color: #626468;
    box-shadow: inset 0 0 0 2px #626468;
    background-color: transparent;
    height: 48px;
}
.menuButton:hover{
    color: #fff;
    background-color: #626468;
}
/*          FILE UPLOAD STUFF           */
label.menuButton{
    display: flex;
    align-items: center;
}
/* #uploadSection{
    justify-content: left;
} */
#fileNameDisplay{
    align-items: center;
    /* max-width:48px; */
    height: 24px;
    font-size: 14px;
    /* line-height: 1; */
    /* letter-spacing: 1px; */
    white-space: normal;
    /* font-weight: 700; */
    text-align: right;
    padding: 0 8px;
    color: #626468;
}
.specialBtn{
    background-color: #fafafa;
}
/*          PAGE OPTIONS            */
#pageSelect{
    width: 28px;
    max-width:48px;
    height: 24px;
    font-size: 18px;
    /* line-height: 1; */
    /* letter-spacing: 1px; */
    text-transform: uppercase;
    white-space: normal;
    /* font-weight: 700; */
    text-align: right;
    padding: 0 4px;
    color: #626468;
    margin-left: 8px;
}
#maxPagesDisplay{
    width: 28px;
    max-width:48px;
    height: 24px;
    font-size: 18px;
    /* line-height: 1; */
    /* letter-spacing: 1px; */
    text-transform: uppercase;
    white-space: normal;
    /* font-weight: 700; */
    text-align: left;
    padding: 0 4px;
    color: #626468;
    margin-right: 8px;
}
/*          ZOOM BUTTONS            */
.zoomBtn{
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    background-color: transparent;
    transition: background-image 0.3s ease-in-out;
    box-shadow: none;
}
#zoomOut{
    background-image: url('/EasyReader/icons/zoomOut.png');
}#zoomIn{
    background-image: url('/EasyReader/icons/zoomIn.png');
}
#zoomOut:hover{
    object-fit: contain;
    background-image: url('/EasyReader/icons/zoomOutHover.png');
    transition: background-image 0.3s ease-in-out; /* Smooth transition */
    background-color: transparent;
}
#zoomIn:hover{
    object-fit: contain;
    background-image: url('/EasyReader/icons/zoomInHover.png');
    transition: background-image 0.3s ease-in-out; /* Smooth transition */
    background-color: transparent;
}
#zoomText{
    align-items: center;
    /* max-width:48px; */
    height: 24px;
    font-size: 18px;
    /* line-height: 1; */
    /* letter-spacing: 1px; */
    white-space: normal;
    font-weight: 500;
    text-align: right;
    padding: 0 12px;
    color: #626468;
}

#downloadSection.menuSection{
    flex: .1;
}
#download{
    background-image: url('/icons/download.png');
}
#download:hover{
    object-fit: contain;
    background-image: url('/icons/downloadHover.png');
    transition: background-image 0.3s ease-in-out; /* Smooth transition */
    background-color: transparent;
}

#colorOptionMenu{
    position: absolute;
    top:10%;
    right: 15px;

    height: 350px;
    width: 500px;
    z-index: 5;
    padding: 40px 20px 20px;
    display: flex;
    align-items: center; /* vertical centering */
    flex-direction: column;
    gap: 60px;

    background-color: #e2e6e8;
    border-bottom: 2px solid #b2b6b8;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
}
.colorPicker{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
#colorOptionMenu label{
    display: flex;
    align-items: center;
    /* display: inline-block; */
    outline: none;
    /* cursor: pointer; */
    font-size: 14px;
    line-height: 1;
    letter-spacing: 1px;
    /* min-width: 160px; */
    text-transform: uppercase;
    white-space: normal;
    font-weight: 500;
    text-align: center;
    padding: 0 12px;
    color: #626468;
    /* box-shadow: inset 0 0 0 2px #626468;
    background-color: transparent; */
    height: 24px;
}
#colorOptionMenu .top{
    display: flex;
}
#colorOptionMenu .middle{
    display: flex;
    /* flex-direction: row;
    justify-content: space-around; */
    gap: 55px;
}
#colorOptionMenu .bottom{
    display: flex;
    font-size: 18px;
    white-space: normal;
    text-align: left;
    padding: 0 20px;
    color: #626468;
}



#contentArea{
    background-color: #fafafa;
    display: flex;
    flex: 1;
    height: 100%;
    position: relative;
    overflow: scroll;
    box-shadow: inset -1px 0px 6px #666;
}
.overlayBox {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    
    /* border: 1px solid #000; */
}
#pdfCanvas{
    position: absolute;
    pointer-events: none;
    z-index: 1;
    box-shadow: 3px 2px 10px #666;
}
#textLayer{
    z-index: 3;
}
.newText{
    position: absolute;
    white-space: pre;
    line-height: 1;
    user-select: text;
    pointer-events: auto;
    display: inline-block;
    /* overflow: hidden; */
    text-align: left;
    letter-spacing: 0;
    /*text-shadow: 0 0 2px #f3f3f3, 0 0 3px #f3f3f3;  /* Should be set in JS to allow custom background color */
}

