/* Reset some default browser styles */
body,
h1,
p {
  margin: 0;
  padding: 0;
}

.hidden {
  display: none;
}

.back {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

/* Style pages */
.page {
  background-color: #fff;
  margin: 0 20px 20px 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 80vh;
}

/* Set a background color and default text color */
body {
  background-color: #f0f0f0;
  font-family: Arial, sans-serif;
}

/* Style the header */
header {
  text-align: left;
}

/* Style form elements */
form {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 5px;
}

input {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button[type="submit"] {
  background-color: #ebd2b4;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100px;
  font-size: medium;
  align-self: center;
}

button {
  background-color: #ebd2b4;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: medium;
  align-self: center;
}

button:hover {
  background-color: #1e1b5f;
  color: #fff;
}

table {
  border-collapse: collapse;
  border: 0px;
  letter-spacing: 1px;
  font-family: sans-serif;
  font-size: 0.8rem;
  width: 100%;
  overflow-x: auto;
}

td,
th {
  padding: 0px;
  font-size: large;
}

td {
  text-align: center;
  font-size: medium;
  height: 50px;
}

@media (max-width: 750px) {
  .hideable {
    display: none;
  }
}

.smallest-column {
  width: 1px;
  white-space: nowrap;
}

tr:nth-child(even) {
  background-color: #eee;
}

.notFound {
  text-align: center;
}

.subheader {
  align-self: flex-start;
  margin-right: auto;
}

.add-button-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
  width: 100%;
}

.icon-button {
  background-color: transparent;
  font-size: 20px;
  color: #000;
  border-radius: 100%;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.icon-button:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.information-header {
  margin: 50px 20px 0 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.information-box {
  margin: 0 20px;
  align-items: center;
}

.information {
  display: flex;
  flex-direction: row;
  margin: 20px 0 0 20px;
  height: 30px;
  gap: 10px;
  align-items: center;
}

.responsive-button {
  width: 150px;
  padding: 0.5rem;
  font-size: 0.8rem;
}

@media screen and (max-width: 850px) {
  th,
  td {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 7rem;
  }
  th {
    font-size: 0.7rem;
  }
  td {
    font-size: 0.5rem;
  }
  .responsive-button {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  .empty-table-row {
    margin-top: 0 !important;
  }
  .information-header {
    margin: 50px 0px 0 0px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .information-box {
    margin: 0 0px;
    align-items: center;
  }

  .information {
    margin: 20px 0 0 0px;
  }

  .back-label {
    display: none;
  }
}

.edit-field {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 10px 10px;
}

.dot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  height: 50px;
  width: 50px;
  background-color: #1e1b5f;
  color: #fff;
  border-radius: 50%;
  display: inline-block;
  justify-content: center;
  padding: 0;
}

.dot:hover {
  background-color: #ebd2b4;
}

#types {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  font-size: 17px;
  height: 40px;
}

.empty-table-row {
  text-align: center;
  margin-top: -35px;
  padding-bottom: 15px;
  z-index: -1;
  pointer-events: none;
}

.table-wrapper {
  margin: 10px 10px;
}

.fl-table td,
.fl-table th {
  text-align: center;
  padding: 8px;
}

.fl-table td {
  font-size: 12px;
}

.fl-table tr:nth-child(even) {
  background: #f8f8f8;
}

.button-link {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 15px;
  position: relative;
  padding: 10px;
}

a.button-link:before,
a.button-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

a.button-link:before {
  top: 0;
  left: 0;
  border-top: 2px solid black;
  border-right: 2px solid black;
}
a.button-link:after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid black;
  border-left: 2px solid black;
}
a.button-link:hover:before {
  animation: first 0.3s forwards;
  opacity: 1;
}
a.button-link:hover:after {
  animation: second 0.3s forwards;
}
@keyframes first {
  0% {
    width: 0%;
    height: 0%;
  }
  25% {
    width: 100%;
    height: 0%;
  }
  50% {
    width: 100%;
    height: 100%;
  }
  100% {
    width: 100%;
    height: 95%;
  }
}

@keyframes second {
  0% {
    width: 0%;
    height: 0%;
  }
  50% {
    width: 0%;
    height: 0%;
  }
  75% {
    width: 100%;
    height: 0%;
    opacity: 1;
  }
  100% {
    width: 100%;
    height: 95%;
    opacity: 1;
  }
}
