/****               smaal screen devices page styling           ***/
:root {
  --toggle-menu-color: #3B3939;
  --background-color: #fefff7;
  --before-toggle: "OPEN";
  --before-toggle-top: -1.5vh;
  --before-toggle-left: -2vw;
  --code-background-color: #F2F2F2;
  --breadcrumbs-color: #696969;
  --tab-background-color: #26523D;
  --tab-color: #D3E8DC;
}

@media screen and (max-width: 799px) {
  html,
  body {
    min-height: 100vh;
    height: 100%;
    padding-bottom: env(safe-area-inset-bottom);
    position: relative;
    font-family: "Courier New", Courier, monospace;
    font-size: 6vw;
    background-color: var(--background-color);
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100vw;
    overflow-x: hidden;
    z-index: -1;
  }

  #page {
    width: 100vw;
    display: flex;
    flex-direction: column-reverse;
  }

  #leftCol {
    width: 100vw;
    display: flex;
    flex-direction: column;
    padding-top: 2vh;
  }

  #rightCol {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding-top: 2vh;
    background-color: var(--background-color);
    z-index: 5;
  }

  #toggleAbout {
    text-align: center;
    margin-bottom: 1vh;
    margin-top: 0.5vh;
  }

  #toggleImage {
    width: 40%;
  }

  #picContainer {
    width: 50vw;
    text-align: center;
  }

  #profilePic {
    width: 70%;
    border-radius: 3vw;
  }

  #aboutPane {
    margin-top: -1vh;
    width: 50vw;
  }

  #aboutHeader {
    margin: 0 auto;
    margin-top: 0.5vh;
    font-size: 5vw;
    text-align: center;
    color: #4b8a4b;
    -webkit-text-stroke: 0.5px #506550;
    letter-spacing: 0.1vw;
  }

  .aboutCategory {
    font-size: 4vw;
    font-weight: 600;
    width: 50vw;
    text-align: center;
    margin-top: 2vh;
  }

  p.aboutText {
    margin: 0 auto;
    line-height: 35px;
    width: 90vw;
    padding: 1vh 5vw;
    font-size: 4vw;
    font-weight: 700;
  }

  p.aboutText:first-of-type{
    margin-top: 12vh;
  }

  p.aboutText:last-of-type {
    margin-bottom: 5vh;
  }

  #socialPane {
    display: flex;
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 11vh;
  }

  .socialLink {
    width: 60%;
    margin: 0 auto;
    text-align: center;
  }

  .socialIcon {
    width: 20%;
  }

  .socialIcon:last-of-type {
    width: 65%;
  }

  #emailLink {
    width: 100%;
  }

  #emailIcon {
    width: 60%;
  }

  /******           Main Menu styling           ******/


  #mainMenu,
  #mainMenu nav,
  #mainMenu nav ul {
    width: 100%;
    z-index: 2;
  }

  #mainMenu {
    position: relative;
  }

  #mainMenu nav {
    position: sticky;
    top: 0;
  }

  #mainMenu nav ul {
    position: absolute;
    display: flex;
    overflow: none;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    list-style-type: none;
    margin: 0 auto;
    padding: 0;
    width: 100vw;
    text-align: center;
    background-color: #fefff7;
    top: -22vh;
    z-index: 2;
  }

  .in-instagram {
     top: -19vh;
  }
  #mainMenu nav ul a {
    width: 100%;
  }

  #mainMenu nav ul a li {
    position: relative;
    width: 100%;
    font-size: 4vw;
    padding: 1vh auto;
    padding-bottom: 1.3vh;
    margin: 0.5vh auto;
    width: 40vw;
    height: 3vh;
    border-right: 0.5px solid grey;
    border-left: 0.5px solid grey;
  }

  #mainMenu nav ul a li::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 0.5px;
    background-color: grey;
    color: grey;
    width: 10%;
  }

  #mainMenu nav ul a li::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    height: 0.5px;
    background-color: grey;
    color: grey;
    width: 10%;
  }

  #mainMenu nav ul li.menuToggler {
    position: relative;
    color: var(--toggle-menu-color);
    font-size: 10vw;
    font-weight: 900;
    margin-top: 8vh;
    margin-bottom: 2vh;
  }

  #mainMenu nav ul li.menuToggler::before {
    content: var(--before-toggle);
    position: absolute;
    font-size: 4vw;
    top: var(--before-toggle-top);
    left: var(--before-toggle-left);
    color: var(--toggle-menu-color);
  }

  .menuCategory {
    color: black;
    height: auto;
    text-decoration: none;
  }

  .menuCategory li {
    width: 100%;
    font-size: 3vw;
    font-weight: 700;
    padding-top: 1.5vw;
    cursor: pointer;
    text-align: center;
    border-bottom-width: 0;
  }

  /*****        styling the main contect window       *****/

  .contentPane {
    width: 100vw;
    font-size: 4.5vw;
    margin-top: 8vh;
    line-height: 4vh;
    z-index: 0;
  }

  /*****      Styling elements of the webdev page       ****/

  .webdevPanel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    margin: 0 auto;
    padding-top: 30px;
  }
  .contentHeaderBox {
    width: 100vw;
    margin-top: 2vh;
  }

  .contentHeader {
    margin: 0;
    width: 100%;
    margin-top: 30px;
    font-size: 5vw;
    padding-left: 3vw;
  }

  .projBox {
    margin-top: 30px;
    width: 100vw;
    height: 90vh;
    border-radius: 15px;
    margin: 0 auto;
  }

  .sectionTitle {
    font-size: 8vw; 
    font-weight: 800;
    width: 100vw;
    text-align: center;
    margin-top: 10vh;
  }

  .sectionTitle a {
    color: black;
    text-decoration: none;
  }

  .sectionHeader {
    padding-left: 3vw;
    font-size: 6vw;
    color: #666666;
    font-weight: 900;
  }

  .sectionInfo {
    padding-left: 3vw;
    line-height: 35px;
    font-size: 5vw;
    font-weight: 600;
  }

  .infoListItem {
    margin-top: 2vh;
    padding: 1vh 3vw;
    font-size: 5vw;
    line-height: 35px;
    font-weight: 600;
  }

  /********             Styling of the music work page          ******/

  .musicPanel {
    width: 100vw;
    padding-top: 20px;
  }

  .sectionNav {
    position: relative;
    max-width: 100vw;
    width: 100vw;
    z-index: 0;
  }

  .navPane {
    display: flex;
    position: relative;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    margin-top: 14vh;
    height: 20vh;
    z-index: 0;
  }

  .navPane li {
    margin: 1vh 0.5vw;
    z-index: 0;
  }

  .navPane li a {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 20vw;
    height: 5vh;
    border-radius: 2vw;
    padding: 2vh 4vw;
    text-decoration: none;
    color: black;
    font-weight: 500;
    font-size: 4vw;
    background-color: #292B29;
    color: #D5DED9;
    z-index: 0;
  }
  .indexList {
    margin-bottom: 70vh;
  }
  .indexList li {
    margin-top: 2vh;
  }
  .indexList li:last-of-type {
    margin-bottom: 5vh;
  }
  /**     Styling the courses section     **/

  section {
    width: 100%;
  }

  .courseSection {
    width: 100%;
  }

  .courseCard {
    display: block;
    margin: 0 auto;
    background-color: #fcfcf7;
    border: 1px solid black;
    width: 80%;
    box-shadow: 5px 3px 3px gray;
    border-radius: 15px;
    transition: all 1s ease;
  }

  .courseCard:hover {
    width: 90%;
    box-shadow: 0px 1px 1px gray;
    border: 2px solid black;
  }

  /**     Styles for the guides section       **/

  .mainSectionTitle {
    font-size: 6vw;
    margin: 0;
    padding: 0;
    padding-left: 5vw;
    margin-bottom: 3vh;
  }

  h2.updateTitle, h2.subtitle {
    font-size: 6vw;
    line-height: 4vh;
    width: 90%;
  }
  .updatesBox {
    background-color: #fcfafa;
    padding: 10px 20px;
    width: 80vw;
    margin: 0 auto;
    margin-bottom: 3vh;
    border: 2px solid black;
    box-shadow: 2px 1px 1px grey;
    border-radius: 15px;
  }

  .updatesBox:last-of-type {
    margin-bottom: 10vh;
  }

  .updateBoxContent {
    padding-top: 20px;
  }

  .updatesBoxMetaInfo {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  span.updateDate,
  span.updateLevel,
  span.updatePre {
    font-weight: bold;
    font-size: 14px;
  }

  span.updateDate,
  span.updateBreadcrumbs,
  span.updateLevel,
  span.updatePre {
    display: block;
    width: 90%;
  }
  span.updateDate {
    width: 100%;
  }

  span.updateBreadcrumbs {
    font-size: 3vw;
    margin-bottom: 3vh;
  }

  span.updateBreadcrumbs a {
    color: var(--breadcrumbs-color);
  }

  span.updateBreadcrumbs a:hover {
    color: #545454;
  }
  a.titleLink {
    font-weight: 900;
    text-decoration: none;
    color: black;
  }
  a.titleLink h2 {
    margin: 0;
    padding: 0;
    margin: 10px 0px;
    font-size: 24px;
  }
  a.updateSegmentLink {
    text-decoration: none;
    color: black;
  }
  ul {
    list-style: none;
    margin: 0px;
    padding: 0px;
  }
  ul a.updateSegmentLink li {
    font-size: 18px;
    font-weight: 500;
    margin-top: 10px;
    transition: all 1s ease;
  }
  ul a.updateSegmentLink li:hover {
    padding-left: 15px;
    opacity: 0.6;
  }



  /**     Styling the guide admin panel (login and editor pages)        **/

  .adminForm, .adminGuideForm {
    width: 50vw;
    margin: 0 auto;
    margin-top: 5vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
  .adminGuideForm {
    align-items: flex-start;
  }

  .adminGuideForm label {
    width: 80%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .adminGuideForm label input {
    queryBoxLabel.style.color = "black";
    width: 200px;
  }

  input[type="date"] {
    text-align: center;
  }

  .adminHeader {
    width: 50vw;
    margin: 0 auto;
    text-align: center;
    font-weight: 600;
    font-size: 48px;
    letter-spacing: 8px;
    margin-top: 3vh;
  }
  .credLoginLabel {
    margin: 10px 0px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
  }
  .credLoginLabel input {
    font-size: 16px;
    width: 300px;
    height: 30px;
    padding-left: 10px;
    letter-spacing: 2px;
    border-radius: 5px;
    border: 0.5px solid #A88C88;
  }
  .credLoginLabel input:hover {
    opacity: 0.6;
    background-color: #F5F2F2;
  }
  .credLoginLabel input:focus {
    box-shadow: 2px 2px 5px #D4E1FA;
    outline: none;
  }
  .loginButton,.generateButton, .adminGuideButtons  {
    position: relative;
    width: 100px;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    border: none;
    border-radius: 8px;
    background-color: #524E4E;
    color: #FFFFFF;
    cursor: pointer;
  }
  #loginButton:hover .adminGuideButtons:hover {
    opacity: 0.7;
  }
  #loginButton:active .adminGuideButtons:active {
    opacity: 1;
    box-shadow: 2px 2px 3px black;
  }
  .adminGuideButtons {
    width: 200px; 
    height: 60px;
   }
   .adminGuideButtons:last-of-type {
    margin-top: 5vh;
    width: 300px;
  }

  /***      Create styling  for the article page template     ***/

  .katex {
    font-size: 5vw;
    line-height: 5vh;
  }
  .guideContainer {
    width: 100%;
    padding: 0vh 2vw;
    font-weight: 500;
  }
  .metadata-row {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: flex-start;
  }
  div.guideSection {
    font-size: 16px;
  }
  p.sectionText {
    font-size: 18px;
    width: 90%;
  }
  /**       style the code segment panel      **/
  div.codeContainer {
    width: 95vw;
    margin: 0;
    border: 2px solid black;
    background-color: var(--code-background-color);
    border-radius: 10px;
  }
  div.codePanel {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 0.5px solid grey;
  }
  span.codeDescriptor {
    width: 100%;
    padding: 1vh 1vw;
  }
  div.copyCode {
    width: 10%;
    display: none;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 5px 10px;

  }
  div.copyCode img {
    width: 20%;
    cursor: pointer;
  }
  div.codeContent {
    padding: 10px 15px;
    font-family: monospace;
    overflow-x: scroll;
  }
  textarea.subtopicContent {
    margin-bottom: 20px;
  }
  div.buttonsContainer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 50vw;
    margin-bottom: 50px;
  }

  button.generateButton {
    line-height: 25px;
    width: 20vw;
  }
  .mathArticleForm {
    width: 100%;
  }
  .mathInput {
    font-size: 18px;
    width: calc(100% - 20px);
    padding: 10px 15px;
  }
  .mathPreview {
    text-align: left;
    padding-top: 50px;
    padding-left: 20px;
    width: 50%;
    white-space: pre-wrap;
    margin-right: 20px;
    font-family: monospace;
  }
  .latexInputBox {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-left: 20px;
  }
  .latexEditorBox {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  #publishMathGuideButton {
    display: block;
    margin: 50px auto;
  }
  /** styling the index list (for a directory)  **/

  ul.indexList {
    margin-left: 10%;
    margin-top: 20px;
  }

  ul.indexList li a {
    text-decoration: none;
    color: black;
  }

  ul.indexList li a:hover {
    opacity: 0.7;
  }
}

/****               large screen devices page styling           ***/

@media screen and (min-width: 800px) {
  html,
  body {
    padding: 0;
    margin: 0;
    font-family: "Courier New", Courier, monospace;
    font-size: 20px;
    background-color: #fefff7;
    box-sizing: border-box;
  }

  #page {
    width: 100%;
    display: flex;
    flex-direction: row;
  }

  #leftCol {
    width: 85vw;
    display: flex;
    flex-direction: column;
  }

  #rightCol {
    width: 15vw;
    display: flex;
    flex-direction: column;
    z-index: 5;
  }

  #toggleImage {
    display: none;
  }

  #profilePic {
    width: 12vw;
    padding: 1.5vw;
    border-radius: 3vw;
  }

  #aboutHeader {
    margin: 0 auto;
    font-size: 2vw;
    width: 12vw;
    text-align: center;
    color: #4b8a4b;
    -webkit-text-stroke: 0.5px #506550;
    letter-spacing: 0.1vw;
  }

  p.aboutText {
    margin: 0 auto;
    line-height: 35px;
    width: 60%;
    padding: 15px 50px;
    font-size: 22px;
    font-weight: 600;
  }
  p.aboutText:first-of-type{
    margin-top: 50px;
  }
  .aboutCategory {
    font-size: 1.5vw;
    width: 15vw;
    text-align: center;
    margin-top: 2vh;
    font-weight: 600;
  }

  #socialPane {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 5vh;
  }

  .socialLink {
    width: 20%;
  }

  .socialIcon {
    margin-top: 20px;
    width: 100%;
  }

  #emailLink {
    width: 100%;
  }

  #emailIcon {
    width: 100%;
  }

  /******           Main Menu styling           ******/

  #mainMenu,
  #mainMenu nav,
  #mainMenu nav ul {
    width: 100%;
  }

  #mainMenu nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
  }

  #mainMenu nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .menuCategory {
    color: black;
    text-decoration: none;
  }
  .menuCategory li {
    text-align: center;
    width: 100%;
    font-size: 18px;
    font-weight: 700;
    padding-top: 1.5vw;
    cursor: pointer;
    border-bottom-width: 0;
  }

  /****     create on category hover animation for pc screens    ****/

  #mainMenu nav ul li:hover {
    animation-name: categoryFocus;
    animation-fill-mode: forwards;
    animation-duration: 1.5s;
  }

  @keyframes categoryFocus {
    from {
      opacity: 1;
    }
    to {
      opacity: 0.5;
    }
  }

  /*****        styling the main contect window       *****/

  .contentPane {
    width: 80%;
    font-size: 22px;
    margin-top: 5%;
    padding-left: 20%;
    line-height: 35px;
  }

  /*****      Styling elements of the webdev page       ****/

  .webdevPanel {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    margin: 0 auto;
    padding-top: 30px;
  }
  .contentHeaderBox {
    width: 75%;
    padding: 0px 15px;
  }

  .sectionTitle a {
    font-size: 36px;
    font-weight: 800;
    text-decoration: none;
    color: #5C4C4A;
    cursor: pointer;
  }

  .contentHeader {
    margin: 0;
    width: 100%;
    margin-top: 30px;
  }

  .projBox {
    margin-top: 30px;
    width: 430px;
    height: 750px;
    border-radius: 15px;
  }

  .sectionInfo {
    padding-left: 15px;
    line-height: 30px;
  }

  .infoListItem {
    margin-top: 15px;
    padding-right: 35px;
  }

  /******       styling of math work page     *****/

  .mathProjBox {
    width: 90%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
  }

  .mathPanel {
    width: 60%;
    margin: 0 auto;
  }

  #fizmatiImage {
    border: 1px solid black;
    border-radius: 15px;
  }

  /*******            Styling of the teaching work page         ******/

  .teachingPanel {
    width: 100%;
    display: flex;
    flex-direction: row;
    padding-top: 20px;
  }

  .teachingInfo {
    line-height: 45px;
  }

  /********             Styling of the music work page          ******/

  .musicPanel {
    width: 100vw;
    padding-top: 20px;
  }

  .sectionNav {
    display: block;
    height: 90vh;
    position: fixed;
    top: 10vh;
    max-width: 15vw;
    min-width: 10vw;
    width: 15vw;
    margin-top: 5%;
  }

  .navPane {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .navPane li {
    margin: 30px 0px;
    margin-left: 20px;
    border-bottom: 1px solid black;
    width: 50%;
    padding-bottom: 20px;
    padding-left: 5px;
  }
  .navPane li:first-of-type {
    margin-top: 0px;
    border-top: 1px solid black;
    padding-top: 20px;
  }
  .navPane li a {
    display: flex;
    flex-direction: column;
    justify-content:  center;
    align-items: flex-start;
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
    height: 100%;
  }

  /**     Styling the courses section     **/

  section {
    width: 100%;
  }

  .courseSection {
    width: 100%;
  }

  .courseCard {
    display: block;
    margin: 0 auto;
    background-color: #fcfcf7;
    border: 2px solid black;
    width: 50%;
    box-shadow: 5px 3px 3px gray;
    border-radius: 15px;
    transition: all 1s ease;
  }

  .courseCard:hover {
    opacity: 1;
    width: 60%;
    box-shadow: 0px 1px 1px gray;
    border: 4px solid black;
  }

  /**     Styles for the guides section       **/
  .mainSectionTitle {
    font-size: 24px;
    margin: 0;
    padding: 0;
    padding-left: 10%;
  }

  h2.subTitle {
    width: 100%;
    font-size: 24px;
    text-align: center;
  }

  .updatesBox {
    background-color: #fcfafa;
    padding: 10px 20px;
    width: 75%;
    margin: 25px auto;
    border: 2px solid black;
    box-shadow: 2px 1px 1px grey;
    border-radius: 15px;
  }
  .updateBoxContent {
    padding-top: 20px;
  }

  .updatesBoxMetaInfo {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  span.updateDate,
  span.updateLevel,
  span.updatePre {
    font-weight: bold;
    font-size: 14px;
  }

  span.updateLevel,
  span.updatePre {
    display: block;
    width: 100%;
  }

  span.updateBreadcrumbs {
    font-size: 12px;
  }

  span.updateBreadcrumbs a {
    color: #919090;
  }

  span.updateBreadcrumbs a:hover {
    color: #545454;
  }
  a.titleLink {
    font-weight: 900;
    text-decoration: none;
    color: black;
  }
  a.titleLink h2 {
    margin: 0;
    padding: 0;
    margin: 10px 0px;
    font-size: 24px;
  }
  a.updateSegmentLink {
    text-decoration: none;
    color: black;
  }
  ul {
    list-style: none;
    margin: 0px;
    padding: 0px;
  }
  ul a.updateSegmentLink li {
    font-size: 18px;
    font-weight: 500;
    margin-top: 10px;
    transition: all 1s ease;
  }
  ul a.updateSegmentLink li:hover {
    padding-left: 15px;
    opacity: 0.6;
  }

  /**     Styling the guide admin panel (login and editor pages)        **/

  .adminForm, .adminGuideForm {
    width: 50vw;
    margin: 0 auto;
    margin-top: 5vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
  .adminGuideForm {
    align-items: flex-start;
  }

  .adminGuideForm label {
    width: 80%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .adminGuideForm label input {
    queryBoxLabel.style.color = "black";
    width: 200px;
  }

  input[type="date"] {
    text-align: center;
  }

  .adminHeader {
    width: 50vw;
    margin: 0 auto;
    text-align: center;
    font-weight: 600;
    font-size: 48px;
    letter-spacing: 8px;
    margin-top: 3vh;
  }
  .credLoginLabel {
    margin: 10px 0px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
  }
  .credLoginLabel input {
    font-size: 16px;
    width: 300px;
    height: 30px;
    padding-left: 10px;
    letter-spacing: 2px;
    border-radius: 5px;
    border: 0.5px solid #A88C88;
  }
  .credLoginLabel input:hover {
    opacity: 0.6;
    background-color: #F5F2F2;
  }
  .credLoginLabel input:focus {
    box-shadow: 2px 2px 5px #D4E1FA;
    outline: none;
  }
  #loginButton,.generateButton, .adminGuideButtons  {
    position: relative;
    width: 100px;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    border: none;
    border-radius: 8px;
    background-color: #524E4E;
    color: #FFFFFF;
    cursor: pointer;
  }
  #loginButton:hover .adminGuideButtons:hover {
    opacity: 0.7;
  }
  #loginButton:active .adminGuideButtons:active {
    opacity: 1;
    box-shadow: 2px 2px 3px black;
  }
  .adminGuideButtons {
    width: 200px; 
    height: 60px;
   }
   .adminGuideButtons:last-of-type {
    margin-top: 5vh;
    width: 300px;
  }

  /***      Create styling  for the article page template     ***/

  .guideContainer {
    width: 100%;
  }
  .metadata-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  div.guideSection {
    font-size: 16px;
  }
  p.sectionText {
    font-size: 18px;
    width: 90%;
  }
  /**       style the code segment panel      **/
  div.codeContainer {
    width: 90%;
    border: 2px solid black;
    background-color: var(--code-background-color);
    border-radius: 10px;
  }
  div.codePanel {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 0.5px solid grey;
  }
  span.codeDescriptor {
    width: 90%;
    padding-left: 10px;
  }
  div.copyCode {
    width: 10%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 5px 10px;

  }
  div.copyCode img {
    width: 20%;
    cursor: pointer;
  }
  div.codeContent {
    padding: 10px 15px;
    font-family: monospace;
    overflow-x: scroll;
  }
  textarea.subtopicContent {
    margin-bottom: 20px;
  }
  div.buttonsContainer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 50vw;
    margin-bottom: 50px;
  }

  button.generateButton {
    line-height: 25px;
    width: 20vw;
  }
  .mathArticleForm {
    width: 100%;
  }
  .mathInput {
    font-size: 18px;
    width: calc(100% - 20px);
    padding: 10px 15px;
  }
  .mathPreview {
    text-align: left;
    padding-top: 50px;
    padding-left: 20px;
    width: 50%;
    white-space: pre-wrap;
    margin-right: 20px;
    font-family: monospace;
  }
  .latexInputBox {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-left: 20px;
  }
  .latexEditorBox {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  #publishMathGuideButton {
    display: block;
    margin: 50px auto;
  }
  /** styling the index list (for a directory)  **/

  ul.indexList {
    margin-left: 10%;
    margin-top: 20px;
  }

  ul.indexList li a {
    text-decoration: none;
    color: black;
  }

  ul.indexList li a:hover {
    opacity: 0.7;
  }

  li.menuToggler {
    display: none;
  }
  
  .categoryPanel {
    width: 80%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 0 auto;
    margin-top: 50px;
  }
  
  .tab {
    width: 30%;
    background-color: var(--tab-background-color);
    color: var(--tab-color);
    text-align: center;
    padding: 10px 20px;
    border-radius: 15px;
    cursor: pointer;
    opacity: 0.8;
  }

  .tab:last-of-type {
    margin-left: 10px;
  }


  .tab:first-of-type {
    margin-right: 10px;
    /*  default onload chosen category */
    opacity: 1;
  }
}
