:root {
    --bg-color: hsl(0deg, 0%, 0%);
    --text-color: hsl(0deg, 0%, 85%);
    --primary: hsl(250deg, 100%, 75%);
}

body {
    font-size: 1.4rem;
    line-height: 1.6;
    text-rendering: optimizeSpeed;
    background-color: var(--bg-color);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: var(--text-color);
    padding: 1rem 1rem;
    margin: 0;
    word-wrap: break-word;
    counter-reset: headingCounter;
    font-weight: 400;
}

main {
    width: 100%;
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
}

a {
    color: var(--text-color);
    text-decoration-thickness: 0.2ex;
    text-underline-offset: 0.3ex;
}

a:hover, a:focus {
    color: var(--primary);
}

a:focus {
    outline-width: 0.2ex;
    outline-offset: 0.3ex;
    outline-style: dashed;
}

p {
    line-height: 1.3;
    margin-block-end: 0.4rem;
    margin-block-start: 0.4rem;
}

h1, h2, h3 {
    line-height: 1.3;
    margin-bottom: 50px;
    margin-top: 4rem;
}

h1 {
    font-size: 1.8rem;
}

.about h1::before {
    content: "";
    color: var(--primary);
    display: inline-block;
    font-family: monospace;
    font-weight: 700;
}

.about h1::after {
    content: "marino.io";
    color: var(--primary);
    display: inline-block;
    font-weight: 700;
}

.divider {
    margin-top: 30px;
    margin-bottom: 30px;
}

.text-editor {
    color: var(--text-color);
}

label,
textarea {
    font-size: 0.8rem;
    letter-spacing: 1px;
}

textarea {
    border: none;
    overflow: auto;
    outline: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    resize: none;
    width: 100%;
    min-height: 19rem;
    line-height: 1.5;
    border-radius: 5px;
    font-size: 1.2rem;
    padding: 15px;
    box-sizing: border-box;
}

label {
    display: block;
    margin-bottom: 10px;
}

.text-large {
    display: none;
}

button {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

@media (min-width: 500px) {
    .text-small {
        display: none;
    }

    .text-large {
        display: inline;
    }
}
