* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--font-color);
    /* background-color: var(--background-color); */
}

:root {
    --font-color: #fff;
    --font-color1: #34a965;
    --background-color: #222733;
}

header {
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: space-around;
    /* box-shadow: 0px 10px 10px #000; */
}

.pwBG {
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 3;
}

.loader_background {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 4;
}

.loader {
    position: relative;
    height: 120px;
    width: 120px;
}

.loader span {
    position: absolute;
    top:  0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(calc(18deg * var(--i)));
}

.loader span::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
    transform: scale(0);
    animation: loader 2s linear infinite;
    animation-delay: calc(0.1s * var(--i));
}

@keyframes loader {
    0% {
        transform: scale(0);
    }
    10% {
        transform: scale(1.2);
    }
    80%, 100% {
        transform: scale(0);
    }
}

.rocket {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    animation: rocket 2s linear infinite;
    animation-delay: -1s;
}

@keyframes rocket {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.rocket::before {
    content: "\f135";
    font-family: FontAwesome;
    position: absolute;
    top: 80px;
    left: 100px;
    color: #fff;
    font-size: 40px;
    transform: rotate(170deg);
}

.logo {
    display: flex;
    align-items: center;
    cursor: default;
}

.logo img {
    margin-top: 10px;
    margin-right: 5px;
    rotate: 45deg;
    width: 50px;
    min-width: 50px;
}

.header_links {
    display: flex;
}

.header_links a {
    display: flex;
    text-align: center;
    gap: 5px;
    padding: 10px;
    color: #111;
    text-decoration: none;
    font-weight: bold;
    transition: ease-in-out 0.3s;
    cursor: pointer;
}

.header_links a:hover {
    color: var(--font-color1);
}

/* Profil */

.profile_pic {
    width: 40px;
    border-radius: 50%;
    transition: ease-in-out 0.3s;
    cursor: pointer;
}

.profile_pic:hover {
    opacity: 0.7;
}

#pfp:hover {
    opacity: 1;
    cursor: default;
}

.settings {
    display: none;
    background-color: var(--font-color);
    width: 90vmin;
    height: 60vmin;
    padding: 50px 30px;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    overflow-y: scroll;
    border-radius: 10px;
    box-shadow: 0px 25px 50px #000;
}

.settings h1 {
    color: #111;
    font-style: italic;
    font-size: 64px;
}

.backBTN {
    background-color: #d8d8d8;
    margin-top: 10px;
    padding: 10px 50px;
    border-radius: 10px;
    border: none;
    outline: none;
    transition: ease-in-out 0.3s;
    cursor: pointer;
}

.backBTN:hover {
    background-color: var(--font-color1);
}

.theme {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    margin-top: 50px;
}

.theme h2 {
    color: #111;
    font-style: italic;
    font-size: 34px;
    border-top: solid #111 5px;
    opacity: 0.6;
}

.theme button {
    font-size: 20px;
    background-color: #d8d8d8;
    padding: 10px;
    border-radius: 10px;
    border: none;
    outline: none;
    transition: ease-in-out 0.3s;
    cursor: pointer;
}

.theme button:hover {
    background-color: var(--font-color1);
}

.theme label {
    font-size: 20px;
    color: #000;
}

.theme input {
    font-size: 20px;
    background-color: #d8d8d8;
    width: 300px;
    padding: 10px;
    border-radius: 10px;
    border: none;
    outline-color: var(--font-color1);
    transition: ease-in-out 0.3s;
    cursor: pointer;
}

.theme p {
    margin-top: 10px;
    color: #000;
}

.profile-picture {
    display: flex;
    justify-content: center;
}

.profile-preview {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 500px;
}

.profile-preview img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-top: 20px;
}

.profile-preview label {
    color: black;
    background-color: var(--font-color1);
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
}

.profile-preview input {
    display: none;
}

/* Texteditor */

.container {
    background-color: var(--font-color);
    width: 96.8%;
    padding: 50px 30px;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    border-radius: 10px;
    box-shadow: 0px 0px 50px #000;
}

.options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.options button {
    display: grid;
    place-items: center;
    height: 28px;
    width: 28px;
    border-radius: 3px;
    border: none;
    background-color: var(--font-color);
    outline: none;
    color: #000;
    cursor: pointer;
}

select {
    padding: 7px;
    border: 1px solid #000;
    border-radius: 3px;
}

.options label, .options select {
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
}

.input_wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type="color"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    width: 40px;
    height: 28px;
    border: none;
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch {
    border-radius: 15px;
    box-shadow: 0 0 0 1px var(--font-color), 0 0 0 2px #000;
}

input[type="color"]::-moz-color-swatch {
    border-radius: 15px;
    box-shadow: 0 0 0 1px var(--font-color), 0 0 0 2px #000;
}

.textBorder {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 5px;
    border-top: 1px solid #000;
}

#text_input {
    color: #000;
    margin-top: 10px;
    padding: 20px;
    height: 60vh;
    width: 50%;
    border: 1px solid #000;
    overflow-y: auto;
    /* background-color: transparent;
    background-image: radial-gradient(#000000 1px, #e6f1ff  1px);
    background-size: 30px 30px; */
}

.downloadBTN {
    position: absolute;
    left: 96%;
    font-size: 20px;
}

.downloadTxt, .downloadTxt2 {
    margin-right: 10px;
    width: 250px;
    height: 50px;
    text-align: left;
    position: relative;
    border: none;
    outline: none;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    padding-left: 20px;
    box-sizing: border-box;
    transition: ease-in-out 0.3s;
    cursor: pointer;
}

.downloadTxt::after, .downloadTxt2::after {
    content: "";
    position: absolute;
    background-color: var(--font-color1);
    width: 30px;
    margin-right: 155px;
    bottom: 0;
    top: 0;
    right: 0;
    transform: skew(-30deg);
}

.downloadTxt::before, .downloadTxt2::before {
    content: "Text";
    line-height: 50px;
    text-align: center;
    border-radius: 0 10px 10px 0;
    position: absolute;
    background-color: var(--font-color1);
    width: 170px;
    bottom: 0;
    top: 0;
    right: 0;
    z-index: 10;
}

.downloadTxt2::before {
    content: "HTML";
}

.downloadTxt2::after, .downloadTxt2::before {
    background-color: #e44d26;
}

.downloadTxt:hover, .downloadTxt2:hover{
    font-size: 18px;
}

.active {
    background-color: #e0e9ff;
}

.downloadClose {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    background-color: #e0e9ff;
    height: 30px;
    width: 30px;
    outline: none;
    border: none;
    border-radius: 50%;
    transition: ease-in-out 0.3s;
    cursor: pointer;
}

.downloadClose:hover {
    color: red;
}

.downloadField {
    z-index: 2;
    position: absolute;
    display: none;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100vh;
    background-color: rgb(0, 0, 0, 0.7);
}