:root {
  --primary-color: #0d2c58;
  --primary-font-color: white;
}

nav {
  background-color: var(--primary-color);
  color: var(--primary-font-color);
  padding: 0.5rem 0.8rem;

  .container {
    width: fit-content;
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }

  a {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    border-radius: 0.2rem;
    text-decoration: none;
    text-transform: capitalize;

    &:hover {
      background-color: var(--primary-font-color);
      color: var(--primary-color);
    }
  }

  .btn {
    border: none;
  }
}
.container {
  width: 80%;
  max-width: 1000px;
  margin: auto;
}

.btn,
[type="submit"] {
  display: inline-block;
  font-size: 1rem;
  cursor: pointer;
  text-transform: capitalize;
  margin: 0.5rem 0;
  text-decoration: none;
  background-color: var(--primary-color);
  color: var(--primary-font-color);
  border: 0.2rem solid var(--primary-color);
  padding: 0.5rem 0.8rem;
  border-radius: 0.2rem;
  &:hover {
    background-color: var(--primary-font-color);
    color: var(--primary-color);
  }

  &[disabled] {
    background-color: var(--charcoal);
    color: var(--primary-font-color);
    cursor: not-allowed;
  }
}

table {
  width: 100%;
  border-collapse: collapse;

  th {
    background-color: var(--primary-color);
    color: var(--primary-font-color);
    text-transform: capitalize;
  }

  th,
  td {
    padding: 0.5rem 1rem;
    text-align: left;
    border-bottom: 0.1rem solid #ccc;
  }
}

.box_with_button {
  position: relative;
  width: fit-content;
  &:hover {
    a {
      display: block;
    }
  }
  a {
    display: none;
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.25);
    i {
      top: 50%;
      left: 50%;
      position: absolute;
      transform: translate(-50%, -50%);
      font-size: 3rem;
      color: white;
      background-color: rgba(0, 0, 0, 0.75);
      width: fit-content;
      padding: 0.5rem;
      border-radius: 8px;
      border: 3px solid white;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.75);
    }
  }
}

.referral-form {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #eee;
  padding: 0.5rem 1rem;

  &:nth-child(2n -1) {
    background-color: #eee;
  }
}
