* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: white;
}

button {
  cursor: pointer;
}
button i {
  color: white;
  transition: all 0.3s ease;
}
button:hover i {
  color: #ccc;
}

.btn {
  padding: 0.5rem 0.75rem;
  border: none;
  margin: 1rem 0.5rem;
  transition: background-color 0.3s ease;
}
.btn:hover {
  cursor: pointer;
  background-color: #ccc;
}

.subject-entry-template {
  display: none;
  visibility: hidden;
  opacity: 0;
}

body {
  background-color: #272727;
  color: white;
  font-family: "Baloo 2", cursive;
}
body section.animation-wrapper {
  position: fixed;
  z-index: 10;
  width: 100%;
  height: 100vh;
  background-color: white;
}
body section.animation-wrapper section.animation {
  margin-top: 10vh;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
body section.animation-wrapper section.animation .hero {
  width: 100%;
  height: 0;
}
body section.animation-wrapper section.animation .hero img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
body section.animation-wrapper .slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(to right, rgb(144, 144, 144), rgb(0, 0, 0));
  z-index: -1;
}
body header {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #272727;
}
body header nav {
  box-shadow: 0 8px 6px -6px black;
}
body header nav ul {
  display: flex;
  align-items: center;
}
body header nav ul li {
  padding: 1rem;
}
body header nav ul li a {
  font-size: 1.15rem;
  transition: all 0.3s ease;
}
body header nav ul li a:hover {
  color: yellow;
}
body header nav ul li.language-selector {
  margin-left: auto;
  font-family: Arial, Helvetica, sans-serif;
}
body header nav ul li.language-selector select {
  background-color: #333;
  color: white;
  border: 1px solid #444;
  padding: 0.5rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}
body header nav ul li.language-selector select option {
  background-color: #333;
  color: white;
}
body header nav ul li.language-selector select:hover {
  background-color: #444;
  border-color: #555;
}
body header nav ul li.language-selector select:focus {
  border-color: yellow;
  box-shadow: 0 0 0 2px rgba(255, 255, 0, 0.2);
}
body main section.main-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}
body main section.main-content h1 {
  font-size: 3rem;
}
body main section.main-content p {
  font-size: 1.15rem;
}
body main section.main-content div.sort-buttons .btn {
  border-radius: 0.25rem;
  font-size: 1rem;
}
body main section.main-content div.sort-buttons .btn .btn-icon {
  vertical-align: text-bottom;
  margin-right: 0.25rem;
  transform: scale(1.25);
}
body main section.main-content div.subject-container {
  max-height: calc(var(--entry-height, 50px) * 3);
  overflow-y: auto;
}
body main section.main-content div.subject-container::-webkit-scrollbar {
  width: 8px;
}
body main section.main-content div.subject-container::-webkit-scrollbar-track {
  background: #333;
  border-radius: 4px;
}
body main section.main-content div.subject-container::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 4px;
}
body main section.main-content div.subject-container::-webkit-scrollbar-thumb:hover {
  background: #888;
}
body main section.main-content div.subject-container::-webkit-scrollbar-thumb:active {
  background: #aaa;
}
body main section.main-content div.subject-container input,
body main section.main-content div.subject-container select {
  font-size: 1.05rem;
  padding: 0.5rem;
  border: 0.25px solid rgb(39, 39, 21);
  margin: 0.35rem;
  border-radius: 0.25rem;
  text-align: center;
}
body main section.main-content div.subject-container input.class-credit {
  width: 80px;
}
body main section.main-content div.subject-container button {
  padding: 0.5rem;
  border: none;
  background-color: #272727;
}
body main section.main-content div.subject-container button i {
  font-size: 1.25rem;
  pointer-events: none;
}
body main section.main-content button.add-button {
  border: none;
  cursor: pointer;
  width: 2.5rem;
  margin: 3rem 0rem;
  background-color: #272727;
}
body main section.main-content button.add-button i {
  font-size: 2.5rem;
  pointer-events: none;
}
body main section.main-content div.calculation-result {
  width: 200px;
  height: 200px;
  border: 3px solid red;
  border-radius: 50%;
  text-align: center;
  animation-name: rainbow-border;
  animation-duration: 20s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
body main section.main-content div.calculation-result p#gpa-text {
  margin-top: 32px;
}
body main section.main-content div.calculation-result h2#result-gpa {
  font-family: "Baloo 2", cursive;
  font-size: 3.5rem;
  font-weight: bold;
}
body main section.main-content .toggle-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1; /* Ensures the toggle is on top of other elements */
  font-family: Arial, Helvetica, sans-serif;
  /* Style for the toggle label */
  /* Hide the default checkbox */
  /* The switch - slider */
  /* Toggle on state */
  /* Move the circle when toggled on */
}
body main section.main-content .toggle-switch .toggle-label {
  opacity: 0;
  pointer-events: none;
  font-size: 16px;
  color: white;
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none; /* Prevents text selection on double-click */
}
body main section.main-content .toggle-switch input[type=checkbox] {
  display: none;
}
body main section.main-content .toggle-switch .switch {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 17px;
  background-color: #ccc;
  border-radius: 34px;
  cursor: pointer;
  transition: background-color 0.4s;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  /* The circle inside the switch */
}
body main section.main-content .toggle-switch .switch::before {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
body main section.main-content .toggle-switch .switch::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 13px;
  height: 13px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.4s;
}
body main section.main-content .toggle-switch input[type=checkbox]:checked + .switch {
  background-color: #4caf50;
}
body main section.main-content .toggle-switch input[type=checkbox]:checked + .switch::before {
  transform: translateX(13px);
}

.remove {
  transform: scale(0);
  transition: all 0.5s ease;
}

@keyframes scale-up {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
@keyframes scale-down {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(0);
  }
}
@keyframes rainbow-border {
  0% {
    border-color: red;
  }
  5% {
    border-color: orangered;
  }
  10% {
    border-color: tomato;
  }
  15% {
    border-color: darkorange;
  }
  20% {
    border-color: orange;
  }
  25% {
    border-color: goldenrod;
  }
  30% {
    border-color: gold;
  }
  35% {
    border-color: yellow;
  }
  40% {
    border-color: yellowgreen;
  }
  45% {
    border-color: lawngreen;
  }
  50% {
    border-color: chartreuse;
  }
  55% {
    border-color: lime;
  }
  60% {
    border-color: limegreen;
  }
  65% {
    border-color: aqua;
  }
  70% {
    border-color: deepskyblue;
  }
  75% {
    border-color: dodgerblue;
  }
  80% {
    border-color: blue;
  }
  85% {
    border-color: blueviolet;
  }
  90% {
    border-color: mediumorchid;
  }
  95% {
    border-color: orchid;
  }
  100% {
    border-color: violet;
  }
}
@media screen and (max-width: 630px) {
  body header nav ul {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }
  body header nav ul li {
    padding: 0.5rem;
  }
  body header nav ul li.language-selector {
    margin-left: unset;
  }
  body main section.main-content h1 {
    margin-top: 1rem;
  }
  body main section.main-content div.sort-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
  }
  body main section.main-content div.sort-buttons .btn {
    margin: 0;
  }
  body main section.main-content div.subject-container div.subject-entry {
    display: grid;
    align-items: center;
    grid-template: repeat(3, 1fr)/repeat(2, 1fr);
  }
  body main section.main-content div.subject-container div.subject-entry input.class-credit {
    width: unset;
  }
  body main section.main-content div.subject-container div.subject-entry input.letter-grade {
    background-color: white;
    color: black;
  }
  body main section.main-content div.subject-container div.subject-entry button.delete-button {
    grid-column: 1/3;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
  }
  body main section.main-content button.add-button {
    margin: 2rem auto;
  }
  body main section.main-content div.calculation-result {
    margin-bottom: 2rem;
  }
}
@media screen and (max-width: 450px) {
  body main section.main-content {
    display: block;
  }
  body main section.main-content div.subject-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: unset;
    max-height: unset;
  }
  body main section.main-content div.subject-container div.subject-entry {
    display: flex;
    align-items: center;
    flex-direction: column;
    align-items: stretch;
  }
  body main section.main-content div.subject-container div.subject-entry input.letter-grade {
    background-color: white;
    color: black;
  }
  body main section.main-content div.subject-container div.subject-entry button.delete-button {
    grid-column: 1/3;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
  }
  body main div.calculation-result {
    margin: 0 auto 2rem;
  }
}/*# sourceMappingURL=style.css.map */