:root {
    --main-color: #061E24;
    --text-color: #FFF;
    --bg-color: #118ab2;
    --text-color2: #FFF;
}
html {
    scroll-behavior: smooth;
}
@font-face {
    font-family: main;
    src: url('main.ttf');
}
#drop_zone p {
    color: #333 !important;
}
body {
    background-image: linear-gradient(to bottom right, #006494, #118ab2);
    font-family: main;
    padding: 40px;
    padding-top: 100px;
    margin: 0;
}
.post {
    width: 90%;
    max-width: 400px;
    padding: 20px;
    border-radius: 20px;
    background-color: #FFF;
    margin: auto;
    margin-bottom: 40px;
    position: relative;
    cursor: pointer;
}
.post img {
    width: 100%;
    border-radius: 10px;
}
.post p {
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #fff;
}
.post h4 {
    margin-bottom: 0;
}
data {
    color: #fff;
}
.post .icons {
    position: absolute;
    right: 20px;
    transform: translateY(-9px);
}
svg, img[src$=".svg"] {
    width: 20px;
    height: 20px;
    fill: #000;
}
.icons svg, .icons img[src$=".svg"] {
    margin-right: 10px;
    margin-left: 20px;
    margin-top: 5px;
}

.magnifyContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    animation: magnify 0.5s ease-in-out forwards;
    transition: all 0.5s !important;
}
.magnifyContainer .text {
    position: absolute;
    left: calc(50% + 20px);
    top: 50%;
    transform: translateY(-50%);
    width: calc(50% - 40px);
}
.magnifyContainer #times {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.magnifyContainer .text .icons {
    position: absolute;
    right: 20px;
    transform: translateY(40px);
}
.magnifyContainer h4 {
    font-size: 30px;
    margin-bottom: 0;
}
.magnifyContainer data {
    color: #333;
}
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
    .magnifyContainer {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        background-color: rgba(255, 255, 255, 0.4);
    }
}
@keyframes magnify {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes imgMagnifyTransition {
    from {
        width: var(--w);
        top: var(--t);
        left: var(--l);
        border-radius: 10px;
    }
    to {
        width: calc(50% - 40px);
        top: 50%;
        left: 20px;
        border-radius: 30px;
    }
}
.magnifyContainer img:not(img[src$=".svg"]) {
    animation: imgMagnifyTransition 0.5s ease-in-out forwards;
    position: absolute;
    transform: translateY(-50%);
}


.input {
    position: relative;
}
.input input, .input textarea, .input select {
    padding: 10px;
    padding-top: 12px;
    width: calc(100% - 20px);
    font-size: 16px;
    border: none;
    background-color: transparent;
    outline: none;
    -webkit-appearance: none;
    color: var(--text-color2);
}
.input p {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(1);
    left: 20px;
    font-size: 16px;
    margin: 0;
    transition: all 0.2s;
    pointer-events: none;
    color: var(--text-color2);
}
.input input:focus ~ p, .input input:not(:placeholder-shown) ~ p, .input textarea:focus ~ p, .input textarea:not(:placeholder-shown) ~ p {
    left: 3px;
    transform: translateY(-50%) scale(0.8);
    top: 0%;
}
.user-box {
    width: calc(100% - 20px);
    height: fit-content;
    text-align: left;
    background-color: var(--bg-color);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    color: #fff;
}
.line {
    border-bottom: #CCC 1px solid;
    height: 0px;
    margin-top: 10px;
    margin-bottom: 10px;
    width: calc(100% + 20px);
    transform: translateX(-10px);
}
.user-box svg, .user-box img[src$=".svg"] {
    width: 25px;
    height: 25px;
    fill: var(--text-color);
}
button {
    border: none;
    width: calc(100% - 0px);
    padding: 20px;
    border-radius: 50px;
    margin-top: 50px;
    background-color: var(--main-color);
    cursor: pointer;
    font-size: 16px;
    color: var(--text-color);
}
a.action {
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    background-color: var(--main-color);
    cursor: pointer;
    font-size: 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.1s;
}
a.action:hover {
    background-color: var(--bg-color);
}
.logo {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 5px;
}
.action.new {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
}
#app h1 {
    margin: 0;
    display: inline-table;
    margin-left: 5px;
    margin-top: -5px;
    z-index: 999;
}
#app {
    position: fixed;
    top: 10px;
    left: 10px;
    cursor: pointer;
    z-index: 9999;
    padding: 10px;
    border-radius: 10px;
}
.files {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}
.file {
    display: inline-block;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.1);
    color: #000;
    font-size: 16px;
}
.file:hover {
    background-color: rgba(0, 0, 0, 0.3);
}
.file svg, .file img[src$=".svg"] {
    vertical-align: middle;
}
.file span {
    vertical-align: middle;
}
.post .file {
    display: none;
}


@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
    .version {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        background-color: rgba(244, 243, 238, 0.4);
    }
    #app {
        /*-webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        background-color: rgba(244, 243, 238, 0.4);*/
        color: #fff;
    }
}
.version {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    border: 1px #fff solid;
    color: #333;
    padding: 0px 10px;
    border-radius: 10px;
    z-index: 999;
    width: 150px;
    transition: all 0.2s;
    height: 45px;
    cursor: pointer;
}
.version p {
    font-size: 14px;
    transition: all 0.2s;
    color: #fff;
}
.version svg:not(.v svg), .version img[src$=".svg"]:not(.v img) {
    float: right;
    transition: all 0.2s;
}
.version img:not(.v img) {
    display: none;
}
.v img[src$=".svg"], .v img[src$=".png"] {
    float: left;
    width: 20px;
    height: 20px;
}
.v img[src$=".png"] {
    margin-left: 10px;
}
.version .v {
    font-size: 16px;
    color: #fff;
    text-align: center;
    padding: 10px 5px;
    background-color: transparent;
    border-radius: 5px;
    width: 140px;
    transition: all 0.2s;

    position: absolute;
    top: 5px;
    display: none;
}
.version .v:first-child {
    margin-top: -10px !important;
}
.version .v:hover {
    background-color: rgba(0, 0, 0, 0.2);
}
.version svg, .version img[src$=".svg"] {
    fill: #fff;
    margin-bottom: -7px;
    margin-left: 10px;
}

@media only screen and (max-width: 500px) {
    body {
        padding-top: 160px;
    }
    .version {
        top: 80px;
    }
    .magnifyContainer {
        z-index: 9999;
    }
    .magnifyContainer img:not(img[src$=".svg"]) {
        animation: none !important;
        position: inherit !important;
        transform: translate(0, 0);
        width: calc(100% - 40px) !important;
        border-radius: 20px;
        margin: 20px;
        margin-top: 60px;
    }
    .magnifyContainer .text {
        width: calc(100% - 40px);
        transform: translate(0, 0);
        padding: 20px;
        left: inherit;
        top: 50%;
        height: calc(50vh - 40px) !important;
        overflow: auto;
        position: inherit !important;
        border-top: #CCC 1px solid;
    }
    .magnifyContainer .files {
        overflow-x: hidden;
        white-space: inherit;
        text-align: center;
    }
    .files .file {
        margin: 5px;
    }
    .magnifyContainer h4 {
        margin-top: 0;
    }
}
