/* 
  Auteur      : Maxime Bernet
  Description : style description des potions de mon projet personnel du module 293 (minecraft)
  Date        : 15.01.2026
*/

header {
  background-image: url(../image/banniere.gif);
  margin-bottom: 50px;
}

h1 {
  text-align: center;
  color: aliceblue;
  font-family: Arial, Helvetica, sans-serif;
  padding-bottom: 10px;
  padding-top: 10px;
  font-size: 4vh;
}

body {
  background-image: url(../image/deepslateBackground.webp);
  margin: 0;
}

main {
  display: flex;
  justify-content: space-evenly;
  gap: 40px;
  margin: 40px auto;
  width: 90%;
}

table {
  width: 300px;
  height: 670px;
  border: 10px solid black;
  border-collapse: collapse;
  padding: 15px;
  box-sizing: border-box;
  background-color: azure;
}

table td {
  vertical-align: top;
  padding: 10px;
  font-family: Arial, sans-serif;
  font-size: 20px;
}

table img {
  width: 100%;
  height: auto;
  border: 1px solid black;
  margin-bottom: 10px;
}
/* Ces styles sont les mêmes que au-dessus car je n'ai pas eu le temps de changer les tableaux sur toutes les pages, comme sa il y aura toujours un style sur les pages qui utilisent les tableaux.*/

.table {
  width: 300px;
  max-width: 300px;
  height: 670px;
  border: 10px solid black;
  border-collapse: collapse;
  padding: 15px;
  box-sizing: border-box;
  background-color: azure;
  display: flex;
  align-content: flex-start;
}

.description {
  vertical-align: top;
  padding: 10px;
  font-family: Arial, sans-serif;
  font-size: 20px;
}

.image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}



@media screen and (max-width: 768px) {

  body {
    background-size: cover;
    background-position: center;
  }

  header {
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
  }

  h1 {
    font-size: 3vh;
    padding: 8px 0;
  }

  main {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
    margin: 20px auto;
  }

  table {
    width: 95%;
    height: auto;
    border-width: 6px;
    padding: 10px;
  }

  table td {
    font-size: 16px;
    padding: 8px;
  }

  table img {
    width: 100%;
    height: auto;
  }

  .table {
    width: 95%;
    height: auto;
    border-width: 6px;
    padding: 10px;
  }

  .description {
    font-size: 16px;
    padding: 8px;
  }

  
}