* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background-color: #2bc0e4;
  color: white;
  padding: 10px;
  font-size: 1.2rem;
}

/* Shared body layouts */
#body1,
#body2,
#body3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

h1 {
  margin-top: 10px;
  margin-bottom: 20px;
  text-align: center;

}





/* Table styling */
#table {
  width: 95%;
  padding-top: 0;
  padding: 15px;
  font-size: 1.5rem;
  border-radius: 16px;
  border: 3px solid #eaecc6;
  box-shadow: 0px 0px 8px black;

}

#table td img {
  width: 80px;
  height: auto;
  border-radius: 20px;
  border: 2px solid black;
}

/* Buttons */
.btnHome,
#edit-btn button,
#editForm button {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 1.2rem;
  color: #2bc0e4;
  background-color: #eaecc6;
  border: 2px solid #2bc0e4;
  border-radius: 14px;
  box-shadow: 0px 0px 8px black;
  margin: 5px;
  transition: all 0.3s ease;
}

.btnHome:hover,
#edit-btn button:hover,
#editForm button:hover {
  background-color: yellow;
  color: black;
  transform: scale(1.05);
}

/* Button container */
#container {
  width: 95%;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* Avatar image display */
#avatarImage img {
  width: 60vw;
  max-width: 300px;
  border-radius: 20px;
  margin: 20px;
}

/* Form styling */
#editForm {
  width: 95%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  border: 2px solid #eaecc6;
  border-radius: 16px;
  box-shadow: 0px 0px 8px black;
}

#editForm input[type="text"],
#editForm input[type="email"],
#editForm input[type="file"] {
  width: 100%;
  font-size: 1.1rem;
  padding: 10px;
  color: white;
  background-color: transparent;
  border: 2px solid white;
  border-radius: 10px;
  box-shadow: 0px 0px 4px black;
}

/* Media Queries */

/* MOBILE (small phones) */
@media (max-width: 480px) {
  body {
    font-size: 4.5vw;
  }

  #table td img {
    width: 60px;
  }

  .btnHome,
  #edit-btn button,
  #editForm button {
    font-size: 4.5vw;
    padding: 10px;
  }

  #editForm input {
    font-size: 4.5vw;
  }

  #avatarImage img {
    width: 70vw;
  }
}

/* TABLETS */
@media (min-width: 481px) and (max-width: 1023px) {
  body {
    font-size: 1.5rem;
  }

  #table td img {
    width: 100px;
  }

  .btnHome,
  #edit-btn button,
  #editForm button {
    font-size: 1.4rem;
  }

  #editForm input {
    font-size: 1.3rem;
  }

  #avatarImage img {
    width: 50vw;
  }
}

/* DESKTOPS */
@media (min-width: 1024px) {
  body {
    font-size: 1.6rem;
  }

  #table td img {
    width: 120px;
  }

  .btnHome,
  #edit-btn button,
  #editForm button {
    font-size: 1.5rem;
    padding: 15px;
  }

  #editForm input {
    font-size: 1.4rem;
  }

  #avatarImage img {
    width: 300px;
  }
}
