@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;900&display=swap');

/* -------------------------- Base Styles -------------------------- */

[data-status-bubble] {
    width: 20px;
    height: 20px;
    border-radius: 99rem;
    transition: .3s;
    position: absolute;
    display: block;
    right: 2%;
    bottom: 0;
    z-index: 99;
}
[data-status-bubble=online] {
    background-color: #3EA25E;
}
[data-status-bubble=offline] {
    background-color: #757F8C;
}
[data-status-bubble=idle] {
    background-color: #F4A620;
}
[data-status-bubble=dnd] {
    background-color: #E94649;
}
[data-status-bubble=null] {
    opacity: 0;
}

html {
  height: 100vh;
}

* {
  margin: 0;
  font-family: 'Roboto Mono', monospace;
  color: white;
  line-height: 1.4;
}

body {
  display: flex;
  background: #040504;
  height: 100%;
  font-size: 14px;
}

body > div {
  margin: auto;
  max-width: 400px;
  padding: 20px 0;
}

div.card {
  overflow-wrap: break-word;
}

body > div > * {
  margin-bottom: 10px;
}

form {
  display: block;
}

div.input {
  padding: 10px 40px;
  display: flex;
  align-items: center;
}

div.input > input,
div.input > button {
  background: none;
  border: 0;
  box-sizing: border-box;
  outline: 0;
  padding: 0;
}

div.input:focus-within {
  box-shadow: 0px 0px 1px 2px #5865F1;
  animation: inputColorRotate 6s linear 0s infinite;
}

@keyframes inputColorRotate {
  0% {
    box-shadow: 0px 0px 1px 2px #6666ff;
  }
  10% {
    box-shadow: 0px 0px 1px 2px #0099ff;
  }
  65% {
    box-shadow: 0px 0px 1px 2px #ff3399;
  }
  100% {
    box-shadow: 0px 0px 1px 2px #6666ff;
  }
}

div.input button:focus {
  color: rgb(212, 212, 212);
}

button[onClick], a[role=button][onClick], form button {
  cursor: pointer;
}

div.input > input {
  width: 100%;
  margin-right: 10px;
}

div.card, div.input {
  background: #121313;
  border-radius: 10px;
}

a {
  text-decoration: none;
  border-bottom: 1px dotted;
}

div.profile {
  max-width: 500px;
}

div.profile > div:first-child {
  display: flex;
}

div.profile > div:first-child > div.card:first-child {
  margin-right: 10px;
}

img.pfp {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  position: relative;
}

small {
  display: block;
  color: rgb(190, 190, 190);
}

div.banner {
  text-align: center;
  padding: 5px 40px;
  border-radius: 10px 10px 0 0;
  color: white;
  animation: colorRotate 6s linear 0s infinite;
}

@keyframes colorRotate {
  from {
    background: #6666ff;
  }
  10% {
    background: #0099ff;
  }
  65% {
    background: #ff3399;
  }
  100% {
    background: #6666ff;
  }
}

.activity {
    display: none;
    visibility: hidden;
}

a[role=button], button {
  background: #121313;
  color: gray;
  font-size: small;
  border-radius: 5px;
  border: 0;
  padding: 10px 20px;
  font-weight: bold;
  user-select: none;
  white-space: nowrap;
  transition-duration: 0.1s;
}

.openButton:hover,
.copyButton:hover {
  opacity: 0.8;
  transition-duration: 0.2s;
}

.openButton:active,
.copyButton:active {
  opacity: 0.5;
  transition-duration: 0.2s;
}

a[role=button][href], a[role=button][onClick] {
  background: #5865F1;
  color: white;
}

a[role=button][href]:hover, a[role=button][onClick]:hover {
  filter: brightness(0.90);
}

div.bottombar {
  display: flex;
  align-items: center;
}

div.bottombar > * {
  margin-right: 20px;
}

img.pfp {
  position: relative;
}

img.pfp + #show {
  opacity: 0;
  transition: opacity 0.55s ease-in-out;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

img.pfp:hover, a:focus img.pfp {
  filter: brightness(0.6);
  transition: opacity 0.55s ease-in-out;
}

img.pfp:hover + #show, a:focus img.pfp + #show {
  opacity: 1;
  transition: opacity 0.55s ease-in-out;
}

.styled-p {
  animation: fadeIn 1.5s;
  font-size: 0.7rem;
  color: #3f3f3f;
  text-decoration: none;
  text-align: center;
  margin: 10px auto;
}

.styled-anchor {
  font-size: 0.7rem;
  color: #3f3f3f;
  text-decoration: none;
  text-align: center;
  margin: 10px auto;
}
.styled-anchor:visited {
  color: #3f3f3f;
}
.styled-anchor:hover {
  text-decoration: underline;
}
.styled-anchor:active {
  color: #3f3f3f;
}

/* -------------------------- Mobile Device Optimizations -------------------------- */

@media only screen and (max-width: 600px) {
  /* Allow the body to stack elements */
  body {
    display: block;
  }
  
  div.card, div.input {
    display: block;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  div.profile > div:first-child {
    display: block;
  }
  
  div.profile > div:first-child > div.card {
    margin-bottom: 20px;
  }
  
  div.bottombar {
    padding: 0 40px;
  }
  
  div.banner {
    border-radius: 0;
  }
  
  body > div {
    max-width: none;
  }
  
  /* Make arrow buttons (".locks") easier to tap */
  .locks {
    padding: 15px;
    margin: 10px;
    touch-action: manipulation;
  }
  .locks img {
    width: 60px;
    height: 60px;
  }
  
  /* Reposition the online indicator to the top center */
  [data-status-bubble] {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    bottom: auto;
  }
  
  /* Fix footer at the bottom center */
  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 100;
  }
}


#uploadTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 13px;
    margin-bottom: 13px;

}

#uploadTable th,
#uploadTable td {
    /* border: 1px solid #ccc; */
    padding: 8px;
    text-align: center;
    align-items: center;

}

.monospace {
    font-family: monospace;
}

.copy-btn {
    cursor: pointer;
    margin-left: 5px;
}

/* Daily limit progress */
#limitContainer {
    margin-top: 20px;
}

#limitProgress {
    width: 100%;
}


    /* -------------------------- Self Destruct Styles -------------------------- */
    .self-destruct h3 {
      text-align: center;
      margin-bottom: 15px;
      font-size: 1.1rem;
    }
    .self-destruct label {
      margin-bottom: 5px;
      font-size: 0.9rem;
    }
    #deleteAmount,
    .self-destruct select {
      padding: 10px;
      margin-bottom: 10px;
      background: #1a1a1a;
      border: 1px solid #333;
      border-radius: 5px;
      color: white;
    }

    #deleteAmount {
      width: 3rem;
    }

    #deleteViews {

      padding: 10px;
      margin-bottom: 10px;
      background: #1a1a1a;
      border: 1px solid #333;
      border-radius: 5px;
      color: white;
    }


    .self-destruct .or-section {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 10px;
    }
    .self-destruct .checkbox-section {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 10px;
    }
/* Dropzone styling */
.dropzone-wrapper {
    color: #92b0b3;
    position: relative;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropzone-desc p {
    text-align: center;
    font-size: 16px;
    color: grey;
}

.dropzone,
.dropzone:focus {
    position: absolute;
    cursor: pointer;
    opacity: 0;
}

.card.dragover {
    background: #1a222e;
    animation: rotate 1.5s linear infinite;

}

:root {
    --bg-background: #111827;
    --clr-card: #1f2937;
    --clr-1: #6666ff;
    --clr-2: #ff3399;
    --clr-3: #6666ff;
}

.dropzone-wrapper {
    position: relative;
    border-radius: 0.45rem;
    cursor: pointer;
    background-color: var(--clr-card);
}

.dropzone-wrapper::after,
.dropzone-wrapper::before {
    content: " ";
    position: absolute;
    z-index: -1;
    inset: -0.25rem;
    background: conic-gradient(from var(--gradient-angle),
            var(--clr-1),
            var(--clr-2),
            var(--clr-3));
    border-radius: inherit;
    animation: rotate 2.5s linear infinite;
}

/* when dropdone-wrapper is being dragged over, increase the speed and inset smoothly */
.dropzone-wrapper.dragover::after,
.dropzone-wrapper.dragover::before {
    inset: -0.5rem;
    animation-duration: 1.5s;
}

.dropzone-wrapper::after {
    filter: blur(3rem);
}

@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 90deg;
    inherits: false;
}

@keyframes rotate {
    0% {
        --gradient-angle: 0deg;
    }

    100% {
        --gradient-angle: 360deg;
    }
}