@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@100;200;400;500;700;900&display=swap');

:root {
    --main--color: #eee;

    --fs-small: 0.75rem;
    --fs-normal: 1rem;
    --fs-medium: 1.25rem;
    --fs-large: 1.5rem;
    --fs-xlarge: 2rem;
    
    --fw-thin: 100;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;
    --fw-bolder: 900;

    --border-radius: 4px;

    --color-white: #eee;
    --color-blue: #3d83df;
    --color-dark-blue: #173760;
    --color-blue-gray: #5e7b93;
    --color-shadow-purple: #a170a6;
    --color-dark-purple: #58237c;
    --color-lightgray: #ebebebd5;
    --color-darkgray: #363636d5;

    --color-button-confirm: #50bf96;
    --color-button-close: #aaaaaa;
    --color-button-remove: #ce3c6f;

    --color-disabled: #b4b4b4;

    --color-danger: #ce3c6f;
    --color-black: #000000;
    --color-light-black: #3b3b3b;

    --box-shadow: #63636333 0px 0px 10px 3px;
    --btn-box-shadow: #2e2e2e54 0px 4px 5px 2px;
}

body {
    display: grid;
    grid-template-rows: auto 1fr;
    font-family: 'Raleway', sans-serif;
    box-sizing: border-box;
    height: 100vh;
}

h1 {
    padding: 1rem 0;
    font-size: 2rem;
    font-weight: var(--fw-bold);
}

h2 {
    font-size: 1.2rem;
    font-weight: var(--fw-regular);
}

h3 {
    font-size: 1.2rem;
    font-weight: var(--fw-thin);
}

h4 {
    font-size: 1rem;
    font-weight: var(--fw-thin);
}

strong {
    font-weight: var(--fw-medium);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.btn {
    font-family: 'Raleway';
    display: inline-block;
    align-self: center;
    width: fit-content;
    padding: 0.5rem;
    margin: 0 0.5rem;
    border: 1px solid var(--color-darkgray);
    border-radius: var(--border-radius);
    color: var(--color-darkgray);
    background-color: var(--color-white);
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover:not(:disabled) {
    transition: all 0.3s ease-in-out;
    box-shadow: var(--box-shadow);
}

.btn-danger {
    background-color: var(--color-danger);
    border-color: var(--color-danger);
    color: var(--color-white);
}

.btn-dark {
    background-color: var(--color-black);
    border-color: var(--color-light-black);
    color: var(--color-white);
}

.btn-add {
    flex-shrink: 0;
    background-color: var(--color-blue);
    border: 1px solid var(--color-blue);
    cursor: pointer;
    color: var(--color-white);
}

.btn-nav {
    flex-shrink: 0;
    background-color: var(--color-blue);
    border: 1px solid var(--color-blue);
    cursor: pointer;
    color: var(--color-white);
}

.btn-delete {
    flex-shrink: 0;
    margin: 1rem;
    width: 2rem;
    height: 2rem;
    background-color: var(--color-danger);
    border: 1px solid var(--color-danger);
    border-radius: 50%;
    box-shadow: var(--btn-box-shadow);
    cursor: pointer;
    z-index: 1;
}

button {
    font-family: 'Raleway';
}

button:disabled {
    border: 1px solid var(--color-lightgray);
    background-color: var(--color-lightgray);
    border-color: var(--color-disabled);
    color: var(--color-disabled);
    cursor: not-allowed;
    pointer-events: none;
}

input:focus {
    border: 1px solid var(--color-black);
    outline-color: var(--color-black);
}

input:invalid {
    border: 1px solid var(--color-danger);
    outline-color: var(--color-danger);
}

.dialog-btn-close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
}

header i {
    padding-right: 0.5rem;
}

table {
    font-family: 'Raleway', arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
    margin: 0.5rem 0;
  }
  
  td, th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
  }
  
  tr:nth-child(even) {
    background-color: #dddddd;
  }

.di-none {
    display: none;
}

.di-flex {
    display: flex;
    place-content: center;
    gap: 1rem;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.mg-0 {
    margin: 0;
}

.empty-container {
    display: flex;
    place-content: center;
    text-align: center;
    flex-direction: column;
    width: 100%;
    height: 50%;
}

.fa-triangle-exclamation {
    color: red;
}

.fa-check {
    color: green;
}

.container-centered {
    margin: 1rem auto;
    width: 80%;
    padding-bottom: 1rem;
}

.content-center{
    display: flex;
    place-content: center;
}

.flex-center {
    display: flex;
    flex-direction: column;
    place-content: center;
    gap: 1rem;
    line-height: 0.8rem;
}

#demoextras-texts > p {
    line-height: 2rem;
}

#editDemoExtras {
    margin: 1rem 0;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    outline: 2px dashed #92b0b3;
    outline-offset: -10px;
    -webkit-transition: outline-offset .15s ease-in-out, background-color .15s linear;
    transition: outline-offset .15s ease-in-out, background-color .15s linear;
    align-items: center;
    justify-content: center;
}

#editDemoExtras > div {
    padding: 0.7rem;
    margin: 0.7rem;
}

.extras-file-icon {
    font-size: 3rem;
}

.extras-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.is-dragover{
    background-color: var(--color-lightgray);
    outline-offset: 0;
}

#upload-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

#drop_zone {
    display: flex;
    align-items: center;
    border: 2px dashed var(--color-dark-blue);
    width: 200px;
    height: 100px;
    text-align: center;
}

#file {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-label {
    display: flex;
    gap: 1rem;
    cursor: pointer;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
}

.file-label input {
    min-width: 14rem;
    margin: 0;
    filter: alpha(opacity=0);
    opacity: 0;
}

.file-upload-uploading > i {
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% {
      transform: rotate(0deg);
    }
  
    100% {
      transform: rotate(360deg);
    }
  }

.extras-info {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    margin: 1rem 0;
    border: 2px solid var(--color-shadow-purple);
    border-radius: var(--border-radius);
    max-width: fit-content;
    text-align: center;
    align-items: center;
}

ul li:before{
    content: '\2713';
    margin: 0 1em;    /* any design */
}

.forgot {
    color: var(--color-blue);
    text-decoration: none;
    margin: 10px;
}

.form-logout {
    text-align: center;
    margin-top: 100px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

#content > h1 {
    padding: 1rem 2rem;
}

article a {
    text-decoration: None;
}

.container-status {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(25rem, 100%), 1fr));
    max-width: 80%;
    margin: 0 auto;
    gap: 2rem;
}

.module {
    border: 2px solid var(--color-lightgray);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.empty-i {
    color: var(--color-danger);
    font-size: var(--fs-large);
}

#blobCreation {
    border: 2px solid var(--color-lightgray);
    padding: 50px 0px 50px 40px;
    margin: 30px 30% 30px 10%;
}

#createBlobForm input {
    padding: 6px 12px;
    font-size: 1rem;
    color: var(--color-darkgray);
    background-color: var(--color-white);
    background-image: none;
    border: 2px solid var(--color-lightgray);
    border-radius: var(--border-radius);
    width: 40%;
    margin: 0px 0px 5px 0px;
    text-align: center;
}

#createBlobForm label {
    font-size: 1rem;
    background-color: var(--color-white);
    padding: 1rem;
}

#ButtonAddBlob {
    border-radius: var(--border-radius);
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    color: var(--color-white);
}

#addBlob {
    border-radius: var(--border-radius);
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    text-decoration: none;
    color: var(--color-white);
}

#blobCreation #thumbnail {
    max-width: 350px;
    max-height: 350px;
}

.ddl-history-container {
    display: grid;
    grid-template-columns: 1fr 85%;
    grid-template-rows: 95% 1fr;
    grid-column-gap: 16px;
    grid-row-gap: 16px;
    gap: 1rem;
    align-content: center;
    max-width: 90%;
    margin: 0 auto;
}

.ddl-history-container > pre {
    max-height: calc(100vh - 17rem);
}

.ddl-dates {
    display: flex;
    gap: 1rem;
    flex-direction: column-reverse;
    justify-content: flex-end;
    align-items: center;
    align-content: center;
    margin: 1rem;
    overflow: auto;
}

.ddl-dates { grid-area: 1 / 1 / 2 / 2; }
.ace_editor { 
    grid-area: 1 / 2 / 2 / 3;
    height: 100%;
}
.ddl-history-buttons {
    grid-area: 2 / 2 / 3 / 3;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
  visibility: hidden; /* Hidden by default. Visible on click */
  min-width: 250px; /* Set a default minimum width */
  margin-left: -125px; /* Divide value of min-width by 2 */
  background-color: #333; /* Black background color */
  color: #fff; /* White text color */
  text-align: center; /* Centered text */
  border-radius: 2px; /* Rounded borders */
  padding: 16px; /* Padding */
  position: fixed; /* Sit on top of the screen */
  z-index: 1; /* Add a z-index if needed */
  left: 50%; /* Center the snackbar */
  bottom: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

.alert-dismissible {
    padding: 0.5rem;
    border: 1px solid var(--color-light-black);
    border-radius: var(--border-radius);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.alert-dismissible button {
    border: none;
    background: none;
    font-size: 2rem;
    padding-bottom: 5px;
}

.not-found-message {
    font-size: var(--fs-medium);
}