body { 
  font-family: Arial, sans-serif;
  max-width: 700px; 
  margin: 20px auto; 
  padding: 10px; 
  background-color: #afd2e79b;
}
#backToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 16px;
  font-size: 16px;
  background-color: #007acc;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
}

h1 { 
  text-align: center; 
  font-size: 20px;
  font-weight: 900;
}
h2{
  text-align: center;
  font-size: 16px;
  font-weight: 400;
}
.checkbox-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  max-width: 900px;
  margin: 0 auto;
}

.item {
  flex: 1 1 calc(33.333% - 16px);
  box-sizing: border-box;
  margin-bottom: 8px;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

@media (max-width: 900px) and (min-width: 601px) {
  .item {
    flex: 1 1 calc(50% - 16px);
  }
}

@media (max-width: 600px) {
  .item {
    flex: 1 1 100%;
  }
}

button {
  display: block;
  margin: 0 auto;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #007acc;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
#result:hover {
  transform: scale(1.05);       
}

.result-message {
  font-size: 1em;
  color: #333;
  margin-bottom: 10px;

}

.result-major {
  display: inline-block;
  font-weight: bold;
  color: #007acc;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  box-sizing: border-box;
}

.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 10px;
  box-sizing: border-box;
  animation: fadeIn 0.5s ease-in-out;
}

.popup-content {
  background: #fff;
  border: 2px solid #007acc;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  animation: scaleUp 0.4s ease-out;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.popup-content .result-message {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.popup-content .result-major {
  font-size: 1.5em;
  font-weight: bold;
  color: #007acc;
  
}

.popup-content button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #007acc;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.popup-content button:hover {
  background-color: #005f99;
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
  .popup-content {
    max-width: 95%;
    width: 95vw;
    padding: 15px;
  }

  .popup-content .result-message {
    font-size: 1.0em;
    font-weight: 900;
  }

  .popup-content .result-major {
    font-size: 0.7em;
  }

  .popup-content button {
    font-size: 14px;
    padding: 8px 16px;
  }
}

@keyframes fadeIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes scaleUp {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
