
:root {
    --c-brand: rgb(182, 45, 255);
    --c-brand-light: rgb(193, 101, 250);
    --c-bg: rgb(252, 242, 253);
}

body {
    background-color: var(--c-bg);
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0px;
    padding: 0;
    padding-top: 50px;
    color: rgb(0, 0, 0);
}

* {
    box-sizing: border-box;
    user-select: none;
}

.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.mr-10 { margin-right: 10px; }
.ml-10 { margin-left: 10px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mr-20 { margin-right: 20px; }
.ml-20 { margin-left: 20px; }

#head {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: rgb(86, 0, 122);
    color: black;
}

#head-inner {
    max-width: 850px;
    margin: 0 auto;
    overflow: visible;
    padding: 0px 20px;
}

#head-inner #logo {
    margin-top: -1px;
    transform: rotate(-6deg);
    display: inline-block;
    font-weight: 300;
    font-size: 26px;
    color: var(--c-bg);
    line-height: 40px;
    font-family: "Pacifico", cursive;
}

#head-inner #user {
    float: right;
    font-size: 12px;
    letter-spacing: normal;
    line-height: 40px;
    color: white;
}

#head-inner #user p {
    margin: 0; padding: 0;
    line-height: 1em;
    display: inline-block;
    font-weight: 500;
}

#head-inner #user a {
    color: black;
    margin-left: 5px;
    padding: 3px 5px;
    font-weight: 800;
    background: white;
    border-radius: 3px;
}

#head-inner #user a:hover {
    filter: invert(1);
}

#container {
    max-width: 850px;
    margin: 20px auto 70px auto;
    padding: 0px 20px;
}

h1 {
    /* font-family: 'Pacifico', cursive; */
    font-size: 28px;
    color: black;
    line-height: 1em;
    margin: 0;
    padding: 0;
    font-weight: 900;
}

h2 {
    /* font-family: 'Pacifico', cursive; */
    font-size: 17px;
    text-align: center;
    color: black;
    line-height: 1em;
    margin: 0;
    padding: 0;
    font-weight: 900;
}

p {
    margin: 0.5rem 0;
    line-height: 1.35em;
}

.error {
    background: red;
    color: white;
    padding: 15px 20px;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.14);
}

button,
.button {
    background-color: var(--c-brand);
    padding: 10px 16px;
    color: rgb(255, 255, 255);
    border: 0;
    font-size: 18px;
    box-shadow: inset 0px -1px 0px rgba(0, 0, 0, 0.15), inset 0px 2px 0px rgba(255, 255, 255, 0.2), 0px 3px 4px rgba(0,0,0,0.22);
    cursor: pointer;
    transition: background-color 0.33s ease-in-out;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    width: 100%;
    display: block;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

button:active,
.button:active {
    box-shadow: inset 0px 2px 0px rgba(0, 0, 0, 0.15), inset 0px -2px 0px rgba(255, 255, 255, 0.2), 0px 3px 4px rgba(0,0,0,0.22);
}


button:hover,
.button:hover {
    background-color: var(--c-brand-light);
}

input[type="text"],
input[type="password"] {
    border: 2px solid rgb(200,200,200);
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 18px;
    border-radius: 6px;
    padding: 8px 16px;
    transition: all 0.33s ease-in-out;
}

input[type="text"]:hover,
input[type="password"]:hover {
    border-color: var(--c-brand-light);
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--c-brand);
    background-color: rgb(241, 251, 255);
    outline: none;
}

.box {
    background: white;
    border: 1px solid rgb(200,200,200);
    padding: 15px;
    border-radius: 3px;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.08);
    border-radius: 4px;
}

.box.extra {
    padding: 30px;
}

form label,
form input,
form button {
    width: 100%;
    font-size: 18px;
    margin-bottom: 10px;
    display: block;
}

form label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgb(100,100,120);
}

.close-button {
    background: white;
    border-radius: 100px;
    width: 32px;
    height: 32px;
    text-align: center;
    font-size: 17px;
    line-height: 32px;
    cursor: pointer;
    color: black;
}

#videos {
    display: flex;
    gap: 18px 10px;
    flex-wrap: wrap;
}

#videos .video {
    background: white;
    padding: 10px;
    border: 1px solid rgb(200,200,200);
    box-shadow: 3px 3px 5px rgba(0,0,0,0.08);
    transition: all 0.23s ease-in;
    cursor: pointer;
    flex-basis: calc(25% - 10px);
    position: relative;
    border-radius: 4px;
}

#videos .video:hover {
    transform: scale(1.03);
    box-shadow: 5px 10px 0px rgba(0,0,0,0.05);
    background-color: rgb(245, 254, 255);
}

#videos .video img {
    margin-bottom: 5px;
    width: 100%;
    aspect-ratio: 1/1;
}

#videos .video.own img,
#videos .video.watched img {
    opacity: 0.5;
}

#videos .video.watched::after {
    content: "izlendi";
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: green;
    font-size: 10px;
    padding: 3px 5px;
    color: white;
}

#videos .video.own::after {
    content: "senin bu";
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgb(0, 38, 128);
    font-size: 10px;
    padding: 3px 5px;
    color: white;
}

#videos .video .uploader {
    font-size: 12px;
    line-height: 1em;
    padding: 0;
    text-transform: uppercase;
    margin: 0;
    margin-bottom: 6px;
    color: var(--c-brand);
}

#videos .video .date {
    font-size: 16px;
    line-height: 1em;
    padding: 0;
    margin: 0;
    margin-bottom: 5px;
    color: black;
}