@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root {
	--primary-calculator-color: #faf7f0;
	--secondary-calculator-color: #3c4048;
	--primary-input-color: #333333;
	--secondary-input-color: #ced6d6;
	--primary-end-color: #3c4048;
	--secondary-end-color: rgb(30, 30, 30);
	--primary-input-text: white;
	--secondary-input-text: black;
	--primary-number-shadow: #7d7373;
	--secondary-number-shadow: #9e7ed9;
	--primary-input-shadow: #656060;
	--secondary-input-shadow: #96f5c1;
	--primary-trigger-shadow: #958c80;
	--secondary-trigger-shadow: #f6fd70;
	--primary-calculator-shadow: ;
	--secondary-calculator-shadow: #ff5f72;
	--primary-body-color: #b2b2b2;
	--secondary-body-color: #3d3d3d;
	--primary-heading-color: black;
	--secondary-heading-color: white;
}

.dark-theme {
	--secondary-calculator-color: #faf7f0;
	--primary-calculator-color: #3c4048;
	--secondary-input-color: #333333;
	--primary-input-color: #ced6d6;
	--secondary-end-color: #3c4048;
	--primary-end-color: rgb(30, 30, 30);
	--secondary-input-text: white;
	--primary-input-text: black;
	--secondary-body-color: #b2b2b2;
	--primary-body-color: #3d3d3d;
	--secondary-heading-color: black;
	--primary-heading-color: white;
}

.neon-theme {
	--secondary-number-shadow: #7d7373;
	--primary-number-shadow: #9e7ed9;
	--secondary-input-shadow: #656060;
	--primary-input-shadow: #96f5c1;
	--secondary-trigger-shadow: #958c80;
	--primary-trigger-shadow: #f6fd70;
	--secondary-calculator-shadow: ;
	--primary-calculator-shadow: #ff5f72;
}

.html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--primary-body-color);
	/* Chrome 10-25, Safari 5.1-6 */
	/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
	font-family: "Poppins", sans-serif;
	/* hide Scrollbar */
	-ms-overflow-style: none;
	/* IE and Edge */
	scrollbar-width: none;
	/* Firefox */
	margin: 0;
	max-width: 1920px;
	margin: auto;
}

/* hide scrollbar */
body::-webkit-scrollbar {
	display: none;
}

.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 95%;
	margin: 0 auto 0 auto;
	height: 10vh;
	padding: 10px;
}

#calc-style {
	font-size:30px;
}

.calculator-container {
	text-align: center;
}

.calculator {
	width: 70%;
	background-color: var(--primary-calculator-color);
	padding: 20px;
	border-radius: 10px;
	margin: 20px auto 20px auto;
	box-shadow: 2px 2px 40px var(--primary-calculator-shadow);
}

input[type="text"] {
	width: 90%;
	height: 100px;
	border-radius: 20px;
	border: 2px solid white;
	background-color: var(--primary-input-color);
	box-shadow: 4px 4px 30px var(--primary-input-shadow);
	color: var(--primary-input-text);
	font-size: x-large;
	padding: 20px;
	-webkit-box-sizing: border-box;
	/* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;
	/* Firefox, other Gecko */
	box-sizing: border-box;
	cursor: default;
}

.calc-buttons {
	display: inline-block;
	width: auto;
}

.button {
	margin: 3px;
	width: 108px;
	border: 2px solid black;
	height: 80px;
	border-radius: 40px;
	color: #000000;
	cursor: pointer;
	transition: all 0.2s ease;
	/* box-shadow: 2px 2px 40px #df6672; */
}

button:hover {
	background-color: hsla(180, 100%, 40%, 0.3);
	transition: 0.2s;
	color: rgb(255, 85, 23);
	text-shadow: 0px 0px 1px white;
	box-shadow: 0 5px 15px rgba(5, 197, 245, 0.986);
}

.highlighted{
	background-color: hsla(180, 100%, 40%, 0.3) !important;
	transition: 0.2s;
	color: rgb(255, 85, 23);
	text-shadow: 0px 0px 1px white;
	box-shadow: 0 5px 15px rgba(5, 197, 245, 0.986);
}

.functions-one button:nth-child(13) {
	background-color: #dc3545;
	box-shadow: 2px 2px 40px #6d5255;
}

.functions-one button:nth-child(13):hover {
	color: white;
}

.functions-one {
	display: inline-block;
}

.functions-two {
	display: inline-block;
}

.padding-functions {
	display: inline-block;
	width: 40px;
	background-color: red;
}

.more-toggle-btn {
	
	background-color: white;
	color: black;
	font-size: large;
	border-radius: 15px;
	padding: 15px;
	margin-right: 100px;
	
}

.solve-quadratic{
	background-color: white;
	color: black;
	margin-left: 60px;
	font-size: large;
	border-radius: 15px;
	padding: 5px;
	margin-right: 130px;
	height: 55px;
	width: 300px;
	
	
}
.more-functions-toggle{
	width: 80%;
}
.more-toggle-btn:hover {
	color: black;
	cursor: pointer;
	background-color: white;
}
.options-container{
	display: flex;
}

.other-functions {
	margin: 20px;
	text-align: center;
}

.triggers {
	background-color: #ffc266;
	box-shadow: 2px 2px 60px var(--primary-trigger-shadow);
}

.backspace{
  background-color: #e2801e;
  box-shadow: 2px 2px 60px var(--primary-number-shadow);
}

.basic-stuff {
	background-color: #80d4ff;
}

.complex-stuff {
	background-color: #80ffff;
}

footer {
	background-color: black;
	color: grey;
	text-align: center;
	padding: 1rem;
}

.end {
	background-color: var(--primary-end-color);
	color: rgb(169, 184, 193);
	text-align: center;
	padding: 0.25rem;
	bottom: 0;
	font-size: 20px;
}
.love{
	font-size: 30px;
}
.love a {
	text-decoration: none;
	color: white;
}

.love a:hover {
	color: yellow;
}

.separate-btn {
	display: block;
}

/* #calc-style {
  font-family: "IM Fell Great Primer SC", serif;
} */

/* History toggle & other stuffs */
.toggleHistory {
	width: 92%;
	text-align: right;
}
@media only screen and (max-width: 600px) {
	.toggleHistory {
		width: 100%;
		text-align: center;
	}
  }
  
.toggleHistory button:hover {
	background-color: #80ffff;
}

/* table design */

table {
	font-family: arial, sans-serif;
	border-collapse: collapse;
	width: 100%;
	background-color: #b1b4b6;
}

td,
th {
	border: 1px solid #dddddd;
	text-align: left;
	padding: 8px;
}

tr:nth-child(even) {
	background-color: #dddddd;
}

.hClear-btn {
	background-color: red;
	color: white;
	height: 40px;
	margin: 10px;
	border: none;
	border-radius: 23px;
	cursor: pointer;
}

.hClear-btn:hover {
	color: black;
}

/* Lots of media query for best responsiveness from a PC to 
a 2g phone :) */
@media only screen and (min-width: 1841px) {
	input[type="text"] {
		width: 58%;
	}
}

@media only screen and (min-width: 1641px) and (max-width: 1840px) {
	input[type="text"] {
		width: 65%;
	}
}

@media only screen and (min-width: 1441px) and (max-width: 1640px) {
	input[type="text"] {
		width: 75%;
	}
}

@media only screen and (min-width: 1221px) and (max-width: 1440px) {
	.calculator {
		width: 65%;
	}
}

@media only screen and (min-width: 1220px) {
	.calculator {
		width: 70%;
	}
}

@media only screen and (max-width: 888px) and (min-width: 540px) {
	.padding-functions {
		width: 0px;
	}
}

@media only screen and (max-width: 1089px) {
	.padding-functions {
		width: 0px;
	}
}

@media only screen and (max-width: 529px) {
	.button {
		width: 100px;
		height: 100px;
	}

	.more-toggle-btn {
		width: 80%;
	}
}

@media only screen and (max-width: 426px) {
	.button {
		width: 80px;
		height: 80px;
	}

	.more-toggle-btn {
		width: 80%;
	}
}

@media only screen and (max-width: 352px) {
	.button {
		width: 70px;
		height: 70px;
	}

	.more-toggle-btn {
		width: 80%;
	}

	.triggers {
		width: 80%;
	}
}

@media only screen and (max-width: 312px) {
	.button {
		width: 60px;
		height: 60px;
	}

	.more-toggle-btn {
		width: 80%;
	}

	.triggers {
		width: 80%;
	}
}

@media only screen and (max-width: 275px) {
	.button {
		width: 50px;
		height: 50px;
	}

	.more-toggle-btn {
		width: 80%;
	}

	.triggers {
		width: 80%;
	}
}

.mode-toggle {
	padding: 10px 10px;
	font-size: 20px;
	border: none;
	border-radius: 10px;
	margin: 5px;
	text-align: center;
	transition: all 0.5s ease-in;
	cursor: pointer;
}

.share{
	padding: 10px 10px;
	font-size: 20px;
	border: none;
	border-radius: 10px;
	margin: 5px;
	
	text-align: center;
	transition: all 0.5s ease-in;
	cursor: pointer;
	display: flex;
	justify-content: center;
	/* align-content: center; */
	/* align-self: center; */
	align-items: center;
	/* left: 60%; */
	/* background-color: #000000; */
	color: #fff; 
	font-size: larger;
}


.share a img{
	height: 25px;
	width: 25px;
	margin: 10px 5px;
	background: beige;
	border-radius: 10px;
	padding: 14px;
}

/* .share:hover{ */
	/* font-size: 22px; */
	/* background-color: #a2bbc9; */
	/* color: #070708; */
	/* transition: all 0.5s ease-in; */
	/* border-radius: 20px; */
	/* border: 3px solid ; */
/* } */

.mode-toggle:hover {
	background-color: #d3d3d3;
}
.heading {
	color: var(--primary-heading-color);
}


/* Base Toast Container */
#toast {
	display: none;
	align-items: center;
	max-width: 400px;
	width: fit-content;
	padding: 16px 20px;
	position: fixed;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	z-index: 1000;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	overflow: hidden;
	border: 2px solid transparent;
  }
  
  /* Status-specific styles */
  #toast.info {
	background: linear-gradient(145deg, #ffffff, #f5f9ff);
	border-color: #3498db;
  }
  
  #toast.success {
	background: linear-gradient(145deg, #ffffff, #f5fff7);
	border-color: #2ecc71;
  }
  
  #toast.error {
	background: linear-gradient(145deg, #ffffff, #fff5f5);
	border-color: #e74c3c;
  }
  
  #toast.warning {
	background: linear-gradient(145deg, #ffffff, #fffbf5);
	border-color: #f1c40f;
  }
  
  #toast.open {
	display: flex;
	animation: toastSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  }
  
  #toast.closing {
	animation: toastSlideOut 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  }
  
  /* Icon Wrapper Styles */
  #icon-wrapper {
	position: relative;
	min-width: 40px;
	height: 40px;
	border-radius: 12px;
	margin-right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
  }
  
  .info #icon-wrapper {
	background: rgba(52, 152, 219, 0.15);
  }
  
  .success #icon-wrapper {
	background: rgba(46, 204, 113, 0.15);
  }
  
  .error #icon-wrapper {
	background: rgba(231, 76, 60, 0.15);
  }
  
  .warning #icon-wrapper {
	background: rgba(241, 196, 15, 0.15);
  }
  
  #toast.open #icon-wrapper {
	animation: iconBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s;
  }
  
  /* Icon Styles with Animated Elements */
  #icon {
	width: 24px;
	height: 24px;
	position: relative;
  }
  
  .info #icon::before {
	content: "";
	position: absolute;
	width: 4px;
	height: 4px;
	background: #3498db;
	border-radius: 50%;
	top: 20%;
	left: 50%;
	transform: translateX(-50%);
  }
  
  .info #icon::after {
	content: "";
	position: absolute;
	width: 4px;
	height: 12px;
	background: #3498db;
	border-radius: 2px;
	top: 40%;
	left: 50%;
	transform: translateX(-50%);
  }
  
  .success #icon::before {
	content: "";
	position: absolute;
	width: 20px;
	height: 10px;
	border: 3px solid #2ecc71;
	border-top: 0;
	border-right: 0;
	transform: rotate(-45deg);
	top: 30%;
	left: 15%;
  }
  
  .error #icon::before,
  .error #icon::after {
	content: "";
	position: absolute;
	width: 3px;
	height: 20px;
	background: #e74c3c;
	border-radius: 2px;
	top: 50%;
	left: 50%;
  }
  
  .error #icon::before {
	transform: translate(-50%, -50%) rotate(45deg);
  }
  
  .error #icon::after {
	transform: translate(-50%, -50%) rotate(-45deg);
  }
  
  .warning #icon::before {
	content: "";
	position: absolute;
	width: 3px;
	height: 12px;
	background: #f1c40f;
	border-radius: 2px;
	top: 20%;
	left: 50%;
	transform: translateX(-50%);
  }
  
  .warning #icon::after {
	content: "";
	position: absolute;
	width: 3px;
	height: 3px;
	background: #f1c40f;
	border-radius: 50%;
	bottom: 20%;
	left: 50%;
	transform: translateX(-50%);
  }
  
  /* Message Styles */
  #toast-message {
	flex-grow: 1;
	padding-right: 16px;
  }
  
  #toast-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.3px;
  }
  
  .info #toast-title { color: #3498db; }
  .success #toast-title { color: #2ecc71; }
  .error #toast-title { color: #e74c3c; }
  .warning #toast-title { color: #f1c40f; }
  
  #toast-description {
	margin: 4px 0 0;
	font-size: 14px;
	color: #666;
	line-height: 1.4;
	letter-spacing: 0.2px;
  }
  
  /* Close Button Styles */
  #toast-close {
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 8px;
	margin: -8px;
	border-radius: 50%;
	transition: all 0.3s ease;
	position: relative;
	width: 30px;
	height: 30px;
  }
  
  #toast-close:hover {
	background: rgba(0, 0, 0, 0.05);
	transform: rotate(90deg);
  }
  
  #toast-close::before,
  #toast-close::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 2px;
	background: #666;
	top: 50%;
	left: 50%;
	transition: background 0.3s ease;
  }
  
  #toast-close:hover::before,
  #toast-close:hover::after {
	background: #333;
  }
  
  #toast-close::before {
	transform: translate(-50%, -50%) rotate(45deg);
  }
  
  #toast-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
  }
  
  /* Timer Bar */
  #timer {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 4px;
	width: 100%;
	background: rgba(0, 0, 0, 0.05);
	overflow: hidden;
  }
  
  #timer::before {
	content: '';
	position: absolute;
	height: 100%;
	width: 100%;
	left: 0;
	transform-origin: left;
	animation: timer 5s linear forwards;
  }
  
  .info #timer::before { background: #3498db; }
  .success #timer::before { background: #2ecc71; }
  .error #timer::before { background: #e74c3c; }
  .warning #timer::before { background: #f1c40f; }
  
  /* Animations */
  @keyframes toastSlideIn {
	0% {
	  opacity: 0;
	  transform: translateX(-50%) translateY(-100%);
	}
	50% {
	  transform: translateX(-50%) translateY(10%);
	}
	100% {
	  opacity: 1;
	  transform: translateX(-50%) translateY(0);
	}
  }
  
  @keyframes toastSlideOut {
	0% {
	  opacity: 1;
	  transform: translateX(-50%) translateY(0);
	}
	100% {
	  opacity: 0;
	  transform: translateX(-50%) translateY(-100%);
	}
  }
  
  @keyframes iconBounce {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.2); }
  }
  
  @keyframes timer {
	0% { transform: scaleX(1); }
	100% { transform: scaleX(0); }
  }
  
  /* Optional Shimmer Effect */
  #toast::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 200%;
	height: 100%;
	background: linear-gradient(
	  90deg,
	  transparent,
	  rgba(255, 255, 255, 0.4),
	  transparent
	);
	animation: shimmer 2s infinite;
  }
  
  @keyframes shimmer {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(50%); }
  }

#timer 
{
  width: 0%;
  height: 4px;
  background: var(--primary);
  position: absolute;
  bottom: 0;
  left: 0;
  border-top-right-radius: 5px;
  box-shadow: 0 0 8px var(--primary);
}

.timer-animation 
{
  animation: countdown 5s linear forwards;
}

@keyframes countdown 
{
  from {
    width: 100%;
  } 
  to {
    width: 0%;
  } 
}

.success
{
  --primary: #2DD743;
  --secondary: #E3FEE6;
}

.success #icon 
{
  transform: rotate(-45deg);
}

.success  #icon::before
{
  width: 10px;
  height: 3px;
  transform: translate(calc(-50% + 1px), calc(-50% + 1px));
}

.success  #icon::after
{
  width: 3px;
  height: 6px;
  transform: translate(calc(-50% - 3px), calc(-50% - 1px));
}

.warning 
{
  --primary: #F29208;
  --secondary: #FFEEDF;
}

.warning  #icon::before
{
  width: 3px;
  height: 3px;
  transform: translate(-50%, calc(-50% + 4px));
}
.warning  #icon::after
{
  width: 3px;
  height: 7px;
  transform: translate(-50%, calc(-50% - 2px));
}

.error 
{
  --primary: #E63435;
  --secondary: #FFEAEC;
}

.error  #icon::before
{
  width: 3px;
  height: 3px;
  transform: translate(-50%, calc(-50% + 4px));
}

.error  #icon::after
{
  width: 3px;
  height: 7px;
  transform: translate(-50%, calc(-50% - 2px));
}

.info 
{
  --primary: #42C0F2;
  --secondary: #CFEFFC;
}

.info  #icon::before
{
  width: 3px;
  height: 7px;
  transform: translate(-50%, calc(-50% + 2px));
}

.info  #icon::after
{
  width: 3px;
  height: 3px;
  transform: translate(-50%, calc(-50% - 4px));
}

main button 
{
  padding: 0.6em 1.5em;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
}

#successBtn 
{ 
  border: 1px solid #2DD743; 
  color: #2DD743;
  background: #E3FEE6;
}

#warningBtn 
{ 
  border: 1px solid #F29208; 
  color: #F29208;
  background: #FFEEDF;
}

#errorBtn 
{ 
  border: 1px solid #E63435; 
  color: #E63435;
  background: #FFEAEC;
}

#infoBtn 
{ 
  border: 1px solid #42C0F2; 
  color: #42C0F2;
  background: #CFEFFC;
}

#scrollToTopBtn {
    display: none; /* Hidden by default */
    background-color: white; /* Blue */
    color: black; /* White text */
	
    border: none; /* No borders */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Some padding */
    cursor: pointer; /* Pointer cursor on hover */
	z-index: 1000;
}
#scrollToTopBtn:hover {
	background-color: #d2cdcd;
	transition: 0.2s;
	color: rgb(255, 85, 23);
	text-shadow: 0px 0px 1px white;
	box-shadow: 0 5px 15px rgba(5, 197, 245, 0.986);
}
