* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/*Floating box to right*/
#box3 {
  object-fit: cover;
  background-color: #400b13;
  position: relative;
  float: right;
  width: 200px;
  padding: 10px;
  font-size: 0.8em;
  color: #feca24;
}

#box3left {
  background-color: #400b13;
  position: relative;
  float: left;
  width: 200px;
  padding: 10px;
  font-size: 0.8em;
  color: #feca24;
}

body {

  /*The background colours/gradient*/
  background: rgb(255, 255, 255);
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 8%,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 33%,
    rgba(0, 0, 0, 1) 63%,
    rgba(0, 0, 0, 1) 77%,
    rgba(0, 0, 0, 1) 100%
  ); /*Adjust RGB values to change colour. Adjust % to change gradient strength (0=solid colour)*/

  font-family: "Karla", sans-serif;
  font-size: 16px;
  color: #111;
  overflow-x: hidden;
}

/*Adjusts position and sizing of background image, called in main HTML body*/
.bgimg {
  position: fixed;
  bottom: 0;
  left: 150px;
  width: 1024px;
}

/*Sidebar 1*/
.sidewrapper {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  z-index: 4;
}

/*Hosts sidebar text*/
.sidewrapper2 {
  display: flex;
  flex-direction: row;
  height: 100%;
}

/*The actual sidebar textbox*/
.side1 {
  background-color: #000;
  width: 150px;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 28px;
  font-family: "PT Sans Narrow", sans-serif;
  padding: 1.5rem 0 1.5rem 0;
  overflow: scroll;
  overflow-x: hidden;
}

.headerwrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
}

/*Underline bar for title*/
.headerborder {
  background: rgba(127, 25, 18, 10);
  width: 100%;
  height: 25px;
}

/*Page title*/
.header {
  margin-left: 200px;
  font-size: 56px;
  padding-top: 3rem;
  line-height: 38px;
  font-family: "Arial", sans-serif;
  text-shadow: 5px 0px 0px #ffb802;
  color: #ffffff;
}

/*Credits bar*/
.footerwrapper {
  width: 100%;
  background-color: #000;
  opacity: 0.7;
  height: 40px;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 2;
}

/*Boxes house*/
.container {
  display: flex;
  flex-direction: column;
  padding: 3rem 3rem 5rem 3rem; /*Gap between boxes and side of site on mobile*/
  gap: 1rem; /*Gap between boxes on mobile*/
}

/*Text box*/
.box {
  background: rgba(79, 79, 79, 0.9);
  margin-left: 200px;
  position: relative;
  z-index: 1;
}

/*Text box 2*/
.box2 {
  background: rgba(79, 79, 79, 0.9);
  margin-left: 200px;
  position: relative;
  display: flex;
  align-items: center;    /*centre horizontally*/
  justify-content: center; /*centre vertically*/
  z-index: 1;
}

/*Spacing within text box*/
.content {
  padding: 1rem;
  color: #c2c2c2;
}

/*Text box titles*/
.subheaders {
  background-color: #7f1f1f;
  color: #ffb802;
  border: #c09657;
  font-weight: normal;
  text-transform: uppercase;
  font-size: 16px;
}

/*Background image 2, called in HTML*/
.altimitlogo {
  position: fixed;
  right: 1rem;
  top: 42%;
  width: 480px;
  z-index: -1;
}

/*Links*/
a {
  color: #97d9e9;
  text-decoration: none;
}

.side1 a {
  color: #ffb802;
  text-decoration: none;
}

a:visited {
  color: #97d9e9;
}

.side1 a:visited {
  color: #ffb802;
}

a:hover {
  font-weight: bold;
  text-shadow: none;
}

.side1 a:hover {
  font-weight: normal;
  text-shadow: 0 0 20px #faf200;
  color: #7f1f1f;
}

a:active {
  font-weight: normal;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background-color: #000;
}

::-webkit-scrollbar-thumb {
  background-color: #c09657;
}

.side1::-webkit-scrollbar {
  width: 3px;
}

.side1::-webkit-scrollbar-track {
  background-color: #000;
}

.side1::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
}

/*Credit link*/
#credit {
  color: #fff;
  font-size: 12px;
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 3;
}

/*Phone friendly code*/
@media (max-width: 750px) {
  body {
    background: rgb(255, 255, 255);
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 8%,
      rgba(0, 0, 0, 1) 20%,
      rgba(0, 0, 0, 1) 33%,
      rgba(5, 1, 0, 1) 63%,
      rgba(5, 6, 0, 1) 77%,
      rgba(8, 12, 5, 1) 100%
    ); /*Background gradient. Adjust RGB values to change colour. 0% is no blur, 100% is soft blur.*/
  }

  /*Decorative background image location. Called in HTML*/
  .bgimg {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: -1;
  }

  .img {
    width: 300px;
  }

  .headerwrapper {
    position: relative;
    z-index: 4;
  }

  .header {
    margin: 0;
  }

  .headerborder {
    display: none;
  }

  .sidewrapper {
    position: sticky;
    top: 0;
    z-index: 5;
  }

  .sidewrapper2 {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .side1 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    padding: 0.5rem;
    font-size: 18px;
  }

  .side1 img {
    width: 48px;
  }

  .side2 {
    width: 100%;
    height: 25px;
  }

  .container {
    padding: 1rem 1rem 4rem 1rem;
  }

  .box {
    margin: 0;
  }
}
