* {
  box-sizing: border-box;

}

/* brand color palette */
:root {
  --white: white;
  --black: black;
  --grey: #5e5e5e;
  --pink: #ff7878;
}

body {
  font-family: Arial, Helvetica, "sans-serif";
  color: var(--white);
  line-height: 1.5;
  font-size: 16px;
  background-image:
    radial-gradient(#212121 10%, transparent 20%);
  /* background-position: fixed; */
  background-color: var(--black);
  background-size: 20px 20px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}


h1 {
  font-size: 240%;
  font-weight: 100;
}

.highlight {
  color: var(--pink);
  font-size: 50%;
}

header {
  padding: 20px 20px 20px 0;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: var(--black);
}

nav a {
  text-decoration: none;
  padding: 8px 10px;
  color: var(--white);
}

nav a:hover {
  background-size: 100% 100%;
  text-decoration-line: underline;
  text-decoration-style: wavy;
}

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

main {
  margin: 24px 60px 60px 60px;
}

.section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  padding-bottom: 5%;
}

.flex-item {
  padding: 8px;
  max-width: 100%;
  flex-grow: 0;
  border: .5px solid white;
  border-radius: 6px;
}

.row {
  display: flex;
  flex-direction: row;
}

.col {
  display: flex;
  flex-direction: column;
  padding: 8px;
}

.flex-item:hover {
  /* background-color: aqua; */
border: 1px solid var(--pink);
}

img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* feature first portfolio item */
.flex-item:first-child {
flex-grow: 1;
}


/* footer items */
address {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: var(--white);
  padding: 8px 16px;
}

address a {
  color: var(--black);
  text-decoration: none;
  font-style: normal;
  display: inline-block;
}

address a:hover {
  text-decoration: underline;
}

footer {
  margin: 0 6%;
  padding-bottom: 3%;
  max-width: 88%;
}

footer p {
  color: var(--white);
  text-decoration: none;
  font-style: normal;
}

#legal {
  display: flex;
  justify-content: center;
  padding-top: 24px;
  font-size: 80%;
}

img {
  width: 100%;
  height: auto;
}


/* end portfolio project images */

@media screen and (max-width: 768px) {
  .row {
    flex-wrap: wrap;
  }

  .col:first-child {
    flex-basis: 100%;
  }

  .flex-item:first-child {
    min-height: 150px;
  }

  h1 {
    font-size: 180%;
    font-weight: 100;
  }

  main {
    margin: 24px 16px 16px 16px;
  }

  address {
    flex-direction: column-reverse;
    align-content: center;
    text-align: center;
}
}