/* Previous CSS */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@800&display=swap');

body {
  font-family: 'Raleway', sans-serif;
  line-height: 1.6;
  background: url('paper-texture.jpg');
  background-size: cover; 
  color:rgb(87, 85, 85)  ;
  background-color:rgb(87, 87, 87)  ;
}

/* Centered Layout */

.container {
  max-width: 800px; 
  margin: 0 auto;
  background-color: beige;
  border-radius: 10px;
  border-left: 2px solid black;
  border-right: 2px solid black;
  border-bottom: 2px solid black;
  border-top: 2px solid black;
  padding: 0 30px; 

}

img {
  display: block;
  margin: 0 auto;
  border-radius: 10px; 
  max-width: 100%;
  
  
 
  
  
}



/* Other Styles */

.dropcap {
  float: left;
  font-size: 3rem;
  line-height: 1;
  padding-top: 4px;
  padding-right: 8px; 
}

footer {
  text-align: center;
  padding-top: 1rem;
}

p {
  font-size: 18px; 
}

h3 {

  font-size: 26px;
  color: rgb(26, 25, 25);
}

h2 {

  font-size: 34px;
  color: rgb(26, 25, 25);
}

h1 {
  font-size: 50px;
  text-align: center;
  color: rgb(26, 25, 25);
}

a {
  
  display: inline-block;
  padding: 10px 20px; 
  background:rgb(65, 64, 64)  ;
  color: beige;
  text-decoration: none;
  border-radius: 4px;
  border-left: 2px solid black;
  border-right: 2px solid black;
  border-bottom: 2px solid black;
  border-top: 2px solid black;
 
}

.scientist img {
  position: relative;
}

.scientist img::after {
  content: attr(data-source);
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 14px;
  color: rgb(189, 187, 187);
  background-color: rgba(0, 0, 0, 0.7); /* Increased opacity */
  padding: 4px 8px; /* Increased padding */
  border-radius: 4px; /* Added border-radius for better visibility */

/* Styles for screens smaller than 600px */
@media (max-width: 600px) {
  .container {
    width: 90%;
    padding: 10px; 
  }
  
  h1 {
    font-size: 2rem;
  }
}

/* Styles for screens larger than 600px */
@media (min-width: 600px) {
  .container {
    width: 100%;
    padding: 20px;
  }  
  
  h1 {
    font-size: 3rem;
  }

/* Hide all scientist sections by default */
.scientist {
  display: none;
}

/* Show the selected scientist section */
.scientist.show {
  display: block;
}