/*
font-family: 'Chakra Petch', sans-serif;
font-family: 'Kanit', sans-serif;
font-family: 'Ubuntu', sans-serif;
*/

/*
TEMPORARY
#welcome-section {
height:100vh;
}
*/

:root {
  --main-blue: #39729a;
  --main-bg: #00131a;
  --main-gray: #303841;
  --main-white: #f0f0f0;
}

/* :root {
  --main-blue: #4979c1;
  --main-bg: #606c6c;
  --main-gray: #606c6c;
  --main-white: #f0f0f0;
} */

* {
  /* border: 1px solid; */
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 1rem;
  text-align: center;
}

h1,
h2 {
  font-family: "Kanit", sans-serif;
  text-align: center;
}

navbar h3 {
  font-family: "Chakra Petch", sans-serif;
}

a,
a:visited {
  text-decoration: none;
  color: var(--main-white);
}

/* *** LANDING *** */

#navbar {
  /* offset-x | offset-y | blur-radius | spread-radius | color */
  box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.2);
  padding-left: 1rem;
  padding-right: 0.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  position: fixed;
  width: 100%;
  height: 60px;
  /* font-family: "Ubuntu", sans-serif; */
  font-family: "Kanit", sans-serif;
  background-color: var(--main-blue);
  top: 0;
  /* border-bottom: 2px solid black; */
  font-size: 1.4rem;
  font-weight: 200;
  z-index: 1;
  /* visibility: hidden; */
}

.nav--home img {
  width: 40px;
  top: 5px;
  position: relative;
}

#navbar ul {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  column-gap: 0px;
  position: relative;
  margin: auto auto;
  text-transform: Capitalize;
  list-style: none;
}

#navbar li {
  height: 100%;
  display: flex;
  text-align: center;
  align-items: center;
  padding-left: 10px;
  padding-right: 10px;
  color: var(--main-white);
}

/* *** LANDING *** */

#welcome-section {
  height: calc(100vh - 60px);
  /* max-height: 800px; */
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background-color: var(--main-gray);
}

#welcome-section h1 {
  font-size: 4rem;
  color: var(--main-white);
  text-shadow: 2px 2px 1px #1f1f1f;
}

#welcome-section p {
  width: 90%;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--main-blue);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.461);
  /* offset-x | offset-y | blur-radius | spread-radius | color */
  /* text-shadow: 0 0 1px rgba(255, 255, 255, 0.708); */
  font-family: "Chakra Petch", sans-serif;
  /* font-family: 'Kanit', sans-serif; */
  /* font-family: 'Ubuntu', sans-serif; */
}

.social-div {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 4rem;
  padding: 1rem;
}
.social-div > i {
  background-color: var(--main-white);
  color: var(--main-blue);
  overflow: hidden;
}

.social-div > a:hover {
  scale: 1.1;
}
/* *** PORTFOLIO *** */

#projects {
  width: 100%;
  padding: 3rem 2rem;
  background-color: var(--main-blue);
}

#projects h2 {
  font-size: 2.2rem;
  color: var(--main-white);
  text-shadow: 2px 2px 1px #1f1f1f;
  padding: 2rem;
}

.grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1440px;
  margin: 1rem auto;
  justify-content: space-evenly;
  justify-items: center;
  align-content: space-evenly;
  align-items: center;
}

.project-tile {
  width: 400px;
  height: 440px;
  max-width: 400px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  row-gap: 2rem;
  background-color: var(--main-white);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.project-tile img {
  vertical-align: middle;
  padding: 20px;
  width: 100%;
  height: 80%;
  object-fit: contain;
  border-radius: 10px;
}

.project-tile p {
  height: 20%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Ubuntu", sans-serif;
  background-color: var(--main-gray);
  font-size: 1.1rem;
  /* border-radius: 0 0 10px 10px; */
  position: absolute;
  bottom: 0;
}

.code {
  margin: 2px;
  color: var(--main-gray);
  transition: color 0.3s ease-out;
}

.project-tile:hover .code {
  color: var(--main-blue);
}

/* *** CONTACT *** */

.contact {
  width: 100%;
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  row-gap: 2rem;
  font-size: 1.4rem;
  background-color: var(--main-gray);
}

.contact h2 {
  font-size: 4rem;
  color: var(--main-white);
}

.contact p {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 300;
  color: var(--main-blue);
}

.contact-links {
  font-family: "Ubuntu", sans-serif;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-links i {
  padding: 0 5px;
}

.contact-links i {
  font-size: 1.6rem;
}

.footer {
  font-family: "Ubuntu", sans-serif;
  display: flex;
  flex-direction: row;
  justify-content: end;
  background-color: var(--main-blue);
  border-top: 2px solid black;
}

.footer p {
  margin: 2rem;
  color: var(--main-white);
  text-shadow: 2px 2px 1px #1f1f1f;
}

@media screen and (max-width: 1280px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-tile {
    height: 300px;
  }
}

@media screen and (max-width: 847px) {
  .grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .project-tile {
    height: 300px;
  }
}

/* @media screen and (max-width: 750px) {
.grid {
grid-template: 450px 450px 450px 450px 450px 450px / auto;
}
} */
