@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Serif:ital,opsz,wght@0,8..144,100..900;1,8..144,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Petrona:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
  background: url(college.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top;
  /* padding-bottom: 10px; */
}
header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem;
}
header > img {
  width: 12rem;
}
.logo-title {
  text-align: center;
  text-wrap: wrap;
  line-height: 1rem;
  color: #065ec2;
  font-family: "Times New Roman", Times, serif;
  font-weight: 200;
}
.logo-title > h2:not(:last-child) {
  margin-bottom: 1.5rem;
}
@media screen and (max-width: 500px) {
  body {
    padding-inline: 5px;
    height: 100vh;
    background-position: 100%;
    background-size: cover;
  }
  h1 {
    font-size: 1.2rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  header {
    /* flex-direction: column; */
    padding: 1rem;
  }
  header > img {
    width: 6rem;
  }
  .logo-title > h2 {
    font-size: 0.7rem;
    line-height: 0.7rem;
  }
  .logo-title > h2:not(:last-child) {
    margin-bottom: 0.2rem;
  }
  .flex {
    flex-direction: column;
    gap: 5px;
  }
  .form {
    padding: 0rem;
    width: 90%;
  }
  form {
    gap: 6px;
  }

  .result {
    padding: 2px;
  }
  .f-container {
    padding: 0.5rem 1rem;
  }

  .legend > tbody > tr > td {
    padding: 8px;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    color: white;
  }
}

.welcome-text {
  width: 90%;
  background: #065ec2;
  text-align: center;
  border-radius: 8px;
  margin-top: 2rem;
  color: #fff;
  padding: 0.5rem;
  font-family: "Poppins", sans-serif;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
}

.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #065ec2;
  border-radius: 15px;
  gap: 1rem;
  padding: 2rem;
  margin-top: 2rem;
  font-family: "Poppins", sans-serif;
}

form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 2px;
}

.flex > input {
  padding: 4px;
  font-size: 1rem;
}

.flex > label {
  font-size: 1.3rem;
}
.button {
  margin-top: 5px;
  padding: 0.5rem;
  outline: none;
  border: none;
  background: #065ec2;
  color: white;
  font-size: 1.3rem;
  border-radius: 5px;
  cursor: pointer;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
}
.result-table > thead > tr > th {
  border-top: 2px solid gray;
  padding: 8px;
  text-align: center;
}

.result-table > tbody > tr {
  border-top: 2px solid gray;
}

.result-table > tbody > tr > td {
  border: none;
  padding: 8px;
  text-align: center;
  background: #EEEEEE;
  color: black;
  font-family: Futura,Trebuchet MS,Arial,sans-serif; 
  font-weight:600;
}

.legend-table {
  width: 100%;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.legend {
  border-collapse: collapse;
}

.legend > thead > tr > th {
  border: 2px solid gray;
  padding: 8px;
  text-align: center;
  background: #065ec2;
  color: white;
}

.legend > tbody > tr > td {
  padding: 8px;
  text-align: center;
  background: rgba(0, 0, 0, 0.9);
  color: white;
}

.legend > th,
td {
  border: 2px solid gray;
}

.result {
  background: #3db166;
  padding: 2rem;
  color: rgb(246, 249, 248);
  border-radius: 10px;
  font-family: "Petrona";
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-content {
  border: 2px solid gray;
}

.details-container {
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  gap: 4px;
}

.detail {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 15px;
  font-weight: 700;
}

.logout-btn {
  outline: none;
  border: none;
  padding: 5px;
  font-family: "Poppins";
  border-radius: 10px;
  width: 80px;
  color: white;
  background: red;
  cursor: pointer;
}

.f-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #065ec2;
  color: white;
  gap: 1rem;
  padding: 1rem 4rem;
  /* font-family: "Times New Roman", Times, serif; */
  /* letter-spacing: 1px; */
  font-size: 1.2rem;
  margin-top: 2rem;
  font-size: 1rem;
}

.f-container > p > span {
  font-weight: bold;
  color: black;
  padding: 2px;
  border-radius: 4px;
  background-color: yellow;
}
