@media (prefers-reduced-motion) {
    /* styles to apply if a user's device settings are set to reduced motion */
}

:root {
    --main-bg-color: white;
    --border-color: rgb(132, 136, 138);
    --edge-color: rgb(60, 60, 60);
    --main-fg-color: black;
    --highlight-fg-color: rgb(255, 255, 255);
    --link-color: rgb(29, 155, 240);
}

@media (prefers-color-scheme: dark) {
    :root {
        --main-bg-color: black;
        --border-color: rgb(132, 136, 138);
        --edge-color: rgb(60, 60, 60);
        --main-fg-color: rgb(202, 208, 211);
        --highlight-fg-color: rgb(255, 255, 255);
        --link-color: rgb(29, 155, 240);
    }
}

body {
    font-family: sans-serif;
    color: var(--main-fg-color);
    background-color: var(--main-bg-color);
    margin: 0px;
}

hr {
    border-color: rgb(60, 60, 60);
}

.form_field {
    font-size: medium;
    font-family: sans-serif;
    background-color: var(--edge-color);
    color: var(--main-fg-color);
    width: 100%;
    box-sizing: border-box;
    padding-left: 5px;
    padding-right: 5px;
    border: 1px solid var(--border-color);
    resize: vertical;
    border-radius: 20px;
}

#textarea_post {
    font-size: medium;
    font-family: sans-serif;
    background-color: var(--main-bg-color);
    color: var(--main-fg-color);
    width: 100%;
    box-sizing: border-box;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 10px;
    border: 1px solid var(--border-color);
    resize: vertical;
    border-radius: 40px;
}

.flex-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 0px;
}

.content {
    max-width: 600px;
    /* Your preferred max width for the content */
    flex: 1;
    /* Shorthand for flex-grow, flex-shrink and flex-basis */
    min-width: 300px;
    /* Minimum width the content can shrink to */
    padding: 20px;
    box-shadow: 0 0 5px var(--edge-color);
    text-align: left;
    overflow-x: hidden;
    /* Hide horizontal overflow inside the flex container */
    line-height: 1.3;
}

.embed {
    max-width: 800px;
    border-color: red;
    border: 1px, solid;
    padding: 20px;
}

.postImage {
    width: 100%;
}

#log {
    font-family: monospace;
    text-wrap: wrap;
    font-size: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.right {
    text-align: right;
}

#buttons {
    margin-left: 40px;
}

#button_post {
    margin-right: 40px;
}

a {
    color: var(--link-color);
}

#ddln_logo_button {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    background-image: url("/static/favicon.ico");
    background-repeat: no-repeat;
    background-size: cover;
}

@media (prefers-reduced-motion) {
    #ddln_logo_button {
        width: 32px;
        height: 32px;
        image-rendering: pixelated;
        background-image: url("/static/favicon.ico");
        background-repeat: no-repeat;
        background-size: cover;
    }
}

.logo {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    background-image: url("/static/favicon.ico");
    background-repeat: no-repeat;
    background-size: cover;
}

#torrent-content {
    border: solid 1px;
    width: 800px;
}

.img-button {
    cursor: pointer;
}

button,
.button {
    font-size: 12px;
    background-color: var(--main-bg-color);
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-left: 5px;
    color: var(--highlight-fg-color);
    /* border:solid 1px white; */
    border: 1px solid var(--border-color);
    color: var(--main-fg-color);
    cursor: pointer;
}

.button-big {
    font-size: large;
}

video {
    width: 100%;
}

iframe {
    width: 100%;
    /* display:none; */
}

.qrcode_image {
    background-color: var(--highlight-fg-color);
    padding: 10px;
}

#ids {
    font-size: xx-small;
}

#peer_display {
    width: 100%;
    height: 300px;
}

#compose {
    display: none;
}

.username {
    color: var(--main-fg-color);
    text-decoration: none;
}

.username:hover {
    text-decoration: underline;
}

.nav-container {
    position: sticky;
    /* left: 0;  */
    top: 0;
    height: 100vh;
    background-color: var(--main-bg-color);
    /* border-right: 1px solid rgb(60, 60, 60); */
    /* transition: width 0.3s; */
    overflow: hidden;
    width: 130px;
    margin-right: 5px;
}

.nav-container.collapsed {
    width: 60px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--main-fg-color);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.nav-item.profile-pic {
    padding: 8px 6px;
}

.nav-item:hover {
    background-color: var(--edge-color);
}

.nav-emoji {
    font-size: 28px;
    min-width: 28px;
}

.nav-label {
    margin-left: 12px;
}

.burger-menu {
    text-align: center;
    width: 46px;
    border-radius: 10px;
    left: 8px;
    display: none;
    position: fixed;
    top: 0px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    background: none;
    border: none;
    color: var(--main-fg-color);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 900;
}

@media (max-width: 700px) {
    .nav-container {
        display: none;
        /* transform: translateX(-100%); */
        /* z-index: 1000; */
    }

    .nav-container.active {
        position: fixed;
        left: 0px;
        display: block;
        /* transform: translateX(0); */
        width: 200px;
    }

    .burger-menu {
        display: block;
        background-color: var(--main-bg-color);
    }

    .nav-overlay.active {
        display: block;
    }
}

@media (min-width: 701px) and (max-width: 800px) {
    .nav-container {
        width: 60px;
    }

    .nav-label {
        display: none;
    }
}

.profile-pic-container {
    width: 48px;
    height: 48px;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
}

.profile-pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.emoji-fill {
    color: transparent;
    text-shadow: 0 0 0 var(--main-fg-color);
}

.compose-button {
    font-size: 42px;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    background: rgba(87, 87, 255, 0.5);
}

.compose-button:hover {
    background-color: rgb(87, 87, 255);
}