@font-face {
  font-family: 'ImperialScript';
  src: url('../fonts/ImperialScript-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/*Basic*/



html, body {
  background-color: #1a1c1d;
  color: #ffffff;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  overflow-y: auto; /* Allow vertical scrolling */
  box-sizing: border-box; /* Include padding and border in dimensions */
  min-height: 100vh; /* Ensures body fills at least the full screen */
  font-family: 'Times New Roman', Times, serif;
  overflow: auto; /* Allow scrolling if content overflows */
}

h1,
h2,
h3 {
  word-spacing: 5px;
  font-size: 60px;
  text-align: center;
  margin-bottom: 5px; /* Reduce space below h1 */
  font-family: 'ImperialScript';
}

.poem h1 {
  text-decoration: underline;
}

.poem p {
  font-size: 50px;
  text-align: center;
  line-height: normal;
}

.exercises_sol h1 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 25px;
}

ol{
  font-size: 30px;
}


h1.Q {
  font-size: 40px;
  text-align: left;
}

p {
  font-size: normal;
  text-align: left;
  line-height: 1;
  letter-spacing: 3px;
  padding: 0 20px 20px 0px;
}

.Block_EQ {
  font-size: large;
}

h3.Block_l {
  font-size: 50px;
  text-decoration: underline;
}

h2.index {
  text-align: center;
}

.sub_h {
  position: relative;
  bottom: 40px;
  right: 1%;
  font-size: 30px;
  letter-spacing: 3px;
  line-height: 50px;
}

.Connections {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* Decrease this value to tighten spacing */
  margin: 0 auto;
  padding: 10px 0;
}

.content {
  font-size: normal;
  width: 90%;
  margin: 0 auto;
  padding: 0 20px 20px 20px;
  border-left: 2px solid rgb(255, 255, 255);
}

.Proof .content {
  font-family: 'Times New Roman', Times, serif;
  font-size: large;
}

.Real h1 {
  text-align: center;
  text-decoration: underline;
}

.Real .content {
  font-family: 'Times New Roman', Times, serif;
  font-size: large;
}

.Real p {
  margin-left: 17px;
}

.centre {
  font-family: 'ImperialScript';
  font-size: 40px;
  text-align: center;
}

.global__footnote {
  position: absolute;
  font-size: 0.85rem;
  font-family: 'Times New Roman', Times, serif;
  margin-left: 10px;
  margin-top: 40px;
  bottom: 2px;
  padding: 0 10px;
}

/*Content Grid*/

.content_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px auto; /* Center the grid */
  max-width: 1200px; /* Prevent it from stretching too wide */
  padding: 0 10px; /* Add padding for smaller screens */
}

.content_card {
  background-color: #202324;
  border: 1px solid #ffffff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.content_card:hover {
  transform: scale(1.03);
}

.content_card img {
  width: 100%;
  height: auto;
  display: block;
}

.content_info {
  padding: 10px;
  text-align: center;
}

.content_title {
  font-size: 18px;
  margin-bottom: 5px;
}

/* Real */

.exercises_sol {
  display: flex;
  flex-direction: column; /* Stack children vertically */
  gap: 20px;
  margin: 20px auto;
  max-width: 800px;
  padding: 0 10px;
}

.sol_card {
  background-color: #202324;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  color: rgb(255, 255, 255);
  transition: transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex; /* Use flex to align content inside */
  align-items: center;
  min-height: 30px; /* Makes it look more like a row */
  width: 100%;
  text-decoration: none;
}

.exercises_sol h1 {
  word-spacing: normal;
  font-size: medium;
}

/* Drawer Toggle Button */
.drawer_toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: #76b900; /* Button color */
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000; /* Ensure it stays above other elements */
}

/* Drawer Menu */
.drawer {
  position: fixed;
  top: 0;
  left: -250px; /* Initially hidden off-screen */
  width: 250px;
  height: 100vh;
  background-color: #000000;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  transition: transform 0.3s ease-in-out; /* Smooth slide-in/out animation */
  z-index: 999; /* Ensure it stays above other elements */
}

.drawer ul {
  padding: 20px;
  margin: 70px 0;
}

.drawer ul li {
  margin: 10px 10px;
}

.drawer ul li a {
  font-family: 'ImperialScript';
  text-decoration: none;
  color: white;
  font-size: 30px;
  font-weight: bold;
}

.drawer ul li a:hover {
  color: #0071c5; /* Highlight on hover */
}

/* Drawer Open State */
.drawer.open {
  transform: translateX(250px); /* Slide in */
}
