/* For all pages */ 

html {
  height: 100%;
  margin: 0;  
  scroll-behavior: smooth;
}

body {
  font-family: "Work Sans";
  height: 100%;
  margin: 0;
}

h1 {
  font-size: 60px;
  font-weight: bold;
}

h2 {
  font-size: 30px;
}

p {
  font-size: 20px;
}

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

a {
  color: #5518AB;
  text-decoration: none;
}

.topnav {
  background: lavender;
  overflow: hidden;
  padding: 16px;
}

.topnav a {
  color: black;
  display: block;
  float: right;
  font-size: 20px;
  padding: 14px 16px;
  text-align: center;
  text-decoration: none;
}

.topnav-left a {
  color: black;
  display: block;
  float: left;
  font-size: 20px;
  padding: 14px 16px;
  text-align: center;
  text-decoration: none;
}

.topnav a:hover {
  color: #8e8ead;
}

#to-top-btn {
  background: #cec6e3;
  border: none;
  border-radius: 10px; /* Round corners */
  bottom: 50px;
  color: black;
  cursor: pointer; /* Add mouse pointer on hover */
  outline: none;
  padding: 10px 16px 0;
  position: fixed;
  right: 50px;
  font-size: 25px;
  z-index: 99; /* Won't overlap */
}

#to-top-btn:hover {
  background: #8e8ead;
}

#pad {
  margin: 0;
  padding: 80px 140px 20px;
}

/* Reduces padding when the width of screen is <= 600px */
@media screen and (max-width: 600px) {
  #pad {
    padding: 5%;
  }
}

/* Home page */

#cover {
  background-image: url(images/background.jpg);
  background-position: center;
  background-size: cover;
  filter: blur(4px);
  -webkit-filter: blur(4px);
  height: 100%;
}

#trans-text{
  background: rgba(0,0,0,.2); /* Black w/opacity/see-through */
  border: 3px solid lavender;
  color: lavender;
  font-weight: bold;
  left: 50%;
  padding: 20px;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  z-index: 2;
}

#about-me {
  background: lavender;
  height: 100%;
  overflow: auto;
  padding: 80px 130px;
}

@media screen and (max-width: 600px) {
  #about-me {
    padding: 5%;
  }
}

#profile {
  border: 2px solid #8e8ead;
  border-radius: 50%;
  padding: 8px;
}

.right {
  float: right;
  width: 60%;
}

.left {
  float: left;
  width: 30%;
}

.footer {
  background: #8e8ead;
  margin: 0;
  padding: 20px 0px;
  text-align: center;
}

.fa {
  border-radius: 5px;
  padding: 8px;
  font-size: 22px;
  width: 24px;
  text-align: center;
  text-decoration: none;
}

.fa:hover {
    opacity: 0.7;
}

.fa-linkedin {
  background: #007bb5;
  color: white;
}

/* Projects Page */

.card {
  display: table-cell;
  text-align: center;
  transition: .3s;
  width: 400px;
}

.card p {
  color: black;
  display: block;
  font-size: 22px;
  padding: 14px 16px;
}

.card:hover {
  opacity: 0.7;
}

.grid-2-col {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: auto auto; 
  justify-content: space-evenly;
  padding: 10px;
}

.grid-3-col {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: auto auto auto; 
  justify-content: space-evenly;
  padding: 10px;
}

.grid-2-col p,
.grid-3-col p {
  text-align: center;
}

.grid-2-col img,
.grid-3-col img {
  margin: auto;
}

@media only screen and (max-width: 600px) {
  .grid-2-col,
  .grid-3-col {
    display: block;
    width: 100%;
  }
}

.projects-table {
  border-collapse: collapse;
  width: 100%;
}

td, 
th {
  border: 2px solid black;
  padding: 8px;
  text-align: left;
}

iframe {
  height: 360px;
  width: 640px;
  max-height: 100%;
  max-width: 100%;
}
