body {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 
    'Lucida Sans', Arial, sans-serif;
}
h1 {
    text-align: center;
    color: rgb(28, 28, 28);
}
p {
    text-align: center;
    font-size: 20px;
    padding-top: 5px;
    color: rgb(59, 59, 59);
}

a {
    text-decoration: none;
}
a:hover {
    color: rgb(183, 115, 6);
}
#container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; 
    margin: 0 auto; 
}
.projects {
    background-color: rgb(255, 254, 254);
    border-radius: 5%;
    border-color: rgb(137, 176, 245);
    border-width: 2px;
    border-style: solid;
    font-size: 20px;
    margin: 20px;
    padding: 20px;
    width: 200px;
    text-align: center;
}
@media (min-width: 600px) {
 body {
 background-color: #cce3ef;
 }
 }
@media (max-width: 599px) {
 body {
 background-color: rgb(165, 212, 255);
 }
 }


.imager-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto;
}

.imager-container > img {
  width: 320px;
  height: 320px;
  border-radius: 8%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  display: block;
}

.person-button-left-top,
.person-button-left-bottom,
.person-button-right-top,
.person-button-right-bottom {
  position: absolute;
}

.imager-container a {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.imager-container a:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Photos inside buttons*/
.imager-container a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Tooltip styling */
.tooltip {
  visibility: hidden;
  opacity: 0;
  background-color: rgba(28, 28, 28, 0.85);
  color: #fff;
  text-align: center;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.person-button-left-top .tooltip,
.person-button-left-bottom .tooltip {
    bottom: 50%;
    left: 100%; 
    transform: translateY(50%); 
    margin-left: 8px; 
}

.person-button-right-top .tooltip,
.person-button-right-bottom .tooltip {
    bottom: 50%;
    left: -150%; 
    transform: translateY(50%); 
    margin-right: 3px;
}

.imager-container a:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* Button positions around the main photo */
.person-button-left-top {
  top: 20%;
  left: 8%;
}

.person-button-left-bottom {
  bottom: 18%;
  left: 8%;
}

.person-button-right-top {
  top: 20%;
  right: 8%;
}

.person-button-right-bottom {
  bottom: 18%;
  right: 8%;
}

/* Mobile responsiveness: buttons below image*/
@media (max-width: 700px) {
  .imager-container {
    flex-direction: column;
  }

  .person-button-left-top,
  .person-button-left-bottom,
  .person-button-right-top,
  .person-button-right-bottom {
    position: static;
    margin: 10px;
  }
}