@import url('https://fonts.googleapis.com/css2?family=Overpass:wght@400;700;900&display=swap');

@font-face {
  font-family: "TI"; 
  src: url('https://ribose.neocities.org/fonts/Px437_Ti_Pro.ttf') format('truetype');
}

:root {
  --primary-color: #E14747;
  --background-color: #000000;
  --text-color: #ffffff;
  --accent-color: #BF2626;
  --box-background: #1a1a1a;
  --border-radius: 8px;
  --padding: 20px;
  --gap: 32px;
  --header-height: 80px;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

/* General Layout */
body {
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Overpass', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 18px;
}

/* Header (Fixed at the top) */
header {
  background-color: var(--primary-color);
  padding: var(--padding);
  font-size: 20px;
  font-weight: 900;
  color: var(--text-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 20px;
  box-shadow: 0 4px 10px var(--shadow-color);
}

/* Header Title */
.header-title {
  flex-grow: 1;
  text-align: left;
}

/* Current Time */
.current-time {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-color);
  margin-left: 0px;
  margin-right: 50px;
}

/* Link Styling */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

a:hover,
a:focus {
  color: var(--accent-color);
  text-decoration: underline;
  transform: scale(1.05);
  outline: none;
}

/* Sidebar */
.sidebar {
  position: fixed;
  width: 300px;
  height: 100%;
  padding: 20px;
  overflow-y: auto;
  background-color: var(--box-background);
  box-shadow: 4px 0 10px var(--shadow-color);
  top: var(--header-height);
  transition: width 0.3s ease;
}

.sidebar ul {
  padding-left: 0;
  margin-left: 0;
}

.sidebar li {
  position: relative;
  padding: 12px 0;
  font-weight: 700;
  cursor: pointer;
}

.sidebar a {
  color: var(--text-color);
  text-decoration: none;
  display: block;
  padding: 8px 12px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.sidebar a:hover {
  background-color: #222;
  border-left: 4px solid var(--primary-color);
  transform: translateX(5px);
}

.sidebar ul ul.dropdown {
  display: none;
  padding-left: 20px;
}

.sidebar li:hover > ul.dropdown {
  display: block;
}

.sidebar ul ul.dropdown li {
  font-weight: 500;
}

.sidebar ul ul.dropdown li a {
  font-weight: 400;
}

/* Main Content */
.main {
  margin-top: var(--header-height);
  margin-left: calc(300px + 50px);
  padding: var(--padding);
  color: var(--text-color);
  position: relative;
  z-index: 10;
}

/* Intro Section */
.intro {
  text-align: left;
  margin-bottom: var(--gap);
}

.Section-Heading {
  font-size: 36px; /* Exactly double the body text size */
  font-weight: 900;
  color: var(--primary-color);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 40px 0 20px 0;
}

.Section-Text {
  font-size: 18px;
  font-weight: 400;
  max-width: 700px;
  margin: 0;
  text-align: left;
  color: var(--text-color);
  line-height: 1.6;
}

/* Boxes (Card-like elements) */
.boxes {
  display: flex;
  justify-content: flex-start;
  gap: var(--gap);
  flex-wrap: wrap;
}

.box {
  background-color: var(--box-background);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  color: var(--text-color);
  width: 250px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px var(--shadow-color);
}

.box:hover {
  transform: scale(1.05);
  background-color: var(--accent-color);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

/* References Section */
.references {
  margin-top: 40px;
  max-width: 700px;
  color: var(--text-color);
}

.references h3.Section-Heading {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.references ul {
  list-style-type: decimal;
  padding-left: 20px;
}

.references ul li {
  margin-bottom: 8px;
  font-weight: 400;
  font-size: 16px;
}

.references ul li a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.references ul li a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* External Links Section */
.external-links {
  margin-top: 40px;
  max-width: 700px;
}

.external-links ul {
  list-style-type: none;
  padding-left: 20px;
}

.external-links ul li {
  margin-bottom: 10px;
  font-weight: 400;
  font-size: 16px;
}

.external-links ul li a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.external-links ul li a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main {
    margin-left: 0;
  }

  .sidebar {
    width: 250px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 220px;
    position: fixed;
    left: -250px;
    transition: left 0.3s ease;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
  }

  .sidebar.show {
    left: 0;
  }

  .sidebar a {
    padding: 10px 14px;
  }

  .sidebar-toggle {
    display: block;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 30;
  }
}
