@import url("https://fonts.googleapis.com/css?family=Raleway:300,400,700&display=swap");

:root {
  --r: #1e90ed;
  --rt: rgba(30, 85, 237, 0.7);
  --rd: #020070;
  --g: #464646;
  --gt: rgba(70, 70, 70, 0.8);
  --w: #fafafa;
}

::selection{
  background-color: var(--rd);
  color: var(--w);
}


body {
  font-family: "Raleway", sans-serif !important;
  margin: 0;
  padding: 0;
}

.highlight {
  color: var(--r);
}

.bio a,
.resources a,
.test a {
  color: var(--rd);
  text-decoration: none;
  font-weight: 600;
}

.resources a,
.social a {
  font-size: 1.75rem;
}

.bio a:hover,
.resources a:hover,
.test a:hover {
  color: var(--rt);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers items horizontally */
  justify-content: center; /* centers items vertically */
  text-align: center;
  background-image: linear-gradient(360deg, var(--rd), var(--rt)),
    url(images/maxwellbuildersoffice.jpg);
  background-size: cover;
  background-position: center center;
  min-height: 66vh;
  color: #fafafa;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  color: var(--w);
}

.hero h2 {
  font-size: 1.6rem;
  margin-top: 0.5rem;
}
.hero p {
  font-size: 1.5rem;
}

.me {
  display: grid;
  grid-template-columns: 1fr;
  padding: 5%;
}

.aboutme,
.test {
  text-align: justify;
  padding: 5%;
}

.me h2,
.test h2,
.card h2 {
  max-width: fit-content;
  font-size: 2rem;
  border-bottom: 1px solid var(--g);
}

.me h2 {
  margin-left: auto;
  margin-right: 5%;
}

.card h2 {
  margin-left: auto;
  margin-right: auto;
}


.card img {
  display: block;
  max-width:100%;


}

.test h2 {
  margin-left: 5%;
}

.myphoto {
  min-width: 250px;
  margin: auto;
}

.myphoto img {
  width: 100%;
  clip-path: circle(50%);
}

.center {
  display: table;
  width: 100%;
}

#social {
  display: table-cell;
  vertical-align: middle;
}

#social ul {
  text-align: center;
  padding-left: 0px;
  margin: 0 auto;
}

#social li {
  display: inline-block;
  list-style-type: none;
  margin-left: 30px;
}

.facebook,
.twitter {
  width: 2rem;
  height: 2rem;
}

.email a,
.facebook a,
.twitter a,
.instagram a,
.zillow a {
  transition: all 0.2s ease-in-out;
}

.facebook:hover,
.twitter:hover,
.instagram:hover,
.email:hover,
.zillow:hover {
  transform: scale(1.2);
}

#social ul li {
  transition: ease 0.3s;
}

#social ul:hover > li {
  opacity: 0.5;
}

#social ul:hover > li:hover {
  opacity: 1;
}

.button {
  border-radius: 1000px;
  padding: 1.2rem 2rem;
  margin-top: 20px;
  font: normal bold 26px/1 "Open Sans", sans-serif;
  border: 3px solid;
  text-align: center;
  text-decoration: none;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  border-color: var(--white);
  color: var(--w);
  background-color: var(--rt);
}

.button:hover {
  background: var(--r);
}

.resources {
  padding: 2rem;
  background-color: #f0f0f0;
  border-top: 1px solid var(--r);
  border-bottom: 1px solid var(--r);
}

.resources > ul {
  display: grid;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  grid-gap: 1rem;
}

.resources > ul > li {
  border: 2px solid var(--r);
  padding: 1rem;
  border-top-right-radius: 0.5rem;
  background-color: white;
}

.resources > ul > li > p {
  font-size: 1.25rem;
  line-height: 1.75;
  padding: 1rem 0.75rem;
  color: #666666;
}

.resources > ul > li > a {
  padding: 0.5rem 1rem;
  margin: 0.5rem;
  text-align: ceter;
}



.end {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 1rem;
  padding: 5%;
}

.credit {
  text-align: right;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--rd);
}

.end-contact {
  display: grid;
  background-color: var(--rd);
  color: var(--w);
  text-align: center;
  padding: 5%;
  clip-path: polygon(100% 0%, 100% 62%, 50% 100%, 0% 100%, 0% 38%, 50% 0%);
}

.end-contact h2 {
  font-size: 2rem;
}

.end-contact a {
  color: var(--w);
  text-align: center;
  text-decoration: none;
  padding: 5%;
  font-weight: 550;
}

.middle {
  display: grid;
  margin: auto;
}

.footer {
  background-color: var(--g);
  color: var(--w);
  text-align: center;
  padding: 1%;
}

.footer img {
  height: 2rem;
}

@media only screen and (min-width: 640px) {
  .resources a,
  .social a {
    font-size: 1.1rem;
  }

  .me {
    grid-template-columns: 1fr 2fr;
  }

  .myphoto {
    min-width: 250px;
    margin: auto 1% auto auto;
  }

  .end {
    grid-template-columns: 2fr 1fr;
  }
}
