:root {
  --spacing-xsmall: 2px;
  --spacing-small: 4px;
  --spacing-smedium: 6px;
  --spacing-medium: 8px;
  --spacing-lmedium: 12px;
  --spacing-large: 16px;
  --spacing-xlarge: 24px;
  --spacing-xxlarge: 32px;
  --spacing-xxxlarge: 48px;
  --spacing-huge: 64px;
}

body {
  background-color: white;
}

h1 {
  /* For only the biggest titles */
  font-family: "Sofia Sans", sans-serif;
  font-weight: 400;
  font-size: 80px;
  line-height: 110%;
  letter-spacing: 0%;
  color: #2c2c2c;
}

h2 {
  /* For page titles (inc blog posts on individual post pages)*/
  font-family: "Sofia Sans", sans-serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 110%;
  letter-spacing: 0%;
  color: #2c2c2c;
}

h3 {
  /* For section titles */
  font-family: "Sofia Sans", sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 100%;
  letter-spacing: 0%;
  margin-bottom: 0px;
  color: #2c2c2c;
}

h3.subheading {
  /* For section subheadings */
  font-family: "Sofia Sans", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #757575;
}

h3.small {
  /* For blog section headings */
  font-family: "Sofia Sans", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0%;
}

h4 {
  /* For card titles */
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 120%;
  letter-spacing: 0%;
  margin: 0px;
  color: #2c2c2c;
}

button {
  background-color: #e3e3e3;
  border-style: solid;
  border-width: 2px;
  border-radius: 10px;
  color: #2c2c2c;
  font-family: "Roboto";
  padding: 0.75rem;
}

@font-face {
  font-family: "Sofia Sans";
  src: url(./fonts/SofiaSans-Regular.woff2);
}

@font-face {
  font-family: "Roboto";
  src: url(./fonts/subset-Roboto-Regular.woff2);
}

@font-face {
  font-family: "Sansation-Regular";
  src: url(./fonts/Sansation-Regular.ttf);
}
@font-face {
  font-family: "Sansation-Bold";
  src: url(./fonts/Sansation-Bold.ttf);
}

a {
  text-decoration: none;
  color: #2c2c2c;
}

a.navItem {
  text-decoration: none;
  color: #2c2c2c;
  font-family: Sofia Sans;
}

body p {
  font-family: Roboto;
  font-size: 16px;
  color: #2c2c2c;
}

img.portrait {
  width: 207.2px;
  height: 207.2px;
}

h1.home-header {
  background: -webkit-linear-gradient(#19243f, #293b6d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-card {
  transition: all 0.2s ease-in-out;
}

.blog-card:hover {
  background-color: #f7f7f7;
}

form {
  display: flex;
  flex-direction: column;
  width: 50%;
  height: 400px;
  justify-content: space-evenly;
}

label {
  font-family: Roboto;
  font-size: 16px;
}

.input-holder {
  display: flex;
  flex-direction: column;
}

.project-card-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2c2c2c;
  margin: 0px;
  padding: 10px;
  border-radius: 8px;
  border: none;
}

a.project {
  color: white;
  font-family: Roboto;
  font-size: 16px;
}

.hero-section {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: var(--spacing-huge);
}

.hero-left {
  width: 30rem;
  margin-right: var(--spacing-large);
}

.hero-right {
  padding-top: 4.6875rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 3.125rem;
}

/* Mobile styles */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
  }

  .hero-right {
    display: none; /* Hides on mobile */
  }

  .hero-left {
    width: 100%;
    margin-right: 0;
  }

  h1.home-header {
    font-size: 58px;
  }

  .button-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    margin-right: var(--spacing-xlarge);
  }

  .project-card-button {
    width: 100%;
  }

  .project-card-content {
    flex: 1;
    padding: 0 var(--spacing-large);
  }

  /* Each percentage is a new keyframe, meaning the fade out begins at 66% and finishes at 100% */
  @keyframes fadeOut {
    0% {
      opacity: 1;
    }
    66% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      visibility: hidden;
    }
  }

  /* With keyframe above this means the message is is visible for 2s, then spends the last second fading out */
  /* forwards stops it looping */
  .fade-message {
    opacity: 1;
    animation: fadeOut 3s forwards;
  }

  .success {
    color: black;
    margin: 10px 0;
    font-family: "Roboto";
    font-size: 16px;
    text-align: center;
    background-color: #b6ffba;
    border-radius: 8px;
    padding: 6px;
  }

  .error {
    color: black;
    margin: 10px 0;
    font-family: "Roboto";
    font-size: 16px;
    text-align: center;
    background-color: #ff9696;
    border-radius: 8px;
    padding: 6px;
  }
}
