@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Poppins:wght@400;500;700&display=swap");

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

/* Reset some default styles */
html,
body {
  margin: 0;
  padding: 0;
  user-select: none;
  scroll-behavior: smooth;
}

/* Center the content horizontally */
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  background-color: #0d1117;
  min-height: 100vh;
  color: #eee;
}

/* Header styles */
header {
  width: 100%;
  padding: 20px;
  background-color: #161b22;
  text-align: center;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 30px;
}

.logo img {
  margin-right: 15px;
  border-radius: 8px;
}

.pages h2 {
  margin: 0;
  text-transform: uppercase;
  padding: 5px 15px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  font-weight: 100;
}

.pages .menu {
  display: none;
}

/* Main styles */
main {
  flex: 1;
  width: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro,
.heading {
  text-align: center;
  margin-bottom: 50px;
  font-size: 30px;
}

.author {
  font-size: 25px;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48;
}

.main-cards {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-direction: row;
  gap: 20px;
  max-width: 1500px;
}

.card {
  width: 275px;
  height: 220px;
  padding-top: 30px;
  border: 1px solid #353535;
  border-radius: 8px;
  background-color: #161b22;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: border 0.2s ease-in-out;
}

#syllabus,
#questions,
#notes,
#recommend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 1.25vw;
}

#recommend {
  background: linear-gradient(#161b22, #161b22) padding-box,
    linear-gradient(to right, rgba(255, 183, 89, 0.5), rgba(255, 0, 212, 0.5))
      border-box;
  border: 1px solid transparent;
  transition: background-color 0.2s ease-in-out;
}

#recommend:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.card:hover {
  border: 1px solid #606060;
}

.main-cards p {
  background-color: #121212;
  width: 100%;
  margin-top: 0;
  padding: 5px;
  border-radius: 0 0 6px 6px;
  text-align: center;
}

.about-desc {
  text-align: justify;
  line-height: 1.6;
}

.para {
  text-align: center;
}

a {
  text-decoration: none;
  color: #eee;
}

.syllabus-cards,
.content-cards {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
}

.sCard {
  width: 275px;
  height: 225px;
  padding-bottom: 20px;
  border: 1px solid #353535;
  border-radius: 8px;
  background-color: #161b22;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: border 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex-wrap: wrap;
}

.sCard:hover {
  border: 1px solid #606060;
}

.cCard {
  text-align: center;
  width: 300px;
  height: 100px;
  padding: 20px;
  border: 1px solid #353535;
  border-radius: 8px;
  background-color: #161b22;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: border 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cCard:hover {
  border: 1px solid #606060;
}

/* Footer styles */
footer {
  width: 100%;
  padding: 20px;
  background-color: #161b22;
  color: #eee;
  text-align: center;
}
