@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jura:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
  --primary1-colour: #52FFF9;
  --primary2-colour: #00F0E8;
  --primary3-colour: #00605D;
  --light-colour: #F3FFFF;
  --secondary-colour: #F950FF;
  --grey1-colour: #232323;
  --grey2-colour: #090909;
  --text1-colour: #888;
  --text2-colour: #aaa;
  --text3-colour: #ccc;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Roboto;
  font-weight: 500;
  background: black;
  font-size: 20px;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: var(--text-colour);
}

p, a{
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  color: var(--text3-colour);
}

/* primary color in rgb: 123, 251, 238 */
hr{
  height: 1px;
  border: 0;
  background-image: linear-gradient(to right, rgba(123, 251, 238, 0.4), rgba(123, 251, 238, 1.0), rgba(123, 251, 238, 0.4));
}

/* Navbar */
.navbar {
  /* background: var(--primary2-colour); */
  height: 100vh;
  width: 10vw;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.nav-con1 {
  /* background: var(--text-colour); */
  position: fixed;
  height: 10vh;
  width: 10vh;
  z-index: 101;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
  pointer-events: all;
}

.nav-icon {
  padding-bottom: 23px;
}


.triangle {
  border-left: 40.8px solid transparent;
  border-right: 40.8px solid transparent;
  border-bottom: 70px solid #333;
  filter: drop-shadow(0 0 3px var(--primary2-colour));
  opacity: 0.7;
}

.nav-con2 {
  height: 100%;
  width: 100%;
  background: linear-gradient(to right, rgba(50, 50, 50, 0.6), rgba(50, 50, 50, 1.0));
  border-left: 1px solid rgba(123, 251, 238, 0.3);
  display: flex;
  justify-content: center;
  text-align: right;
  font-size: 1.5rem;
  padding: 20vh 2vw;
  backdrop-filter: blur(5px);
  pointer-events: all;
}

.nav-con2 a {
  line-height: 50px;
  font-weight: 500;
}

/* Welcome */
.welcome {
  position: fixed;
  height: 100vh;
  width: 100vw;
  background-image: url(../img/header.webp);
  background-size: cover;
  background-position: center top;
  filter: hue-rotate(48deg) brightness(1.2);
  z-index: -1;
}

.welcome .overlay {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,1.0);
}

.welc-text {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(5%);
}
.welcome h1{
  font-size: 60px;
  text-align: center;
  filter: hue-rotate(-48deg);
  top: -2%;
  color: #ddd;
  text-shadow: 0 0 30px var(--primary2-colour), 3px 0 2px var(--secondary-colour), 0 0 2px black;
  transition: all 0s ease-in 0s;
}

.empty-welcome {
  width: 100%;
  height: 100vh;
  background: linear-gradient(to top, black, transparent, transparent, transparent);

}

/* My Projects */
.projects {
  background: var(--grey2-colour);
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  /* flex-wrap: wrap; */
  align-items: flex-start;
  min-height: 92vh;
}

.projects-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100vw - 400px);
}

.p-h-con {
  position: absolute;
  top: 100%;
  width: 100%;
  display: flex;
  justify-content: flex-end;

}

.projects-heading {
  display: flex;
  flex-direction: column;
  z-index: 1;
  text-align: right;
}

.projects h2 {
  font-size: 3rem;
  /* text-align: right; */

  /* right: 1vw;
  width: 17vw;
  min-width: 270px;
  bottom: -10vh; */
}

.p-left {
  padding-left: 0.5vw;

}
.p-right {
  right: 0;
}

.projects-con {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding-top: 10vh; */
}

.card {
  height: auto;
  width: auto;
  margin: 1vw;
  /* flex-shrink: 0; */
}

.card-a,
.card-b {
  position: relative;
  width: 200px;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card-a {
  background: var(--grey1-colour);
}
.card-b {
  background: var(--light-colour);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.x2 {
  width: 270px;
  height: 40vh;
}
.x2 h3 {
  font-size: 2rem;
}

.button {
  background: #555;
  border-radius: 3px;
  width: 180px;
  height: 60px;
  display: flex;
}

.button a{
  color: var(--light-colour);
  width: 100%;
  height: 100%;
  line-height: 60px;
}
.x2 .button a{
  font-size: 2rem;
}

.card-b p{
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 5%;
}
.x2 p {
  font-size: 1.5rem;
}

.preview-b {
  font-size: 2rem;
}


/* Projects Site */
.projects-site {
  background: var(--grey2-colour);
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  /* flex-wrap: wrap; */
  align-items: flex-start;
  min-height: 92vh;
}

.projects-site .projects-main {
  width: 100%;
}


/* Blog */
.main-blog h1{
  margin-top: 2vh;
  margin-left: 10vw;
}

.card-container {
  max-width: min(100vw, 1600px);
  /* min-height: 100vh; */
  margin: 0 auto;
  padding: 0 2vw 15vh 0;
  display: grid;
  justify-content: center;
  align-items: center;
  height: 100%;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-auto-rows: 380px;
  grid-auto-flow: dense;
  grid-gap: 20px;
}



/* Blog View */
/* Main */
.main-view {
  width: 95vw;
}

.blog-view-con {
  display: flex;
  max-width: 1600px;
  height: 100%;
}

.blog-view-con .card-container {
  max-width: 26vw;
}

.view-con {
  max-width: 73vw;
  min-width: 73vw;
  padding: 70px 50px;
}

.view-page {
  background: #222;
  padding: 40px 40px;
}

.view-page h2{
  padding-top: 50px;
  padding-left: 20px;
}

.view-page p{
  padding: 30px 20px;
}


/* About me */
.about-container {
  min-height: calc(100vh - 8vh);
  display: flex;
  background: var(--grey2-colour);
  z-index: 10;
}

.about-container .view-con {
  max-width: 100%;
  min-width: auto;
}

.about-container .about .view-con{
  min-width: 63vw;
}

.about-container h1,
.about-container a {
  padding: 30px 20px;
}

.contact-content {
  display: flex;
  flex-direction: column;
}

.contact-content a,
.contact-content p {
  padding: 0 0 3px 30px;
}

@media (max-width: 1367px) {
  .about-container {
    flex-direction: column;
  }
}


/* Games */
.games-container {
  width: 100%;
  max-width: 100vw;        // HERE
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 5vh 3vw;
}

.games-container .card-a,
.games-container .card-b {
  width: 400px;
  height: 200px;
}

.games-container .card-container{
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  grid-auto-rows: 420px;
}

@media (max-width: 1310px) {
  .games-container .card-container {

  }
}


/* Contact Form */
.contact-container {
  width: 100%;
  height: calc(100vh - 8vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.form-container {
  display: flex;
  flex-direction: column;
  max-width: 70vw;
  text-align: center;
}

.form-container h2 {
  padding: 40px;
  font-size: 2.5rem;
}

.form-container p {
  font-size: 1.5rem;
  padding-bottom: 20px;
}

.form-container input{
  height: 30px;
  margin: 2px;
  border: 0;
  font-size: 1.3rem;
}

#mes {
  height: 200px;
  font-size: 1.3rem;
  font-family: 'Roboto';
  margin: 2px;
}

.form-button {
  background: var(--grey1-colour);
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2px;
  padding: 0;
}


/* First webGL Game */
.game-container {
  min-height: 92vh;
}



/* Privacy */
.privacy-container {
  max-width: 100vw;
  padding: 10vh 5vw 10vh 5vw;
}

.privacy-container p,
.privacy-container h1{
  padding-left: 0;
}



/* Footer */
.footer {
  height: 8vh;
  background: #000;
}

.footer-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-top: 1vh;
}

.footer-info {
  display: flex;
  flex-direction: row;
}

.footer p {
  padding: 0 5px;
}

.footer h3 {
  font-size: 18px;
  padding: 0 5px;
  cursor: pointer;
}

@media(max-width: 1350px) {
  .footer-info {
    flex-direction: column;
    text-align: center;
  }
}


.chromatic-b1{
  border: 2px var(--primary1-colour) solid;
  box-shadow: 0 0 20px var(--primary2-colour), 5px 2px 15px var(--secondary-colour);
}
.font-ps2{
  font-family: 'Press Start 2P';
  /* text-shadow: 2px 1px 2px var(--secondary-colour); */
  color: var(--text1-colour);
}
