:root {
    --padding: clamp(1rem, 0.0507rem + 1.9324vw, 1.5rem);
    --font-size: clamp(1rem, 0.4444rem + 1.1574vw, 1.3125rem);
    --font-size-large: clamp(1.4rem, 0.8386rem + 1.8987vw, 1.7rem);
    --text-decoration-thickness: clamp(0.0625rem, -0.0486rem + 0.2315vw, 0.125rem);
    --text-underline-offset: clamp(0.125rem, -0.0972rem + 0.463vw, 0.25rem);
}

/* TYPE */
@font-face {
    font-family: 'tomato';
    src: url('/assets/fonts/tomato.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'tomato', sans-serif; /* Added a fallback font */
    font-weight: 400;
    font-size: var(--font-size);
}

p, p a {
    font-size: var(--font-size);
}

p a {
    text-decoration: underline;
    text-decoration-thickness: var(--text-decoration-thickness);
    text-underline-offset: var(--text-underline-offset);
}

/* RESET */
body {
    margin: 0;
    -webkit-text-size-adjust: 100%; /* Prevent font size adjustments after orientation changes in iOS */
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.my {
    margin: 2rem 0;
}

/* HEADER */
.menu {
    display: flex;
    flex-direction: column;
    padding: var(--padding);
}

.menu .logo {
    max-width: 200px !important;
}

.menu .tagline {
    margin: 0;
    text-transform: uppercase;
    line-height: 100%;
    margin-top: 3px;
    font-size: clamp(1.75rem, 0.8386rem + 1.8987vw, 2.5rem);
}

.content-wrapper, footer {
    padding: 0 var(--padding);
}

.logout {
    text-decoration: underline;
    text-decoration-thickness: var(--text-decoration-thickness);
    text-underline-offset: var(--text-underline-offset);
    margin-top: 5rem;
}

.footer {
    text-transform: capitalize;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.footer a {
    text-transform: lowercase !important;
}

/* REGISTER */
.register, .login, .login-password, .register-password {
    .input-field, .select-field {
        display: flex !important;
        flex-direction: column !important;
        margin-top: 1rem;
    }

    .input-field input, .select-field select {
        border: 0;
        cursor: text !important;
        color: #B2B2B2;
        outline: none;
        -webkit-appearance: none; /* Remove default styling in Safari */
        -moz-appearance: none; /* Remove default styling in Firefox */
    }

    .input-field input:focus, .select-field select:focus, .input-field textarea:focus {
        outline: none;
        -webkit-box-shadow: none; /* Remove shadow in Safari */
        box-shadow: none;
    }

    .submit-btn {
        margin: 2rem 0;
        color: black;
        background: transparent;
        border: 0;
        padding: 0;
        cursor: pointer;
        text-decoration: underline;
        text-decoration-thickness: var(--text-decoration-thickness);
        text-underline-offset: var(--text-underline-offset);
        -webkit-appearance: none; /* Remove default styling in Safari */
        -moz-appearance: none; /* Remove default styling in Firefox */
    }

    .alert li, .alert {
        list-style-type: none;
        color: red;
    }

    .input-wrapper {
        position: relative;
        max-width: 40rem;

        input {
            width: 100%;
        }
    }

    #togglePassword {
        position: absolute;
        right:0;
        transform: scale(.8);
        transform-origin: 0;
        text-decoration: underline;
        text-underline-offset: .2rem;
        cursor: pointer;
    }

    .password-text {
        transform: scale(.8);
        transform-origin: 0;
        padding: 1rem 0;
    }
}

/* HOME */
.home p, .home a {
    font-size: var(--font-size);
}

.home span {
    font-size: inherit;
}

.home .red {
    color: red;
}

.home .form-wrapper, .home .files-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-title {
    margin-top: 4rem;
    margin-bottom: 1rem;
    font-size: var(--font-size-large);
    text-transform: uppercase;
    font-weight: 100;
}

.home .form__category .form__category__title {
    font-size: var(--font-size);
}

.home .form__category .form-title {
    text-decoration: underline;
    text-decoration-thickness: var(--text-decoration-thickness);
    text-underline-offset: var(--text-underline-offset);
    text-transform: uppercase;
    font-size: var(--font-size-large);
}

.home .form__category .deadline-closed {
    color: #B2B2B2;
    font-size: var(--font-size-large);
}

.home .form__category .deadline-open {
    color: red;
    font-size: var(--font-size-large);
}

.home .files__category {
    display: flex !important;
    flex-direction: column !important;
}

.home .file-title {
    text-decoration: underline;
    text-decoration-thickness: var(--text-decoration-thickness);
    text-underline-offset: var(--text-underline-offset);
    text-transform: uppercase;
    font-size: var(--font-size-large);
}