body{
    background-color:grey;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding-right: 0;
    caret-color: black;
}

#mainContainer {
    display: flex;
    width: 100vw;
    height: 98vh;
    overflow: hidden;
}

#ProofImgs {
    flex: 1;
    max-width: 50vw; 
    overflow-x: auto;
    overflow-y: auto;
    white-space: normal; 
    padding: 1rem;
    box-sizing: border-box;
}



#Calculator {
    flex: 1;
    margin-left: 1rem;
    padding: 1rem;
    overflow-y: auto;
    box-sizing: border-box;
    background-color:darkgrey;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}


#ProofImgs img {
    height: 120vh;
    width: auto;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    will-change: transform;
    transform: translateZ(0); /*this and the above line help with lag */
}

#ProofImgs img:hover {
    transform: scale(1.05);
}

/*makes it mobile-friendlier*/
@media (max-width: 768px) {
    #mainContainer {
        flex-direction: column;
    }

    #ProofImgs, #Calculator {
        flex: none;
        width: 100%;
        height: 50vh;
    }

    #ProofImgs img {
        height: auto;
        max-height: 90%;
    }
}



#equation{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
    margin: auto;
}

#numerator {
    width: 10vw;
    height: 10vw;
    text-align: center;
    font-size: 2vw;
    border-radius: 5px;
    background: transparent;
    color: black;
    margin-bottom: 1vh;
}


input::placeholder {
    font-size: 1.5vw;
    color:#e8e8e8;
    white-space: normal;
}   

#numerator::-webkit-outer-spin-button,
#numerator::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}


#divisionBar{
    width: 50%;
    height: 0.5vh;
    background-color: black;
    border: none;
    margin: 1vh 0;
}

#Num81{
    font-size: 8vw;
    margin-top: 1vh;
}

#submitBtn{
    font-size: 1.5vw;
    padding: 1vh 2vw;
    margin-top: 2vh;
    transform: translateY(-5vw);
}

#impossibleNumber, #actualAnswer {
    font-size: 1.5vw;
    margin-top: 2vh;
    text-align: center;
    outline: solid;
    outline-offset: 1vw;
    outline-width: .2vw;
    
    
}

#calculatedNum, #actualDivisionAnswer {
    width: 45%;
    height: auto;
    display: grid;
    margin: 1vw;
    font-size: 1.5vw;
    padding: 1vw;
}


#resultsContainer {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 2vh;
}

#numberParagraph{
    
    position: relative;
    transform: translateX(5vw);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 40vw;
    max-width: 800px;
}

.box {
    background-color: #ffffff;
    border: 2px solid #cccccc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    font-size: 1.5rem;
    color: #333333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.impossibleNumber {
    background-color: #ffdddd;
}

.actualAnswer {
    background-color: #ddddff;
}

#explaination{
    transform: translateY(3vh);
    text-align: center;
}

