* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: white;
  color: black;
  text-align: center;
}

.header {
  position: fixed;
  width: 100%;
  background: palevioletred;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  top: 0;
  left: 0;
  z-index: 1000;
  position: fixed;
  top: 0;
}

.logo {
  font-size: 30px;
  color: white;
  text-decoration: none;
  font-weight: bolder;
  font-family:'Courier New', Courier, monospace;
}

/* Hover effect from a YouTube tutorial (https://www.youtube.com/watch?v=G3e-cpL7ofc&t=4502s) */
.logo:hover{
  transition: 0.6s;
  color: rgb(206, 43, 97);
}

.navbar a {
  font-size: 20px;
  color: white;
  margin: 10px;
  text-decoration: none; 
  border: palevioletred;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.navbar a:hover {
  color: rgb(255, 255, 255);
  text-shadow: 0 0 10px white, 0 0 5px palevioletred;
}

.home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  padding-left: 50px;
  padding-top: 100px;
  
}
.home-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.home-content h1{
  width: 100%;
  font-weight:bold;
  padding-left: 200px;
}
.home-content h2{
  width: 115%;
  font-weight: bold;
  color: palevioletred;
  padding-left: 100px;
}
.home-content p{
  width: 100%;
  font-weight:300;
  padding-left: 100px;
}
.home-content h4{
  width: 100%;
  align-items: center;
  padding-left: 100px;
}
.Myimg {
  width: 50%;
  text-align: right;
  padding-right:  200px;
}
.Myimg img {
  width: 200px;
  border-radius: 200%;
  border: 6px solid palevioletred
}

.section {
  padding: 50px 20px;
  padding-top: 75px;
  padding-bottom: 75px;
  background: whitesmoke;
  margin: 20px auto;
  width: 80%;
  border-radius: 10px;
}

.certificates a{
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: palevioletred;
  color: white;
  text-decoration: none;
  border-radius: 5px;
    margin-bottom:  15px;
}
.project a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: palevioletred;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin-bottom:  15px;
}

/*
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10px, 1fr));
  gap: 10px;
  margin-top: 20px;
}
*/
.gallery img {
  width: 100%;
  border-radius: 10px;
}

.section .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
}

.section .gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

#volunteering2 .gallery img {
  max-height: 80px;
  object-fit: cover;
}


/* Hover effect from a YouTube tutorial (https://www.youtube.com/watch?v=G3e-cpL7ofc&t=4502s) */
.gallery img:hover{
  transform: scale(2.6);
}


.footer {
  background-color: palevioletred;
  padding: 20px;
  color: white;
  position: relative;
  bottom: 0;
  width: 100%;
}

.social a {
  font-size: 25px;
  color: palevioletred;
  margin: 10px;
}

/*3 screen shots displaying how the website is viewed on different
browser sizes (375px, 768px, and 1200px).*/


@media (max-width: 1200px) {
  .home {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-left: 0;
  }

  .home-content h1,
  .home-content h2,
  .home-content p {
    padding-left: 0;
  }

  .Myimg {
    padding-right: 0;
    width: 100%;
    margin-top: 20px;
    text-align: center;
  }

  .Myimg img {
    width: 150px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
  }

  .navbar a {
    margin: 5px 0;
  }

  .home {
    flex-direction: column;
    padding-top: 120px;
  }

  .home-content {
    width: 100%;
    padding: 0 20px;
  }

  .home-content h1,
  .home-content h2,
  .home-content p {
    padding-left: 0;
  }

  .Myimg {
    padding-right: 0;
    width: 100%;
    text-align: center;
  }

  .Myimg img {
    width: 140px;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

@media (max-width: 375px) {
  .header {
    position: relative;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
  }

  

  .logo {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .home-content h1,
  .home-content h2,
  .home-content h4,
  .home-content p {
    font-size: 16px;
    padding-left: 0;
  }
  

  .Myimg img {
    width: 120px;
  }

  .certificates a,
  .project a {
    width: 90%;
    font-size: 14px;
  }
}
