:root {
            --bg-color: #121212;
            --text-color: #ffffff;
            --button-hover: #444;
            --button-active: #555;
            --display-bg: #3A3D5B;
            --display-text: #fff;
            --border-color: #444;
            --scientific-btn: #2e7d32;
            --numeric-btn: #0d47a1;
            --utility-btn: #e65100;
			--special-btn: #bb1818;
        }

.calculator-container {
	width: 100%;
	padding: 0px;
	border: 1px solid green;
	border-radius: 20px;
	background-color: #c0c1c6;
	
}

#sciout {
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#sciOutPut::before {
    content: "×" hidden;
    font-size: 0.8em;
    vertical-align: middle;
    margin: 0 2px;
}

#sciInPut {
    text-align: right;
    font-size: 1.2em;
    color: var(--display-text);
	background-color: var(--display-bg);
    min-height: 24px;
    padding: 5px 10px;
    word-wrap: break-word;
	border-bottom: 1px solid var(--display-text);
}

#sciOutPut {
    text-align: right;
    font-size: 2em;
    font-weight: bold;
    padding: 5px 3px;
    min-height: 40px;
    word-wrap: break-word;
	color: var(--display-text);
	background-color: var(--display-bg);
}

.scifunc, .scinm, .sciop, .scieq {
    display: inline-block;
    width: 60px;
    height: 40px;
    margin: 2px;
    text-align: center;
    line-height: 40px;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.scifunc {
    background-color: var(--scientific-btn);
    color: var(--text-color);
}

.scifunc sup {
    vertical-align: top;       /* Aligns superscript to the top */
    position: relative;       /* Allows fine-tuning */
    top: 1.2em;
	left: 0.1em;			/* Adjust this value to move superscript up/down */
    font-size: 0.75em;       /* Makes superscript slightly smaller */
    line-height: 0;          /* Removes extra space below superscript */
}

.scinm {
    background-color: var(--numeric-btn);
    color: var(--text-color);
	font-weight: bold;
	font-size: 20px;
}

.sciop {
    background-color: var(--utility-btn);
    color: var(--text-color);
}

.scieq {
    background-color: var(--special-btn);
    color: var(--text-color);
}

.scird {
    display: inline-block;
    padding: 2px;
    background-color: #bbbbbb;
    border-radius: 5px;
    margin-left: 10px;
}

.scifunc:hover, .scinm:hover, .sciop:hover, .scieq:hover {
	background-color: var(--button-hover);
}

.scifunc:active, .scinm:active, .sciop:active, .scieq:active {
    transform: scale(0.95);
}

#scihistory {
    margin-top: 20px;
    padding: 10px;
    border-top: 1px solid #eee;
    max-height: 600px;
    overflow-y: auto;
	color: var(--text-color);
}

@media (max-width: 600px) {
    .scifunc, .scinm, .sciop, .scieq {
        width: 50px;
        height: 35px;
        line-height: 35px;
        font-size: 0.9em;
    }
	
	.scird {
		margin: 0px;
		padding: 2px;
	}
    
    #sciOutPut {
        font-size: 1.5em;
    }
}