@charset "UTF-8";

#dialog-records {
  position: fixed;
  top: 0;
  left: 0;
  box-sizing: border-box;
  width: 460px;
  max-height: 618px;
  padding: 0;
  margin: auto;
  background-color: #f8f8ff;
  border: none;
  outline: none;

  #dialog-records-div {
    padding: 5px;
    padding-bottom: 10px;
  }

  #records-top {
    display: flex;
    align-items: center;

    & * {
      margin: 5px;
    }

    .spacer {
      flex-grow: 1;
    }

    .caption {
      font-size: 1.5rem;
      font-weight: normal;
      color: #333388;
      text-shadow: var(--pseudo-bold-shadow);
    }
  }

  #records-table-div {
    & table {
      margin: 5px auto;
      font-size: 18px;
      border-collapse: collapse;
      background-color: #ffffff;
      border: 5px solid #aaaaff;
    }

    & th,
    & td {
      height: 40px;
      padding: 5px 15px;
      font-size: 1.3rem;
      font-weight: normal;
      color: #663300;
      text-shadow: var(--pseudo-bold-shadow);
      border: 3px solid #aaaaff;

      & svg {
        text-shadow: none;
      }

      & * {
        vertical-align: middle;
      }
    }

    & th {
      color: #ff7700;
      background-color: #e4e4ff;
    }

    #record-seq-mode td {
      color: #303080;
      background-color: #ddeeff;
    }

    .border-top-bold {
      border-top-width: 5px;
    }

    .border-right-bold {
      border-right-width: 5px;
    }

    .border-bottom-bold {
      border-bottom-width: 5px;
    }
  }

  #record-dialog-title {
    font-size: 1.3rem;
    font-weight: normal;
    color: #333388;
    text-shadow: var(--pseudo-bold-shadow);
  }

  #record-dialog-version {
    margin-left: 10px;
    font-size: 0.9rem;
    font-weight: normal;
    color: #7777cc;
    text-shadow: var(--pseudo-bold-shadow);
  }

  &::backdrop {
    cursor: pointer;
    background-color: rgb(0 0 0 / 50%);
  }

  &,
  &::backdrop {
    animation: fade-in-dialog 0.1s ease-out 1 forwards;
  }

  #dialog-records-alert-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: #00000080;

    #dialog-records-alert-div {
      width: 400px;
      padding: 20px;
      text-align: center;
      background: white;
      border-radius: 8px;
      box-shadow: 0 0 10px #00000050;

      #dialog-records-alert-message {
        font-size: 1.3rem;
        font-weight: normal;
        line-height: 1.5;
        color: #333388;
      }

      #dialog-records-alert-button {
        width: 100px;
        height: 50px;
        margin-top: 10px;
        background-color: #aaccff;
        border: 4px solid #0000f8;
        border-radius: 15px;
      }
    }
  }
}

@keyframes fade-in-dialog {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
