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

html, body {
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  background: transparent !important;
}

.calculator-container {
  width: 95%;
  max-width: 900px;
  margin: 20px auto;
  background: transparent !important;
}

.calculator-header {
  text-align: center;
  margin-bottom: 20px;
}

.course-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 10px;
}

.course-row input,
.course-row select {
  padding: 10px;
  font-size: 1rem;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: border 0.2s ease-in-out;
}

.course-row input:focus,
.course-row select:focus {
  border-color: #8884ff;
  outline: none;
}

.remove-btn {
  font-size: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: red;
}

.box-flex-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 20px;
  gap: 20px;
}

.box2 {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.box2 .action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.box2 .action-row button {
  background-color: #4a90e2;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.box2 .action-row button:hover {
  background-color: #357bd8;
}

.box2 .current-gpa-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.box2 .current-gpa-row input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100px;
  background-color: #fff;
}

.box3 {
  flex: 1;
  max-width: 240px;
  background: #f5f5ff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 2px solid #c2c2f0;
  box-shadow: 0 4px 12px rgba(100, 100, 255, 0.1);
}

.box3 p {
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.box3 .gpa-number {
  font-size: 2rem;
  font-weight: bold;
  background-color: #8884ff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.grade-scale-table {
  width: 100%;
  margin: 10px 0;
}

.grade-scale-table th,
.grade-scale-table td {
  padding: 6px;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .box-flex-row {
    flex-direction: column;
  }

  .box3 {
    max-width: 100%;
  }
}