*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* outline: 1px solid green !important; */
}

i[class^="fa-"],
i[class*=" fa-"] {
  font-family: "Font Awesome 5 Free";
  font-weight: 700;
  font-style: normal;
}


:root {
  --primary-color: #ffffff;
}

.header-wrapper {
  position: sticky;
  z-index: 100;
  top: 0;
  width: 100%;
}

.footer-wrapper {
  position: absolute;
  bottom: 0;
  width: 100%;
}


html,
body {
  height: 100vh;
  background: #636363;
  background: -webkit-linear-gradient(to bottom, #a2ab58, #636363);
  background: linear-gradient(to bottom, #a2ab58, #636363);
}

.main-wrapper {
  display: flex;
  justify-content: space-around;

}

main {
  position: relative;
}



/*// Form styling A*/
.container-a {
  text-align: center;
  max-height: 43.75em;
  width: 100%;
}

.form-wrapper {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #060a05;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  margin: .4em;
}

.input-group-inline {
  display: flex;
  margin: .8em auto;
  flex-direction: column;
}

.input-group-inline-bottom {
  display: flex;
  justify-content: center;
}

.input-group-inline label {
  color: rgb(40, 40, 44);
  font-size: 2.3em;
  margin: 0 .1em;
}

.input-group-inline input[type="text"] {
  text-align: center;
  font-size: 1.3em;
  border: none;
  background: #6a7668;
  color: var(--primary-color);
}

label[for="name"] i.fas.fa-user {
  font-size: 1em;
}

label[for="user_id"] i.far.fa-id-card {
  font-size: 1.05em;
}

label[for="user_level"] .fas.fa-level-up-alt {
  font-size: .85em;
}

#user_name {
  width: 60%;
}

#user_id,
#user_level {
  width: 20%;
  min-width: 57px;
}


.input-group-block {
  display: flex;
  flex-direction: column;
  text-align: left;

}

.input-group-block-main {
  border: 1px solid rgba(152, 152, 152, 0.7);
  padding: .5em;
  border-radius: .6em;
  background: rgba(196, 196, 196, 0.7);
}

#klausimas,
#atsakymas {
  margin-top: .4em;
}

textarea#klausimas {
  resize: none;
  line-height: 1.5;
  height: calc(2.5em * 2 + 8px);
}

input[type="number"] {
  max-width: 5em;
}

input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  padding: 6px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  margin-right: .5em;
  text-align: center;
  font-size: 1em;
  font-family: serif;
}

textarea {
  resize: vertical;
  max-height: 150px;
}

label {
  font-weight: bold;
  margin-bottom: 0em;
  margin-top: 1em;
}

label[for="mistake_description"],
label[for="additional_comment"] {
  margin-bottom: -7px;
}

#mistake_description {
  margin-top: -5px;
  margin-bottom: 0;
}

button[type="submit"] {
  background-color: #162c12;
  width: 100%;
  color: white;
  padding: .5em;
  border: none;
  border-radius: .6em;
  cursor: pointer;
  font-size: 1em;
}

button[type="submit"]:hover {
  background-color: #060a05;
}



/*// Modal */
h1 {
  display: inline;
  text-align: center;
  color: #99ab5b;
  font-size: 1.5em;
  margin: 0;
  text-shadow: 1px 1px 2px #656563;
  cursor: pointer;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

h1:hover {
  color: #181818;
  text-shadow: 1px 1px 2px #253d2c;
}

#info-icon {
  display: inline;
  vertical-align: middle;
  height: 1.7em;
  cursor: pointer;
}



.modal {
  display: none;
  line-height: 1.5;
  position: fixed;
  padding: 1em;
  border-radius: 10px;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 0%);
  z-index: 200;
}

.modal-content {
  position: relative;
  padding: 1em;
  margin: auto;
  border-radius: 8px;
  max-width: 500px;
  text-align: center;
  top: 30%;
  transform: translateY(-50%);
  background-color: #0b140a;
}

.modal-title {
  color: var(--primary-color);
  margin-bottom: .5em;
  font-size: 1.3em;
}

.modal-text {
  text-align: left;
  margin-top: .5em;
  color: #99ab5b;
}

.modal-text::before {
  content: "• ";
  color: #99ab5b;
  font-size: 1.2em;
  vertical-align: middle;
  margin-right: 5px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.btn-close {
  margin-top: 1em;
  background-color: #162c12;
  color: white;
  border: 1px solid #0a0e08;
  padding: 0.5em 1em;
  border-radius: 0.5em;
  font-size: 1em;
  cursor: pointer;
  transition: border-color 0.3s ease background-color 0.3s ease, transform 0.2s ease;
}

.btn-close:hover {
  background-color: #0b140a;
  transform: scale(1.05);
  border-color: #ccc;
}

.btn-close:active {
  background-color: #060a05;
  transform: scale(0.95);
}

/*// Form styling B*/
.container-b {
  display: flex;
  border: 1px solid #060a05;
  border-radius: .5em;
  margin: .5em;
  padding: .5em;
  max-width: 600px;
  background-color: rgb(199, 201, 173);
  flex-direction: column;
  margin-bottom: 3.5rem;
}

.loading-message {
  text-align: center;
  font-size: 1.2em;
  color: #555;
}

.error-message {
  color: red;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
}

.list-item {
  border: 1px solid rgba(152, 152, 152, 0.7);
  border-radius: 8px;
  padding: 10px;
  margin: 2px;
  background-color: rgb(198, 199, 189);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  /* max-height: 200px; */
}

.list-item:hover {
  background-color: #f1f1f1;
  transform: scale(1.02);
}

.card-header {
  font-weight: bold;
  font-size: 1.1em;
  color: #333;
  margin-bottom: 5px;
}

.card-body {
  font-size: 1em;
  color: #555;
}

.card-footer {
  font-size: 1.1em;
  color: #11230f;
  text-align: right;
  padding-top: .5em;
}

/* //MEDIA // */
@media (min-width: 420px) {
  .main-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
  }

  .container-a {
    margin-top: 17rem;
  }

  textarea#klausimas {
    height: calc(1.5em * 2 + 8px);
  }

  .form-wrapper {
    border: 2px solid #060a05;
    padding: 2em;
  }

  h1 {
    font-size: 1.7em;
  }

  #info-icon {
    height: 2em;
    margin-left: -.3em;
  }

  .input-group-inline {
    flex-direction: row;
  }
}


@media (min-width: 768px) {
  .container-a {
    margin-top: 0;
  }

  .container-b {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    border: 2px solid #060a05;
    word-break: break-word;
    margin-bottom: 0;
    gap: 1rem;
  }

  .list-item {
    width: auto;
  }
}

@media (min-width: 1024px) {
  main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .container-a {
    margin: -.5em;
    padding: 0;
  }

  input[type="text"],
  input[type="number"],
  textarea {
    font-family: serif;
  }

  button[type="submit"] {
    margin-top: 2em;
  }

  .container-b {
    padding: 1.6em;
    margin: -.1em;
    gap: 1rem;
  }

  .card-body {
    font-size: 1.2em;
    line-height: 1.2;

  }

}