@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");

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Poppins", sans-serif;
}
nav{
    height: 100%vh;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    
}
body {
	height: 100vh;
	width: 100vw;
	display: flex;
	justify-content: start;
	align-items: center;
	flex-direction: column;
	gap: 20px;
	background-color: rgb(231, 231, 231);
}
header {
	height: 100px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.heading {
	color: green;
}

.container {
	height: 620px;
	width: 1000px;
    max-width: 100%;
	background-color: white;
	box-shadow: 8px 8px 20px rgb(128, 128, 128);
	position: relative;
	overflow: hidden;
	border-radius: 20px;
}

.container-header {
	height: 90px;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin-bottom: 20px;
	margin-top: 10px;
}

.container-header input {
	height: 50px;
	width: 400px;
	font-size: 25px;
	border-radius: 10px;
	padding-left: 20px;
	padding-right: 5px;
}
h3{
    color: black;
}
.push,
.pop,
.reset,
.box {
	height: 50px;
	width: 140px;
	font-size: 25px;
	background-color: green;
	color: white;
	border-radius: 10px;
	cursor: pointer;
	transition: 0.2s;
	border: none;
}
.disable-button {
	background-color: rgb(0, 59, 0);
}

.container-header button:active {
	transform: scale(0.95);
}
.container-body {
    
	display: flex;
	justify-content: space-evenly;
	align-items: center;
}

.stack {
	width: 500px;
	height: 470px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-width: 0 3px 0 0;
	border-color: black;
	border-style: solid;
}

.main-stack-bucket {
	height: 450px;
	width: 200px;
	border-width: 0 4px 4px 4px;
	border-color: black;
	border-style: solid;
	border-radius: 0 0 10px 10px;
	display: flex;
	justify-content: end;
	align-items: center;
	flex-direction: column-reverse;
	gap: 5px;
	padding-bottom: 5px;
}


.ele {
    position: relative;
  height: 80px;
  width: 170px;
  display: flex;
  justify-content: center;
  align-items: center;
    
  }
  .ele-container {
    position: relative;
  }
  

  .ele-text {
    position: absolute; /* Position the text element */
    top: 60%; /* Adjust the top value as per your preference */
    left: 50%; /* Adjust the left value as per your preference */
    transform: translate(-50%, -50%); /* Center the text element */
    color: white; /* Set the text color */
    font-size: 20px; /* Adjust the font size as per your preference */
    font-weight: bold; /* Adjust the font weight as per your preference */
    text-align: center; /* Center the text horizontally */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); /* Add a text shadow for better visibility */
    z-index: 1; /* Set a higher z-index to appear in front of the book image */
  }
.ele-add {
	animation: pushAnimation 0.3s infinite linear;
}
.ele-remove {
	animation: popAnimation 0.3s infinite linear;
}
@keyframes pushAnimation {
    0% {
      filter: brightness(1); /* Start with original color */
    }
    100% {
      filter: brightness(0.8); /* End with a darker color */
    }
  }
@keyframes popAnimation {
    0% {
        filter: brightness(1); /* Start with original color */
      }
      100% {
        filter: brightness(0.5); /* End with an even darker color */
      }
}

.info {
	height: 470px;
	width: 500px;
	padding-left: 20px;
}

[class^="sec"] {
	display: flex;
	width: 350px;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	justify-content: space-between;
}

.message-box {
	height: 180px;
	width: 400px;
	margin-top: 30px;
	padding: 10px;
	border-radius: 10px;
	background-color: #633b75;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.message-box h2 {
	text-align: center;
	font-weight: 600;
}

.message {
	height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
}
.error-message {
	animation: errorMessage 0.4s infinite linear;
}
@keyframes errorMessage {
	0% {
		background-color: bisque;
	}
	100% {
		background-color: rgb(255, 15, 59);
	}
}
