/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f4faff;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background-color: #0077cc;
  color: white;
  padding: 2rem;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
}

/* Theme Toggle */
#themeToggle {
  margin-top: 1rem;
  background: white;
  color: #0077cc;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

/* Navigation */
nav {
  background-color: #e6f2ff;
  padding: 1rem;
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: #0077cc;
  font-weight: 600;
}

nav a:hover {
  text-decoration: underline;
}

/* Main Content */
main {
  padding: 2rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.course-card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: scale(1.02);
}

.button {
  display: inline-block;
  background-color: #0077cc;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 1rem;
}

.button:hover {
  background-color: #005ea8;
}

/* Aside */
aside {
  background-color: #f0f8ff;
  padding: 1.5rem;
  margin: 2rem;
  border-left: 4px solid #0077cc;
}

aside h4 {
  margin-bottom: 1rem;
}

aside ul {
  list-style: none;
  padding-left: 0;
}

aside li {
  margin-bottom: 0.5rem;
}

aside a {
  color: #0077cc;
  text-decoration: none;
}

aside a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #e6e6e6;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #555;
}

footer a {
  color: #0077cc;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.social-links {
  margin-top: 1rem;
}

/* Dark Mode */
.dark-mode {
  background-color: #1e1e1e;
  color: #f1f1f1;
}

.dark-mode header,
.dark-mode nav,
.dark-mode aside,
.dark-mode footer {
  background-color: #2a2a2a;
  color: #f1f1f1;
}

.dark-mode .course-card {
  background-color: #333;
  border-color: #444;
}

.dark-mode a {
  color: #66ccff;
}
#contact {
  background-color: #e6f2ff;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  border-radius: 10px;
}

#contact h2 {
  margin-bottom: 1rem;
}

#contact ul {
  list-style: none;
  padding: 0;
}

#contact li {
  margin-bottom: 0.8rem;
}

#contact a {
  color: #0077cc;
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}
/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  aside {
    margin: 1rem;
  }
}
#user-auth {
  text-align: center;
  background-color: #e6f2ff;
  padding: 2rem;
  margin: 2rem auto;
  border-radius: 10px;
}

#user-auth .button {
  margin: 0.5rem;
}
#download-notes {
  background-color: #f8f8ff;
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem;
}

.note-list {
  list-style: none;
  padding-left: 0;
}

.note-list li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.note-list a {
  color: #0077cc;
  text-decoration: none;
  font-weight: 600;
}

.note-list a:hover {
  text-decoration: underline;
}
/* Lock the body width and hide horizontal overflow */
body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Ensure no elements exceed the viewport width */
* {
  box-sizing: border-box;
  max-width: 100%;
}

