html {
  font-family: "MS PGothic", sans-serif;
  /* font-size: 1.35rem; */
  font-size: 1.35rem;

  padding: 0;
  display: table;
  margin: auto;

  min-height: max-content;
}


#steering_code {
  font-size: 0.85rem;
}

#white-mage {
  width: 4%;
}

@media only screen 
  and (max-width : 490px) or (min-resolution: 300dpi) {
  html {
      font-size: 1.1em;
  }

}

a {
color: rgb(147,163,194);
}


body {
  padding: 0;
  margin: 0;

  background-color: #ffffff;
  opacity: 1;
  background-image:  linear-gradient(#dedede 0.8px, transparent 0.8px), linear-gradient(to right, #dedede 0.8px, #ffffff 0.8px);
  background-size: 16px 16px;

  /* color: rgb(0, 0, 0); */
  color: #3f2513;

  overflow-x: hidden;

  height: calc(100vh - 15px);
  display: table-cell;
  vertical-align: middle;
}

table, th, td {
  border: 1px solid;
  width: 100%;
}

.borderless-table {
  td {
    border: 0px solid;
  }
  tr {
    border: 0px solid;
  }
}

small {
  color: darkgray;
}

/* ===== Scrollbar CSS ===== */
/* Firefox */
* {
  scrollbar-width: auto;
  scrollbar-color: #ffffff #ffffff;
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: 16px;
}

*::-webkit-scrollbar-track {
  background: #ffffff;
}

*::-webkit-scrollbar-thumb {
  background-color: #ffffff;
  border-radius: 0px;
  border: 1px solid #dedede;
}

hr {
  border-style: none;
  background-color: rgb(222, 222, 222);
  height: 1px;
  margin: 15px 1px;
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, p, .h1, .h2, .h3, .h4, .h5, .h6, .p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Other Dividers */

.header-divider {
  margin: 4px 0;

  width: 150px;
  height: 1px;

  background: rgb(147,163,194);
  background: linear-gradient(90deg, rgb(147,163,194) 0%, rgba(255,0,0,0) 100%);
}

/* Welcome PopUp */

.welcome-popup {
  max-width: 300px;
  min-width: 290px;
  
  height: 200px;

  display: none;
  overflow-y: auto;

  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  background-color: #ffffff;

  box-sizing: border-box;
  padding: 15px;

  z-index: 100;
}

/* Page */
.main {
  width: 100%;
  /* max-width: 965px; */
  max-width: 1265px;
  /* max-width: 1065px; */

  margin: 15px auto;
  padding: 15px;
  box-sizing: border-box;

  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(222, 222, 222);
}

/* Web-Buttons */
.buttons-container {
  width: 100%;
  display: flex;
}

.buttons-container-marquee {
  background-color: #dedede;
  opacity: 1;
  background-image:  repeating-linear-gradient(45deg, #dedede 25%, transparent 25%, transparent 75%, #dedede 75%, #dedede), repeating-linear-gradient(45deg, #dedede 25%, #ffffff 25%, #ffffff 75%, #dedede 75%, #dedede);
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;

  border: 1px solid rgb(222, 222, 222);

  height: 31px;

  padding: 15px 0;
  margin-right: 15px;
}

.buttons-container-copy {
  background-color: #dedede;
  opacity: 1;
  background-image:  repeating-linear-gradient(45deg, #dedede 25%, transparent 25%, transparent 75%, #dedede 75%, #dedede), repeating-linear-gradient(45deg, #dedede 25%, #ffffff 25%, #ffffff 75%, #dedede 75%, #dedede);
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;

  border: 1px solid rgb(222, 222, 222);

  height: 31px;
  padding: 15px 15px;
}

.main-header {
  width: 100%; 
  height: 120px;

  display: flex;
  justify-content: center;
  justify-self: center;
  align-items: center;

  background-color: #ffffff;
  opacity: 1;
  /* background-image: radial-gradient(#dedede 1.1500000000000001px, #ffffff 1.1500000000000001px); */
  background-image: radial-gradient(#dedede 1.1500000000000001px, #fffff2 1.1500000000000001px); 
  /* background-image: radial-gradient(#ADFF2F 1.1500000000000001px, #117c13 1.1500000000000001px); */
  background-size: 16px 16px;
  animation: slide 30s linear infinite;

  border: solid 1px rgb(222, 222, 222);
}
@keyframes slide {
  0% {
    background-position: 0% 0%;
  }
  100% {
      background-position: 100% 220%;
  }
}

/* IFrames */
.content-iframe {
  width: 100%;
  border-style: none;
}

/* Grid */
.content-grid {
  display: grid;
  grid-auto-rows: 1fr;
  grid-template-columns: 1fr 1fr;
  /* column-count: 2; */
  column-gap: 15px;
}

.not-code-snippet {
  display: none;
}

@media only screen
  and (max-width : 1800px) {
    html {
      font-family: "MS PGothic", sans-serif;
    }
    
    .main {
      max-width: 1065px;
    }
  }

@media only screen 
  and (max-width : 750px) {


  html {
    font-size: 1.2em;
    font-family: 'Open Sans', sans-serif;
  }

  .content-grid {
    grid-template-columns: 1fr;
      column-count: 1;
  }

  #projects {
    display: none;
  }

  .code-snippet {
    display: none;
  }

  .not-code-snippet {
    display: inline;
  }

  #white-mage {
    width: 10%;
  }
}

.content-card {
  break-inside: avoid-column;

  /* background-color: #ffffff; */
  background-color: #fffff2;
  /* background-color: #117c13; */

  border: 3px double rgb(222, 222, 222);

  box-sizing: border-box;
  padding: 15px;
  margin-bottom: 15px;

  width: 100%;

  display: -moz-inline-block;
  column-fill: balance;
  -moz-column-fill: balance;
  -webkit-column-fill: balance;
}

.bitmasks {
  width: 100%;
}

/* Media Query's */
@media only screen 
  and (max-width : 980px) {
  .main {
      margin: 7px;
      width: calc(100% - 14px);
  }

  #white-mage {
    width: 6%;
  }

  .bitmasks {
    font-size: 80%;
  }

  #FSM {
    font-size: 65%;
  }

  #small-code-snippet {
    font-size: 45%;
  }

  #steering_code {
    font-size: 45%;
  }
}

@media only screen 
  and (max-width : 450px) {

  #white-mage {
    width: 15%;
  }

  .bitmasks {
    font-size: 70%;
  }

  #FSM {
    display: none;
  }
}

@media only screen and (max-width: 390) {
  #small-code-snippet {
    font-size: 35%;
    width: 50%;
  }
}

.feature {
  cursor:pointer;
  color:#93A3C2;
  text-decoration:underline;
}

/* Reuseable Classes */
.centered {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.filter-inverted {
  -webkit-filter: invert(100%);
  filter: invert(100%);
}

.dimmer {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 99;
  display: none;
}

.color-red {
  color: red;
}

/* Misc. */
#teddy-bear {
  cursor: pointer;
}
