/* 
⡴⠒⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⠉⠳⡆⠀
⣇⠰⠉⢙⡄⠀⠀⣴⠖⢦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣆⠁⠙⡆
⠘⡇⢠⠞⠉⠙⣾⠃⢀⡼⠀⠀⠀⠀⠀⠀⠀⢀⣼⡀⠄⢷⣄⣀⠀⠀⠀⠀⠀⠀⠀⠰⠒⠲⡄⠀⣏⣆⣀⡍
⠀⢠⡏⠀⡤⠒⠃⠀⡜⠀⠀⠀⠀⠀⢀⣴⠾⠛⡁⠀⠀⢀⣈⡉⠙⠳⣤⡀⠀⠀⠀⠘⣆⠀⣇⡼⢋⠀⠀⢱
⠀⠘⣇⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⡴⢋⡣⠊⡩⠋⠀⠀⠀⠣⡉⠲⣄⠀⠙⢆⠀⠀⠀⣸⠀⢉⠀⢀⠿⠀⢸
⠀⠀⠸⡄⠀⠈⢳⣄⡇⠀⠀⢀⡞⠀⠈⠀⢀⣴⣾⣿⣿⣿⣿⣦⡀⠀⠀⠀⠈⢧⠀⠀⢳⣰⠁⠀⠀⠀⣠⠃
⠀⠀⠀⠘⢄⣀⣸⠃⠀⠀⠀⡸⠀⠀⠀⢠⣿⣿⣿⣿⣿⣿⣿⣿⣿⣆⠀⠀⠀⠈⣇⠀⠀⠙⢄⣀⠤⠚⠁⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⢠⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡄⠀⠀⠀⢹⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡀⠀⠀⢘⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⢰⣿⣿⣿⡿⠛⠁⠀⠉⠛⢿⣿⣿⣿⣧⠀⠀⣼⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⡀⣸⣿⣿⠟⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⣿⡀⢀⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⡇⠹⠿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⡿⠁⡏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⣤⣞⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢢⣀⣠⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠲⢤⣀⣀⠀⢀⣀⣀⠤⠒⠉⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀
K weet het is rommelig...
*/
* {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    font-family: "proxima-nova", helvetica, arial, sans-serif;
}

body {
    background: var(--default-white);
    color: var(--primary-text-color);
    font-size: 16px;
    overflow-x: hidden;
}

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

h1 {
    font-size: var(--textsize-xlarge);
    color: var(--primary-text-color);
}

h2 {
    font-size: var(--textsize-large);
    color: var(--primary-text-color);
}

h3 {
    font-size: var(--textsize-medium);
    color: var(--primary-text-color);
}

h4 {
    font-size: var(--textsize-medium);
    color: var(--primary-text-color);
}

h5 {
    font-size: var(--textsize-medium);
    color: var(--primary-text-color);
}

p {
    font-size: 20px;
    color: var(--primary-text-color);
}


ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    border-radius: 4px;
    font: bold 14px / 16px "proxima-nova", helvetica, arial, sans-serif;
    outline: none;
    cursor: pointer;
    background: #f2725f;
    color: var(--default-white);
    border: 0;
    padding: 8px 12px;
    white-space: nowrap;
}

.border-btn {
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 3px;
    padding-bottom: 3px;
    transition: all 0.3s ease;

    &:hover {
        background: var(--primary-color);
        box-shadow: 0 4px 12px var(--v-box-shadow-color);
        color: var(--default-white);
        transform: translateY(-2px);
    }
}

.convert-button {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    align-self: flex-start;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;

    &:hover {
        background: var(--default-white);
        box-shadow: 0 4px 12px var(--v-box-shadow-color);
        color: var(--primary-color);
        transform: translateY(-2px);
    }
}

.save-button {
    padding: 12px 30px;
    margin: 10px 0 0 0;
    font-size: 16px;
    border-radius: 4px;
    align-self: flex-start;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;

    &:hover {
        background: var(--default-white);
        box-shadow: 0 4px 12px var(--v-box-shadow-color);
        color: var(--primary-color);
        transform: translateY(-2px);
    }
}



.convert-button:active {
    transform: translateY(0);
}

.main-header {
    height: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.main-nav-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    margin-top: 10px;
    margin-bottom: 10px;

    li {
        list-style: none;
        cursor: pointer;
    }

    ul {
        display: flex;
        align-items: center;
        gap: 15px;

        img {
            margin-top: 5px;
        }
    }

    button {
        cursor: pointer;
        user-select: none;
        white-space: nowrap;
        border: none;
        outline: none;
        background: none;
    }

    .header-logo {
        display: flex;
        align-items: center;
        gap: 5px;

        p {
            margin: 0;
            font-size: 18px;
            color: var(--color-secondary);
        }

        .mark {
            background-color: var(--highlight-color);
            font-size: 12px;
            border-radius: 4px;
            color: var(--primary-color);
            padding: 1px 3px;
            margin: -11px 0 0 0;
        }
    }

    @media (min-width: 700px) {
        display: none;
    }
}

.main-nav-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    margin-top: 10px;
    margin-bottom: 10px;

    ul {
        display: flex;
        gap: 15px;

        img {
            margin-top: 5px;
        }
    }

    li {
        list-style: none;
        cursor: pointer;

        &:hover {
            background: var(--default-white);
            box-shadow: 0 4px 12px var(--v-box-shadow-color);
            color: var(--primary-color);
            transform: translateY(-1px);
        }
    }

    
    .header-logo {
        display: flex;
        align-items: center;
        gap: 5px;

        p {
            margin: 0;
            font-size: 18px;
            color: var(--color-secondary);
        }

        .mark {
            background-color: var(--highlight-color);
            font-size: 12px;
            border-radius: 4px;
            color: var(--primary-color);
            padding: 1px 3px;
            margin: -11px 0 0 0;
        }
    }
    .header-middle {
        gap: 11px;
        align-items: center;
    }

    @media (max-width: 700px) {
        display: none;
    }
}

.hero {
    padding: min(5em, 8%);
    text-align: center;

}

.dropdown {
    position: relative;
    padding-inline: 1.5rem;
    padding-block: 0.75rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease allow-discrete;
    display: flex;
    padding: 6px;
    color: var(--v-foreground-color);

}

.dropdown svg {
    transition: stroke 0.18s ease, opacity 0.18s ease;
    width: 25px;
    height: 25px;
}

.dropdown.is-active {
    color: var(--primary-color);
}


.wrapper .dropdown-menu {
    border-radius: 0 0 0 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    transition: all 0.18s ease;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    margin: 0.25rem 0 0 0;
    background-color: var(--default-white);
    min-width: 200px;
    overflow: hidden;
    display: none;
}

.wrapper.is-active .dropdown-menu {
    opacity: 1;
    z-index: 10;
    transform: scaleY(1);
    display: block;

    .divider {
        border-top: 1px solid rgba(0, 0, 0, 0.3);
        animation: flowin 0.4s ease-out forwards;
    }
}

.wrapper .dropdown-item {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--primary-text-color);
    padding-block: 0.75rem;
    padding-inline: 1.5rem;
    animation: flowin 0.4s ease-out forwards;
}

.dropdown-item a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.wrapper .dropdown-item:hover {
    color: var(--primary-color);
}

.dropdown:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.container {
    position: relative;

    @media (min-width: 700px) {
        display: none;
    }
}

.container .wrapper {
    position: relative;
    right: 0;

    @media (min-width: 400px) {
        position: absolute;
    }
}

section {
    .hero {
        padding: min(5em, 8%);
        text-align: center;
    }
}

.ascii-converter {
    padding: 40px 20px;
    background: linear-gradient(120deg, var(--default-white) 0%, var(--primary-color) 100%);
    margin: 40px 0;
}

form {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--default-white);
    padding: 30px;
    gap: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--v-box-shadow-color);
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

textarea {
    padding: 12px 15px;
    font-size: var(--textsize-medium);
    font-family: 'Courier New', monospace;
    border: 2px solid var(--v-border-color-dark);
    border-radius: 6px;
    transition: border-color 0.5s ease, font-size 0.12s ease;
    resize: none;
    max-width: 400px;
    height: 200px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: none;
    width: 100%;
    max-width: 400px;

    & textarea {
        font-size: var(--dynamic-font-size, 18px);
        height: 190px;
        width: 100%;
        max-width: 400px;
        padding: 10px;
        box-sizing: border-box;
    }
}

.input-group label {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-text-color);
}

input[type="text"] {
    padding: 12px 15px;
    border: 2px solid var(--v-border-color-dark);
    border-radius: 6px;
    transition: border-color 0.5s ease;
    width: 100%;
    height: 40px;
    max-width: 400px;
    box-sizing: border-box;
}

.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}


.output-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: none;
    width: 100%;
    max-width: 400px;
    animation: slideIn 0.4s ease;


    & textarea {
        font-size: var(--textsize-medium);
        background: rgba(189, 189, 189, 0.788);
        height: 60px;
        width: 100%;
        max-width: 400px;
        padding: 10px;
        box-sizing: border-box;
    }

    & iframe {
        border-radius: 6px;
        border: 2px solid var(--v-border-color-dark);
        transform: scale(1);
        width: 100%;
        height: 190px;
        max-width: 400px;
        transition: border-color 0.5s ease, transform 0.2s ease
    }
}

.output-container[hidden] {
    display: none;
}

.output-group label {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-text-color);
    display: block;
}

/* .output-display {
    padding: 12px;
    width: 100%;
    max-width: 400px;
    font-size: var(--dynamic-font-size, 19px);
    font-family: 'Courier New', monospace;
    border: 2px solid var(--v-border-color-dark);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
} */

.output-display:focus {
    outline: none;
    border-color: var(--v-border-color-dark);
}

.error-message {
    padding: 15px;
    border: 2px solid #fcc;
    border-radius: 6px;
    color: var(--limit-exceeded-color);
    font-weight: 600;
    animation: slideIn 0.4s ease;
}

.error-message[hidden] {
    display: none;

}

footer {
    display: flex;
    color: var(--primary-text-color);
    margin: 8px;
    width: 95vw;
    justify-content: space-evenly;
    flex-direction: row;
    gap: 20px;
    padding-bottom: 50px;

    a {
        text-decoration: none;
        color: grey;
        transition: all .15s;
    }

    a:hover {
        color: var(--color-active);
    }

    @media screen and (max-width: 500px) {
        flex-direction: column;
    }

    ul {
        display: flex;
        flex-direction: column;
        font-size: 14px;
        line-height: 25px;

        p {
            color: var(--color-secondary);
            letter-spacing: 1px;
            text-transform: uppercase;
            border-bottom: 1px solid rgba(0, 0, 0, 0.3);
            margin-bottom: 5px;
        }
    }
}

p5 {
    font-size: 14px;
    padding: 5px;
    color: var(--v-foreground-color-light);
}


@keyframes flowin {
    from {
        transform: translateY(-20px);
        opacity: 0;

    }

    to {
        transform: translateY(0px);
        opacity: 1;
    }

}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}