/*/css/index.css*/

* {
    font-family: Arial, sans-serif;
    --base_text_color: #AEABAF;
    --border_color: #282828;
    --base_bg: #121212;
    --accent-color: #ff4d4f;
    margin: 0;
    box-sizing: border-box;
    --span-font-size: 0.85em;
    background: transparent;
}

h1, h2, h3, h4, h5, p, span, textarea, a, input {
    overflow-wrap: break-all;
    word-wrap: break-all;
    word-break: break-all;
    text-align: center;
    text-align: start;
    color: var(--base_text_color);
    outline: none;
    font-size: var(--span-font-size);
}

h1 {
    font-size: 0.9em;
    color: var(--base_text_color);
}

span {
    font-size: var(--span-font-size);
    display: flex;
    flex-direction: column;
    place-items: center;
    place-content: center;
    border-radius: 20px;
    color: var(--base_text_color);
    position: relative;
    outline: none;
    background-color: #282828;
    text-align: start;
    padding: 0.1rem 0.5rem;
}

svg {
    color: var(--accent-color);
}

body {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    background: var(--base_bg);
    color: var(--base_text_color);
    padding: 0rem 1rem;
}

header {
    display: flex;
    flex-direction: row;
    background: transparent;
    width: 50%;
    position: fixed;
    top: 0;
    z-index: 2000;
    place-content: start;
    place-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    gap: 1rem;
    padding-bottom: 1.5rem;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1000;
    background: transparent;
    width: 100%;
    position: fixed;
    bottom: 0;
    z-index: 2000;
    place-content: center;
    place-items: center;
    gap: 10px;
    padding-top: 0.2rem;
    padding-bottom: 0.5rem;
}

img {
    width: 100%;
    height: 100%;
    max-width: 300px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 20px;
}

a {
    text-decoration: none;
}

section {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    place-content: center;
    place-items: center;
    gap: 1.0rem;
}

main {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    background-color: transparent;
    color: var(--base_text_color);
    margin-top: 5.0rem;
    margin-bottom: 5.0rem;
    gap: 1.0rem;
}

.loader {
    display: flex;
    justify-content: space-between;
    margin: 0;
    background-color: transparent;
    place-content: center;
    place-items: center;
}

.sidebar {
    display: flex;
    flex-direction: column;
    width: 20%;
    height: 100%;
    background: var(--base_bg);
    color: var(--base_text_color);
    padding: 0.1rem;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 5000;
    border-radius: 20px;
    transform: translateX(-100%);
    transition: transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
    place-content: start;
    place-items: center;
}

.sidebar.show {
    transform: translateX(0);
}

.sidebar a {
    display: flex;
    color: var(--base_text_color);
    padding: 10px;
    text-decoration: none;
    border-radius: 20px;
}

.sidebar img {
    width: 100%;
    height: 100%;
}

.sidebar a:hover {
    background: #575757;
}

.files {
    display: grid;
    grid-template-columns: repeat(auto, 1fr);
    grid-template-rows: repeat(auto, auto);
    gap: 0.5rem;
    position: relative;
    background-color: transparent;
    justify-content: space-between;
    place-items: center;
    place-content: center;
}

.file {
    background-color: rgba(0, 110, 255, 0.075);
    width: 100%;
    height: auto;
    padding: 0.1rem 0.1rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: black;
    border: none;
    place-items: center;
    place-content: center;
    justify-content: space-between;
}

.file .metadata {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    place-content: center;
    place-items: center;
}

.progress {
    display: flex;
    flex-direction: column;
    place-content: center;
    place-items: center;
    width: 100%;
}

.progress_span {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: space-between;
    place-content: center;
    place-items: center;
    background: transparent;
    width: 100%;
}

.file section {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    place-content: center;
    place-items: center;
    padding: 0.3rem;
    background: var(--base_bg);
    border-radius: 0.8rem;
}

.file .file_preview {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    background: transparent;
    position: relative;
}

video {
    object-fit: cover;
    width: 100%;
    border-radius: 20px;
    background-color: transparent;
}