:root {
  --blue: #012052;
  --white: #fff;
  --teal: #22c9fc;
}

* {
  justify-content: center;
}

html {
  font-size: 62.5%;
  justify-content: center;
  text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.625rem;
  color: var(--white);
  font-weight: 700;
  line-height: 1.1;
  font-family: "Courier New", Courier, monospace;
}

h1 {
  font-size: 4rem;
  padding-bottom: 2rem;
}

h2 {
  font-size: 3.5rem;
  color: var(--teal);
}

h3 {
  font-size: 3rem;
}

h4 {
  font-size: 1.5rem;
  padding-top: 1rem;
  padding-left: 1rem;
}

h5 {
  font-size: 2rem;
  color: var(--teal);
}

h6 {
  font-size: 1.5rem;
  padding-top: 3rem;
}

p {
  font-size: 1.5rem;
  margin: 2rem;
  padding: 0 2rem;
  line-height: 1.5;
  font-size: 1.5rem;
  text-align: center;
}

.body {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.75rem;
  line-height: 1.5;
  color: var(--white);
  background-color: var(--teal);
}

main {
  background-color: var(--white);
  padding-top: 3rem;
}

/* matching header and footer in color scheme */

header,
footer,
.title {
  background-color: var(--blue);
  padding-top: 1rem;
  text-align: center;
}

/* sticky header */

header {
  /* position: -webkit-sticky; */
  position: sticky;
  top: 0ex;
  z-index: 10;
}

footer {
  height: 100px;
  color: var(--white);
}

/* nav with individual button appearance and hover traits */

nav {
  background-color: var(--blue);
  padding: 2rem 0;
}

nav a {
  background-color: var(--teal);
  color: var(--blue);
  padding: 0.5rem;
  border-radius: 2rem;
  text-align: center;
  text-decoration: none;
  z-index: 1;
}

nav a:hover,
nav a:active {
  background-color: var(--white);
}

li {
  display: inline-block;
  padding: 1rem 0.5rem;
  font-weight: bold;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

li a {
  font-size: 1.5rem;
}

/* three main sections of the portfolio - about me, projects, and contact*/

#about-me,
#projects,
#contact-me {
  padding-bottom: 3rem;
  font-size: 1.5rem;
}

.about-me img {
  width: 30rem;
  border-radius: 50%;
  margin: 3rem;
}

.about-me p {
  text-align: justify;
}

.card-box {
  display: flex;
  flex-wrap: wrap;
  margin: 2rem;
}

a.card-slide,
.hero-project {
  position: relative;
  flex-direction: row;
  min-height: 200px;
  margin: 2%;
  border: 3px inset var(--blue);
  padding: 3%;
  font-size: 2rem;
  border-radius: 10%;
  width: 43%;
  z-index: 0;
  box-shadow: -10px 10px var(--teal);
}

/* Saving for potential future use 

    background-image: linear-gradient(
    rgba(114, 209, 247, 0.3) 0%,
    rgba(0, 4, 59, 0.6) 100%
    );
} */

#hero-project {
  /* width: 90%;
  min-height: 300px; */
  background-image: url(../images/cyber-security-3374252_1920.jpg);
}

.hero-project header,
.card-slide header {
  font-size: 1.3rem;
  color: var(--white);
  font-weight: bold;
  position: absolute;
  top: 71%;
  left: -0.15rem;
  width: 80%;
  height: 30%;
  line-height: 1.3;
  border-radius: 20px;
  text-align: left;
}

#hero-project,
#img-1,
#img-2,
#img-3,
#img-4,
#img-5 {
  background-size: cover;
  background-position: center;
}

.card-slide:hover {
  border: 15px outset var(--teal);
  box-shadow: none;
  transition: all 0.5s ease-out;
}

.contact-info {
  padding-bottom: 4rem;
  text-align: center;
}

/* project backgrounds */

#img-1 {
  background-image: url(../images/analytics-3088958_1920.jpg);
}

#img-2 {
  background-image: url(../images/coding-1841550_1280.jpg);
}

#img-3 {
  background-image: url(../images/finger-2081169_1280.jpg);
}

#img-4 {
  background-image: url(../images/monitor-g0840db2e6_1280.jpg);
}

#img-5 {
  background-image: url(../images/code-1.png);
}

#img-6 {
  background-image: url(../images/binary-code-475664_640.jpg);
}

/* items on project page */
.project-list h5 {
  margin-top: 2rem;
}

.project-list p {
  margin-bottom: 4rem;
}

/* responsive design keeping everything centered and aligned going up from mobile */

@media screen and (min-width: 768px) {
  nav a {
    margin: 1rem 2rem;
    padding: 1rem;
  }

  li {
    padding: 1rem 0 2rem 0;
    font-size: 2rem;
  }

  .about-me {
    padding-bottom: 4rem;
  }

  .about-me img {
    width: 200px;
    float: left;
  }

  .about-me p {
    text-align: justify;
  }

  a.card-slide {
    width: 43%;
  }
}

@media screen and (min-width: 1100px) {
  .about-me img {
    margin: 0 6rem;
  }

  a.card-slide {
    width: 27.5%;
  }
}
