﻿:root {
    /*Colors*/
    --white-bg: #ffffff;
    --gray-bg: #f7f7f7;
    --dark-gray-bg: #bfbfbf;
    --text-color: #434343;
    --primary-color-1: #40E0D0;
    --primary-color-2: #FF8C00;
    --primary-color-3: #FF0080;
    --distance-main-elements: 24px;
    --danger-color: #de3c3c;
    --warning-color: #e0b519;
    --success-color: #12cc6f;
    font-size: 62.5%; /* Sets 1 rem to 10 px  */
    /*Spacing*/
    --small-gap: 0.4rem;
    --pill-gap: 1.2rem;
    --pill-h: 5.2rem;
    --pill-h-mini: 4.4rem;
    --medium-gap: 2.4rem;
    --large-gap: 4.8rem;
    /*Sizing*/
    --btn-h: 4.4rem;
    --input-h: 4.4rem;
}

@media (max-width: 850px) {
    :root {
        font-size: 56%;
    }
}

html, body {
    height: 100%;
    font-size: 1.6rem;
    color: var(--text-color);
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100dvh; /* dvh for mobile address bar correctness */
    overflow: hidden; /* page itself doesn't scroll */
    background: var(--gray-bg);
}

.mk-main {
    padding: 0 var(--pill-gap);
}

/* header/footer don’t grow */
header, footer {
    flex: 0 0 auto;
}

footer {
    display: flex;
    flex-direction: column;
    padding: 1rem 0
}

footer span{
    text-align: end;
}

.footer-links
{
    display: flex;
    gap: var(--pill-gap);
}

main {
    flex: 1 1 auto;
    overflow: auto; /* enable scrolling */
    /* smoother iOS scrolling */
    -webkit-overflow-scrolling: touch;
    padding: 0 1rem;
}



/* skip link for screen readers and keyboard users */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

    .skip-link:focus {
        left: 16px;
        top: 8px;
        width: auto;
        height: auto;
        padding: 8px 12px;
        background: #000;
        color: #fff;
        border-radius: 6px;
        z-index: 2000;
    }

