* {
    font-family: sans-serif;
}

body {
    padding-left: 1%;
    padding-right: 1%
}

table {
    border-collapse: collapse;
    width: 100%;
}

td {
    text-align: left;
    padding: 8px;
}

tr:nth-child(even) {
    background-color: rgb(228, 231, 255);
}

tr {
    height: 45px;
}

#headerContainer h2 {
    margin-block-start: 0;
    margin-block-end: 0;
    color:rgb(220, 0, 50);
}

#line {
    margin-top: 0;
    margin-bottom: 1%;
    margin-left: 0.2%;
    margin-right: 0.2%;
    border-style: solid;
    border-width: 1px;
    color: black;
    border-radius: 5px;
}

#lineFooter {
    margin-top: -1%;
    margin-bottom: 0%;
    margin-left: 0.2%;
    margin-right: 0.2%;
    border-style: solid;
    border-width: 1px;
    color: rgb(138, 134, 134);
    border-radius: 5px;
}

#error--modal {
    display: none;
    justify-content: center;
    align-items: center;
    border-style: dashed;
    border-color: rgb(220, 0, 50);
    border-radius: 10px;
    border-width: 2px;
    height: 4rem;
    margin: 1rem 0;
    opacity: 1;
}

#error--msg {
    font-size: 2rem;
    color: rgb(88, 88, 88);
}

.grid {
    display: grid;
    height: 94vh;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(21, 1fr);
    row-gap: 1%;
    column-gap: 1%;
}

#fileForm {
    display: none;
}

.cell--1 {
    grid-row: 1/span 1;
    grid-column: 1/span 1;
}

.cell--2 {
    /* position: relative;
    grid-row: 2/span 8;
    grid-column: 1/span 6;
    display: flex;
    justify-content: center;
    align-items: center; */
    position: relative;
    grid-row: 1/span 15;
    grid-column: 1/span 6;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    border-width: 1px;
}

.zoomBtn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    height: 2rem;
    width: 2rem;
    cursor: pointer;
    fill:rgb(220, 0, 50);
}

#zoomForOverlayed, #zoomForUploaded{
    display: none;
}

.cell--3 {
    grid-row: 1/span ;
    grid-column: 5/span 1;
}

.cell--11 {
    grid-row: 1/span 1;
    grid-column: 6/span 1;
}

.cell--4 {
    /* position: relative;
    grid-row: 2/span 8;
    grid-column: 7/span 6;
    display: flex;
    justify-content: center;
    align-items: center; */
    position: relative;
    grid-row: 1/span 15;
    grid-column: 7/span 6;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    border-width: 1px;
}

.cell--5 {
    grid-row: 14/span 1;
    grid-column: 1/span 4;
    display: flex;
    align-items: end;
}

.cell--6 {
    grid-row: 14/span 1;
    grid-column: 7/span 4;
    display: flex;
    align-items: end;
}

.cell--7 {
    grid-row: 1/span 15;
    grid-column: 1/span 6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cell--8 {
    grid-row: 1/span 15;
    grid-column: 7/span 6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cell--9 {
    grid-row: 1/span 1;
    grid-column: 2/span 3;
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    grid-template-rows: repeat(1, 1fr);
    column-gap: 3%;
}

#srcDropdown {
    grid-column: 1/span 5;
}

#swapButton {
    grid-column: 6/span 1;
    background-color: #dc0032;
}

#swapButton {
    background-color: white;
}

#swap--icon {
    width: 52px;
    height: 26px;
}

#desDropdown {
    grid-column: 7/span 5;
}

#srcDropdown, #desDropdown {
    border-style: solid;
    border-color: rgb(220, 0, 50);
    border-width: 2px;
    font-size: 1rem;
}

.cell--10 {
    grid-row: 20/span 1;
    grid-column: 12/span 1;
    font-weight: 600;
    color: rgb(220, 0, 50);
    font-size: 15px;
    /* transform: translateX(30%); */
    display: flex;
}

.cell--2, .cell--4, .cell--7, .cell--8 {
    border-style: solid;
    border-color: rgb(88, 88, 88);
    border-width: 1px;
    border-radius: 3px;
    overflow: hidden;
}

.cell--merged {
    /* position: relative; */
    grid-row: 2/span 12 ;
    grid-column: 1/span 12;
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(15, 1fr);
    row-gap: 0%;
    column-gap: 0%;
    margin: 0 0;
    padding: 0 0;
}

.cell--merged--lower{
    position: relative;
    grid-row: 15/span 5;
    grid-column: 1/span 12;
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(15, 1fr);
    row-gap: 0%;
    column-gap: 0%;
    margin: 0 0;
    padding: 0 0;
}

.version {
    margin-top: 0.2%;
    font-style: italic;
    padding-right: 1%;
    color: rgb(220, 0, 50);
    font-size: 0.7rem;
    text-align: center;
}

#formBlock {
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
}

#fileUpload, #clearButton, #swapButton, #fileSubmit {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(220, 0, 50);
    border-style: none;
    border-radius: 5px;
    font-size: 1.3rem;
    color: white;
}

/* #fileSubmit {
    width: 100%;
    height: 100%;
    background-color: rgb(220, 0, 50);
    border-style: none;
    border-radius: 10px;
    font-size: 1.5rem;
    color: white;
} */

#fileExport {
    width: 100%;
    height: 100%;
    background-color: rgb(220, 0, 50);
    border-style: none;
    border-radius: 10px;
    font-size: 1.15rem;
    color: white;
}

#exportLink {
    justify-content: right;
    align-items: flex-end;
}

.placeholder, .header {
    font-size: 1.5rem;
    color: rgb(110, 110, 110);
}

#uploadedImage, #translatedImage {
    display: none;
    height: auto;
    width: auto;
    max-height: 100%;
    max-width: 100%;
}

.overflowContainer {
    display: none;
    height: 100%;
    width: 100%;
    overflow-y: scroll;
}

#exText, #transText {
    padding-left: 1rem;
    padding-right: 1rem;
    font-family: sans-serif;
    font-size: 1rem;
    color: rgb(88, 88, 88);
}

#fileUpload:hover, #clearButton:hover, #swapButton:hover {
    opacity: 90%;
    cursor: pointer;
}

#fileSubmit:hover {
    opacity: 90%;
    cursor: pointer;
}

#fileExport:hover {
    opacity: 90%;
    cursor: pointer;
}

/* .zoomIn {
    cursor: zoom-in;
} */

#fileUpload:active, #clearButton:active #swapButton{
    transform: scale(95%) translateY(1%);
    opacity: 100%;
    cursor: pointer;
}

#fileSubmit:hover:disabled, #clearButton:hover:disabled, #fileExport:hover:disabled, #swapButton:hover:disabled {
    cursor: default;
}

#fileSubmit:active {
    transform: scale(95%) translateY(1%);;
    opacity: 100%;
    cursor: pointer;
}

#fileSubmit:active:disabled, #clearButton:active:disabled, #fileExport:active:disabled, #swapButton:active:disabled {
    opacity: 1;
    transform: none;
    cursor: default;
}

#fileExport:active {
    transform: scale(95%) translateY(1%);;
    opacity: 100%;
    cursor: pointer;
}

#swapButton:disabled {
    opacity: 50%;
}

.spinnerContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spinner {
    display: none;
    margin: auto;
    border: 0.5rem solid #f3f3f3;
    border-radius: 50%;
    border-top: 0.5rem solid rgb(110, 110, 110);
    width: 3.75rem;
    height: 3.75rem;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    vertical-align: center;
}

.loading {
    display: none;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin-right: auto;
    margin-left: auto;
    margin-top: 2%;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 80%; /* Could be more or less, depending on screen size */
    height: 80%;
}

.sideIcon {
    position: absolute;
    height: 2rem;
    width: 2rem;
    z-index: 5;
    cursor: pointer;
}

.magnifiedContainer {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    height: 85%;
    width: 85%;
    border-radius: 10px;
    border-style: solid;
    border-color: #888;
    overflow: hidden;
    display: flex;
}

.zoomer {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

#uploadedImage--zoomed, #translatedImage--zoomed {
    height: auto;
    width: auto;
    max-height: 100%;
    max-width: 100%;
    border-radius: 10px;
}

/* The Close Button */
.close {
    position: absolute;
    top: 1%;
    right: 2%;
    color: rgb(220, 0, 50);
    font-size: 35px;
    font-weight: bold;
}

  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@media screen and (min-width: 1600px) {
    .sideIcon {
        right: 2%;
    }

    #plus {
        top: 35%;
    }

    #minus {
        bottom: 35%;
    }
}

@media screen and (min-width: 1280px) and (max-width: 1599px) {
    #fileUpload, #fileSubmit, #clearButton {
        font-size: 1.2rem;
    }

    .sideIcon {
        right: 2%;
    }

    #plus {
        top: 35%;
    }

    #minus {
        bottom: 35%;
    }
}

@media screen and (min-width: 960px) and (max-width: 1279px) {
    #fileUpload, #fileSubmit, #clearButton {
        font-size: 1rem;
    }

    .sideIcon {
        right: 2%;
    }

    #plus {
        top: 35%;
    }

    #minus {
        bottom: 35%;
    }
}

@media screen and (max-width: 959px) {
    .sideIcon {
        bottom: 1%;
    }

    #plus {
        left: 35%;
    }

    #minus {
        right: 35%;
    }
}

@media screen and (min-width: 640px) and (max-width: 959px) {
    .grid {
        height: 190vh;
        grid-template-rows: repeat(36, 1fr);
    }

    .cell--1 {
        grid-row: 1/span 1;
        grid-column: 1/span 2;
    }

    .cell--9 {
        grid-row: 1/span 1;
        grid-column: 3/span 5;
    }

    /* .cell--2 {
        grid-row: 2/span 5;
        grid-column: 1/span 12;
    } */

    .cell--3 {
        grid-row: 1/span 1;
        grid-column: 8/span 2;
    }

    .cell--11 {
        grid-row: 1/span 1;
        grid-column: 10/span 2;
    }

    .cell--4 {
        grid-row: 7/span 5;
        grid-column: 1/span 12;
    }

    .cell--10 {
        grid-row: 22/span 1;
        grid-column: 11/ span 2;
    }

    .cell--merged {
        grid-row: 2/span 13;
        grid-column: 1/ span 12;
    }

    .cell--2 {
        grid-row: 1/ span 7;
        grid-column: 1/ span 12;
    }

    .cell--4 {
        grid-row: 9/ span 6;
        grid-column: 1/ span 12;
    }

    .cell--5 {
        display: flex;
        justify-content: center;
        grid-row: 15/span 1;
        grid-column: 1/span 12;
    }

    .cell--6 {
        display: flex;
        justify-content: center;
        grid-row: 22/span 1;
        grid-column: 1/span 12;
    }

    .cell--merged--lower {
        grid-row: 16/span 18;
        grid-column: 1/ span 12;
    }

    .cell--7 {
        grid-row: 1/ span 4;
        grid-column: 1/span 12;
    }

    .cell--8 {
        grid-row: 7/span 4;
        grid-column: 1/span 12;
    }

    .cell--10 {
        grid-row: 28/span 1;
        grid-column: 12/span 1;
    }

    #headerContainer {
        display: flex;
        justify-content: center;
    }

    #fileUpload, #fileSubmit, #clearButton {
        font-size: 1rem;
    }

    #fileExport {
        font-size: 0.9rem;
    }

    .img-magnifier-glass {
        display: none;
    }
}

@media screen and (min-width: 480px) and (max-width: 639px) {
    .grid {
        height: 185vh;
        grid-template-rows: repeat(36, 1fr);
    }

    .cell--1 {
        grid-row: 1/span 1;
        grid-column: 5/span 4;
    }

    .cell--9 {
        grid-row: 2/span 1;
        grid-column: 2/span 10;
    }

    .cell--3 {
        grid-row: 3/span 1;
        grid-column: 4/span 3;
    }

    .cell--11 {
        grid-row: 3/span 1;
        grid-column: 7/span 3;
    }

    .cell--merged {
        grid-row: 4/span 9;
        grid-column: 1/span 13;
    }

    .cell--2 {
        grid-row: 1/span 7;
        grid-column: 1/span 13;
    }

    .cell--4 {
        grid-row: 9/span 6;
        grid-column: 1/span 13;
    }

    .cell--5 {
        display: flex;
        justify-content: center;
        grid-row: 13/span 1;
        grid-column: 1/span 13;
    }

    .cell--6 {
        display: flex;
        justify-content: center;
        grid-row: 17/span 1;
        grid-column: 1/span 12;
    }

    .cell--merged--lower {
        grid-row: 14/span 7;
        grid-column: 1/span 13;
    }
    

    .cell--7 {
        grid-row: 1/span 6;
        grid-column: 1/span 12;
    }

    .cell--8 {
        grid-row: 10/span 6;
        grid-column: 1/span 13;
    }

    .cell--10 {
        grid-row: 21/span 1;
        grid-column: 10/ span 3;
    }

    #headerContainer {
        display: flex;
        justify-content: center;
    }

    #headerContainer h1 {
        font-size: 1.5rem;
    }

    .placeholder, .header {
        font-size: 1rem;
    }

    #fileUpload, #fileSubmit, #fileExport, #clearButton {
        font-size: 1rem;
    }

    .img-magnifier-glass {
        display: none;
    }
}

@media screen and (min-width: 360px) and (max-width: 479px) {
    .grid {
        height: 185vh;
        grid-template-rows: repeat(24, 1fr);
    }

    .cell--9 {
        grid-row: 2/span 1;
        grid-column: 1/span 12;
    }

    .cell--1 {
        grid-row: 1/span 1;
        grid-column: 1/span 4;
    }

    .cell--2 {
        grid-row: 2/span 5;
        grid-column: 1/span 12;
    }

    .cell--3 {
        grid-row: 1/span 1;
        grid-column: 5/span 4;
    }

    .cell--11 {
        grid-row: 1/span 1;
        grid-column: 9/span 4;
    }

    .cell--4 {
        grid-row: 8/span 5;
        grid-column: 1/span 12;
    }

    .cell--5 {
        display: flex;
        justify-content: center;
        grid-row: 11/span 1;
        grid-column: 1/span 12;
    }

    .cell--6 {
        display: flex;
        justify-content: center;
        grid-row: 15/span 1;
        grid-column: 1/span 12;
    }

    .cell--7 {
        grid-row: 1/span 4;
        grid-column: 1/span 12;
    }

    .cell--8 {
        grid-row: 7/span 4;
        grid-column: 1/span 12;
    }

    .cell--10 {
        grid-row: 19/span 1;
        grid-column: 9/span 4;
    }

    .cell--merged {
        grid-row: 3/span 10;
        grid-column: 1/span 12;
    }

    .cell--merged--lower {
        grid-row: 12/span 10;
        grid-column: 1/span 12;
    }

    #headerContainer {
        display: flex;
        justify-content: center;
    }

    #headerContainer h1 {
        font-size: 1.5rem;
    }

    .placeholder, .header {
        font-size: 1rem;
    }

    #fileUpload, #fileSubmit, #fileExport, #clearButton {
        font-size: 1rem;
    }

    .img-magnifier-glass {
        display: none;
    }
}

@media screen and (min-width: 200px) and (max-width: 359px) {
    .grid {
        height: 185vh;
        grid-template-rows: repeat(24, 1fr);
    }

    .cell--1 {
        grid-row: 1/span 1;
        grid-column: 5/span 4;
    }

    .cell--2 {
        grid-row: 2/span 5;
        grid-column: 1/span 12;
    }

    .cell--3 {
        grid-row: 7/span 1;
        grid-column: 3/span 4;
    }

    .cell--4 {
        grid-row: 7/span 5;
        grid-column: 1/span 12;
    }

    .cell--5 {
        display: flex;
        justify-content: center;
        grid-row: 13/span 1;
        grid-column: 1/span 12;
    }

    .cell--6 {
        display: flex;
        justify-content: center;
        grid-row: 18/span 1;
        grid-column: 1/span 12;
    }

    .cell--7 {
        grid-row: 14/span 4;
        grid-column: 1/span 12;
    }

    .cell--8 {
        grid-row: 19/span 4;
        grid-column: 1/span 12;
    }

    .cell--9 {
        grid-row: 23/span 1;
        grid-column: 1/span 12;
    }

    .cell--10 {
        grid-row: 7/span 1;
        grid-column: 7/span 4;
    }

    #headerContainer {
        display: flex;
        justify-content: center;
    }

    #headerContainer h1 {
        font-size: 1.5rem;
    }

    .placeholder, .header {
        font-size: 1rem;
    }

    #fileUpload, #fileSubmit, #clearButton {
        font-size: 0.8rem;
    }

    #fileExport {
        font-size: 0.6rem;
    }

    .img-magnifier-glass {
        display: none;
    }
}

#sidenav {
    height: 100%;
    width: 240px;
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    background-color: rgb(220, 0, 50);
    overflow-x: hidden;
    /* padding-top: 60px; */
    transition: 0.5s;
    color: white;
    display: flex;
    flex-direction: column;
}

#sidenav--button--div {
    position: absolute;
    top: 100px;
}

.sidenav--button {
    color: white;
    background-color: transparent;
    border: none;
    width: 240px;
    height: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    padding-left: 20px;
    transition: 0.5s;
    display: flex;
    align-items: center;
}

.sidenav--button:hover {
    cursor: pointer;
    color: black;
}

.sidenav--button:active {
    cursor: default;
    color: white;
}

#helpDeskContainer {
    display: flex;
    position: absolute;
    left: 0.5em;
    bottom: 2em;
    height: 56px;
}

#helpDeskContainer > .button--text {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feedback-popup-button {
    border-radius: 0px;
}

#headerContainer h1 {
    padding-left: 20px;
    display: flex;
    align-items: center;
}

#headerContainer h1:hover {
    cursor: default;
}

#menu--button:hover, #sidenav--close:hover {
    cursor: pointer;
    color: black;
}

.selected--menu {
    color: rgb(220, 0, 50) !important;
    background-color: white;
    /* border-style: none inset none none; */
    border-color: rgb(220, 0, 50);
    border-width: 1px;
}

.selected--menu:hover {
    pointer-events: none;
}


#main--container {
    position: absolute;
    left: 15.5rem;
    transition: 0.5s;
    padding-right: 7px;
    overflow: hidden;
}

#sidenav--close {
    z-index: 1;
    width: 1.5rem;
    height: 1.5rem;
    /* bottom: 3.2rem; */
    bottom: 0;
    right: 5px;
    position: absolute;
    transform: translateY(-40%);
    /* transition: 0.5s; */
}

#menu--button {
    z-index: 1;
    width: 0 !important;
    height: 1.5rem;
    /* bottom: 3.2rem; */
    bottom: 0;
    right: 5px;
    position: absolute;
    transform: translateY(-40%);
    transition: 0.5s;
}

.button--icon {
    transition: 0.5s;
}

#erai--icon {
    /* position: absolute; */
    margin: 9px auto;
    /* top: 9px;
    left: 80px; */
    pointer-events: none;
    transition: 0.5s;
    /* display: flex; */
    justify-content: center;
    width: 100px;
}

.button--text {
    transform: translateX(3%);
}

#noteContainer {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#allowedFiles {
    display: block;
    color: red;
    font-style: italic;
}

button {
    font-size: 8px;
}
