body {
    background-color: #f8fcff !important;
    font-family: 'Roboto', sans-serif !important;
}

.team-member {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.team-member img {
    width: 100%;
    height: auto;
    display: block;
}

/* Glass effect container */
.glass-effect {
    background: rgba(255, 255, 255, 0.3); /* Semi-transparent background */
    backdrop-filter: blur(5px); /* Glassmorphism blur */
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    color: black;
    max-width: 800px;
    text-align: center;
  }
  
  h1{
    color:purple;
    text-align: center;
  }

  .background {
    position: relative;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('https://static.igem.wiki/teams/5310/brainover.svg'); /* Replace with your image */
    background-size: 45%;
    background-position: center;
    background-repeat: no-repeat;
  }

.container-t h1{
    color: purple;
}

.container-t{
    width: 80vw; 
    margin: 0 auto; 
    border-radius: 25px;
    background-color: #fffaf3;
    box-shadow: 0 0 10px rgba(230, 144, 227, 0.5);
    border: 1px solid black;
}

.team-member img{
    width: 30vw;
    height: 60vh;
    object-fit: cover;
}

/* Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Name container */
.team-info {
    position: absolute;
    bottom: -100%; /* Start hidden */
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    padding: 10px 0;
    transition: bottom 0.4s ease; /* Smooth slide effect */
}

/* On hover, fade in the overlay and move the name up */
.team-member:hover .overlay {
    opacity: 1; /* Fade in overlay */
}

.team-member:hover .team-info {
    bottom: 0; /* Move into view */
}

/* Modal */

.modal-content {
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Styling for the close button */
.modal-header .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #333;
}

/* Circular image with border */
.modal-body img.rounded-circle {
    border: 4px solid #ddd;
}

/* Spacing for the social media buttons */
.social-links .btn {
    width: 150px;
}

/* Modal Title Styling */
.modal-title {
    font-size: 1.8rem;
    font-weight: bold;
}

.modal-body p.text-muted {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Hover effect for buttons */
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    color: white;
    background-color: #007bff;
    border-color: #007bff;
}