/*------------------------General--------------------------*/
*{
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: #474e5d;
  font-family: 'MyFont';
}

hr{
  height: 0.15em;
  border-width: 0;
  background-color: black;
}
/*------------------------Header--------------------------*/
@font-face {
  font-family: 'MyFont'; /*a name to be used later*/
  src: url('/fonts/Pixellari.ttf'); /*URL to font*/
}

.header-container{
  background: rgb(33, 42, 61);
}

.logo-container{
  margin: auto;
  text-align: center;
}

.logo{
  width: 100vh;
}

.nav-container{
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 30%;
  margin: 0 auto;
}

.nav-link {
  text-align: center;
  font-size: 2em;
  font-family: 'MyFont';
  text-decoration: none;
  list-style-type: none;
  padding: 5px 5px;
  border: 5px solid black;
  flex-basis: 100%;
  margin: 0 0.2em;
  border-radius: 0.2em;
  background: white;
  color: black;
}

.nav-link:hover{
  text-align: center;
  font-size: 2em;
  font-family: 'MyFont';
  text-decoration: none;
  list-style-type: none;
  padding: 5px 5px;
  border: 5px solid black;
  flex-basis: 100%;
  margin: 0 0.2em;
  border-radius: 0.2em;
  background: gray;
  color: black;
}

.nav-select{
  text-align: center;
  font-size: 2em;
  font-family: 'MyFont';
  text-decoration: none;
  list-style-type: none;
  padding: 5px 5px;
  border: 5px solid black;
  flex-basis: 100%;
  margin: 0 0.2em;
  border-radius: 0.2em;
  background: gray;
  color: black;
}

/*------------------------Game Page--------------------------*/
.game-content-container{
  text-align: center;
  width: 70%;
  height: max-content;
  margin: auto;
}

.game-content-banner{
  text-align: center;
  object-fit: cover;
  width: 100%;
  height: 20%;
}

.game-page-body{
  background-attachment: fixed;
}

.game-content-title{
  padding: 0em 0.5em;
  text-align: left;
  font-size: 500%;
}

.game-content-description{
  padding: 0em 0em;
  text-align: left;
  white-space: pre-wrap;
  font-size: 100%;
  line-height: 1.5em;
}

.game-content-inner{
  overflow: hidden;
}

.game-content-inner-inner{
  float:left;
  text-align: left;
  width: 60%;
}

.game-content-inner-screenshots{
  float: right;
}

.game-content-inner-screenshots > img{
  object-fit: cover;
  width: 25em;
  display: flex;
  padding: 0em 3em;
}

.game-content-download-div{
  padding: 0em 2.5em;
}

.game-content-download{
  padding: 0.2em 0.3em;
  font-size: 1.5em;
  border-radius: 0.15em;
  border-width: 0.1em;
  font-family: "MyFont";
  background: #f86969;
}
.game-content-download:hover{
  padding: 0.2em 0.3em;
  font-size: 1.5em;
  border-radius: 0.15em;
  border-width: 0.1em;
  font-family: "MyFont";
  background: #fa3d3d;
}
.game-content-download:active{
  padding: 0.2em 0.3em;
  font-size: 1.5em;
  border-radius: 0.15em;
  border-width: 0.1em;
  font-family: "MyFont";
  background: #ff8f8f;
}

/*------------------------Game Browser--------------------------*/
.game-grid {
  display: grid;
  justify-content: center;
  margin: 5%;
  grid-template-columns: repeat(auto-fill, minmax(15em, 30em));
  grid-gap: 3em;
}

.game-grid > div {
  border-radius: 0.5em;
  font-size: 2em;
  padding: .5em;
  color: #ffffff;
  background: transparent;
  text-align: center;
}

.game-cell-image{
  object-fit: cover;
  object-position: top;
  width: 12em;
  height: 9em;
  border: 0.15em solid #f86969;
  border-radius: 0.3em;
}

.game-cell-title{
  color: black;
  font-size: 1.5em;
}

.game-cell-description{
  color: black;
  font-size: 0.7em;
  text-align: center;
  margin: 0.2em 1.5em;
  background: #8b9bbe48;
  border-radius: 0.3em;
}

.game-cell-date{
  color: black;
  font-size: 0.7em;
  text-align: center;
  margin: 0.2em 1.5em;
  background: #8b9bbe48;
  border-radius: 0.3em;
}

/*------------------------Contact--------------------------*/
.contact-container{
  text-align: center;
}

.contact-title{
  text-align: left;
  width: 20em;
  border: 5px solid black;
  border-radius: 0.2em;
  font-family: 'MyFont';
  font-size: 2em;
  padding: 0.2em 0.2em;
}

.contact-content{
  text-align: left;
  vertical-align: top;
  width: 26.7em;
  height: 15em;
  border: 5px solid black;
  border-radius: 0.2em;
  font-family: 'MyFont';
  font-size: 1.5em;
  padding: 0.2em 0.2em;
}
.contact-email{
  text-align: left;
  width: 20em;
  border: 5px solid black;
  border-radius: 0.2em;
  font-family: 'MyFont';
  font-size: 2em;
  padding: 0.2em 0.2em;
}

.contact-submit{
  text-align: center;
  border: 5px solid black;
  border-radius: 0.2em;
  font-family: 'MyFont';
  font-size: 2em;
  padding: 0.2em 5em;
}
/*------------------------About page--------------------------*/
.about-container{
  text-align: center;
}

/*---------------Timeline-----------------*/
/* The actual timeline (the vertical ruler) */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: white;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Container around content */
.container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* The circles on the timeline */
.container::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: white;
  border: 4px solid #FF9F55;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

/* Place the container to the left */
.left {
  left: 0;
}

/* Place the container to the right */
.right {
  left: 50%;
}

/* Add arrows to the left container (pointing right) */
.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent white;
}

/* Add arrows to the right container (pointing left) */
.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
}

/* Fix the circle for containers on the right side */
.right::after {
  left: -16px;
}

/* The actual content */
.content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 6px;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
  /* Place the timelime to the left */
  .timeline::after {
  left: 31px;
  }
  
  /* Full-width containers */
  .container {
  width: 100%;
  padding-left: 70px;
  padding-right: 25px;
  }
  
  /* Make sure that all arrows are pointing leftwards */
  .container::before {
  left: 60px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
  }

  /* Make sure all circles are at the same spot */
  .left::after, .right::after {
  left: 15px;
  }
  
  /* Make all right containers behave like the left ones */
  .right {
  left: 0%;
  }
}