html {
  font-size: 16px;
  font-family: "Courier New", Courier, monospace;
}
/********************
  Base Styles
********************/
body {
  /* font-family: Arial, sans-serif; */
  font-family: "Courier New", Courier, monospace;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  min-height: 100vh;
}

/********************
  Layout Containers
********************/
.container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  gap: 1rem;
  padding: 1rem;
}

.main-container {
  display: grid;
  grid-template-columns: 0 1fr;
  transition: grid-template-columns 0.3s ease;
  position: relative;
  min-height: calc(100vh - var(--header-height) - var(--footer-height) - 4rem);
  gap: 1rem;
}

/********************
  Header Component
********************/
.header {
  background: rgb(246, 244, 241);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  position: static;
  top: 0;
  z-index: 1000;
  height: 60px;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-title h1 {
  font-size: 2rem;
  color: black;
  /* font-family: "Times New Roman", serif; */

  margin: 0;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.login-btn {
  background-color: #f0f0f0;
  color: #333;
}

.signup-btn {
  background-color: #333;
  color: white;
}

.btn:hover {
  transform: translateY(-1px);
}

.login-btn:hover {
  background-color: #e0e0e0;
}

.signup-btn:hover {
  background-color: #444;
}

/********************
  Sidebar & Navigation
********************/
.sidebar {
  background-color: #333;
  overflow-y: auto;
  transition: 0.3s;
  padding-top: 2rem;
  border-radius: 8px;
}

.sidebar a {
  padding: 1rem 2rem;
  text-decoration: none;
  font-size: 1.1rem;
  color: white;
  display: block;
  transition: 0.2s;
}

.sidebar a:hover {
  background-color: #575757;
}

.openbtn {
  font-size: 1.5rem;
  cursor: pointer;
  background-color: bisque;
  color: #333;
  border: none;
  padding: 0.5rem 1rem;
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  z-index: 1001;
  border-radius: 4px;
  transition: 0.3s;
}

/********************
  Main Content
********************/
.main-content {
  padding: 3rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/********************
  Footer
********************/
.footer {
  background: black;
  border-radius: 8px;
  padding: 1rem;
  color: white;
  text-align: center;
  /* position: sticky; */
  bottom: 0;
  z-index: 1000;
}

/********************
  Auth Modals & Forms
********************/
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 400px;
  position: relative;
  border-radius: 8px;
}

.close {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 28px;
  color: #aaa;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

.form-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.auth-form button[type="submit"] {
  width: 100%;
  padding: 10px;
  background-color: #faf9f5;
  color: black;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/********************
  Image Gallery
********************/
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  justify-items: center;
}

.image-gallery img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.image-gallery button {
  background-color: transparent;
  border: transparent;
}

.image-gallery button:hover {
  cursor: pointer;
}

.image-gallery img:hover {
  transform: scale(1.05);
}

/********************
  Responsive Design
********************/
@media (max-width: 767px) {
  .main-container {
    min-height: calc(
      100vh - var(--header-height) - var(--footer-height) - 2rem
    );
  }

  .sidebar {
    padding-top: 4rem;
  }

  .sidebar a {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }

  .openbtn {
    top: 1rem;
    left: 1rem;
    padding: 0.5rem;
  }

  .main-content {
    padding: 1rem;
  }

  .header {
    padding: 1rem;
  }

  .auth-buttons {
    gap: 0.5rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .logo-title h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .auth-buttons {
    flex-direction: column;
    gap: 0.25rem;
  }

  .btn {
    padding: 0.4rem 0.8rem;
  }
}

.home-btn {
  margin-top: 40px;
}

.learning-path {
  display: flex;
  align-items: center;
  /* Vertically center the items */
  gap: 25px;
  /* Adds space between the image and text */
  margin-bottom: 30px;
}

.learning-path-img {
  max-width: 100%;
  height: auto;
}

.learning-path-text {
  flex-grow: 1;
  /* Ensures the text part takes available space */
}

.learning-path h3 {
  margin: 0;
  padding: 0;
}

.learning-path p {
  margin: 5px 0;
}
