h1 {
font-size: 3.4em;
}

h5 > img {
padding-bottom: 5px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.image-container::-webkit-scrollbar {
  display: none;
}

.flex-parent {
display: flex;
justify-content: center;
align-items: center;
}

.bg {
position: absolute;
top: 0;
left: 0;
min-height: 100%;
width: 100%;
background: url("./images/bg.jpg");
background-size: cover;
background-position: left top;
background-attachment: fixed;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

.bg-transparent {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
background: url("./images/bg-no-bridge.png");
background-size: cover;
background-position: left top;
background-attachment: fixed;
filter: url('#waves');
}

#card {
z-index: 1;
background-color: transparent;
border: none;
flex-direction: row;
flex-wrap: wrap;
width: 1000px;
height: auto;
margin: 50px 20px;
transition: transform 0.5s;
}

.card-container {
animation: fadeInAnimation ease 2s;
animation-iteration-count: 1;
animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    40% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


.portrait {
  /* transform: translate(240px) rotate(-4deg); */
  transition: transform 0.5s;
  position: relative;
  width: auto;
  max-height: 600px;
  min-height: 400px;
  min-width: 360px;
  object-fit: cover;
  object-position: top;
  box-shadow: 9px 10px 23px 1px rgba(0,0,0,0.6);
  -webkit-box-shadow: 9px 10px 23px 1px rgba(0,0,0,0.6);
  -moz-box-shadow: 9px 10px 23px 1px rgba(0,0,0,0.6);

  -webkit-user-drag: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none;
}

#portrait-1 {
  object-position: 60% 40%;
}

#portrait-2 {
  object-position: center;
}

#portrait-4 {
  object-position: 50% 70%;
}

.portrait-click {
  transform: translate(10px); 
}

#card-details {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: white;
  min-width: 360px;
  min-height: 60vh;
  text-align: center;
  margin-left: auto;
  padding: 15px 0 15px;
  border-radius: 10px;
  box-shadow: 9px 10px 23px 1px rgba(0,0,0,0.6);
  -webkit-box-shadow: 9px 10px 23px 1px rgba(0,0,0,0.6);
  -moz-box-shadow: 9px 10px 23px 1px rgba(0,0,0,0.6);
}

h1.card-text {
    letter-spacing: -3px;
}

h5.card-text {
    letter-spacing: -1px;
}

.enter-btn {
  margin: 40px auto;
  width: 20%;
}

.interests-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

#projects-btn {
  width: 150px;
  margin-bottom: 20px;
}

#projects-btn:hover {
  transform: scale(1.05);
  transition: transform 0.25s;
}

.links-container {
  margin-top: auto;
  padding-top: 20px;
  margin-bottom: 10px;
}

a {
  margin-top: 20px;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.pf-link + .pf-link {
  margin-left: 35px;
}

.pf-link > img:hover {
  transition: transform 0.25s;
  transform: scale(1.15);
}

#links-div {
  flex-direction: column;
}

.page-link {
  background-color: transparent;
  border: none;
  color: black;
}

.hover-button {
    position: absolute;
    bottom: 30%;
    left: 20%;
    transform: translate(-50%, -50%);
    display: none;
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.image-container {
    width: auto;
    max-height: 65vh;
    min-height: 400px;
    max-width: 360px;
    overflow:scroll;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.image-container:hover .hover-button {
    display: block;
}

@media only screen and (max-width: 759px) {
    #card {
        margin: 5px !important;
    }

    .image-container {
        transition: transform 0.5s;
        width: 360px;
        max-height: 20vw;
        transform: scale(1);
        clip-path: polygon(5% 0, 95% 0, 95% 100%, 5% 100%);
    }

    .portrait-click {
        transform: translate(0px); 
    }

    #card-details {
        transform: scale(0.8);
        margin-top: -70px;
        min-height: 250px;
        min-width: 400px;
    }
}

@media only screen and (max-width: 635px) {
    #card {
        margin: 5px !important;
    }

    .image-container {
        width: 360px;
        max-height: 20vw;
        transform: scale(0.8);
        clip-path: polygon(5% 0, 95% 0, 95% 100%, 5% 100%);
    }

    #card-details {
        transform: scale(0.8);
        margin-top: -90px;
        min-height: 250px;
        min-width: 360px;
    }
}


@media only screen and (min-height: 1000px) {
    #card {
        flex-direction: column !important;
    }

    .image-container {
        width: 350px;
        max-height: 45vh !important;
        transform: scale(1);
    }

    .portrait {
        width: 350px;
        max-height: 50vw;
        transform: scale(1);
    }

    #card-details {
        min-height: 20vh;
    }
}