* {
  margin: 0; padding: 0;
  }
body {
	overflow-x: hidden;
}

  .kokoonpano {
    font-family: 'Roboto', sans-serif;
    font-size: 44px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(to right, #000000e5, #cd9000d1);
    padding: 20px;
    border-radius: 0px;
    box-shadow: 0px 13px 6px rgba(0, 0, 0, 0.557);
    transform: rotate(-5deg);
    position: relative;
    top: 70px;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
  }
  
.player-card {
  border: 10px double #00000056;
  background-image: linear-gradient(180deg, #ffebcc, #ffffff  );
  border-radius: 5px;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.878);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  

  position: relative; width: 800px;
  left: 50%;
  transform: translateX(-50%);
}


.pelinro {
  color: rgba(182, 0, 0, 0.835); font-size: 50px; font-weight: bold; 
  text-shadow: 2px 4px 4px rgba(0, 0, 0, 0.711); 
  margin-bottom: 20px;   
  
}

.player-card:first-of-type {
  margin-top: 65px;
}

.player-card h3 {
  margin: 18px 0px;
  font-size: 25px;
}

.player-card p {
  margin: 0;  font-weight: bold; font-size: 20px;
}

.player-card h3,
.player-card p {
  color: black;
  padding: 10px; border-radius: 8px; 
  background-color: rgba(255, 222, 157, 0.789);
  border: 1px solid red;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.878);
}


.player-card .profile-image {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
   border: 4px outset rgb(255, 255, 255);
   margin: 0px 20px;
  
}
.profile-image:hover {
  filter: brightness(120%);
}

.player-card .details {
  margin-top: 10px;
}

.player-card .details p {
  margin-bottom: 5px;
}

@media only screen and (max-width: 870px) {
  .player-card {
    width: 370px;
    flex-direction: column;
  }     
    .kokoonpano {
      font-size: 20px;
    } }
    @media only screen and (max-width: 470px) {
            
      .player-card {
        width: 80%;
      }   
      .player-card .profile-image {
        width: 75vw; height: 75vw;
      }  
    }

  .keski-ikä-div {
    display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  position: relative; width: 370px;
  left: 50%;
  transform: translateX(-50%);
  border: 10px double #00000056;
  background-image: linear-gradient(180deg, #ffebcc, #ffffff  );
  border-radius: 5px;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.878);
  margin-bottom: 20px;
	  padding: 20px;
  }

  .keski-ikä-div p {
    font-size: 30px;
  }
  @media only screen and (max-width: 470px) {
	   .keski-ikä-div {
		   width: 90vw;
		   padding: 20px 0px;
	  }
    .keski-ikä-div p {
      font-size: 5vw;
    }
    }  
    @media only screen and (max-width: 321px) {
            
        .kokoonpano {
          font-size: 6vw;
        }
      }  
  

  
  