/* Gets rid of white boarders around whole webpage */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

/* 
#####################
#   For desktop:    #
#####################
*/

header {
  background-color: #495371;
  color: ivory;
  width: 100%;
  min-height: 10%; /* min-height 10% matches with min-height 90% in .main, .outside-link-container, and .downloads
                        so that it is always at least 100% */
}

h1 {
  color: ivory;
  text-align: center;
  font-size: 2.5rem;
}

h2 {
  color: ivory;
  font-size: 2rem;
}

p {
  font-size: 1.25rem;
}

nav {
  font-size: 1rem;
  padding: 10px;
}

/* .top creates a flexbox for .name and .link-container to place them on top of each other */
.top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.name {
  padding-top: 0.5rem;
}

/* Grid container for links to other pages in my site */
.link-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: "a b c d";
}
.link-item1 {
  grid-area: a;
  justify-self: ceter;
}
.link-item2 {
  grid-area: b;
  justify-self: center;
}
.link-item3 {
  grid-area: c;
  justify-self: center;
}
.link-item4 {
  grid-area: d;
  justify-self: center;
}

/* Coloring for links */
a {
  text-decoration: none;
}
a:link {
  color: white;
}
a:visited {
  color: wheat;
}
a:hover {
  color: #00afc1;
}

.main {
  background-color: #066163;
  min-height: 90%;
}

/* Section with picture and intro */
.intro {
  display: grid;
  column-gap: 20px;
  padding-bottom: 2rem;
}
.avatar {
  border-radius: 50%; /* create round picture */
  padding: 10px;
  grid-column-start: 1;
  grid-column-end: 2;
  justify-self: end;
}
.welcome {
  grid-column-start: 2;
  grid-column-end: 4;
  padding-top: 20px;
  align-self: center;
}

.about-title {
  text-align: center;
  padding-bottom: 10px;
  padding-top: 15px;
}

/* main section of links.html */
.outside-link-container {
  background-color: #066163;
  min-height: 90%;
  display: grid;
  column-gap: 20px;
}
.github-link {
  grid-column-start: 1;
  grid-column-end: 2;
  justify-self: center;
  align-self: center;
}
.github-mark {
  width: 125px;
}
.github-logo {
  width: 175px;
}
.linkedin-link {
  grid-column-start: 2;
  grid-column-end: 3;
  justify-self: center;
  align-self: center;
}
.li-logo {
  width: 175px;
}

/* main section of documents.html */
.downloads {
  background-color: #066163;
  min-height: 90%;
  display: grid;
  column-gap: 20px;
}
.resume {
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row-start: 2;
  grid-row-end: 3;
  justify-self: center;
  align-self: center;
}
.resume-img {
  width: 150px;
}

.ccna {
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row-start: 1;
  grid-row-end: 2;
  justify-self: center;
  align-self: center;
}
.ccna-img {
  width: 150px;
}

.comptia-a {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 1;
  grid-row-end: 2;
  justify-self: center;
  align-self: center;
}
.comptia-a-img {
  width: 150px;
}
.comptia-sec {
  grid-column-start: 3;
  grid-column-end: 4;
  grid-row-start: 1;
  grid-row-end: 2;
  justify-self: center;
  align-self: center;
}
.comptia-sec-img {
  width: 150px;
}
.lfca {
  grid-column-start: 3;
  grid-column-end: 4;
  grid-row-start: 2;
  grid-row-end: 3;
  justify-self: center;
  align-self: center;
}
.lfca-img {
  width: 150px;
}

/*
#########################
#   For mobile phones:  #
#########################
*/
@media only screen and (max-width: 1000px) {
  /* shrink relative header size and grow remaining size */
  header {
    background-color: #495371;
    color: ivory;
    width: 100%;
    min-height: 5%;
  }

  h1 {
    color: ivory;
    text-align: center;
    font-size: 3rem;
  }

  h2 {
    color: ivory;
    font-size: 2.5rem;
  }

  p {
    font-size: 1.5rem;
  }

  nav {
    font-size: 1.75rem;
    padding: 10px;
  }

  .main {
    background-color: #066163;
    min-height: 95%;
  }

  /* organize links vertically to fit mobile better */
  /* image width also increases to appear better on smaller screen */
  .outside-link-container {
    background-color: #066163;
    min-height: 95%;
    display: grid;
    row-gap: 20px;
  }
  .github-link {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 2;
    justify-self: center;
    align-self: center;
  }
  .github-mark {
    width: 175px;
  }
  .github-logo {
    width: 225px;
  }
  .linkedin-link {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 3;
    justify-self: center;
    align-self: center;
  }
  .li-logo {
    width: 275px;
  }

  /* organize vertically to fit mobile better */
  .downloads {
    background-color: #066163;
    min-height: 95%;
    display: grid;
    column-gap: 20px;
  }
  .resume {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 2;
    justify-self: center;
    align-self: center;
  }
  .resume-img {
    width: 200px;
  }
  .ccna {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 3;
    justify-self: center;
    align-self: center;
  }
  .ccna-img {
    width: 200px;
  }
  .comptia-a {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 3;
    grid-row-end: 4;
    justify-self: center;
    align-self: center;
  }
  .comptia-a-img {
    width: 200px;
  }
  .comptia-sec {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 4;
    grid-row-end: 5;
    justify-self: center;
    align-self: center;
  }
  .comptia-sec-img {
    width: 200px;
  }

  .lfca {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 5;
    grid-row-end: 6;
    justify-self: center;
    align-self: center;
  }
  .lfca-img {
    width: 200px;
  }
}
