@font-face {
  font-family: "Roboto";
  src: url(../assets/fonts/Roboto-Black.ttf) format("truetype");
}
@font-face {
  font-family: "Open Sans Light";
  src: url(../assets/fonts/OpenSans-Light.ttf) format("truetype");
}
@font-face {
  font-family: "Open Sans Bold";
  src: url(../assets/fonts/OpenSans-Bold.ttf) format("truetype");
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  background-color: #0d0c20;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
  margin-bottom: 0;
  color: #a9a8a9;
  font-family: "Open Sans Light", sans-serif;
  font-size: 1rem;
}

.stress {
  font-weight: bold;
}

img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.gradient {
  mask-image: linear-gradient(to bottom, RGB(39, 39, 39, 0.75), RGB(39, 39, 39, 0.75));
}

.gradient2 {
  mask-image: linear-gradient(to bottom, RGB(39, 39, 39, 0.5), RGB(39, 39, 39, 0.5));
}

.gradient3 {
  mask-image: linear-gradient(to bottom, RGB(39, 39, 39, 0.25), RGB(39, 39, 39, 0.25));
}

.button {
  padding: 1.5%;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  color: #0d0c20;
  background-color: #e5e5e5;
  border-radius: 50px;
  cursor: pointer;
}
.button:hover {
  background-color: #a9a8a9;
}

/* Media query for most phones */
@media only screen and (max-width: 600px) {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  a {
    font-size: 0.9rem;
  }
}
header {
  width: 100%;
  height: 11vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #272727;
  font-family: "Open Sans Light", sans-serif;
  z-index: 1;
}
header nav {
  width: 40%;
  display: flex;
  justify-content: space-between;
}
header nav a {
  color: #a9a8a9;
  text-decoration: none;
}
header nav a:hover {
  color: #009ffd;
}

/* Tablets */
@media (max-width: 950px) {
  header {
    padding: 0 15%;
  }
  header nav {
    width: 100%;
  }
}
/* Phones */
@media (max-width: 600px) {
  header {
    padding: 0 10%;
  }
  header nav a {
    font-size: 0.9rem;
  }
}
#body {
  min-height: 90vh;
  padding: 0 15%;
  display: flex;
  flex-direction: column;
  font-family: "Open Sans Light", sans-serif;
}
#body h1 {
  font-family: "Roboto", sans-serif;
  font-size: 3rem;
  display: flex;
  margin: 6% 0 0 0;
  border-bottom: 1px solid #272727;
  color: #e5e5e5;
}
#body #content {
  flex: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Media query for most tablets */
@media only screen and (max-width: 900px) {
  #body {
    min-height: 85vh;
    padding: 0 10%;
  }
}
/* Media query for most phones */
@media only screen and (max-width: 600px) {
  #body h1 {
    font-size: 2rem;
    margin: 6% 0;
  }
}
footer {
  width: 100%;
  height: 50vh;
  padding: 5% 15%;
  display: flex;
  justify-content: space-between;
  font-family: "Open Sans Light", sans-serif;
  border-top: 1px #272727 solid;
}
footer nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
footer #credits {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
}
footer #credits #socials {
  width: 75%;
  display: flex;
  justify-content: space-between;
  align-self: end;
}
footer a {
  text-decoration: none;
  color: #a9a8a9;
}
footer a:hover {
  color: #009ffd;
}

/* Media query for most tablets */
@media only screen and (max-width: 900px) {
  footer {
    height: auto;
  }
  footer nav {
    display: none;
  }
  footer #credits {
    width: 100%;
    text-align: center;
  }
  footer #credits #socials {
    width: 75%;
    padding-bottom: 5%;
    align-self: center;
  }
}
/* Media query for most phones */
@media only screen and (max-width: 600px) {
  footer {
    padding: 5% 10%;
  }
}
#home {
  width: 100%;
  min-height: 90vh;
  margin: 0 auto;
  padding: 2.5% 15% 5% 15%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#home h3 {
  font-family: "Open Sans Bold", sans-serif;
  color: #a9a8a9;
  font-size: 2rem;
  padding-bottom: 2%;
}
#home h1 {
  font-family: "Roboto", sans-serif;
  color: #e5e5e5;
  font-size: 5rem;
  padding-bottom: 2%;
}
#home h2 {
  color: #a9a8a9;
  font-size: 1.5rem;
  padding-bottom: 4%;
}
#home #introButtons {
  width: 50%;
  display: flex;
  justify-content: space-between;
}
#home #introButtons a {
  width: 48.5%;
  padding: 2.5%;
}

/* Tablets */
@media (max-width: 900px) {
  #home h3 {
    font-size: 1.5rem;
  }
  #home h1 {
    font-size: 4rem;
  }
  #home h2 {
    font-size: 1.1rem;
  }
  #home #introButtons {
    min-width: 75%;
  }
}
/* Phones */
@media (max-width: 600px) {
  #home {
    padding: 2.5% 10% 5% 10%;
  }
  #home h3 {
    font-size: 1.2rem;
    padding-bottom: 5%;
  }
  #home h1 {
    font-size: 3.5rem;
    padding-bottom: 5%;
  }
  #home h2 {
    font-size: 1rem;
    padding-bottom: 5%;
  }
  #home #introButtons {
    width: 100%;
    flex-direction: column;
  }
  #home #introButtons a {
    width: 100%;
    margin-bottom: 5%;
  }
}
#works {
  width: 100%;
  margin: 2.5% auto 7.5% auto;
}
#works .cell {
  display: flex;
  min-height: 50vh;
  margin-bottom: 5%;
}
#works .cell a {
  width: 100%;
  display: flex;
  gap: 5%;
  text-decoration: none;
}
#works .cell a img {
  max-width: 55%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 25px;
}
#works .cell a .cellText {
  border-bottom: 1px #272727 solid;
}
#works .cell a .cellText h2 {
  font-size: 1.7rem;
  font-family: "Open Sans Bold", sans-serif;
  color: #e5e5e5;
  margin-bottom: 5%;
}
#works .cell a .cellText p {
  height: 30vh;
  padding: 2%;
  font-family: "Open Sans Light", sans-serif;
  color: #a9a8a9;
  background: linear-gradient(to bottom, RGB(39, 39, 39, 0.5), #0d0c20);
  border-top: 2px #272727 solid;
}
#works .cell a:hover h2 {
  color: #009ffd;
}
#works .error {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
#works .error p {
  font-size: 1.5rem;
}

/* Tablets */
@media (max-width: 900px) {
  #works .cell {
    position: relative;
    margin-bottom: 10%;
  }
  #works .cell a img {
    max-width: 100%;
  }
  #works .cell a .cellText {
    width: 100%;
    position: absolute;
    border: none;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(to bottom, RGB(39, 39, 39, 0.5), #0d0c20);
    padding: 2% 2% 4% 2%;
  }
  #works .cell a .cellText h1 {
    font-size: 1.2rem;
  }
  #works .cell a .cellText p {
    font-size: 0.9rem;
    height: auto;
    color: #e5e5e5;
    border: none;
    background: transparent;
  }
}
#work {
  min-height: 90%;
  width: 100%;
  padding: 0 15% 5% 15%;
  margin: 0 auto;
  color: #a9a8a9;
  font-family: "Open Sans Light", sans-serif;
}
#work img {
  mask-image: linear-gradient(to bottom, RGB(39, 39, 39, 0.75), RGB(39, 39, 39, 0.75));
}
#work #workTitle h1 {
  font-family: "Roboto", sans-serif;
  font-size: 3rem;
  display: flex;
  margin: 6% 0 0 0;
  border-bottom: 1px solid #272727;
  color: #e5e5e5;
  width: 100%;
}
#work #workContent {
  display: flex;
  flex-direction: column;
  margin: 2.5% auto;
}
#work #workContent .row {
  width: 100%;
  min-height: 300px;
  margin: 2.5% 0;
  display: flex;
  justify-content: space-between;
  gap: 2.5%;
}
#work #workContent .row .textCell,
#work #workContent .row .imgCell,
#work #workContent .row .smallTextCell,
#work #workContent .row .emptyCell {
  flex: 1;
}
#work #workContent .row .textCell p,
#work #workContent .row .imgCell p,
#work #workContent .row .smallTextCell p,
#work #workContent .row .emptyCell p {
  height: 100%;
  color: #a9a8a9;
  font-family: "Open Sans Light", sans-serif;
  font-size: 1rem;
  padding: 2%;
  background: linear-gradient(to bottom, RGB(39, 39, 39, 0.5), #0d0c20);
  border-top: 2px #272727 solid;
}
#work #workContent .row .smallTextCell p {
  font-size: 0.9rem;
}
#work #workContent .row .textCell h2,
#work #workContent .row .smallTextCell h2 {
  font-family: "Open Sans Bold", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #e5e5e5;
}
#work #workContent .videoRow {
  margin: 2.5% auto;
  text-align: center;
}
#work #workContent .videoRow video {
  width: 100%;
}
#work #workContent .imgRow {
  width: 25%;
  margin: 2.5% auto;
  text-align: center;
}
#work #workContent .imgRow p {
  color: #a9a8a9;
}
#work #workContent h1 {
  font-family: "Roboto", sans-serif;
  font-size: 2rem;
  margin: 2% 0;
  color: #e5e5e5;
}
#work #workContent .hideMobile h1 {
  padding: 2.5% 0;
}
#work #workContent .hideMobile .row .imgCell img {
  height: auto;
}
#work #workContent .enemySprites {
  min-height: auto;
}
#work #workContent .enemySprites img {
  height: auto;
}
#work #workLinks {
  display: flex;
  flex-direction: column;
  margin: 5% auto;
  color: #0d0c20;
}
#work #workLinks a {
  width: 40%;
  margin-bottom: 2.5%;
  color: #0d0c20;
}
#work .error {
  width: 100%;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
#work .error p {
  font-size: 1.5rem;
}

/* Media query for most tablets */
@media only screen and (max-width: 900px) {
  #work #workContent .row {
    flex-direction: column;
    margin: 0;
  }
  #work #workContent .row .textCell,
  #work #workContent .row .imgCell {
    width: 100%;
    margin: 2.5% auto;
  }
  #work #workContent .row .textCell h2,
  #work #workContent .row .imgCell h2 {
    font-size: 1.1rem;
  }
  #work #workContent .row .textCell img,
  #work #workContent .row .imgCell img {
    height: 300px;
  }
  #work #workContent .row .emptyCell {
    display: none;
  }
  #work #workContent .hideMobile .row {
    flex-direction: row;
  }
  #work #workContent .hideMobile .row .imgCell img {
    height: auto;
  }
  #work #workContent .enemySprites {
    flex-direction: row;
  }
  #work #workContent .enemySprites .imgCell img {
    height: auto;
  }
  #work #workLinks a {
    width: 80%;
  }
}
/* Media query for most phones */
@media only screen and (max-width: 600px) {
  #work #workTitle {
    min-height: 200px;
  }
  #work #workTitle h1 {
    font-size: 4rem;
  }
  #work #workContent .row .textCell,
  #work #workContent .row .imgCell {
    margin: 5% auto;
  }
  #work #workContent .row .textCell img,
  #work #workContent .row .imgCell img {
    height: 150px;
  }
  #work #workContent .row .textCell h2,
  #work #workContent .row .imgCell h2 {
    font-size: 1rem;
  }
  #work #workContent .hideMobile {
    display: none;
  }
  #work #workContent .enemySprites {
    flex-direction: column;
  }
  #work #workContent .enemySprites .imgCell {
    text-align: center;
  }
  #work #workContent .enemySprites .imgCell img {
    width: 50%;
  }
  #work #workLinks a {
    width: 100%;
  }
}
#about {
  display: flex;
  justify-content: space-between;
  gap: 5%;
}
#about img {
  width: 35%;
  border: 6px #009ffd solid;
  border-radius: 50px;
}
#about #aboutText {
  width: auto;
}
#about #aboutText p {
  margin-bottom: 7.5%;
}
#about #aboutText a {
  display: block;
  width: 45%;
  justify-self: end;
}

/* Media query for most phones */
@media only screen and (max-width: 600px) {
  #about {
    flex-direction: column;
    margin-bottom: 5%;
  }
  #about img {
    width: 100%;
    margin-bottom: 5%;
  }
  #about #aboutText a {
    width: 100%;
  }
}
#contact {
  width: 100%;
}
#contact h2 {
  font-family: "Open Sans Light", sans-serif;
  color: #e5e5e5;
  font-size: 1.5rem;
  margin-bottom: 24px;
}
#contact p,
#contact a {
  font-family: "Open Sans Light", sans-serif;
  font-size: 1.25rem;
  margin-bottom: 16px;
  text-decoration: none;
}
#contact p:hover a,
#contact a:hover a {
  color: #009ffd;
}

/* Media query for most tablets */
@media only screen and (max-width: 900px) {
  #contact h2 {
    font-size: 1.25rem;
    margin-bottom: 32px;
  }
  #contact p,
  #contact a {
    font-size: 1.1rem;
    margin-bottom: 24px;
  }
}
/* Media query for most phones */
@media only screen and (max-width: 600px) {
  #contact h2 {
    font-size: 1.1rem;
  }
  #contact p,
  #contact a {
    font-size: 1rem;
  }
}
.game a {
  color: #a9a8a9;
  text-decoration: none;
}
.game a:hover {
  color: #fd2b2b;
}

header.game {
  width: 100%;
  height: 10%;
  padding: 0 15%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #272727;
  font-family: "Open Sans Light", sans-serif;
  color: #a9a8a9;
  z-index: 1;
}
header.game .title {
  width: 50%;
}
header.game .title h1 {
  font-size: 1.7rem;
  font-family: "Roboto", sans-serif;
  color: #e5e5e5;
}
header.game .title h2 {
  font-size: 1rem;
  font-family: "Roboto", sans-serif;
}
header.game nav {
  width: 25%;
  display: flex;
  justify-content: space-between;
}

/* Tablets */
@media (max-width: 900px) {
  header.game {
    height: 15%;
    padding: 0 10%;
    flex-direction: column;
  }
  header.game .title {
    width: 100%;
    height: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }
  header.game .title h1 {
    font-size: 1.6rem;
  }
  header.game .title h2 {
    font-size: 0.9rem;
  }
  header.game nav {
    min-width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
}
/* Phones */
@media (max-width: 600px) {
  header.game .title h1 {
    font-size: 1.5rem;
  }
  header.game .title h2 {
    font-size: 0.8rem;
  }
}
#slideNav {
  width: 100%;
  position: absolute;
  z-index: 1;
  border-bottom: 1px #e5e5e5 solid;
}
#slideNav .title h1,
#slideNav .title h2 {
  color: #e5e5e5;
}
#slideNav nav a {
  color: #e5e5e5;
}
#slideNav nav a:hover {
  color: #fd2b2b;
}

#gamedev {
  height: 100%;
  margin: 0 auto;
}
#gamedev .slide {
  height: 100%;
  display: none;
}
#gamedev .fade {
  animation-name: fade;
  animation-duration: 2s;
}
@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

#projects {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  margin: 5% auto 7.5% auto;
  row-gap: 2%;
  column-gap: 1%;
}
#projects .cell {
  position: relative;
}
#projects .cell a h2 {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 2rem;
  font-family: "Roboto", sans-serif;
  color: #e5e5e5;
}
#projects .cell a:hover h2 {
  color: #fd2b2b;
}
#projects .error {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
#projects .error p {
  font-size: 1.5rem;
}

/* Tablets */
@media (max-width: 900px) {
  #projects {
    margin-top: 10%;
  }
  #projects .cell a h2 {
    font-size: 1.8rem;
  }
}
/* Phones */
@media (max-width: 600px) {
  #projects {
    margin-top: 20%;
  }
  #projects .cell a h2 {
    font-size: 1.5rem;
  }
}
#project {
  min-height: 90%;
  width: 100%;
  padding: 5% 15%;
  margin: 0 auto;
  color: #a9a8a9;
  font-family: "Open Sans Light", sans-serif;
}
#project img {
  mask-image: linear-gradient(to bottom, RGB(39, 39, 39, 0.75), RGB(39, 39, 39, 0.75));
}
#project #projTitle {
  height: 400px;
  width: auto;
  position: relative;
}
#project #projTitle h1 {
  width: 100%;
  position: absolute;
  bottom: 0;
  margin: 0;
  padding-left: 5px;
  font-family: "Roboto", sans-serif;
  font-size: 8rem;
  color: #fd2b2b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#project #projContent {
  display: flex;
  flex-direction: column;
  margin: 2.5% auto;
}
#project #projContent .row {
  width: 100%;
  min-height: 300px;
  margin: 2.5% 0;
  display: flex;
  justify-content: space-between;
  gap: 2.5%;
}
#project #projContent .row .textCell,
#project #projContent .row .imgCell,
#project #projContent .row .emptyCell {
  flex: 1;
}
#project #projContent .row .textCell p,
#project #projContent .row .imgCell p,
#project #projContent .row .emptyCell p {
  color: #a9a8a9;
  font-family: "Open Sans Light", sans-serif;
}
#project #projContent .row .textCell h2 {
  font-family: "Open Sans Bold", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #e5e5e5;
}
#project #projContent .row .textCell p {
  color: #a9a8a9;
  font-family: "Open Sans Light", sans-serif;
}
#project #projContent .videoRow {
  margin: 2.5% auto;
  text-align: center;
}
#project #projContent .videoRow video {
  width: 100%;
}
#project #projContent .imgRow {
  width: 25%;
  margin: 2.5% auto;
  text-align: center;
}
#project #projContent .imgRow p {
  color: #a9a8a9;
}
#project #projContent h1 {
  font-family: "Roboto", sans-serif;
  font-size: 2rem;
  margin: 2% 0;
  color: #e5e5e5;
}
#project #projContent .hideMobile h1 {
  padding: 2.5% 0;
}
#project #projContent .hideMobile .row .imgCell img {
  height: auto;
}
#project #projContent .enemySprites {
  min-height: auto;
}
#project #projContent .enemySprites img {
  height: auto;
}
#project #projLinks {
  display: flex;
  flex-direction: column;
  margin: 5% auto;
  color: #0d0c20;
}
#project #projLinks a {
  width: 40%;
  margin-bottom: 2.5%;
  color: #0d0c20;
}
#project .error {
  width: 100%;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
#project .error p {
  font-size: 1.5rem;
}

/* Media query for most tablets */
@media only screen and (max-width: 900px) {
  #project #projContent .row {
    flex-direction: column;
    margin: 0;
  }
  #project #projContent .row .textCell,
  #project #projContent .row .imgCell {
    width: 100%;
    margin: 2.5% auto;
  }
  #project #projContent .row .textCell h2,
  #project #projContent .row .imgCell h2 {
    font-size: 1.1rem;
  }
  #project #projContent .row .textCell img,
  #project #projContent .row .imgCell img {
    height: 300px;
  }
  #project #projContent .row .emptyCell {
    display: none;
  }
  #project #projContent .hideMobile .row {
    flex-direction: row;
  }
  #project #projContent .hideMobile .row .imgCell img {
    height: auto;
  }
  #project #projContent .enemySprites {
    flex-direction: row;
  }
  #project #projContent .enemySprites .imgCell img {
    height: auto;
  }
  #project #projLinks a {
    width: 80%;
  }
}
/* Media query for most phones */
@media only screen and (max-width: 600px) {
  #project #projTitle {
    height: 200px;
  }
  #project #projTitle h1 {
    font-size: 4rem;
  }
  #project #projContent .row .textCell,
  #project #projContent .row .imgCell {
    margin: 5% auto;
  }
  #project #projContent .row .textCell img,
  #project #projContent .row .imgCell img {
    height: 150px;
  }
  #project #projContent .row .textCell h2,
  #project #projContent .row .imgCell h2 {
    font-size: 1rem;
  }
  #project #projContent .hideMobile {
    display: none;
  }
  #project #projContent .enemySprites {
    flex-direction: column;
  }
  #project #projContent .enemySprites .imgCell {
    text-align: center;
  }
  #project #projContent .enemySprites .imgCell img {
    width: 50%;
  }
  #project #projLinks a {
    width: 100%;
  }
}