/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

body {
  background-color: aliceblue;
  color: black;
  font-family: Georgia, serif;
}

h1 {
 font-family: Georgia, serif; 
 text-align: center;
}

h2 {
  font-family: Georgia, serif; 
 text-align: center;
}

main {
 margin: 20px; 
}

/* GENERAL CLASSES */

.center {
  margin: auto;
  width: 50%;
  border: 3px solid rgba(195, 106, 155, 1);
  padding: 10px;
}

/*-- NAVBAR --> */

.navbar ul {
 list-style-type: none;
 background-color: rgba(0, 0, 0, 0.5);
 padding: 0px;
 margin: 0px;
 
}

.navbar li {
 border-style: solid;
 border-color: rgb(255,255,255);
}

.navbar a {
 color: aliceblue;
 text-decoration: none;
 padding: 15px;
 display: block;
 text-align: center;
}

.navbar a:hover {
 background-color: pink; 
}


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

a:link {
  color: PaleVioletRed;
  background-color: transparent;
  text-decoration: none;
}

a:visited {
  color: PaleVioletRed;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
 color: black; 
}


.portfolio {
  --gap: 16px;
  --num-cols: 4;
  --row-height: 300px;
  
  box-sizing: border-box;
  padding: 16px;
  
  display: grid;
  grid-template-columns: repeat(var(--num-cols), 1fr);
  grid-auto-rows: var(--row-height);
  gap: 16px;
}

.pimg {
  width: 100%;
  height: auto;
  object-fit: cover;
}


.pimg:hover {
  -ms-transform: scale(1.1); /* IE 9 */
  -webkit-transform: scale(1.1); /* Safari 3-8 */
  transform: scale(1.1); 
}

.imageLink {
  padding: 25px;
  position: relative;
  text-align: center;
  display: inline-block;
  transform: .5s;
}

.imageLink:hover {
  -ms-transform: scale(1.1); /* IE 9 */
  -webkit-transform: scale(1.1); /* Safari 3-8 */
  transform: scale(1.1); 
}

.centeredText {
  position: absolute;
  font-size: 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: aliceblue;
  text-shadow: 2px 2px 4px #000000;
}