﻿@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
    h1 {
        @apply font-heading text-primary-dark text-5xl font-medium dark:text-primary-light;
    }

    h2 {
        @apply font-heading text-primary-dark text-4xl font-medium dark:text-primary-light;
    }

    h3 {
        @apply font-heading text-primary-dark text-3xl font-medium dark:text-primary-light;
    }

    h4 {
        @apply font-heading text-primary-dark text-2xl font-medium dark:text-primary-light;
    }

    h5 {
        @apply font-heading text-primary-dark text-xl font-medium dark:text-primary-light;
    }

    h6 {
        @apply font-heading text-primary-dark text-lg font-medium dark:text-primary-light;
    }
}

html {
    font-family: var(--font-body), serif;
    font-size: 14px;
    height: 100%;
}

* {
    color: rgb(var(--text-color));
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

body {
    min-height: 100%;
}

.header {
    height: calc(var(--header-height) * 1px);
}

.footer {
    height: calc(var(--footer-height) * 1px);
}

.force-new-page {
    page-break-before: always;
}

.keep-in-page {
    page-break-inside: avoid;
}

.map-width {
    width: calc((var(--page-width)) * 1mm);
}

@media only screen and (max-width: 640px) {
    .email-table table td {
        display: block;
        width: 100% !important;
    }

    .footer table td {
        display: block;
        width: 100% !important;
        text-align: center;
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .footer table {
        width: 100% !important;
    }

    .mail-header table td {
        display: block;
        width: 100% !important;
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

        .mail-header table td * {
            text-align: center;
        }

        .mail-header table td img {
            margin-left: auto;
            margin-right: auto;
        }

        .mail-header table {
            width: 100% !important;
        }
}
