:root {
    --beige: #ffe5a4;
    --blue: #324a5f;
    --faded-blue: rgba(213, 218, 222);
    --faded-green: rgb(208,220,216);
    --very-faded-blue: rgb(245,246,247);
    --grey: #495057;
    --grey-lighter: #565e67;
    --red: #822c34;
    --red-darker: #7a2931;
    --green: #206950;
    --green-darker: #1e624a;
    --brown: #9c6644;
    --orange: #bb4530;
    --bg-color: #1B2021;

    --shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
    --shadow-light: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}

@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/noto-300.ttf") format('truetype');
}
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/noto-400.ttf") format('truetype');
}
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/noto-600.ttf") format('truetype');
}

button,
label,
select,
option,
input,
a,
textarea,
div {
    font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
    font-size: 13px;
}

.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden !important;
}

.maxwidth {
    width: 100%;
}

.fadeable {
    transition: opacity 0.25s;
    opacity: 0;
}

.fadeable.fadein {
    opacity: 1;
}

.grey-bg {
    background: var(--grey);
}

.blue-bg {
    background: var(--blue);
}

.red-bg {
    background: var(--red);
}

.green-bg {
    background: var(--green);
}

.white-bg {
    background: white;
}

.shadowed {
    box-shadow: var(--shadow);
}

.shadowed-light {
    box-shadow: var(--shadow-light);
}

.red-fg {
    color: var(--red) !important;
}

.bold {
    font-weight: 600 !important;
}

.red-border {
    border: 2px solid var(--red) !important;
}

.rounded-borders {
    border-radius: 4px !important;
}

.hide-overflow {
    overflow: hidden !important;
}

#page-loading img {
    height: 24px;
    width: 24px;
}

body {
    background-image: url("assets/background.svg");
    background-color: var(--bg-color);
    margin: 0px !important;
}

#content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#total-size-1, #btn-add-text-to-create-reply-url-page {
    align-self: center;
    user-select: none;
    margin-left: 4px;
}

.show-tooltip-right:hover::after {
    position: absolute;
    content: attr(data-tooltip);
    top: 3rem;
    left: 0rem;
    min-width: 10rem;
    max-width: 22rem;
    width: max-content;
    white-space: normal;
    border-radius: 4px;
    color: white;
    padding: 8px 12px 8px 12px;
    box-shadow: var(--shadow);
    background: var(--red)
}

.show-tooltip-left:hover::after {
    position: absolute;
    content: attr(data-tooltip);
    top: 3rem;
    right: 0rem;
    min-width: 10rem;
    max-width: 22rem;
    width: max-content;
    white-space: normal;
    border-radius: 4px;
    color: white;
    padding: 8px 12px 8px 12px;
    box-shadow: var(--shadow);
    background: var(--red)
}

.btn {
    cursor: pointer;
    padding: 6px 24px 6px 24px;
    color: white;
    white-space: nowrap;
    min-width: 6rem;
    max-width: 6rem;
    transition: max-width 1s ease-in-out;
    height: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    border-radius: 4px;
    font-weight: 600;
    position: relative;
}

.btn-disabled {
    cursor: not-allowed !important;
}

.btn-grey {
    background: var(--grey) !important;
}

.btn img {
    width: 16px;
    margin-right: 8px;
}

.btn:hover:not(.btn-disabled),
input[type="radio"]:hover:checked+label,
#toggle-passphrase-input-type-btn:hover,
#toggle-passphrase-view-input-type-btn:hover {
    filter: brightness(105%);
}


#retrieve-input {
    border: 1px solid black;
    padding: 4px;
}

textarea {
    vertical-align: bottom;
    box-sizing: border-box;
    resize: none;
    margin: 0px;
}

textarea:focus {
    outline: none !important;
}

select {
    height: 2rem;
    min-width: 8rem;
}

#secret-textarea-input-wrapper,
#secret-textarea-view-wrapper {
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0px 10px 0px;
    border: 1px solid var(--blue);
}

#secret-textarea-input,
#secret-textarea-view {
    border: none;
    padding: 12px;
}

#retrieve-input {
    border-radius: 4px;
    padding: 8px;
}

#secret-textarea-input-wrapper:focus-within,
#secret-textarea-view-wrapper:focus-within {
    box-shadow: rgba(0, 0, 0, 0.14) 0px 3px 6px, rgba(0, 0, 0, 0.3) 0px 3px 6px;
}

#size-file-btn-wrapper {
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    padding: 8px;
    display: flex;
}

#btn-attach-files-icon, #btn-add-text-to-create-reply-url-page-icon {
    user-select: none;
    width: 16px;
    margin-right: 4px;
    align-self: center;
}

#btn-attach-files,
#attachment-file-list-wrapper {
    max-width: 36rem;
    margin-right: 4px;
    align-self: center;
}

#btn-attach-files, #btn-add-text-to-create-reply-url-page {
    display: flex;
    cursor: pointer;
    color: var(--blue);
    padding: 4px 0px 4px 0px;
}

#attachment-file-list-wrapper {
    cursor: pointer;
}

.inputs-row {
    display: flex;
    gap: 8px;
    height: 3rem;
    justify-content: left;
}

#page-upload-success, #page-metadata {
    min-width: 40rem;
}

.radio-item-label {
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    background: white;
    border: 2px solid var(--blue);
    border-radius: 4px;
    cursor: pointer;
    width: 6rem;
}

#passphrase-input, #passphrase-view-input, .totp-code-input, .totp-id-input {
    width: 100%;
    box-sizing: border-box;
    outline: none;
    border-radius: 4px;
    border: 2px solid var(--blue);
    padding-left: 8px;
    padding-right: 8px;
    color: black;
}

#form-configure-require-passphrase #passphrase-input {
    width: calc(100% - 12rem - 16px);
}

#passphrase-view-input {
    width: 100%;
}

.page-section {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

.page-section-heading-icon {
    user-select: none;
    max-width: 16px;
}

.page-section-heading {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.page-section-heading-split {
    display: flex;
    gap: 6px;
    width: 100%;
}

.page-section-heading label {
    font-size: 0.85rem;
    font-weight: 600;
}

input[type="radio"]:checked+label {
    color: white;
    background: var(--blue);
    box-shadow: var(--shadow-light);
}

input[type="radio"]:checked:disabled+label {
    color: white;
    cursor: not-allowed !important;
    background: var(--grey) !important;
    box-shadow: var(--shadow-light);
}

input[type="radio"]:disabled+label {
    cursor: not-allowed !important;
}

.btn-toggle-passphrase {
    color: white;
    background: var(--blue);
    box-shadow: var(--shadow-light);
}

.btn-toggle-passphrase-icon {
    width: 16px;
}

.btns-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.upload-progress-pct, .upload-progress-eta {
    display: inline-block;
    width: 3ch;
}

.upload-progress-pct {
    text-align: right;
}

label {
    box-sizing: border-box;
    user-select: none;
}

.metadata-items {
    display: flex;
    gap: 8px;
}

.metadata-item {
    width: 100%;
    background: var(--blue);
    border-radius: 4px;
    padding: 8px;
    user-select: none;
    box-shadow: var(--shadow-light);
}

.metadata-item-header {
    display: flex;
    color: white;
}

.metadata-header-icon {
    user-select: none;
    margin-left: auto;
    max-width: 16px;
}

.metadata-item-value {
    font-size: 1.25rem;
    margin-top: 5px;
    color: white;
}

#secret-link-input-view, #reply-url-input-view {
    width: 100%;
    border-radius: 4px;
    border: 2px solid var(--blue);
    padding-left: 8px;
    padding-right: 8px;
    color: black;
}

.page-header {
    display: flex;
    gap: 24px;
    border-radius: 4px;
    min-height: 45px;
    padding: 16px 24px 16px 24px;
    user-select: none;
}

#page-add-text .page-header,
#page-view-text .page-header {
    padding-left: 12px;
    padding-right: 12px;
}

.page-header-icon {
    height: 25px;
    user-select: none;
}

.page-header-icon-wrapper {
    margin-left: auto;
    justify-content: center;
}

.page-header-content {
    color: white;
    margin-top: -8px;
}

.page-header-heading {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.page-content {
    color: black;
    border: 1px solid black;
    border-radius: 4px;
    padding: 28px 28px 40px 28px;
    margin: 10px 0px 10px 0px;
    min-width: 550px;
    display: flex;
    flex-direction: column;
    gap: 28px;

}

.page-custom-message .page-header-blurb {
    white-space: pre;
}

.flex-align-right {
    margin-left: auto;
}

.flex-align-left {
    margin-right: auto;
}

#multi-file-drop {
    user-select: none;
    margin-top: 8px;
    border: 2px dashed var(--blue);
    border-radius: 6px;
    padding: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
}

#multi-file-drop-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
}

#multi-file-drop-icon {
    width: 30px;
    align-self: center;
    transition: all 0.1s linear;
}

#multi-file-drop:hover {
    background-color: var(--very-faded-blue);
}

#multi-file-link {
    text-decoration: none;
    font-weight: 600;
    color: var(--blue);
    margin-top: 10px;
}

#page-active-downloads-warning .btns-row {
    margin-top: 10px;
}

.table-list {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    border: 2px solid var(--blue);
    border-radius: 4px;
}

#page-add-files-content {
    overflow: hidden;
}

.table-list > .table-list-row:not(:last-child) {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.table-list-col-icon {
    width: 16px;
}

.table-list-row {
    display: flex;
    gap: 8px;
    padding: 12px 12px 12px 12px;
}

#attachments-list .table-list-row:hover, input[type="radio"]:hover:not(:checked) + label {
    background-color: var(--very-faded-blue);
}

.table-list-col-3 {
    text-align: right;
    width: 9rem;
    margin-left: auto;
}

.table-list-col-4 {
    margin-left: 20px;
    font-weight: 600;
    width: 5rem;
    text-align: right;
}

.table-list-col-file-remove {
    color: var(--red);
    text-decoration: none;
}

.table-list-col-file-download {
    color: var(--blue);
    text-decoration: none;
}

.table-list-col-2 {
    width: 24rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

#page-add-files-content {
    height: 19rem;
    transition: height 0.1s linear;
}

.flash-bg {
    animation: flash-bg 0.65s;
    animation-iteration-count: 1;
}

.flash-bg-btn-green {
    animation: flash-bg-btn-green 2s;
    animation-iteration-count: infinite;
}

.flash-bg-btn-red {
    animation: flash-bg-btn-red 2s;
    animation-iteration-count: infinite;
}

@keyframes flash-bg {
  0% {background-color: white}
  50% {background-color: var(--faded-green)}
  100% {background-color: white}
}

@keyframes flash-bg-btn-green {
  0% {background: var(--green)}
  50% {background: var(--green-darker)}
  100% {background: var(--green)}
}

@keyframes flash-bg-btn-red {
  0% {background: var(--red)}
  50% {background: var(--red-darker)}
  100% {background: var(--red)}
}
