@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&family=Roboto:ital,wght@0,100..900;1,100..900&family=Special+Gothic+Expanded+One&display=swap");
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  background: #1f242d;
  color: white;
  font-family: "Poppins", sans-serif;
}

.container {
  width: 500px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  margin: 20px;
  padding: 20px;
  border-radius: 5px;
}

.header {
  text-align: center;
  padding: 8px;
  margin: 8px;
}

.header h1 {
  font-size: 40px;
  font-weight: bolder;
  background: linear-gradient(to right, red, blue);
  color: transparent;
  -webkit-background-clip: text;
  border-bottom: 3px solid white;
}
.toggle-buttons {
  display: flex;
  justify-content: space-around;
  margin: 10px;
}

.toggle-buttons button {
  font-size: large;
  font-weight: bold;
  padding: 8px;
  width: 80px;
  border: none;
  border-radius: 18px;
}
.toggle-buttons button:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}
.toggle-buttons button.active {
  background-color: green;
  color: white;
  font-weight: bolder;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
}

.main div {
  margin: 5px;
  padding: 5px;
}

.main div label {
  font-size: larger;
  font-weight: bolder;
  margin-right: 10px;
}

.main div input {
  font-size: normal;
  padding: 5px;
  border-radius: 5px;
  border: none;
  width: 180px;
}

#add-to {
  width: 150px;
  margin: 8px;
  padding: 8px;
  font-size: large;
  font-weight: bold;
  border: none;
  border-radius: 18px;
}

#add-to:hover {
  background-color: green;
  color: white;
  transform: scale(1.05);
  transition: transform 0.2s ease;
}
.table-box {
  margin: 50px 5px 20px;
}

table,
td {
  border-collapse: collapse;
  border: 2px solid white;
}

table {
  width: 100%;
  text-align: center;
}
table thead {
  font-size: large;
  font-weight: bold;
}

table td {
  padding: 5px;
}

.result-container {
  display: flex;
  justify-content: space-between;
}

#gpa-btn {
  width: 150px;
  margin: 8px;
  padding: 8px;
  font-size: large;
  font-weight: bold;
  border-radius: 18px;
  border: none;
}

#gpa-btn:hover {
  background-color: green;
  color: white;
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

#final-gpa {
  display: none;
  width: 150px;
  text-align: center;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
  margin: 8px;
  padding: 8px;
  font-size: large;
  font-weight: bold;
  border-radius: 18px;
  border: none;
}

.clear-all-div {
  display: flex;
  justify-content: center;
  margin: 20px;
}

#clear-all {
  width: 100%;
  padding: 5px;
  font-size: medium;
  font-weight: bold;
  border: none;
  border-radius: 18px;
  background-color: red;
  color: white;
}

#clear-all:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

#add-semester {
  width: 150px;
  margin: 8px;
  padding: 8px;
  font-size: large;
  font-weight: bold;
  border: none;
  border-radius: 18px;
}

#add-semester:hover {
  background-color: green;
  color: white;
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

.cgpa-result-container {
  display: none;
  justify-content: space-between;
}

#cgpa-calc {
  width: 160px;
  margin: 8px;
  padding: 8px;
  font-size: large;
  font-weight: bold;
  border-radius: 18px;
  border: none;
}

#cgpa-calc:hover {
  background-color: green;
  color: white;
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

#cgpa-result {
  display: none;
  width: 150px;
  text-align: center;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
  margin: 8px;
  padding: 8px;
  font-size: large;
  font-weight: bold;
  border-radius: 18px;
  border: none;
}

.clear-cgps-container {
  display: flex;
  justify-content: center;
  margin: 20px;
}

#clear-cgpa {
  width: 100%;
  padding: 5px;
  font-size: medium;
  font-weight: bold;
  border: none;
  border-radius: 18px;
  background-color: red;
  color: white;
}

#clear-cgpa:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}
