:root {
  --color_orange: rgb(230, 166, 46);
  --color_blue: rgb(44, 72, 104);
  --color_blank: rgb(43, 43, 43);
  --color_blue2: rgb(27, 44, 55);
  --nav-height: 4rem;
  --footer-height: 10rem;
}

html {
  font-size: 100%;
}

@media (max-width:1000px) {
  html {
    font-size: 80%;
  }
}

@media (max-width:750px) {
  html {
    font-size: 70%;
  }
}


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

body {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

a {
  text-decoration: none;
  color: black;
}

/* nav bar */
#navbar {
  background-color: var(--color_orange);
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

#navbar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  height: 100%;
}

#navbar li {
  margin: auto 1rem;
  font-size: 1.5rem;
}

#navbar a {
  color: white;
  padding: 0.5rem;
}

#navbar a:hover{
  background-color: white;
  color: var(--color_orange);
}

/* main */

main {
  margin-top: var(--nav-height);
}

/* welcome section */
#welcome-section {
  background-color: var(--color_blank);
  height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.welcome-name {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 0.5rem;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.welcome-intro {
  font-size: 1.5rem;
  color: var(--color_orange);
  font-style: italic;
  font-weight: lighter;
  margin-top: 0.5rem;
  letter-spacing: 0.1rem;
}

/* projects */

#projects {
  background-color: var(--color_blue);
  padding: 4rem 2rem;
  text-align: center;
}

.project-intro {
  color: white;
  font-size: 2.5rem;
  text-align: center;
  padding-top: 5rem;
}

#projects hr {
  width: min(calc(100vw-20px),80vw);
  border: 1px solid white;
  margin: 0.5rem auto 1rem auto;
}

.project-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin: 0 auto;
  margin-bottom: 4rem;
  max-width: 1280px;
}

.project-tile {
  margin: 1rem;
  background-color: var(--color_blue2);
  border-radius: 5px;
  width: fit-content;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.project-tile img {
  width: 100%;
  max-width: calc(100vw - 2rem);
}

.project-title {
  font-size: 1.5rem;
  text-align: center;
  padding: 1rem;
}

.project-title a {
  color: white;
}

.code {
  color: var(--color_blue2);
  transition: color 0.3s ease-out;
}

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

/* show all button */

.show-all {
  background-color: var(--color_blue2);
  color: white;
  border-radius: 5px;
  border: none;
  padding: 0.8rem 1rem;
  font-size: 1.5rem;
}

.show-all:hover {
  background-color: var(--color_orange);
  transition: background-color 0.5s ease-in-out;
}

.show-all:hover .mark {
  transform: translateX(5px);
  transition: transform 0.5s ease-out;
}

/* contact */
#contact {
  background-color: var(--color_blank);
  width: 100%;
  height: min(fit-content, calc(100vh - var(--nav-height) - var(--footer-height))) ;
  text-align: center;
  color: white;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

#contact h1 {
  font-size: 4rem;
  padding-top: 6rem;
  padding-bottom: 1rem;
}

.contact.italic {
  font-style: italic;
  font-weight: lighter;
  font-size: 1.5rem;
  padding-bottom: 2rem;
  letter-spacing: 0.2rem;
}

.contact-wrapper {
  display: flex;
  width: 100%;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  padding-bottom: 2rem;
}

.contact-info {
  margin: 1.5rem 2rem;
  transform: translateY(0);
  transition: transform 0.5s ease-out;
}

.icon {
  font-size: 2rem;
  padding: 0.3rem;
}

.contact-text a {
  color: white;
  font-size: 2rem;
}

.contact-info:hover {
  transform: translateY(10px);
  transition: transform 0.5s ease-out;
}

.contact-info:hover .icon, .contact-info:hover a {
  color: var(--color_orange);
  transition: color 0.5s ease-out;
}


/* footer */
footer {
  height: max(var(--footer-height), fit-content);
  border-top: 4px solid var(--color_orange);
  background-color: var(--color_blank);
  padding: 2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.footer-text, .copyright {
  color: white;
  font-size: 1.5rem;
  font-weight: lighter;
  margin: auto 2rem;
}

@media (max-width: 700px) {
  footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  .footer-text, .copyright {
    margin: 1rem;
  }
}