* {
  padding: 0;
  margin: 0;
  font-family: "Sans Serif 1";
}

html {
  min-width: 320px;
}

.hide {
  display: none;
}

/* * { outline: 1px solid red; outline-offset: -1px;}  */
@font-face {
  font-family: "Sans Serif 1";
  src: URL("/assets/fonts/MSSansSerif1-Regular.ttf") format("truetype");
}
.content {
  height: min-content;
  width: 85%;
  margin-left: 7.5%;
  display: flex;
  flex-direction: row;
  min-height: calc(100vh - 40px);
}

#dashed-grid-paper {
  --grid-size: 30px;
  --grid-strength: 1px;
  --grid-dash: 10px;
  --grid-gap: 5px;
  --grid-color: #ddd;
  --paper-color: #fff;
  background-color: var(--paper-color);
  background-size: var(--grid-dash) var(--grid-dash), var(--grid-size) var(--grid-size);
  background-image: linear-gradient(to bottom, transparent var(--grid-gap), var(--paper-color) var(--grid-gap)), linear-gradient(to right, var(--grid-color) var(--grid-strength), transparent var(--grid-strength)), linear-gradient(to right, transparent var(--grid-gap), var(--paper-color) var(--grid-gap)), linear-gradient(to bottom, var(--grid-color) var(--grid-strength), transparent var(--grid-strength));
}

body {
  box-sizing: border-box;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.navbar {
  position: fixed;
  height: 84px;
  top: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  z-index: 2;
}

.logo {
  height: 48px;
  width: 100%;
  margin-right: auto;
}

.logo a {
  text-decoration: none;
  color: white;
  max-height: 48px;
}

.logo a p {
  margin-left: 16.6%;
  font-family: "Sans Serif 1";
  font-size: 36px;
  width: min-content;
  white-space: nowrap;
  max-height: 48px;
}

.navigation {
  background-color: #5a5a5a;
  height: 36px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  list-style: none;
  min-width: 100%;
  overflow: hidden;
  font-size: 0.85rem;
}

.subjects {
  display: flex;
  justify-content: center;
  padding: 0.1rem;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  border-bottom: 1px solid #333;
  border-right: 1px solid #333;
}

#math:hover {
  background-image: linear-gradient(#c21e1e, #f14444);
}

#phys:hover {
  background-image: linear-gradient(#FF5728, #FF9849);
}

#chem:hover {
  background-image: linear-gradient(#c5c033, #e7d75d);
}

#bio:hover {
  background-image: linear-gradient(#4AB642, #C8FF8A);
}

#cs:hover {
  background-image: linear-gradient(#21C0FF, #9EEAFF);
}

#blog:hover {
  background-image: linear-gradient(#9998FE, #CFB9FF);
}

.subjects:hover {
  border-top: 1px solid #333;
  border-left: 1px solid #333;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

.navigation a {
  display: inline-block;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 8px 12px;
  margin: auto;
  text-decoration: none;
  width: 16.6%;
  box-sizing: border-box;
}

#navbox {
  text-align: center;
  width: 25%;
  overflow: hidden;
  margin-top: 104px;
  user-select: none;
  position: relative;
  height: min-content;
}

#navboxheader {
  padding: 6px;
  max-height: 16px;
  cursor: move;
  z-index: 2;
  background-color: #444444;
  border: 1px solid #d3d3d3;
  color: #fff;
}

#navboxheader-icon {
  float: left;
  margin-left: 2px;
}

#navboxheader-text {
  float: center;
}

.navbox-collapsible {
  float: right;
}

#navboxcontent {
  background-color: #f1f1f1;
  border: 1px solid #d3d3d3;
  text-align: left;
  padding: 5px;
  padding-left: 20px;
  box-sizing: border-box;
}

#navboxcontent ul {
  padding: 0;
  margin: 0;
}

#navboxcontent li {
  padding: 5px;
  text-align: left;
  list-style-type: none;
  margin: 0;
}

.navlink {
  font-size: 1.25rem;
  font-weight: 750;
}

#center-column {
  box-sizing: border-box;
  width: 75%;
  margin: 104px 20px 30px 20px;
  padding: 8px;
  padding-bottom: 60px;
  outline: 2px dashed rgb(170, 170, 170);
  background-image: linear-gradient(90deg, #fcfbf1, #faf7e0);
}

article > p {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

h2 {
  font-size: 2.75rem;
  text-align: center;
  margin-bottom: 9px;
}

.heading {
  scroll-margin-top: 104px;
  padding-top: 6px;
}

#explore-line1, #explore-line2 {
  display: flex;
  gap: 13px;
  margin-top: 5px;
  text-decoration: none;
  justify-content: center;
}

.title-subsections {
  display: inline-flex;
  width: 100%;
  gap: 12px;
}

.info-subsections {
  padding-left: 12px;
  padding-bottom: 5px;
}

.footer {
  height: 300px;
  /* background: repeating-linear-gradient( -45deg, #111 2px, #222 4px, #111 7px);*/
  background-color: #141414;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1) 1px, transparent 1px, transparent 6px);
  background-size: 4px 4px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.follow-us-block {
  text-align: center;
  width: 24%;
  min-width: 120px;
  max-width: 200px;
  height: 100px;
  background-color: #FFF;
  margin: auto 7.7% auto 23.3%;
  border-radius: 20px;
}

.support-services-block {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 30%;
  min-width: 150px;
  max-width: 300px;
  margin: auto 20% auto 0;
  height: 100px;
  background-color: #fff;
  font-size: 16px;
  text-align: center;
  gap: 4%;
  border-radius: 20px;
}

.left-block {
  display: flex;
  flex-direction: column;
  justify-content: left;
}

.right-block {
  display: flex;
  flex-direction: column;
  justify-content: right;
}

.follow-us-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 10px;
  justify-content: center;
}

.follow-us-text {
  margin-top: 5px;
  margin-bottom: 10px;
}

.follow-us-table a {
  display: block;
}

@media only screen and (max-width: 1100px) {
  .content {
    width: 100%;
    margin-left: 0%;
  }
  #navbox {
    width: 33.3%;
  }
}
@media (min-width: 600px) {
  #navboxheader-text::after {
    content: "Navigation"; /* Remove the ::after content */
  }
  #chem::after {
    content: "Chemistry";
  }
  #bio::after {
    content: "Biology";
  }
  #phys::after {
    content: "Physics";
  }
}
@media (max-width: 600px) { /* Applies to smaller than px. */
  #navboxheader-text::after {
    content: "Nav.";
  }
  #chem::after {
    content: "Chem.";
  }
  #bio::after {
    content: "Bio.";
  }
  #phys::after {
    content: "Phys.";
  }
  .content {
    flex-direction: column;
    width: 100%;
  }
  #center-column {
    width: 95%;
    margin: 20px auto 10px auto;
    padding-bottom: 60px;
  }
  #navbox {
    width: 95%;
    margin: 94px auto 0 auto;
  }
  .logo a p {
    margin-left: 0%;
  }
  h2 {
    font-size: 2rem;
  }
}