  *{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  height: 100%;
}

body{
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: rgb(171, 35, 244);
  padding: 2em;
}

#content{
  background-color: white;
  border-radius: 1.5em;
}

#header{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em;
  color: rgb(171, 35, 244);
  font-size: 20px;
}


#input{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#input input{
  height: 2.5em;
  width: 33em;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 2em;
  background-color: white;
  color: rgb(171, 35, 244);
  font-size: 16px;
  border: 1px solid rgb(171, 35, 244);

}

#input input::placeholder
{
  color: rgb(171, 35, 244);
}

#gradeError, #idError {

  color: red;
  font-size: 14px;
  margin-top: -1em;
  margin-bottom: 1em;
}

select {
  text-align: center;
  background-color: white;
  color: rgb(171, 35, 244);
  border-radius: 5px;
  font-size: 16px;
  height: 2.5em;
  width: 33em;
  border: 1px solid rgb(171, 35, 244);

}

#btn-div{
  display: flex;
  justify-content: center;
  align-items: center;
}

#btn1{
  color: white ;
  background-color: rgb(171, 35, 244);
  padding: 1dvh;
  border: none;
  border-radius: 5px;
  text-align: center;
  height: 2.5em;
  width: 33em;
  font-size: 16px;
  cursor: pointer;
  margin-top: 2em;
}

#listHeader{
  margin-top: 3em;
  display: flex;
  justify-content: center;
  align-items: center;
}

table tr th{
  font-size: 18px;
  background-color: rgb(171, 35, 244) ;
  color: white;
  width: 13em;
}


table tr td{
  color: rgb(171, 35, 244);
  width: 13em;
  text-align: center;
}

p {
  color: rgb(171, 35, 244);
  font-size: 18px;
  text-align: center;
}

.items{
  width: 40%;
  padding: 10dvh;
}

#deleteBtn{
  color: white;
  background-color: rgb(171, 35, 244);
  padding: 1em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#btn2-div{
  display:flex;
  justify-content: center;
  align-items: center;
}


#btn2{
  color: white ;
  background-color: rgb(171, 35, 244);
  border: none;
  border-radius: 5px;
  text-align: center;
  height: 2.5em;
  width: 33em;
  font-size: 16px;
  cursor: pointer;
  margin-top: 2em;
}

#statisticsArea{
  display:flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  padding-top: 3em;
  padding-bottom: 13em;
  height: auto;
  text-align: center;
}

#statisticsArea div{
  border: 3px solid rgb(171, 35, 244);
  padding: 1em;
  margin: 1em;
}

h3 {
  color: rgb(171, 35, 244);
    }


@media (max-width: 768px) {
  #input input,
  select {
    width: 100%;
    max-width: 90%;
  }

  #btn1, #btn2 {
    width: 100%;
    max-width: 90%;
  }



   table tr th, table tr td {
    font-size: 14px;
    width: auto;
  }
  
  #input input, select {
  width: 100%;
  max-width: 33em;
  }

  table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
  }
}
