/* Normalize */
html {
    scroll-behavior: smooth;
}

:root {
    --white: #ececec;
    --placeholder: #999999;
    --gray: #303030;
    --dark: #202020;
    --black: #101010;
    --primary: #007bff;
    --accent: #3e96f4;
    --highlight: #ffff00;
    --success: #4caf50;
    --fail: #aa2121;
    --light: #dadada;
    color-scheme: dark;
    --bg-color: var(--black);
    --text-color: var(--white);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    vertical-align: baseline;
    font-weight: 400;
    font-family:
        system-ui;
    font-size: 1rem;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-style: normal;
    line-height: 1.5;
    margin: 1rem;
}

.container {
    width: 100%;
    height: 100%;
    max-width: 1024px;
    margin: 0 auto;
    margin: 1rem;
}

nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a1a;
    padding: 1rem 1rem 0.5rem 1rem;
    border-radius: 1rem 1rem 0 0;
    max-width: 360px;
    margin: 0 auto;

    && input {
        display: none;
    }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;

    .page {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;


        && img {
            width: 35px;
            height: 35px;
        }
    }
}

/* Typography */
h1 {
    font-size: 2.75rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    font-size: 1rem;
}

a {
    font-size: inherit;
    color: var(--text-color);
    text-decoration: none;
    transition: text-decoration-color 0.3s, text-decoration-thickness 0.3s;
}

a:hover {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
}

strong,
b {
    font-size: inherit;
    font-weight: 700;
}

span,
s {
    font-size: inherit;
}

/* Lists */
ol {
    list-style: decimal-leading-zero;
    margin-left: 3rem;
}

ul {
    list-style: disc !important;
    margin-left: 3rem;
}

li {
    width: fit-content;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Buttons */
button {
    font-weight: 700;
    text-decoration: none;
    color: var(--black);
    background-color: var(--white);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition:
        background-color 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
    height: 40px;
    width: fit-content;
}

button:hover {
    text-decoration: none;
    background-color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

input,
textarea,
select {
    background-color: var(--dark);
    border: 2px solid var(--gray);
    color: var(--text-color);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    outline: none;
    width: 100%;
}

input:focus,
select:focus {
    border-color: var(--accent);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

hr {
    border-top: solid 0.125rem currentColor;
    width: 20rem;
    padding: 1rem 0;
}





/* Custom styles */


#loginContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-align: center;
}

#authForm {
    display: flex;
    gap: 1rem;

    && div {
        margin-top: 1rem;
    }

    && button {
        width: 100%;
    }
}

#register {
    background-color: #67a1ff;
}

.profile-container {
    margin: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    && input {
        display: none;
    }
}

.pfp {
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    cursor: pointer;
}


textarea {
    resize: vertical;
    resize: none;
    min-height: 80px;
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: #202020;
    margin: 15% auto;
    padding: 20px;
    width: 80%;
    max-width: 400px;
}