﻿: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;
    --input-border-radius: 16px;
}

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

html, body {
    height: 100%;
    font-size: 1.6rem;
    color: var(--text-color);
    /* Safari-safe horizontal overflow guard: prevents transformed / off-screen
       decorative elements from creating horizontal scroll on iOS. */
    overflow-x: clip;
}

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);
}

main {
    flex: 1 1 auto; /* enable grow */
    overflow: auto; /* enable scrolling */
    /* smoother iOS scrolling */
    -webkit-overflow-scrolling: touch;
}

.main-padding {
    padding: 0 var(--pill-gap);
}

.main-padding--maximized {
    /* increase padding to compensate the minimizing header */
    padding-bottom: calc(var(--large-gap) * 2);
}


/* 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;
    }


/* Footer */

footer {
    display: flex;
    flex-direction: column;
    margin-top: var(--large-gap);
    padding: 0 var(--pill-gap) !important;
    flex: 0 0 auto; /* Footer does not grow */
}

    footer span {
        text-align: end;
    }

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

.toast-container {
    z-index: 1100;
    margin: 0 auto;
    position: absolute;
    top: var(--medium-gap);
    left: 50%;
    transform: translateX(-50%);
}

.toast {
    font-size: 1.6rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 10px 20px rgba(0,0,0,.12);
    min-height: var(--pill-h);
    border-radius: calc(var(--pill-h)/2);
    padding: var(--pill-gap) var(--medium-gap);
    max-width: min(90vw, 600px);
    width: auto;
    margin-bottom: var(--pill-gap);
    display: flex;
    align-items: center;
}

