body {
  font-family: "Pretendard", sans-serif;
  background: linear-gradient(180deg, #f0f6ff, #e9f0ff);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* -------------------------------------------
   Navigation Bar Styles
   ------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

/* Container within the navbar to control width */
.nav-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

/* Logo styling */
.nav-logo a {
  font-size: 1.25rem;
  font-weight: 700;
  color: #234c9b;
  text-decoration: none;
}

/* Hamburger button for mobile */
.nav-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  display: none;
  cursor: pointer;
}

/* Navigation links */
.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
.nav-links li {
  margin-left: 20px;
}
.nav-links a,
.nav-links button.logout {
  text-decoration: none;
  color: #234c9b;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  transition: background-color 0.3s, color 0.3s;
}
.nav-links a:hover,
.nav-links button.logout:hover {
  background: #e5e7eb;
  border-radius: 6px;
}

/* Mobile menu styles */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 60px;
    right: -240px;
    width: 240px;
    height: calc(100% - 60px);
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-links li {
    margin: 10px 0;
  }
}

/* Button and call-to-action animations */
button, .cta-buttons button {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button:hover, .cta-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
#avgBox {
  font-size: 18px;
  color: #1c3e80;
  margin: 10px 0 20px 0;
}

#title {
  text-align: center;
  font-size: 22px;
  color: #234c9b;
  margin-top: 80px;
}

#logoutBtn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #234c9b;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: 0.2s;
}
#logoutBtn:hover {
  background: #182f6f;
}

#scoreArea {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

.subject-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.subject-card h3 {
  margin-top: 0;
  font-size: 18px;
  color: #1c3e80;
  border-bottom: 2px solid #cfe1ff;
  padding-bottom: 6px;
}

.subject-card label {
  display: inline-block;
  width: 160px;
  font-size: 14px;
  color: #444;
}

.subject-card input {
  width: 80px;
  padding: 4px 6px;
  font-size: 14px;
  margin: 4px;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
}

.subject-card span {
  font-size: 14px;
}

.subject-card b {
  display: block;
  text-align: right;
  margin-top: 8px;
  color: #234c9b;
}