/* Custom properties/variables  */
:root {
  --main-white: #f0f0f0;
  --main-red: #be3144;
  --main-blue: #45567d;
  --main-gray: #303841;
}

* {
  margin: 0;
  padding: 0;
}

/* box-sizing and font sizing */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;

  /* Set font size for easy rem calculations
   * default document font size = 16px, 1rem = 16px, 100% = 16px
   * (100% / 16px) * 10 = 62.5%, 1rem = 10px, 62.5% = 10px
  */
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 14pt; /* 18px */
  font-weight: 400;
  line-height: 1.4;
  color: var(--main-white);
}

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

#navbar {
  position: fixed;
  display: flex;
  flex-wrap: wrap;
  justify-content: right;
  width: 100%;
  margin: 0px;
  padding: 20px;
  background-color: var(--main-red);
}

#navbar a {
  text-decoration: none;
  color: white;
  padding: 0px 25px;
}

#welcome-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background-color: #000;
  background-image: linear-gradient(62deg, #3a3d40 0%, #181719 100%);
}

#projects {
  text-align: center;
  background-color: var(--main-blue);
  padding: 35px 0;
}

#projects h2 {
  width: 55%;
  margin: auto;
  border-bottom: 1px solid var(--main-white);
}

#projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 1rem;
  grid-row-gap: 1.5rem;
  margin: 25px;
}

.project {
  max-height: 300px;
  background-color: var(--main-gray);
  border: 1px solid black;
}

.project-image-header {
  height: 55%;
  overflow: hidden;
}

.project-content {
  height: 45%;
}

.project-content p {
  font-size: 12pt;
  padding: 10px;
}

.project-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

#contact {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 25px;
  background-color: var(--main-gray);
  height: 100vh;
}

#contact h2 {
  font-size: 30pt;
  margin: 20px 0px;
}

.contact-container {
  display: flex;
  justify-content: space-around;
}

.contact-details {
  font-size: inherit;
  transition: font-size ease-in 0.7s;
}

.contact-details:hover {
  font-size: 25pt;
}
