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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding-top: 0px;
}

main {
  flex: 1 0 auto;
}

body,
html {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  height: 100%;
  margin: 0;
}

.container {
  padding-top: 80px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar styles */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Keep logo and links separate */
  padding: 15px 10px 0px 0px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-right: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #ff644e;
}

.navbar-toggler {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-toggler span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background-color: #4833c1;
  color: white;
}

.btn-primary:hover {
  background-color: #fc566e;
}

.nav-signup {
  color: #ffffff;
  background-color: #4833c1;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-signup:hover {
  color: #000000;
  background-color: #ff6f88;
}
.btn-alert {
  background-color: #fc566e;
  color: white;
}

.btn-alert:hover {
  background-color: #4833c1;
}

/* Section styles */
section {
  padding: 60px 0;
}

#hero {
  background-image: url("../images/hero.677f8864eedd.jpeg");
  background-size: cover;
  background-position: center;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  margin-top: 20px;
}

#hero .container {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
}

#hero h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

#hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

#education {
  background-color: #2a3990;
  color: white;
}

.columns {
  display: flex;
  gap: 40px;
}

.column {
  flex: 1;
}

#homework-helper .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

#homework-helper .columns {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

#homework-helper .column {
  flex: 1;
  margin: 10px;
}

#homework-helper .helper-card {
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#homework-helper .helper-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#homework-helper .helper-option {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
}

#homework-helper .chat-interface {
  max-width: 100%;
  border-radius: 10px;
}

.helper-option {
  background-color: #e0e0e0;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.chat-interface {
  max-width: 100%;
  height: auto;
}

#game-cards {
  background-color: #ffffff;
}

.card-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  flex: 1 1 300px;
  background-color: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-header {
  background-color: #4833c1;
  color: white;
  padding: 10px 20px;
}

.card-body {
  padding: 20px;
}

.card-footer {
  background-color: #f8f8f8;
  padding: 10px 20px;
  border-top: 1px solid #e0e0e0;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

#philosophy {
  background-color: #f8f8f8;
}

.philosophy-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.space-title {
  margin-bottom: 10px;
}

.philosophy-item {
  flex: 1 1 300px;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

footer {
  flex-shrink: 0;
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
  width: 100%;
}

footer a {
  color: white;
  text-decoration: none;
  /* Optional: removes the underline from links */
}

footer a:hover {
  color: #ff644e;
}

footer a:focus,
footer a:active,
footer a:visited {
  color: rgba(255, 255, 255, 0.842);
  text-decoration: none;
  /* Optional: removes the underline from links in these states */
}

/* Responsive design */
@media (max-width: 768px) {
  .navbar-toggler {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: left;
  }

  .columns {
    flex-direction: column;
  }

  #hero h1 {
    font-size: 2em;
  }

  #hero p {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .card,
  .philosophy-item {
    flex-basis: 100%;
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/*--------------------------------------------------------------*/

.heading-container {
  text-align: center;
  margin-bottom: 20px;
}

.profile-selection-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(200px, 1fr)
  ); /* Adjust min and max width as needed */
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.profile-option {
  text-align: center;
}

.profile-logo {
  width: 100%;
  max-width: 200px; /* Limit logo size */
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
}

.profile-logo img {
  max-width: 100%;
  max-height: 100%;
}

.radio-label {
  margin-top: 5px;
}

.form-buttons {
  text-align: center;
  margin-top: 20px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-control {
  display: block;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #fec7b3;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-check {
  position: relative;
  display: flex;
  align-items: baseline;
  padding-left: 1.25rem;
}

.form-check input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 4px; /* Adjust based on your design preference */
}

.form-check-label {
  margin-bottom: 1;
}

/* CSS to gray out read-only fields */
.readonly-field {
  background-color: #e9ecef !important;
  color: #6c757d !important;
  pointer-events: none;
}

.alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.auth-container {
  padding: 40px 0;
}

.signup-card {
  margin-bottom: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.signup-card:hover {
  transform: translateY(-5px);
}

.signup-card .card-img-top {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 100px auto 0;
}

.signup-card .btn {
  margin-top: 10px;
}

.game-card {
  width: 100px;
  height: 150px;
  margin: 10px;
  perspective: 1000px;
  cursor: pointer;
}

.game-card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.game-card.flipped .game-card-inner {
  transform: rotateY(180deg);
}

.game-card-front,
.game-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 5px;
}

.game-card-front {
  background-color: #f1f1f1;
}

.game-card-back {
  background-color: #4e38c9;
  color: white;
  transform: rotateY(180deg);
}

/* Education Meets AI & Neuroscience Section */
#education {
  background-color: #4e38c9;
  /* Update the background color */
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

#education .section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  /* Increase space between header and cards */
}

#education .columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

#education .column {
  flex: 1 1 300px;
}

#education .card {
  background-color: rgba(0, 0, 0, 0.7);
  /* Darken the card background for better text readability */
  color: #ffffff;
  /* Ensure text is white */
  padding: 30px;
  /* Increase padding for better text margins */
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

#education .card:hover {
  transform: translateY(-5px);
}

#education .card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

#education .card-list {
  list-style-type: none;
  padding: 0;
}

#education .card-list li {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 10px;
  /* Add some margin between list items */
}

/* Responsive design for Education Meets AI & Neuroscience Section */
@media (max-width: 768px) {
  #education .columns {
    flex-direction: column;
  }
}

.selector-card {
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 340px;
  margin: 10px;
}

.selector-card img {
  max-height: 150px;
  width: auto;
  object-fit: cover;
  margin: 0 auto;
}

.selector-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Center the row */
.row {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.card-title {
  text-align: center;
}

.card-title i {
  display: block;
  margin-bottom: 10px;
  color: #ff644e;
}

.helper-option {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.helper-option i {
  margin-right: 10px;
  color: #ff644e;
  width: 20px;
  text-align: center;
}

.helper-option span {
  font-weight: bold;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 5px; /* Adjust spacing between elements if needed */
}

.input-group input[type="text"] {
  flex: 1; /* Allow the text input to take up available space */
  height: 40px; /* Adjust the height to match the buttons */
}

.input-group button {
  height: 40px; /* Ensure all buttons have the same height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-group button img {
  height: 100%;
  width: auto;
}

/* Ensure the file input and drawing canvas buttons match the height */
.input-group .btn-warning {
  padding: 0; /* Remove padding if necessary */
  height: 40px;
}

.google-button-container {
  width: 100%;
  max-width: 300px; /* Adjust this value as needed */
  margin: 0 auto;
}
.google-btn {
  display: flex;
  align-items: center;
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 24px; /* Increased border-radius for more rounded corners */
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 1px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%; /* Make the button take full width */
}
.google-btn:hover {
  background-color: #357ae8;
}
.google-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%; /* Make the icon wrapper circular */
  background-color: white;
  margin-right: 1px; /* Add a small margin to separate from text */
}
.card img.google-icon {
  width: 18px;
  height: 18px;
}

.google-icon {
  width: 18px;
  height: 18px;
}
.google-btn-text {
  flex-grow: 1; /* Allow text to take up remaining space */
  text-align: center; /* Center the text */
  padding: 10px 0; /* Add vertical padding */
}
